diff --git a/ChangeLog.md b/ChangeLog.md index c16f1ed66967..795e79877c72 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,90 @@ +## 5.2.0 - December 2020 +#### Az.Accounts +* Managed to parse ExpiresOn time from raw token if could not get from underlying library +* Improved warning message if Interactive authentication is unavailable + +#### Az.ApiManagement +* [Breaking change] 'New-AzApiManagementProduct' by default has no subscription limit. + +#### Az.Compute +* Edited Get-AzVm to filter by '-Name' prior to checking for throttling due to too many resources. +* New cmdlet 'Start-AzVmssRollingExtensionUpgrade'. + +#### Az.ContainerRegistry +* Supported parameter 'Name' for and value from pipeline input for 'Get-AzContainerRegistryUsage' [#13605] +* Polished exceptions for 'Connect-AzContainerRegistry' + +#### Az.DataFactory +* Updated ADF .Net SDK version to 4.13.0 + +#### Az.HealthcareApis +* Added support for customer managed keys + +#### Az.IotHub +* Fixed an issue of SAS token. + +#### Az.KeyVault +* Supported 'all' as an option when setting key vault access policies +* Supported new version of SecretManagement module [#13366] +* Supported ByteArray, String, PSCredential and Hashtable for 'SecretValue' in SecretManagementModule [#12190] +* [Breaking change] redesigned the API surface of cmdlets related to managed HSM. + +#### Az.Monitor +* Changed parameter 'Rule' of 'New-AzAutoscaleProfile' to accept empty list. [#12903] +* Added new cmdlets to support creating diagnostic settings more flexible: + * 'Get-AzDiagnosticSettingCategory' + * 'New-AzDiagnosticSetting' + * 'New-AzDiagnosticDetailSetting' + +#### Az.RecoveryServices +* Made help text and parameter set name changes to 'Restore-AzRecoveryServicesBackupItem' cmdlet. + +#### Az.Resources +* Added '-Tag' parameter support to 'Set-AzTemplateSpec' and 'New-AzTemplateSpec' +* Added Tag display support to default formatter for Template Specs + +#### Az.ServiceFabric +* Added example to 'Set-AzServiceFabricSetting' with SettingsSectionDescription param +* Updated application related cmdlets to call out that support is only for ARM deployed resources +* Marked for deprecation cluster cert cmdlets 'Add-AzureRmServiceFabricClusterCertificate' and 'Remove-AzureRmServiceFabricClusterCertificate' + +#### Az.Sql +* Added SecondaryType to the following: + - 'New-AzSqlDatabase' + - 'Set-AzSqlDatabase' + - 'New-AzSqlDatabaseSecondary' +* Added HighAvailabilityReplicaCount to the following: + - 'New-AzSqlDatabase' + - 'Set-AzSqlDatabase' +* Made ReadReplicaCount an alias of HighAvailabilityReplicaCount in the following: + - 'New-AzSqlDatabase' + - 'Set-AzSqlDatabase' + +#### Az.Storage +* Supported upload Azure File size up to 4 TiB + - 'Set-AzStorageFileContent' +* Upgraded Azure.Storage.Blobs to 12.7.0 +* Upgraded Azure.Storage.Files.Shares to 12.5.0 +* Upgraded Azure.Storage.Files.DataLake to 12.5.0 + +#### Az.StorageSync +* Added Sync tiering policy feature with download policy and local cache mode + +#### Az.Websites +* Prevent duplicate access restriction rules + +### Thanks to our community contributors +* Andrew Dawson (@dawsonar802), Update Get-AzKeyVaultCertificate.md - Get cert and save it as pfx section to work with PowerShell Core (#13557) +* @iviark, Healthcare APIs Powershell BYOK Updates (#13518) +* John Duckmanton (@johnduckmanton), Correct spelling of TagPatchOperation (#13508) +* Michael James (@mikejwhat) + * Get-AzLogicAppRunHistory Help Tidy (#13513) +* Richard de Zwart (@mountain65) + * Update Update-AzAppConfigurationStore.md (#13485) + * Update New-AzCosmosDBAccount.md (#13490) +* @SteppingRazor, New-AzApiManagementProduct: Change SubscriptionsLimit parameter default value to None (#13457) +* Steve Burkett (@SteveBurkettNZ), Fix Typo for WorkspaceResourceId parameter in example (#13589) + ## 5.1.0 - November 2020 #### Az.Accounts * Fixed an issue that TenantId may be not respected if using 'Connect-AzAccount -DeviceCode'[#13477] diff --git a/documentation/azure-powershell-modules.md b/documentation/azure-powershell-modules.md index 8a0e807f8d4a..6179dfd6431f 100644 --- a/documentation/azure-powershell-modules.md +++ b/documentation/azure-powershell-modules.md @@ -25,6 +25,7 @@ Billing | `Az.Billing` Blockchain | `Az.Blockchain` | [![Blockchain]][BlockchainGallery] Blueprints | `Az.Blueprint` | [![Blueprint]][BlueprintGallery] Content Delivery Network | `Az.Cdn` | [![Cdn]][CdnGallery] +Cloud Service | `Az.CloudService` | [![CloudService]][CloudServiceGallery] Cognitive Services | `Az.CognitiveServices` | [![CognitiveServices]][CognitiveServicesGallery] Compute | `Az.Compute` | [![Compute]][ComputeGallery] Connected Kubernetes | `Az.ConnectedKubernetes` | [![ConnectedKubernetes]][ConnectedKubernetesGallery] @@ -32,6 +33,7 @@ Connected Machine | `Az.ConnectedMachine` Container Instance | `Az.ContainerInstance` | [![ContainerInstance]][ContainerInstanceGallery] Container Registry | `Az.ContainerRegistry` | [![ContainerRegistry]][ContainerRegistryGallery] Cosmos DB | `Az.CosmosDB` | [![CosmosDB]][CosmosDBGallery] +Cost Management | `Az.CostManagement` | [![CostManagement]][CostManagementGallery] Custom Resource Providers | `Az.CustomProviders` | [![CustomProviders]][CustomProvidersGallery] Data Box | `Az.DataBox` | [![DataBox]][DataBoxGallery] Data Box Edge (Stack Edge) | `Az.DataBoxEdge` | [![DataBoxEdge]][DataBoxEdgeGallery] @@ -118,7 +120,7 @@ Time Series Insights | `Az.TimeSeriesInsights` Traffic Manager | `Az.TrafficManager` | [![TrafficManager]][TrafficManagerGallery] VMWare Virtual Stream | `Az.VMWare` | [![VMWare]][VMWareGallery] Web App Service | `Az.Websites` | [![Websites]][WebsitesGallery] - +Windows Iot Services | `Az.WindowsIotServices` | [![WindowsIotServices]][WindowsIotServicesGallery] @@ -139,6 +141,7 @@ Web App Service | `Az.Websites` [Blockchain]: https://img.shields.io/powershellgallery/v/Az.Blockchain.svg?style=flat-square&label=Az.Blockchain [Blueprint]: https://img.shields.io/powershellgallery/v/Az.Blueprint.svg?style=flat-square&label=Az.Blueprint [Cdn]: https://img.shields.io/powershellgallery/v/Az.Cdn.svg?style=flat-square&label=Az.Cdn +[CloudService]: https://img.shields.io/powershellgallery/v/Az.CloudService.svg?style=flat-square&label=Az.CloudService [CognitiveServices]: https://img.shields.io/powershellgallery/v/Az.CognitiveServices.svg?style=flat-square&label=Az.CognitiveServices [Compute]: https://img.shields.io/powershellgallery/v/Az.Compute.svg?style=flat-square&label=Az.Compute [ConnectedKubernetes]: https://img.shields.io/powershellgallery/v/Az.ConnectedKubernetes.svg?style=flat-square&label=Az.ConnectedKubernetes @@ -146,6 +149,7 @@ Web App Service | `Az.Websites` [ContainerInstance]: https://img.shields.io/powershellgallery/v/Az.ContainerInstance.svg?style=flat-square&label=Az.ContainerInstance [ContainerRegistry]: https://img.shields.io/powershellgallery/v/Az.ContainerRegistry.svg?style=flat-square&label=Az.ContainerRegistry [CosmosDB]: https://img.shields.io/powershellgallery/v/Az.CosmosDB.svg?style=flat-square&label=Az.CosmosDB +[CostManagement]: https://img.shields.io/powershellgallery/v/Az.CostManagement.svg?style=flat-square&label=Az.CostManagement [CustomProviders]: https://img.shields.io/powershellgallery/v/Az.CustomProviders.svg?style=flat-square&label=Az.CustomProviders [DataBox]: https://img.shields.io/powershellgallery/v/Az.DataBox.svg?style=flat-square&label=Az.DataBox [DataBoxEdge]: https://img.shields.io/powershellgallery/v/Az.DataBoxEdge.svg?style=flat-square&label=Az.DataBoxEdge @@ -232,6 +236,7 @@ Web App Service | `Az.Websites` [TrafficManager]: https://img.shields.io/powershellgallery/v/Az.TrafficManager.svg?style=flat-square&label=Az.TrafficManager [VMWare]: https://img.shields.io/powershellgallery/v/Az.VMWare.svg?style=flat-square&label=Az.VMWare [Websites]: https://img.shields.io/powershellgallery/v/Az.Websites.svg?style=flat-square&label=Az.Websites +[WindowsIotServices]: https://img.shields.io/powershellgallery/v/Az.WindowsIotServices.svg?style=flat-square&label=Az.WindowsIotServices [AzGallery]: https://www.powershellgallery.com/packages/Az/ @@ -250,6 +255,7 @@ Web App Service | `Az.Websites` [BlockchainGallery]: https://www.powershellgallery.com/packages/Az.Blockchain/ [BlueprintGallery]: https://www.powershellgallery.com/packages/Az.Blueprint/ [CdnGallery]: https://www.powershellgallery.com/packages/Az.Cdn/ +[CloudServiceGallery]: https://www.powershellgallery.com/packages/Az.CloudService/ [CognitiveServicesGallery]: https://www.powershellgallery.com/packages/Az.CognitiveServices/ [ComputeGallery]: https://www.powershellgallery.com/packages/Az.Compute/ [ConnectedKubernetesGallery]: https://www.powershellgallery.com/packages/Az.ConnectedKubernetes/ @@ -257,6 +263,7 @@ Web App Service | `Az.Websites` [ContainerInstanceGallery]: https://www.powershellgallery.com/packages/Az.ContainerInstance/ [ContainerRegistryGallery]: https://www.powershellgallery.com/packages/Az.ContainerRegistry/ [CosmosDBGallery]: https://www.powershellgallery.com/packages/Az.CosmosDB/ +[CostManagementGallery]: https://www.powershellgallery.com/packages/Az.CostManagement/ [CustomProvidersGallery]: https://www.powershellgallery.com/packages/Az.CustomProviders/ [DataBoxGallery]: https://www.powershellgallery.com/packages/Az.DataBox/ [DataBoxEdgeGallery]: https://www.powershellgallery.com/packages/Az.DataBoxEdge/ @@ -342,4 +349,5 @@ Web App Service | `Az.Websites` [TimeSeriesInsightsGallery]: https://www.powershellgallery.com/packages/Az.TimeSeriesInsights/ [TrafficManagerGallery]: https://www.powershellgallery.com/packages/Az.TrafficManager/ [VMWareGallery]: https://www.powershellgallery.com/packages/Az.VMWare/ -[WebsitesGallery]: https://www.powershellgallery.com/packages/Az.Websites/ \ No newline at end of file +[WebsitesGallery]: https://www.powershellgallery.com/packages/Az.Websites/ +[WindowsIotServicesGallery]: https://www.powershellgallery.com/packages/Az.WindowsIotServices/ \ No newline at end of file diff --git a/setup/generate.ps1 b/setup/generate.ps1 index b0364e47c074..22008fb72575 100644 --- a/setup/generate.ps1 +++ b/setup/generate.ps1 @@ -37,7 +37,7 @@ if( (-not (get-command -ea 0 light)) -or (-not (get-command -ea 0 heat)) -or (-n $outputName ="Az-Cmdlets" # generate the product name from the current month/year. -$productName = "Microsoft Azure PowerShell - November 2020" +$productName = "Microsoft Azure PowerShell - December 2020" # where to put temp files $tmp = Join-Path $env:temp azure-cmdlets-tmp diff --git a/src/Accounts/Accounts/Az.Accounts.psd1 b/src/Accounts/Accounts/Az.Accounts.psd1 index 9ab029b524f3..43e7d7c1b5cb 100644 --- a/src/Accounts/Accounts/Az.Accounts.psd1 +++ b/src/Accounts/Accounts/Az.Accounts.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/18/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.2.1' +ModuleVersion = '2.2.2' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -143,7 +143,8 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed the issue that incorrectly use Task.Result causes unclear error message if browser is not avaialable for Interactive auth' + ReleaseNotes = '* Managed to parse ExpiresOn time from raw token if could not get from underlying library +* Improved warning message if Interactive authentication is unavailable' # Prerelease string of this module # Prerelease = '' diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index 726fa1d21aa1..c61a19362c98 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.2.2 * Managed to parse ExpiresOn time from raw token if could not get from underlying library * Improved warning message if Interactive authentication is unavailable diff --git a/src/Accounts/Accounts/Properties/AssemblyInfo.cs b/src/Accounts/Accounts/Properties/AssemblyInfo.cs index f85b8a2d24c6..9bebd08bc252 100644 --- a/src/Accounts/Accounts/Properties/AssemblyInfo.cs +++ b/src/Accounts/Accounts/Properties/AssemblyInfo.cs @@ -43,8 +43,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("2.2.1")] -[assembly: AssemblyFileVersion("2.2.1")] +[assembly: AssemblyVersion("2.2.2")] +[assembly: AssemblyFileVersion("2.2.2")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Accounts.Test")] #endif diff --git a/src/Accounts/Authentication/Properties/AssemblyInfo.cs b/src/Accounts/Authentication/Properties/AssemblyInfo.cs index 08b9055fd15f..6e42c9900d69 100644 --- a/src/Accounts/Authentication/Properties/AssemblyInfo.cs +++ b/src/Accounts/Authentication/Properties/AssemblyInfo.cs @@ -43,5 +43,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2.1")] -[assembly: AssemblyFileVersion("2.2.1")] +[assembly: AssemblyVersion("2.2.2")] +[assembly: AssemblyFileVersion("2.2.2")] diff --git a/src/Accounts/Authenticators/Properties/AssemblyInfo.cs b/src/Accounts/Authenticators/Properties/AssemblyInfo.cs index 04401053172c..cbddae1960b5 100644 --- a/src/Accounts/Authenticators/Properties/AssemblyInfo.cs +++ b/src/Accounts/Authenticators/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// ---------------------------------------------------------------------------------- +// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); @@ -48,5 +48,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2.1")] -[assembly: AssemblyFileVersion("2.2.1")] \ No newline at end of file +[assembly: AssemblyVersion("2.2.2")] +[assembly: AssemblyFileVersion("2.2.2")] diff --git a/src/Advisor/Advisor/Az.Advisor.psd1 b/src/Advisor/Advisor/Az.Advisor.psd1 index 44ce10cc5b90..40984391b67d 100644 --- a/src/Advisor/Advisor/Az.Advisor.psd1 +++ b/src/Advisor/Advisor/Az.Advisor.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Advisor.dll' diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index 8744237e2825..71fa7baffb5d 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'YamlDotNet.dll', 'AutoMapper.dll', diff --git a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 index 107f39018d1d..939c877bc211 100644 --- a/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 +++ b/src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.AlertsManagement.dll' diff --git a/src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1 b/src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1 index c9efce8da3ea..cd5f9c500994 100644 --- a/src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1 +++ b/src/AnalysisServices/AnalysisServices/Az.AnalysisServices.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Analysis.dll' diff --git a/src/ApiManagement/ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs b/src/ApiManagement/ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs index 590879718980..0f1cd4ab32f5 100644 --- a/src/ApiManagement/ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs +++ b/src/ApiManagement/ApiManagement.ServiceManagement/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] +[assembly: AssemblyVersion("2.2.0")] +[assembly: AssemblyFileVersion("2.2.0")] diff --git a/src/ApiManagement/ApiManagement/Az.ApiManagement.psd1 b/src/ApiManagement/ApiManagement/Az.ApiManagement.psd1 index 5ce6f55555ef..f4e61400006c 100644 --- a/src/ApiManagement/ApiManagement/Az.ApiManagement.psd1 +++ b/src/ApiManagement/ApiManagement/Az.ApiManagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.1.0' +ModuleVersion = '2.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.ApiManagement.dll', @@ -207,18 +207,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added new ''Add-AzApiManagementApiToGateway'' cmdlet. -* Added new ''Get-AzApiManagementGateway'' cmdlet. -* Added new ''Get-AzApiManagementGatewayHostnameConfiguration'' cmdlet. -* Added new ''Get-AzApiManagementGatewayKey'' cmdlet. -* Added new ''New-AzApiManagementGateway'' cmdlet. -* Added new ''New-AzApiManagementGatewayHostnameConfiguration'' cmdlet. -* Added new ''New-AzApiManagementResourceLocationObject'' cmdlet. -* Added new ''Remove-AzApiManagementApiFromGateway'' cmdlet. -* Added new ''Remove-AzApiManagementGateway'' cmdlet. -* Added new ''Remove-AzApiManagementGatewayHostnameConfiguration'' cmdlet. -* Added new ''Update-AzApiManagementGateway'' cmdlet. -* Added new optional [-GatewayId] parameter to the ''Get-AzApiManagementApi'' cmdlet.' + ReleaseNotes = '* [Breaking change] ''New-AzApiManagementProduct'' by default has no subscription limit.' # Prerelease string of this module # Prerelease = '' diff --git a/src/ApiManagement/ApiManagement/ChangeLog.md b/src/ApiManagement/ApiManagement/ChangeLog.md index 5f075223e3b8..654387b11fb0 100644 --- a/src/ApiManagement/ApiManagement/ChangeLog.md +++ b/src/ApiManagement/ApiManagement/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.2.0 * [Breaking change] `New-AzApiManagementProduct` by default has no subscription limit. ## Version 2.1.0 diff --git a/src/ApiManagement/ApiManagement/Properties/AssemblyInfo.cs b/src/ApiManagement/ApiManagement/Properties/AssemblyInfo.cs index 28c28a971d9e..01e3ddb29519 100644 --- a/src/ApiManagement/ApiManagement/Properties/AssemblyInfo.cs +++ b/src/ApiManagement/ApiManagement/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] +[assembly: AssemblyVersion("2.2.0")] +[assembly: AssemblyFileVersion("2.2.0")] diff --git a/src/AppConfiguration/Az.AppConfiguration.psd1 b/src/AppConfiguration/Az.AppConfiguration.psd1 index a9f7a366c1ac..41e77346e211 100644 --- a/src/AppConfiguration/Az.AppConfiguration.psd1 +++ b/src/AppConfiguration/Az.AppConfiguration.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.AppConfiguration.private.dll' diff --git a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 index 23f408f26381..b7bab810f69d 100644 --- a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ApplicationInsights.dll' diff --git a/src/Attestation/Attestation/Az.Attestation.psd1 b/src/Attestation/Attestation/Az.Attestation.psd1 index 445943b34703..554ab5a9972d 100644 --- a/src/Attestation/Attestation/Az.Attestation.psd1 +++ b/src/Attestation/Attestation/Az.Attestation.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Attestation.dll', diff --git a/src/Automation/Automation/Az.Automation.psd1 b/src/Automation/Automation/Az.Automation.psd1 index 9f0824494497..8de14a81838c 100644 --- a/src/Automation/Automation/Az.Automation.psd1 +++ b/src/Automation/Automation/Az.Automation.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Automation.dll' diff --git a/src/Batch/Batch/Az.Batch.psd1 b/src/Batch/Batch/Az.Batch.psd1 index 0497b4f02fa5..e30de5934d67 100644 --- a/src/Batch/Batch/Az.Batch.psd1 +++ b/src/Batch/Batch/Az.Batch.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Batch.dll', 'Microsoft.Azure.Management.Batch.dll', diff --git a/src/Billing/Billing/Az.Billing.psd1 b/src/Billing/Billing/Az.Billing.psd1 index 22c411d1c2eb..37dba82b1017 100644 --- a/src/Billing/Billing/Az.Billing.psd1 +++ b/src/Billing/Billing/Az.Billing.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Billing.dll', diff --git a/src/Blockchain/Az.Blockchain.psd1 b/src/Blockchain/Az.Blockchain.psd1 index 2a24391e8f5f..48b630bc4043 100644 --- a/src/Blockchain/Az.Blockchain.psd1 +++ b/src/Blockchain/Az.Blockchain.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.Blockchain.private.dll' diff --git a/src/Blueprint/Blueprint/Az.Blueprint.psd1 b/src/Blueprint/Blueprint/Az.Blueprint.psd1 index 13d2ccac1222..8879890927b8 100644 --- a/src/Blueprint/Blueprint/Az.Blueprint.psd1 +++ b/src/Blueprint/Blueprint/Az.Blueprint.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Blueprint.dll' diff --git a/src/Cdn/Cdn/Az.Cdn.psd1 b/src/Cdn/Cdn/Az.Cdn.psd1 index 5653100519ba..8b0b3ec2cd9a 100644 --- a/src/Cdn/Cdn/Az.Cdn.psd1 +++ b/src/Cdn/Cdn/Az.Cdn.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Cdn.dll' diff --git a/src/CloudService/Az.CloudService.csproj b/src/CloudService/Az.CloudService.csproj new file mode 100644 index 000000000000..ed08938f1b8a --- /dev/null +++ b/src/CloudService/Az.CloudService.csproj @@ -0,0 +1,7 @@ + + + CloudService + + + + diff --git a/src/CloudService/Az.CloudService.format.ps1xml b/src/CloudService/Az.CloudService.format.ps1xml new file mode 100644 index 000000000000..388b41a0ac03 --- /dev/null +++ b/src/CloudService/Az.CloudService.format.ps1xml @@ -0,0 +1,1015 @@ + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceIdentity + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.CloudServiceIdentity + + + + + + + + + + + + + + + + + + + + + + + + + + + CloudServiceName + + + ResourceGroupName + + + RoleInstanceName + + + RoleName + + + SubscriptionId + + + UpdateDomain + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService + + + + + + + + + + + + + + + + + + + + + ResourceGroupName + + + Name + + + Location + + + ProvisioningState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate + + + + + + + + + + + + CertificateUrl + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus + + + + + + + + + + + + + + + + + + + + + + + + Code + + + DisplayStatus + + + Level + + + Message + + + Time + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount + + + + + + + + + + + + + + + Code + + + Count + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AutoUpgradeMinorVersion + + + ForceUpdateTag + + + ProtectedSetting + + + ProvisioningState + + + Publisher + + + RolesAppliedTo + + + Setting + + + Type + + + TypeHandlerVersion + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView + + + + + + + + + + + + + + + Statuses + + + RoleInstanceStatusesSummary + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Configuration + + + ConfigurationUrl + + + PackageUrl + + + ProvisioningState + + + StartCloudService + + + UniqueId + + + UpgradeMode + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole + + + + + + + + + + + + + + + + + + Location + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties + + + + + + + + + + + + + + + + + + + + + Name + + + SkuName + + + SkuTier + + + SkuCapacity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties + + + + + + + + + + + + UniqueId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku + + + + + + + + + + + + + + + + + + Capacity + + + Name + + + Tier + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference + + + + + + + + + + + + SecretUrl + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + + + + + + + + + + + + + + + + + + + + + + + + Name + + + Publisher + + + Type + + + TypeHandlerVersion + + + ProvisioningState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError + + + + + + + + + + + + + + + Errordetail + + + Exceptiontype + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku + + + + + + + + + + + + + + + Name + + + Tier + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration + + + + + + + + + + + + + + + Name + + + FrontendIPConfiguration + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties + + + + + + + + + + + + PrivateIPAddress + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance + + + + + + + + + + + + + + + + + + + + + Name + + + Location + + + SkuName + + + SkuTier + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances + + + + + + + + + + + + RoleInstance + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView + + + + + + + + + + + + + + + + + + Statuses + + + PlatformFaultDomain + + + PlatformUpdateDomain + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult + + + + + + + + + + + + NextLink + + + + + + + + \ No newline at end of file diff --git a/src/CloudService/Az.CloudService.psd1 b/src/CloudService/Az.CloudService.psd1 new file mode 100644 index 000000000000..5776ae5906d6 --- /dev/null +++ b/src/CloudService/Az.CloudService.psd1 @@ -0,0 +1,152 @@ +# +# Module manifest for module 'Az.CloudService' +# +# Generated by: Microsoft Corporation +# +# Generated on: 2020-12-02 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = './Az.CloudService.psm1' + +# Version number of this module. +ModuleVersion = '0.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = 'a41eb61d-c5a1-4e9b-81a7-b8905fff7f2c' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell: CloudService cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Az.CloudService.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Az.CloudService.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'Get-AzCloudService', 'Get-AzCloudServiceInstanceView', + 'Get-AzCloudServiceNetworkInterfaces', + 'Get-AzCloudServicePublicIPAddress', + 'Get-AzCloudServiceRoleInstance', + 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile', + 'Get-AzCloudServiceRoleInstanceView', + 'Invoke-AzCloudServiceRebuild', 'Invoke-AzCloudServiceReimage', + 'Invoke-AzCloudServiceRoleInstanceRebuild', + 'Invoke-AzCloudServiceRoleInstanceReimage', 'New-AzCloudService', + 'New-AzCloudServiceDiagnosticsExtension', + 'New-AzCloudServiceExtensionObject', + 'New-AzCloudServiceLoadBalancerConfigurationObject', + 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject', + 'New-AzCloudServiceRemoteDesktopExtensionObject', + 'New-AzCloudServiceRoleProfilePropertiesObject', + 'New-AzCloudServiceVaultSecretGroupObject', 'Remove-AzCloudService', + 'Remove-AzCloudServiceRoleInstance', 'Restart-AzCloudService', + 'Restart-AzCloudServiceRoleInstance', + 'Set-AzCloudServiceUpdateDomain', 'Start-AzCloudService', + 'Stop-AzCloudService', 'Switch-AzCloudService', + 'Update-AzCloudService' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','PSModule','CloudService' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + ReleaseNotes = '* First preview release for module Az.CloudService.' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/src/CloudService/Az.CloudService.psm1 b/src/CloudService/Az.CloudService.psm1 new file mode 100644 index 000000000000..e6461d60da98 --- /dev/null +++ b/src/CloudService/Az.CloudService.psm1 @@ -0,0 +1,109 @@ +# region Generated + # ---------------------------------------------------------------------------------- + # + # Copyright Microsoft Corporation + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # http://www.apache.org/licenses/LICENSE-2.0 + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # ---------------------------------------------------------------------------------- + # Load required Az.Accounts module + $accountsName = 'Az.Accounts' + $accountsModule = Get-Module -Name $accountsName + if(-not $accountsModule) { + $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' + if(Test-Path -Path $localAccountsPath) { + $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 + if($localAccounts) { + $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru + } + } + if(-not $accountsModule) { + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0 + if($hasAdequateVersion) { + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru + } + } + } + + if(-not $accountsModule) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + } + Write-Information "Loaded Module '$($accountsModule.Name)'" + + # Load the private module dll + $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.CloudService.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module]::Instance + + # Ask for the shared functionality table + $VTable = Register-AzModule + + # Tweaks the pipeline on module load + $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Tweaks the pipeline per call + $instance.OnNewRequest = $VTable.OnNewRequest + + # Gets shared parameter values + $instance.GetParameterValue = $VTable.GetParameterValue + + # Allows shared module to listen to events from this module + $instance.EventListener = $VTable.EventListener + + # Gets shared argument completers + $instance.ArgumentCompleter = $VTable.ArgumentCompleter + + # The name of the currently selected Azure profile + $instance.ProfileName = $VTable.ProfileName + + + # Load the custom module + $customModulePath = Join-Path $PSScriptRoot './custom/Az.CloudService.custom.psm1' + if(Test-Path $customModulePath) { + $null = Import-Module -Name $customModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = Join-Path $PSScriptRoot './exports' + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } + + # Finalize initialization of this module + $instance.Init(); + Write-Information "Loaded Module '$($instance.Name)'" +# endregion diff --git a/src/CloudService/Changelog.md b/src/CloudService/Changelog.md new file mode 100644 index 000000000000..d8b33fa77979 --- /dev/null +++ b/src/CloudService/Changelog.md @@ -0,0 +1,24 @@ + +## Upcoming Release + +## Version 0.1.0 +* First preview release for module Az.CloudService + diff --git a/src/CloudService/CloudService.sln b/src/CloudService/CloudService.sln new file mode 100644 index 000000000000..9d3a60369f26 --- /dev/null +++ b/src/CloudService/CloudService.sln @@ -0,0 +1,48 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.CloudService", "Az.CloudService.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030} + EndGlobalSection +EndGlobal diff --git a/src/CloudService/Properties/AssemblyInfo.cs b/src/CloudService/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..3264b6b31b59 --- /dev/null +++ b/src/CloudService/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - CloudService")] +[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("1fe4b4c7-44d2-4800-a935-733381e663ae")] +[assembly: AssemblyVersion("0.1.0")] +[assembly: AssemblyFileVersion("0.1.0")] diff --git a/src/CloudService/build-module.ps1 b/src/CloudService/build-module.ps1 new file mode 100644 index 000000000000..2d0a1fe100e3 --- /dev/null +++ b/src/CloudService/build-module.ps1 @@ -0,0 +1,153 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +$ErrorActionPreference = 'Stop' + +if($PSEdition -ne 'Core') { + Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.' +} + +if(-not $Isolated -and -not $Debugger) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + + if($LastExitCode -ne 0) { + # Build failed. Don't attempt to run the module. + return + } + + if($Test) { + . (Join-Path $PSScriptRoot 'test-module.ps1') + if($LastExitCode -ne 0) { + # Tests failed. Don't attempt to run the module. + return + } + } + + if($Docs) { + . (Join-Path $PSScriptRoot 'generate-help.ps1') + if($LastExitCode -ne 0) { + # Docs generation failed. Don't attempt to run the module. + return + } + } + + if($Pack) { + . (Join-Path $PSScriptRoot 'pack-module.ps1') + if($LastExitCode -ne 0) { + # Packing failed. Don't attempt to run the module. + return + } + } + + $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1' + if($Code) { + . $runModulePath -Code + } elseif($Run) { + . $runModulePath + } else { + Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script." + } + return +} + +$binFolder = Join-Path $PSScriptRoot 'bin' +$objFolder = Join-Path $PSScriptRoot 'obj' + +if(-not $Debugger) { + Write-Host -ForegroundColor Green 'Cleaning build folders...' + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder + + if((Test-Path $binFolder) -or (Test-Path $objFolder)) { + Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?' + Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.' + } + + Write-Host -ForegroundColor Green 'Compiling module...' + $buildConfig = 'Debug' + if($Release) { + $buildConfig = 'Release' + } + dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo + if($LastExitCode -ne 0) { + Write-Error 'Compilation failed.' + } + + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release') +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.CloudService.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} + +# Load DLL to use build-time cmdlets +$null = Import-Module -Name $dll + +$modulePaths = $dll +$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.CloudService.custom.psm1' +if(Test-Path $customPsm1) { + $modulePaths = @($dll, $customPsm1) +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(Test-Path $exportsFolder) { + $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $exportsFolder + +$internalFolder = Join-Path $PSScriptRoot 'internal' +if(Test-Path $internalFolder) { + $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $internalFolder + +$psd1 = Join-Path $PSScriptRoot './Az.CloudService.psd1' +$guid = Get-ModuleGuid -Psd1Path $psd1 +$moduleName = 'Az.CloudService' +$examplesFolder = Join-Path $PSScriptRoot 'examples' +$null = New-Item -ItemType Directory -Force -Path $examplesFolder + +if($NoDocs) { + Write-Host -ForegroundColor Green 'Creating exports...' + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs +} else { + Write-Host -ForegroundColor Green 'Creating exports and docs...' + $moduleDescription = 'Microsoft Azure PowerShell: CloudService cmdlets' + $docsFolder = Join-Path $PSScriptRoot 'docs' + if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + } + $null = New-Item -ItemType Directory -Force -Path $docsFolder + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid +} + +Write-Host -ForegroundColor Green 'Creating format.ps1xml...' +$formatPs1xml = Join-Path $PSScriptRoot './Az.CloudService.format.ps1xml' +Export-FormatPs1xml -FilePath $formatPs1xml + +Write-Host -ForegroundColor Green 'Creating psd1...' +$customFolder = Join-Path $PSScriptRoot 'custom' +Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid + +Write-Host -ForegroundColor Green 'Creating test stubs...' +$testFolder = Join-Path $PSScriptRoot 'test' +$null = New-Item -ItemType Directory -Force -Path $testFolder +Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder + +Write-Host -ForegroundColor Green 'Creating example stubs...' +Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder + +Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/CloudService/check-dependencies.ps1 b/src/CloudService/check-dependencies.ps1 new file mode 100644 index 000000000000..513c52ca2fb5 --- /dev/null +++ b/src/CloudService/check-dependencies.ps1 @@ -0,0 +1,64 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { + if($predicate) { + $module = Get-Module -ListAvailable -Name $moduleName + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + $null = New-Item -ItemType Directory -Force -Path $path + Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { + Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path + } else { + Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path + } + } + } +} + +$ProgressPreference = 'SilentlyContinue' +$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1 + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' + +$tools = Join-Path $PSScriptRoot 'tools' +$resourceDir = Join-Path $tools 'Resources' +$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' + +if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { + Write-Host -ForegroundColor Green "Building local Resource module used for test..." + Set-Location $resourceDir + $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources + $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ + Set-Location $HOME/.PSSharedModules/Resources + $null = .\build-module.ps1 + Set-Location $PSScriptRoot +} diff --git a/src/CloudService/custom/Az.CloudService.custom.psm1 b/src/CloudService/custom/Az.CloudService.custom.psm1 new file mode 100644 index 000000000000..885e17f69a30 --- /dev/null +++ b/src/CloudService/custom/Az.CloudService.custom.psm1 @@ -0,0 +1,17 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.CloudService.private.dll') + + # Load the internal module + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.CloudService.internal.psm1' + if(Test-Path $internalModulePath) { + $null = Import-Module -Name $internalModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export script cmdlets + Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) +# endregion diff --git a/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 b/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 new file mode 100644 index 000000000000..d7b810756eb1 --- /dev/null +++ b/src/CloudService/custom/Get-AzCloudServiceNetworkInterface.ps1 @@ -0,0 +1,81 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the network interfaces of a cloud service. +.Description +Get the network interfaces of a cloud service. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServiceNetworkInterfaces +#> + +function Get-AzCloudServiceNetworkInterfaces { + param( + [Parameter(ParameterSetName="CloudServiceName", HelpMessage="Subscription.")] + [Parameter(ParameterSetName = "CloudService", HelpMessage="Subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName", HelpMessage="ResourceGroupName.")] + [string] $ResourceGroupName, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName", HelpMessage="CloudServiceName.")] + [string] $CloudServiceName, + + [Parameter(ParameterSetName="CloudServiceName", HelpMessage="RoleInstanceName.")] + [Parameter(ParameterSetName = "CloudService", HelpMessage="RoleInstanceName.")] + [string] $RoleInstanceName, + + [Parameter(Mandatory=$true, ParameterSetName="CloudService", HelpMessage="CloudService instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] $CloudService + ) + process { + $ApiVersion = "2020-06-01" + if ($PSBoundParameters.ContainsKey("CloudService")) + { + $elements = $CloudService.Id.Split("/") + if (($elements.Count -lt 5) -or ("subscriptions" -ne $elements[1]) -or ("resourceGroups" -ne $elements[3])) + { + throw "CloudService.Id should match the format: /subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)" + } + $SubscriptionId = $elements[2] + $ResourceGroupName = $elements[4] + $CloudServiceName = $CloudService.Name + if ($Null -eq $CloudServiceName) + { + throw "CloudService.Name should not be Null" + } + } + + # Create the URI as per the input + if ($PSBoundParameters.ContainsKey("RoleInstanceName")) + { + $uriToInvoke = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Compute/cloudServices/$CloudServiceName/roleInstances/$RoleInstanceName/networkInterfaces?api-version=$ApiVersion" + } + else + { + $uriToInvoke = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Compute/cloudServices/$CloudServiceName/networkInterfaces?api-version=$ApiVersion" + } + + # Invoke and display the information + $result = Invoke-AzRestMethod -Method GET -Path $uriToInvoke + $result.Content + } +} diff --git a/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 b/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 new file mode 100644 index 000000000000..8546f65d25ae --- /dev/null +++ b/src/CloudService/custom/Get-AzCloudServicePublicIPAddress.ps1 @@ -0,0 +1,68 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the public IP address of a cloud service. +.Description +Get the public IP address of a cloud service. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServicePublicIPAddress +#> +function Get-AzCloudServicePublicIPAddress { + param( + [Parameter(HelpMessage="Subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName", HelpMessage="ResourceGroupName.")] + [string] $ResourceGroupName, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName", HelpMessage="CloudServiceName.")] + [string] $CloudServiceName, + + [Parameter(Mandatory=$true, ParameterSetName="CloudService", HelpMessage="CloudService instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] $CloudService + ) + process { + $ApiVersion = "2020-06-01" + if ($PSBoundParameters.ContainsKey("CloudService")) + { + $elements = $CloudService.Id.Split("/") + if (($elements.Count -lt 5) -or ("subscriptions" -ne $elements[1]) -or ("resourceGroups" -ne $elements[3])) + { + throw "CloudService.Id should match the format: /subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)" + } + $SubscriptionId = $elements[2] + $ResourceGroupName = $elements[4] + $CloudServiceName = $CloudService.Name + if ($Null -eq $CloudServiceName) + { + throw "CloudService.Name should not be Null" + } + } + + # Create the URI as per the input + $uriToInvoke = "/subscriptions/$SubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Compute/cloudServices/$CloudServiceName/publicIPAddresses?api-version=$ApiVersion" + + # Invoke and display the information + $result = Az.Accounts\Invoke-AzRestMethod -Method GET -Path $uriToInvoke + $result.Content + } +} diff --git a/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 b/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 new file mode 100644 index 000000000000..755bcef2b1ca --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceDiagnosticsExtension.ps1 @@ -0,0 +1,118 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Diagnostics Extension +.Description +Create a in-memory object for Diagnostics Extension + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/new-azcloudservicediagnosticsextension +#> + +function New-AzCloudServiceDiagnosticsExtension { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + param( + [Parameter(HelpMessage="Name of Diagnostics Extension.", Mandatory)] + [string] $Name, + + [Parameter(HelpMessage="Subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${Subscription}, + + [Parameter(HelpMessage="Resource Group name of Cloud Service.", Mandatory)] + [string] $ResourceGroupName, + + [Parameter(HelpMessage="Name of Cloud Service.", Mandatory)] + [string] $CloudServiceName, + + [Parameter(HelpMessage="Specifies the configuration for Azure Diagnostics. You can download the schema by using the following command: (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd'", Mandatory)] + [string] $DiagnosticsConfigurationPath, + + [Parameter(HelpMessage="Name of the Storage Account.", Mandatory)] + [string] $StorageAccountName, + + [Parameter(HelpMessage="Storage Account Key.", Mandatory)] + [string] $StorageAccountKey, + + [Parameter(HelpMessage="Specifies the version of the extension.")] + [string] $TypeHandlerVersion, + + [Parameter(HelpMessage="Roles applied to.")] + [string[]] $RolesAppliedTo, + + [Parameter(HelpMessage="Auto upgrade minor version.")] + [Boolean] $AutoUpgradeMinorVersion + ) + + process { + $publisher = "Microsoft.Azure.Diagnostics" + $extensionType = "PaaSDiagnostics" + + if (!(Test-Path $DiagnosticsConfigurationPath -PathType Leaf)) + { + throw ("DiagnosticsConfigurationPath does not exits: " + $DiagnosticsConfigurationPath) + } + + [xml]$diagnosticsConfigurationXml = Get-Content $DiagnosticsConfigurationPath + + $storageAccount = $diagnosticsConfigurationXml.PublicConfig.ChildNodes | Where-Object { $_.Name -eq 'StorageAccount' } + if ($storageAccount) + { + Write-Host "Using StorageAccount information defined in diagnostics configuration file." + } + else + { + $storageAccount = $diagnosticsConfigurationXml.CreateElement('StorageAccount', $diagnosticsConfigurationXml.PublicConfig.NamespaceURI) + $storageAccount.InnerText = $StorageAccountName + $storageAccount = $diagnosticsConfigurationXml.PublicConfig.AppendChild($storageAccount) + } + + $metrics = $diagnosticsConfigurationXml.PublicConfig.WadCfg.DiagnosticMonitorConfiguration.ChildNodes | Where-Object { $_.Name -eq 'Metrics' } + if ($metrics) + { + Write-Host "Using Metrics information defined in diagnostics configuration file." + } + else + { + $metrics = $diagnosticsConfigurationXml.CreateElement('Metrics', $diagnosticsConfigurationXml.PublicConfig.NamespaceURI) + $resourceId = "/subscriptions/$Subscription/resourceGroups/$ResourceGroupName/providers/Microsoft.Compute/cloudservices/$CloudServiceName" + $metrics.SetAttribute('resourceId', $resourceId) + $metrics = $diagnosticsConfigurationXml.PublicConfig.WadCfg.DiagnosticMonitorConfiguration.AppendChild($metrics) + } + + $setting = $diagnosticsConfigurationXml.PublicConfig.OuterXml + + $privateConfig = $diagnosticsConfigurationXml.ChildNodes | Where-Object { $_.Name -eq 'PrivateConfig' } + if ($privateConfig) + { + $protectedSetting = $privateConfig.OuterXml + Write-Host "Using PrivateConfig information defined in diagnostics configuration file." + } + else + { + $storageEndpoint = "https://core.windows.net" + $protectedSetting = '' + } + + return New-AzCloudServiceExtensionObject -Name $Name -Publisher $publisher -Type $extensionType -TypeHandlerVersion $TypeHandlerVersion -Setting $setting -ProtectedSetting $protectedSetting -RolesAppliedTo $RolesAppliedTo -AutoUpgradeMinorVersion $AutoUpgradeMinorVersion + } +} diff --git a/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 new file mode 100644 index 000000000000..2c31c46ffd4a --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceExtensionObject.ps1 @@ -0,0 +1,72 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Extension +.Description +Create a in-memory object for Extension + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceExtensionObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available.")] + [bool] + $AutoUpgradeMinorVersion, + [Parameter(HelpMessage="Name.")] + [string] + $Name, + [Parameter(HelpMessage="Protected settings for the extension which are encrypted before sent to the VM.")] + [string] + $ProtectedSetting, + [Parameter(HelpMessage="Publisher.")] + [string] + $Publisher, + [Parameter(HelpMessage="RolesAppliedTo.")] + [string[]] + $RolesAppliedTo, + [Parameter(HelpMessage="Public settings for the extension.")] + [string] + $Setting, + [Parameter(HelpMessage="Type.")] + [string] + $Type, + [Parameter(HelpMessage="TypeHandlerVersion.")] + [string] + $TypeHandlerVersion + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension]::New() + + $Object.AutoUpgradeMinorVersion = $AutoUpgradeMinorVersion + $Object.Name = $Name + $Object.ProtectedSetting = $ProtectedSetting + $Object.Publisher = $Publisher + $Object.RolesAppliedTo = $RolesAppliedTo + $Object.Setting = $Setting + $Object.Type = $Type + $Object.TypeHandlerVersion = $TypeHandlerVersion + return $Object + } +} + diff --git a/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 new file mode 100644 index 000000000000..2ab02322df5b --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 @@ -0,0 +1,48 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerConfiguration +.Description +Create a in-memory object for LoadBalancerConfiguration + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject +#> +function New-AzCloudServiceLoadBalancerConfigurationObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="FrontendIPConfiguration.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + $FrontendIPConfiguration, + [Parameter(HelpMessage="Name of LoadBalancerConfiguration.")] + [string] + $Name + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration]::New() + + $Object.FrontendIPConfiguration = $FrontendIPConfiguration + $Object.Name = $Name + return $Object + } +} + diff --git a/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 new file mode 100644 index 000000000000..5257bfec269f --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -0,0 +1,48 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerFrontendIPConfiguration +.Description +Create a in-memory object for LoadBalancerFrontendIPConfiguration + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject +#> +function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Name of FrontendIpConfigration.")] + [string] + $Name, + [Parameter(HelpMessage="Resource Id.")] + [string] + $PublicIPAddressId + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration]::New() + + $Object.Name = $Name + $Object.PublicIPAddressId = $PublicIPAddressId + return $Object + } +} + diff --git a/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 new file mode 100644 index 000000000000..82eeab389eb1 --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -0,0 +1,58 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Remote Desktop Extension +.Description +Create a in-memory object for Remote Desktop Extension + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-azcloudserviceremotedesktopextensionobject +#> + +function New-AzCloudServiceRemoteDesktopExtensionObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension')] + param( + [Parameter(HelpMessage="Name of Remote Desktop Extension.", Mandatory)] + [string] $Name, + + [Parameter(HelpMessage="Credential for Remote Desktop Extension.", Mandatory)] + [PSCredential] $Credential, + + [Parameter(HelpMessage="Expiration for Remote Desktop Extension.")] + [DateTime] $Expiration, + + [Parameter(HelpMessage="Remote Desktop Extension version.")] + [string] $TypeHandlerVersion, + + [Parameter(HelpMessage="Roles applied to.")] + [string[]] $RolesAppliedTo, + + [Parameter(HelpMessage="Auto upgrade minor version.")] + [Boolean] $AutoUpgradeMinorVersion + ) + + process { + $RDPPublisher = "Microsoft.Windows.Azure.Extensions" + $RDPExtensionType = "RDP" + + $rdpSetting = "$($Credential.UserName)$Expiration"; + $rdpProtectedSetting = "$($Credential.Password)"; + + return New-AzCloudServiceExtensionObject -Name $Name -Publisher $RDPPublisher -Type $RDPExtensionType -TypeHandlerVersion $TypeHandlerVersion -Setting $rdpSetting -ProtectedSetting $rdpProtectedSetting -RolesAppliedTo $RolesAppliedTo -AutoUpgradeMinorVersion $AutoUpgradeMinorVersion + } +} \ No newline at end of file diff --git a/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 new file mode 100644 index 000000000000..0e1510a73e12 --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceRoleProfilePropertiesObject.ps1 @@ -0,0 +1,56 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for CloudServiceRoleProfileProperties +.Description +Create a in-memory object for CloudServiceRoleProfileProperties + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject +#> +function New-AzCloudServiceRoleProfilePropertiesObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="Name of role profile.")] + [string] + $Name, + [Parameter(HelpMessage="Specifies the number of role instances in the cloud service.")] + [long] + $SkuCapacity, + [Parameter(HelpMessage="The sku name.")] + [string] + $SkuName, + [Parameter(HelpMessage="SkuTier.")] + [string] + $SkuTier + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties]::New() + + $Object.Name = $Name + $Object.SkuCapacity = $SkuCapacity + $Object.SkuName = $SkuName + $Object.SkuTier = $SkuTier + return $Object + } +} + diff --git a/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 b/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 new file mode 100644 index 000000000000..e91b288587b4 --- /dev/null +++ b/src/CloudService/custom/New-AzCloudServiceVaultSecretGroupObject.ps1 @@ -0,0 +1,55 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Vault Secret Group +.Description +Create a in-memory object for Secret Group + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject +#> + +function New-AzCloudServiceVaultSecretGroupObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup')] + [CmdletBinding(PositionalBinding=$false)] + Param( + [Parameter(HelpMessage="Key Vault Resource Id.")] + [string] + $Id, + + [Parameter(HelpMessage="This is the URL of a certificate that has been uploaded to Key Vault as a secret.")] + [string[]] + $CertificateUrl + ) + + process { + $certificateUrls = @() + ForEach ($url in $CertificateUrl) + { + $cloudServiceVaultCertificate = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate]::New() + $cloudServiceVaultCertificate.CertificateUrl = $url + $certificateUrls = $certificateUrls + $cloudServiceVaultCertificate + } + + $cloudServiceVaultSecretGroup = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup]::New() + $cloudServiceVaultSecretGroup.SourceVaultId = $Id + $cloudServiceVaultSecretGroup.VaultCertificate = $certificateUrls + + return $cloudServiceVaultSecretGroup + } +} diff --git a/src/CloudService/custom/Serialization/CloudService.cs b/src/CloudService/custom/Serialization/CloudService.cs new file mode 100644 index 000000000000..4cc1936adaa7 --- /dev/null +++ b/src/CloudService/custom/Serialization/CloudService.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class CloudService + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string ResourceGroupName + { + get { + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(this.Id); + if (!_match.Success) { + return null; + } + return _match.Groups["resourceGroupName"].Value; + } + } + } + + public partial interface ICloudService + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ResourceGroupName", + SerializedName = @"ResourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; } + } +} diff --git a/src/CloudService/custom/Serialization/CloudServiceTags.cs b/src/CloudService/custom/Serialization/CloudServiceTags.cs new file mode 100644 index 000000000000..15db3d2243a9 --- /dev/null +++ b/src/CloudService/custom/Serialization/CloudServiceTags.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class CloudServiceTags + { + public override string ToString() + { + return this.ToJsonString(); + } + } +} diff --git a/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs b/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs new file mode 100644 index 000000000000..b78f1bf8e2a0 --- /dev/null +++ b/src/CloudService/custom/Serialization/CloudServiceVaultCertificate.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class CloudServiceVaultCertificate + { + public override string ToString() + { + return this.CertificateUrl; + } + } +} diff --git a/src/CloudService/custom/Serialization/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs b/src/CloudService/custom/Serialization/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs new file mode 100644 index 000000000000..22ea78bc7d46 --- /dev/null +++ b/src/CloudService/custom/Serialization/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs @@ -0,0 +1,42 @@ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets +{ + public partial class GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get + { + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow) + { + global::System.Collections.ObjectModel.Collection paths; + try { + paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + } catch (global::System.Management.Automation.ItemNotFoundException) { + paths = new global::System.Collections.ObjectModel.Collection(); + paths.Add(OutFile); + } + var path = global::System.IO.Path.GetFullPath(paths[0]); + using ( var stream = response.GetAwaiter().GetResult() ) + { + using( var fileStream = global::System.IO.File.OpenWrite(path) ) + { + stream.CopyTo(fileStream); + } + if (!path.Equals(paths[0])) + { + WriteObject($"OutFile: {path}"); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + returnNow = global::System.Threading.Tasks.Task.FromResult(true); + } + } +} \ No newline at end of file diff --git a/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs b/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs new file mode 100644 index 000000000000..cb142c0a1f58 --- /dev/null +++ b/src/CloudService/custom/Serialization/ResourceInstanceViewStatus.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class ResourceInstanceViewStatus + { + public override string ToString() + { + return this.DisplayStatus; + } + } +} diff --git a/src/CloudService/custom/Serialization/RoleInstanceTags.cs b/src/CloudService/custom/Serialization/RoleInstanceTags.cs new file mode 100644 index 000000000000..5586d44f530c --- /dev/null +++ b/src/CloudService/custom/Serialization/RoleInstanceTags.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class RoleInstanceTags + { + public override string ToString() + { + return this.ToJsonString(); + } + } +} diff --git a/src/CloudService/custom/Serialization/StatusCodeCount.cs b/src/CloudService/custom/Serialization/StatusCodeCount.cs new file mode 100644 index 000000000000..0b55b653cc46 --- /dev/null +++ b/src/CloudService/custom/Serialization/StatusCodeCount.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + public partial class StatusCodeCount + { + public override string ToString() + { + return this.ToJsonString(); + } + } +} diff --git a/src/CloudService/custom/Switch-AzCloudService.ps1 b/src/CloudService/custom/Switch-AzCloudService.ps1 new file mode 100644 index 000000000000..5abe6bde1dd8 --- /dev/null +++ b/src/CloudService/custom/Switch-AzCloudService.ps1 @@ -0,0 +1,261 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Swaps VIPs between two cloud service (extended support) load balancers. +.Description +Swaps VIPs between two cloud service (extended support) load balancers. + +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/Switch-AzCloudService + +#> +function Switch-AzCloudService { + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='High')] + param( + + [Parameter(ParameterSetName='CloudService')] + [Parameter(ParameterSetName='CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory=$true, ParameterSetName="CloudService")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + ${CloudService}, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(Mandatory=$true, ParameterSetName="CloudServiceName")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${CloudServiceName}, + + [Parameter()] + [switch] + ${Async}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break} + ) + + process { + $ApiVersion = "2020-06-01" + if (-not $PSBoundParameters.ContainsKey("SubscriptionId")) { + $SubscriptionId = (Get-AzContext).Subscription.Id + } + + # Fetch the services to ensure that we have the latest information + if ($PSBoundParameters.ContainsKey("CloudService")) { + $CloudServiceName = $CloudService.Name + $ResourceGroupName = $CloudService.ResourceGroupName + } + + $SourceCloudService = Get-AzCloudService -SubscriptionId $SubscriptionId -Name $CloudServiceName -ResourceGroupName $ResourceGroupName + + # Check that both have swappable property set. + if ([string]::IsNullOrEmpty($SourceCloudService.NetworkProfile.SwappableCloudService.Id)) { + throw "SwappableCloudServiceId is not set on the source cloud service $($SourceCloudService.Name)" + } + + # Check that Public IPs counts are correct for source + $validSourceIP = ValidateCloudServicePublicIPAddress($SourceCloudService) + if ($validSourceIP -eq $false) { + throw "Specified source cloud service must have a single public IP address specified in its FrontendIpConfigurations." + } + + # Parse target cloud service fields + $elements = $SourceCloudService.NetworkProfile.SwappableCloudService.Id.Split("/") + if (($elements.Count -lt 9) -or ("subscriptions" -ne $elements[1]) -or ("resourceGroups" -ne $elements[3]) -or ("cloudServices" -ne $elements[7])) + { + throw "SourceCloudService.NetworkProfile.SwappableCloudService.Id should match the format: /subscriptions/(?[^/]+)/resourceGroups/(?[^/]+/providers/Microsoft.Compute/cloudServices/(?[^/]+))" + } + $TargetSubscriptionId = $elements[2] + $TargetResourceGroupName = $elements[4] + $TargetCloudServiceName = $elements[8] + + # Fetch the target cloud service + $TargetCloudService = Get-AzCloudService -SubscriptionId $TargetSubscriptionId -Name $TargetCloudServiceName -ResourceGroupName $TargetResourceGroupName + + # Check that Public IPs counts are correct for target + $validTargetIP = ValidateCloudServicePublicIPAddress($TargetCloudService) + if ($validTargetIP -eq $false) { + throw "Specified target cloud service must have a single public IP address specified in its FrontendIpConfigurations." + } + + # Get the LBs and FrontEndIpConfigs to create the request body + $sourceLB = GetCloudServiceLoadBalancer($SubscriptionId, $ResourceGroupName, $SourceCloudService.NetworkProfile.LoadBalancerConfiguration[0].Name, $ApiVersion) + $validSourceLB = ValidateLoadBalancerFrontEndIPConfiguration($sourceLB) + if ($validSourceLB -eq $false) { + throw "Source loadbBalancer must have a single value in its FrontendIpConfigurations." + } + + $targetLB = GetCloudServiceLoadBalancer($TargetSubscriptionId, $TargetResourceGroupName, $TargetCloudService.NetworkProfile.LoadBalancerConfiguration[0].Name, $ApiVersion) + $validTargetLB = ValidateLoadBalancerFrontEndIPConfiguration($targetLB) + if ($validTargetLB -eq $false) { + throw "Target loadbBalancer must have a single value in its FrontendIpConfigurations." + } + + # Construct the request body + $requestBody = GetVIPSwapRequestBody + $requestBody = $requestBody -replace "#LBFE1#", $sourceLB.properties.frontendIPConfigurations[0].Id + $requestBody = $requestBody -replace "#PIP2#", $TargetCloudService.NetworkProfile.LoadBalancerConfiguration[0].FrontendIPConfiguration[0].PublicIPAddressId + $requestBody = $requestBody -replace "#LBFE2#", $targetLB.properties.frontendIPConfigurations[0].Id + $requestBody = $requestBody -replace "#PIP1#", $SourceCloudService.NetworkProfile.LoadBalancerConfiguration[0].FrontendIPConfiguration[0].PublicIPAddressId + + # Set up API URI and Headers + $uriToInvoke = "/subscriptions/$SubscriptionId/providers/Microsoft.Network/locations/$($SourceCloudService.Location)/setLoadBalancerFrontendPublicIpAddresses?api-version=$ApiVersion" + + # Display the information about the VIP swap being made + Write-Host "Performing switch cloud service (VIP swap) action between $($SourceCloudService.Name) and $($TargetCloudService.Name) + +Request URI : $uriToInvoke +POST + +Request Body : +$requestBody" + + # Invoke the VIP swap API + if ($PSCmdlet.ShouldProcess($SourceCloudService.Name + " <=> " + $TargetCloudService.Name,'VIP swap')) { + $result = Invoke-AzRestMethod -Method POST -Path $uriToInvoke -Payload $requestBody + + if ($Async.IsPresent) { + Write-Host "Query the Azure-AsyncOperation URI from the response for operation progress" + return $result + } + else { + if ($result.StatusCode -eq 202) { + QueryVipSwapOperation($result) + } + else { + return $result + } + } + } + } +} + +function QueryVipSwapOperation($result) { + + $uri = [System.Uri]($result.Headers.GetValues('Azure-AsyncOperation')[0]); + $uriToInvoke = $uri.PathAndQuery + $retryLimit = 100 + $retry = 0 + + while ($retry -lt $retryLimit) { + $statusResult = Invoke-AzRestMethod -Method GET -Path $uriToInvoke + if ($statusResult.StatusCode -eq 200) { + $status = $statusResult.Content | ConvertFrom-Json + if (-not $status.status.Equals("InProgress",[System.StringComparison]::OrdinalIgnoreCase)) { + return $statusResult + } + + $retry++ + Write-Progress -Activity "Performing VIP swap" -PercentComplete $retry -CurrentOperation "Status : InProgress" + + Start-Sleep -Seconds 10 + } + } +} + +function ValidateLoadBalancerFrontEndIPConfiguration($lb) { + + if ($lb.properties.frontendIPConfigurations.Count -eq 1) { + if (-not [string]::IsNullOrEmpty($lb.properties.frontendIPConfigurations[0].Id)) { + return $true; + } + } + + return $false; +} + +function ValidateCloudServicePublicIPAddress($cs) { + + if ($cs.NetworkProfile.LoadBalancerConfiguration.Count -eq 1) { + if ($cs.NetworkProfile.LoadBalancerConfiguration[0].FrontendIPConfiguration.Count -eq 1) { + if (-not [string]::IsNullOrEmpty($cs.NetworkProfile.LoadBalancerConfiguration[0].FrontendIPConfiguration[0].PublicIPAddressId)) { + return $true; + } + } + } + + return $false; +} + +function GetCloudServiceLoadBalancer($parameters) { + + # Set up API URI and Headers + $uriToInvoke = "/subscriptions/" + $parameters[0] + "/resourceGroups/" + $parameters[1] + "/providers/Microsoft.Network/loadBalancers/" + $parameters[2] + "?api-version=" + $parameters[3] + $lbResponse = Invoke-AzRestMethod -Method GET -Path $uriToInvoke + if ($lbResponse.StatusCode -ne 200) { + throw $lbResponse.Content + } + + $lb = $lbResponse.Content | ConvertFrom-Json + return $lb +} + +function GetVIPSwapRequestBody() { + + return @" +{ + "frontendIPConfigurations": [ + { + "id": "#LBFE1#", + "properties": { + "publicIPAddress": { + "id": "#PIP2#" + } + } + }, + { + "id": "#LBFE2#", + "properties": { + "publicIPAddress": { + "id": "#PIP1#" + } + } + } + ] +} +"@ +} + diff --git a/src/CloudService/custom/readme.md b/src/CloudService/custom/readme.md new file mode 100644 index 000000000000..c7a11b7717c3 --- /dev/null +++ b/src/CloudService/custom/readme.md @@ -0,0 +1,41 @@ +# Custom +This directory contains custom implementation for non-generated cmdlets for the `Az.CloudService` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.CloudService.custom.psm1`. This file should not be modified. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: yes + +## Details +For `Az.CloudService` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. + +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.CloudService.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. + +For script cmdlets, these are loaded via the `Az.CloudService.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. + +## Purpose +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. + +## Usage +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +- Break +- DefaultProfile +- HttpPipelineAppend +- HttpPipelinePrepend +- Proxy +- ProxyCredential +- ProxyUseDefaultCredentials + +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.CloudService`. For C#, follow the usage seen in the `ProcessRecordAsync` method. + +### Attributes +For processing the cmdlets, we've created some additional attributes: +- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.DescriptionAttribute` + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. +- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.CloudService`. +- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.CloudService`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ProfileAttribute` + - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/CloudService/examples/Get-AzCloudService.md b/src/CloudService/examples/Get-AzCloudService.md new file mode 100644 index 000000000000..56fac51e0b3c --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudService.md @@ -0,0 +1,47 @@ +### Example 1: Get all cloud service under a resource group + +```powershell +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded +ContosOrg ContosoCSTest eastus2euap Failed +``` + +This command gets all cloud services in resource group named ContosOrg + +### Example 2: Get cloud service + +```powershell +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded + +PS C:\> $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +PS C:\> $cloudService | Format-List +ResourceGroupName : ContosOrg +Configuration : xxxxxxxx +ConfigurationUrl : +ExtensionProfile : xxxxxxxx +Id : xxxxxxxx +Location : East US +Name : ContosoCS +NetworkProfile : xxxxxxxx +OSProfile : xxxxxxxx +PackageUrl : xxxxxxxx +ProvisioningState : Succeeded +RoleProfile : xxxxxxxx +StartCloudService : +Tag : { + "Owner": "Contos" + } +Type : Microsoft.Compute/cloudServices +UniqueId : xxxxxxxx +UpgradeMode : Auto + +``` + +This command gets cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Get-AzCloudServiceInstanceView.md b/src/CloudService/examples/Get-AzCloudServiceInstanceView.md new file mode 100644 index 000000000000..41b8f56676f1 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceInstanceView.md @@ -0,0 +1,52 @@ +### Example 1: Get cloud service instance view + +```powershell +PS C:\>$cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +PS C:\>$cloudServiceInstanceView +RoleInstanceStatusesSummary Statuses +--------------------------- -------- +{{ProvisioningState/succeeded : 4}, {PowerState/started : 4}} {Provisioning succeeded, Started, Current Upgrade Domain of cloud service is -1., Max Upgrade Domain of cloud service is 1.} + +PS C:\>$cloudServiceInstanceView.ToJsonString() +{ + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "displayStatus": "Provisioning succeeded", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "PowerState/started", + "displayStatus": "Started", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "CurrentUpgradeDomain/-1", + "displayStatus": "Current Upgrade Domain of cloud service is -1.", + "level": "Info" + }, + { + "code": "MaxUpgradeDomain/1", + "displayStatus": "Max Upgrade Domain of cloud service is 1.", + "level": "Info" + } + ] +} +``` + +This cmdlet gets the instance view of the cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Get-AzCloudServiceNetworkInterfaces.md b/src/CloudService/examples/Get-AzCloudServiceNetworkInterfaces.md new file mode 100644 index 000000000000..ca788eb60051 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceNetworkInterfaces.md @@ -0,0 +1,25 @@ +### Example 1: Get network interfaces by a cloud service name +```powershell +PS C:\> Get-AzCloudServiceNetworkInterfaces -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Gets all the network interfaces for a given cloud service name. + +### Example 2: Get network interfaces by a cloud service object +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs + +``` + +Gets all the network interfaces for a given cloud service object. + +### Example 3: Get network interfaces by a cloud service object and role instance name. +```powershell +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs -RoleInstanceName WebRole1_IN_0 + +``` + +Gets all the network interfaces for a given cloud service object and role instance name. + diff --git a/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md new file mode 100644 index 000000000000..014cfe35e3dc --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md @@ -0,0 +1,17 @@ +### Example 1: Get instance level public IP addresses for a given cloud service name. +```powershell +PS C:\> Get-AzCloudServicePublicIPAddress -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Gets the instance level public IP addresses for a given cloud service name. + +### Example 2: Get instance level public IP addresses for a given cloud service object. +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServicePublicIPAddress -CloudService $cs + +``` + +Gets the instance level public IP addresses for a given cloud service object. + diff --git a/src/CloudService/examples/Get-AzCloudServiceRoleInstance.md b/src/CloudService/examples/Get-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..bb237b2fff71 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceRoleInstance.md @@ -0,0 +1,28 @@ +### Example 1: Get all role instances + +```powershell +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard +ContosoFrontEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard + +``` + +This command gets the properties of all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Get properties for single role instance + +```powershell +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard + +``` + +This command gets the properties of the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md b/src/CloudService/examples/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md new file mode 100644 index 000000000000..0fc8d0989e58 --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md @@ -0,0 +1,5 @@ +### Example 1: Get an RDP file +```powershell +PS C:\> Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -OutFile "C:\temp\ContosoFrontEnd_IN_0.rdp" +``` +This command gets an RDP file for the role instance named ContosoFrontEnd\_IN\_0 of cloud Service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Get-AzCloudServiceRoleInstanceView.md b/src/CloudService/examples/Get-AzCloudServiceRoleInstanceView.md new file mode 100644 index 000000000000..d4103954601a --- /dev/null +++ b/src/CloudService/examples/Get-AzCloudServiceRoleInstanceView.md @@ -0,0 +1,12 @@ +### Example 1: Get instance view details for cloud service role instance + +```powershell +PS C:\> Get-AzCloudServiceRoleInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Statuses PlatformFaultDomain PlatformUpdateDomain +-------- ------------------- -------------------- +{RoleStateStarted} 0 0 + +``` + +This cmdlet gets the instance view of the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Invoke-AzCloudServiceRebuild.md b/src/CloudService/examples/Invoke-AzCloudServiceRebuild.md new file mode 100644 index 000000000000..d5fac637b385 --- /dev/null +++ b/src/CloudService/examples/Invoke-AzCloudServiceRebuild.md @@ -0,0 +1,16 @@ +### Example 1: Rebuild role instances of cloud service + +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command rebuilds 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Rebuild all roles of cloud service + +```powershell +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command rebuilds all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Invoke-AzCloudServiceReimage.md b/src/CloudService/examples/Invoke-AzCloudServiceReimage.md new file mode 100644 index 000000000000..efab6ff9392a --- /dev/null +++ b/src/CloudService/examples/Invoke-AzCloudServiceReimage.md @@ -0,0 +1,16 @@ +### Example 1: Reimage role instances of cloud service + +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command reimages 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Reimage all roles of cloud service + +```powershell +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command reimages all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md new file mode 100644 index 000000000000..8f2c0844a9f6 --- /dev/null +++ b/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -0,0 +1,7 @@ +### Example 1: Rebuild role instance of a cloud service + +```powershell +PS C:\> Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceReimage.md b/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceReimage.md new file mode 100644 index 000000000000..c7a6976473ea --- /dev/null +++ b/src/CloudService/examples/Invoke-AzCloudServiceRoleInstanceReimage.md @@ -0,0 +1,7 @@ +### Example 1: Reimage role instance of a cloud service + +```powershell +PS C:\> Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/New-AzCloudService.md b/src/CloudService/examples/New-AzCloudService.md new file mode 100644 index 000000000000..01906317c931 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudService.md @@ -0,0 +1,152 @@ +### Example 1: Create new cloud service with single role + +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile +``` + +Above set of commands creates a cloud service with single role + +### Example 2: Create new cloud service with single role and RDP extension + +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosoOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +PS C:\> $extensionProfile = @{extension = @($extension)} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile +``` + +Above set of commands creates a cloud service with single role and RDP extension + +### Example 3: Create new cloud service with single role and certificate from key vault + +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create OS profile object +$keyVault = Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault +$certificate=Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +$osProfile = @{secret = @($secretGroup)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -OSProfile $osProfile +``` + +Above set of commands creates a cloud service with single role and certificate from key vault. + +### Example 4: Create new cloud service with multiple roles and extensions + +```powershell +# Create role profile object +PS C:\> $role1 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $role2 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoBackend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role1, $role2)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +# Create Geneva extension object +PS C:\> $genevaExtension = New-AzCloudServiceExtensionObject -Name GenevaExtension -Publisher Microsoft.Azure.Geneva -Type GenevaMonitoringPaaS -TypeHandlerVersion "2.14.0.2" +PS C:\> $extensionProfile = @{extension = @($rdpExtension, $genevaExtension)} + +# Add tags +$tag=@{"Owner" = "Contoso"} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile ` + -Tag $tag +``` + +Above set of commands creates a cloud service with single role and certificate from key vault. diff --git a/src/CloudService/examples/New-AzCloudServiceDiagnosticsExtension.md b/src/CloudService/examples/New-AzCloudServiceDiagnosticsExtension.md new file mode 100644 index 000000000000..00068fbb2518 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceDiagnosticsExtension.md @@ -0,0 +1,9 @@ +### Example 1: Create diagnostics extension object + +```powershell +PS C:\> $storageAccountKey = Get-AzStorageAccountKey -ResourceGroupName "ContosOrg" -Name "ContosSA" +PS C:\> $configFile = "" +PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true +``` + +This command creates diagnostics extension object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceExtensionObject.md b/src/CloudService/examples/New-AzCloudServiceExtensionObject.md new file mode 100644 index 000000000000..fc68448de782 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceExtensionObject.md @@ -0,0 +1,7 @@ +### Example 1: Create Geneva extension object + +```powershell +PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" +``` + +This command creates Geneva extension object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceLoadBalancerConfigurationObject.md b/src/CloudService/examples/New-AzCloudServiceLoadBalancerConfigurationObject.md new file mode 100644 index 000000000000..4a4976945c09 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceLoadBalancerConfigurationObject.md @@ -0,0 +1,9 @@ +### Example 1: Create load balancer configuration object + +```powershell +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIP.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +``` + +This command creates load balancer configuration object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md b/src/CloudService/examples/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md new file mode 100644 index 000000000000..e9ebb4190672 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md @@ -0,0 +1,9 @@ +### Example 1: Create load balancer frontend IP configuration object + +```powershell +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +``` + +This command creates load balancer frontend IP configuration object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceRemoteDesktopExtensionObject.md b/src/CloudService/examples/New-AzCloudServiceRemoteDesktopExtensionObject.md new file mode 100644 index 000000000000..8d350a7a5848 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceRemoteDesktopExtensionObject.md @@ -0,0 +1,9 @@ +### Example 1: Create remote desktop extension object + +```powershell +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +``` + +This command creates remote desktop extension object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceRoleProfilePropertiesObject.md b/src/CloudService/examples/New-AzCloudServiceRoleProfilePropertiesObject.md new file mode 100644 index 000000000000..7b9a3aca9dc1 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceRoleProfilePropertiesObject.md @@ -0,0 +1,7 @@ +### Example 1: Create role profile properties object + +```powershell +$role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +``` + +This command creates role profile properties object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/New-AzCloudServiceVaultSecretGroupObject.md b/src/CloudService/examples/New-AzCloudServiceVaultSecretGroupObject.md new file mode 100644 index 000000000000..ba4082640d05 --- /dev/null +++ b/src/CloudService/examples/New-AzCloudServiceVaultSecretGroupObject.md @@ -0,0 +1,9 @@ +### Example 1: Create vault secret group object + +```powershell +$keyVault = Get-AzKeyVault -VaultName 'ContosoKeyVault' +$certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert' +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +``` + +This command creates vault secret group object which is used for creating or updating a cloud service. For more details see New-AzCloudService. diff --git a/src/CloudService/examples/Remove-AzCloudService.md b/src/CloudService/examples/Remove-AzCloudService.md new file mode 100644 index 000000000000..c749cda3af41 --- /dev/null +++ b/src/CloudService/examples/Remove-AzCloudService.md @@ -0,0 +1,7 @@ +### Example 1: Remove a cloud service + +```powershell +PS C:\> Remove-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command removes the cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Remove-AzCloudServiceRoleInstance.md b/src/CloudService/examples/Remove-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..66f252731911 --- /dev/null +++ b/src/CloudService/examples/Remove-AzCloudServiceRoleInstance.md @@ -0,0 +1,7 @@ +### Example 1: Remove a cloud service role instance + +```powershell +PS C:\> Remove-AzCloudServiceInstance -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "ContosoFrontEnd_IN_0" +``` + +This command removes the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Restart-AzCloudService.md b/src/CloudService/examples/Restart-AzCloudService.md new file mode 100644 index 000000000000..a17a25022cdb --- /dev/null +++ b/src/CloudService/examples/Restart-AzCloudService.md @@ -0,0 +1,16 @@ +### Example 1: Restart role instances of cloud service + +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command restarts 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Restart all roles of cloud service + +```powershell +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command restarts all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Restart-AzCloudServiceRoleInstance.md b/src/CloudService/examples/Restart-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..79f18767eeee --- /dev/null +++ b/src/CloudService/examples/Restart-AzCloudServiceRoleInstance.md @@ -0,0 +1,7 @@ +### Example 1: Restart role instance of a cloud service + +```powershell +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command restarts role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Set-AzCloudServiceUpdateDomain.md b/src/CloudService/examples/Set-AzCloudServiceUpdateDomain.md new file mode 100644 index 000000000000..d7eee18f2b72 --- /dev/null +++ b/src/CloudService/examples/Set-AzCloudServiceUpdateDomain.md @@ -0,0 +1,7 @@ +### Example 1: Update role instance in update domain + +```powershell +PS C:\> Set-AzCloudServiceUpdateDomain -CloudServiceName "ContosoCS" -ResourceGroupName "ContosOrg" -UpdateDomain 0 +``` + +This command updates role instances in update domain 0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Start-AzCloudService.md b/src/CloudService/examples/Start-AzCloudService.md new file mode 100644 index 000000000000..26ecb224e865 --- /dev/null +++ b/src/CloudService/examples/Start-AzCloudService.md @@ -0,0 +1,7 @@ +### Example 1: Start cloud service + +```powershell +PS C:\> Start-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command starts all the role instances that belong to the the cloud service named ContosoCS. diff --git a/src/CloudService/examples/Stop-AzCloudService.md b/src/CloudService/examples/Stop-AzCloudService.md new file mode 100644 index 000000000000..aeb92687912f --- /dev/null +++ b/src/CloudService/examples/Stop-AzCloudService.md @@ -0,0 +1,7 @@ +### Example 1: Stop cloud service + +```powershell +PS C:\> Stop-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command stops all the role instances that belong to the the cloud service named ContosoCS. diff --git a/src/CloudService/examples/Switch-AzCloudService.md b/src/CloudService/examples/Switch-AzCloudService.md new file mode 100644 index 000000000000..8308c0075e14 --- /dev/null +++ b/src/CloudService/examples/Switch-AzCloudService.md @@ -0,0 +1,17 @@ +### Example 1: Switch cloud service using name +```powershell +PS C:\> Switch-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Above command invokes the vipswap operation on the Cloud service with name 'BService' and will perform the operation once the user confirms the action on the confirmation prompt. 'BService' with be swapped with its swappable cloud service. + +### Example 2: Switch cloud service using cloud service object +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Switch-AzCloudService -CloudService $cs + +``` + +Above command invokes the vipswap operation on the Cloud service with name 'BService' and will perform the operation once the user confirms the action on the confirmation prompt. 'BService' with be swapped with its swappable cloud service. + diff --git a/src/CloudService/examples/Update-AzCloudService.md b/src/CloudService/examples/Update-AzCloudService.md new file mode 100644 index 000000000000..36ef0f9af194 --- /dev/null +++ b/src/CloudService/examples/Update-AzCloudService.md @@ -0,0 +1,62 @@ +### Example 1: Add RDP extension to existing cloud service + +```powershell +# Create RDP extension object +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPExtension" -Credential $credential -Expiration $expiration -TypeHandlerVersion "1.2.1" +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Add RDP extension to existing cloud service extension object +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $rdpExtension +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands adds a RDP extension to already existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Remove all extensions from cloud service + +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Set extension to empty list +PS C:\> $cloudService.ExtensionProfile.Extension = @() +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands removes all extensions from existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 3: Remove RDP extension from cloud service + +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Remove extension by name RDPExtension +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension | Where-Object { $_.Name -ne "RDPExtension" } +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands removes RDP extension from existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 4: Scale-Out / Scale-In role instances + +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +# Scale-out all role instance count by 1 +PS C:\> $cloudService.RoleProfile.Role | ForEach-Object {$_.SkuCapacity += 1} + +# Scale-in ContosoFrontend role instance count by 1 +PS C:\> $role = $cloudService.RoleProfile.Role | Where-Object {$_.Name -eq "ContosoFrontend"} +PS C:\> $role.SkuCapacity -= 1 + +# Update cloud service configuration as per the new role instance count +PS C:\> $cloudService.Configuration = $configuration + +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands shows how to scale-out and scale-in role instance count for cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/export-surface.ps1 b/src/CloudService/export-surface.ps1 new file mode 100644 index 000000000000..f0f359e6f0e4 --- /dev/null +++ b/src/CloudService/export-surface.ps1 @@ -0,0 +1,40 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.CloudService.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} +$null = Import-Module -Name $dll + +$moduleName = 'Az.CloudService' +$exportsFolder = Join-Path $PSScriptRoot 'exports' +$resourcesFolder = Join-Path $PSScriptRoot 'resources' + +Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'" + +Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'" + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CloudService/exports/Get-AzCloudService.ps1 b/src/CloudService/exports/Get-AzCloudService.ps1 new file mode 100644 index 000000000000..78ffb8dfb9e0 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudService.ps1 @@ -0,0 +1,201 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Display information about a cloud service. +.Description +Display information about a cloud service. +.Example +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded +ContosOrg ContosoCSTest eastus2euap Failed +.Example +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded + +PS C:\> $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +PS C:\> $cloudService | Format-List +ResourceGroupName : ContosOrg +Configuration : xxxxxxxx +ConfigurationUrl : +ExtensionProfile : xxxxxxxx +Id : xxxxxxxx +Location : East US +Name : ContosoCS +NetworkProfile : xxxxxxxx +OSProfile : xxxxxxxx +PackageUrl : xxxxxxxx +ProvisioningState : Succeeded +RoleProfile : xxxxxxxx +StartCloudService : +Tag : { + "Owner": "Contos" + } +Type : Microsoft.Compute/cloudServices +UniqueId : xxxxxxxx +UpgradeMode : Auto + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudservice +#> +function Get-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudService_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudService_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudService_List'; + List1 = 'Az.CloudService.private\Get-AzCloudService_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 b/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 new file mode 100644 index 000000000000..8cc41e3e89bf --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceInstanceView.ps1 @@ -0,0 +1,183 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets the status of a cloud service. +.Description +Gets the status of a cloud service. +.Example +PS C:\>$cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +PS C:\>$cloudServiceInstanceView +RoleInstanceStatusesSummary Statuses +--------------------------- -------- +{{ProvisioningState/succeeded : 4}, {PowerState/started : 4}} {Provisioning succeeded, Started, Current Upgrade Domain of cloud service is -1., Max Upgrade Domain of cloud service is 1.} + +PS C:\>$cloudServiceInstanceView.ToJsonString() +{ + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "displayStatus": "Provisioning succeeded", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "PowerState/started", + "displayStatus": "Started", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "CurrentUpgradeDomain/-1", + "displayStatus": "Current Upgrade Domain of cloud service is -1.", + "level": "Info" + }, + { + "code": "MaxUpgradeDomain/1", + "displayStatus": "Max Upgrade Domain of cloud service is 1.", + "level": "Info" + } + ] +} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceinstanceview +#> +function Get-AzCloudServiceInstanceView { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceInstanceView_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 b/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 new file mode 100644 index 000000000000..3e3ec4fba839 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceNetworkInterfaces.ps1 @@ -0,0 +1,157 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the network interfaces of a cloud service. +.Description +Get the network interfaces of a cloud service. +.Example +PS C:\> Get-AzCloudServiceNetworkInterfaces -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs + +.Example +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs -RoleInstanceName WebRole1_IN_0 + + +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : CloudService instance. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServiceNetworkInterfaces +#> +function Get-AzCloudServiceNetworkInterfaces { +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # CloudService instance. + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # RoleInstanceName. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # ResourceGroupName. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # CloudServiceName. + ${CloudServiceName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudService = 'Az.CloudService.custom\Get-AzCloudServiceNetworkInterfaces'; + CloudServiceName = 'Az.CloudService.custom\Get-AzCloudServiceNetworkInterfaces'; + } + if (('CloudService', 'CloudServiceName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 b/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 new file mode 100644 index 000000000000..bdff2148da06 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServicePublicIPAddress.ps1 @@ -0,0 +1,148 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the public IP address of a cloud service. +.Description +Get the public IP address of a cloud service. +.Example +PS C:\> Get-AzCloudServicePublicIPAddress -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServicePublicIPAddress -CloudService $cs + + +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : CloudService instance. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServicePublicIPAddress +#> +function Get-AzCloudServicePublicIPAddress { +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # ResourceGroupName. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # CloudServiceName. + ${CloudServiceName}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # CloudService instance. + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudServiceName = 'Az.CloudService.custom\Get-AzCloudServicePublicIPAddress'; + CloudService = 'Az.CloudService.custom\Get-AzCloudServicePublicIPAddress'; + } + if (('CloudServiceName', 'CloudService') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 new file mode 100644 index 000000000000..154eea11eace --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceRoleInstance.ps1 @@ -0,0 +1,193 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a role instance from a cloud service. +.Description +Gets a role instance from a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard +ContosoFrontEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard + +.Example +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstance +#> +function Get-AzCloudServiceRoleInstance { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes] + # The expand expression to apply to the operation. + ${Expand}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.ps1 b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.ps1 new file mode 100644 index 000000000000..ab25a13683d2 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.ps1 @@ -0,0 +1,157 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a remote desktop file for a role instance in a cloud service. +.Description +Gets a remote desktop file for a role instance in a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -OutFile "C:\temp\ContosoFrontEnd_IN_0.rdp" + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceremotedesktopfile +#> +function Get-AzCloudServiceRoleInstanceRemoteDesktopFile { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstanceRemoteDesktopFile_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 new file mode 100644 index 000000000000..504aedefeab5 --- /dev/null +++ b/src/CloudService/exports/Get-AzCloudServiceRoleInstanceView.ps1 @@ -0,0 +1,149 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Retrieves information about the run-time state of a role instance in a cloud service. +.Description +Retrieves information about the run-time state of a role instance in a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Statuses PlatformFaultDomain PlatformUpdateDomain +-------- ------------------- -------------------- +{RoleStateStarted} 0 0 + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceview +#> +function Get-AzCloudServiceRoleInstanceView { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstanceView_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 new file mode 100644 index 000000000000..4e03655c708a --- /dev/null +++ b/src/CloudService/exports/Invoke-AzCloudServiceRebuild.ps1 @@ -0,0 +1,191 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. +.Description +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicerebuild +#> +function Invoke-AzCloudServiceRebuild { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RebuildExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='RebuildExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(ParameterSetName='RebuildExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='RebuildExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RebuildViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + RebuildExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceRebuild_RebuildExpanded'; + RebuildViaIdentityExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded'; + } + if (('RebuildExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 new file mode 100644 index 000000000000..1beee0e5fa1f --- /dev/null +++ b/src/CloudService/exports/Invoke-AzCloudServiceReimage.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Description +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicereimage +#> +function Invoke-AzCloudServiceReimage { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='ReimageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='ReimageExpanded', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='ReimageExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='ReimageExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ReimageViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + ReimageExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceReimage_ReimageExpanded'; + ReimageViaIdentityExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded'; + } + if (('ReimageExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 new file mode 100644 index 000000000000..7958382294ea --- /dev/null +++ b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceRebuild.ps1 @@ -0,0 +1,187 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. +.Description +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. +.Example +PS C:\> Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild +#> +function Invoke-AzCloudServiceRoleInstanceRebuild { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Rebuild', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Rebuild')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RebuildViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Rebuild = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild'; + RebuildViaIdentity = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity'; + } + if (('Rebuild') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 new file mode 100644 index 000000000000..f7ab5c43ee22 --- /dev/null +++ b/src/CloudService/exports/Invoke-AzCloudServiceRoleInstanceReimage.ps1 @@ -0,0 +1,185 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Description +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Example +PS C:\> Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancereimage +#> +function Invoke-AzCloudServiceRoleInstanceReimage { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Reimage', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Reimage')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ReimageViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Reimage = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceReimage_Reimage'; + ReimageViaIdentity = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity'; + } + if (('Reimage') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudService.ps1 b/src/CloudService/exports/New-AzCloudService.ps1 new file mode 100644 index 000000000000..60e8239d17f5 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudService.ps1 @@ -0,0 +1,403 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Description +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosoOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +PS C:\> $extensionProfile = @{extension = @($extension)} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create OS profile object +$keyVault = Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault +$certificate=Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +$osProfile = @{secret = @($secretGroup)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -OSProfile $osProfile +.Example +# Create role profile object +PS C:\> $role1 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $role2 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoBackend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role1, $role2)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +# Create Geneva extension object +PS C:\> $genevaExtension = New-AzCloudServiceExtensionObject -Name GenevaExtension -Publisher Microsoft.Azure.Geneva -Type GenevaMonitoringPaaS -TypeHandlerVersion "2.14.0.2" +PS C:\> $extensionProfile = @{extension = @($rdpExtension, $genevaExtension)} + +# Add tags +$tag=@{"Owner" = "Contoso"} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile ` + -Tag $tag + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXTENSIONPROFILE : Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + +NETWORKPROFILE : Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + +OSPROFILE : Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + +ROLEPROFILE : Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/new-azcloudservice +#> +function New-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the XML service configuration (.cscfg) for the cloud service. + ${Configuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies a URL that refers to the location of the service configuration in the Blob service. + # The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + ${ConfigurationUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile] + # Describes a cloud service extension profile. + # To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. + ${ExtensionProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile] + # Network Profile for the cloud service. + # To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. + ${NetworkProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile] + # Describes the OS profile for the cloud service. + # To construct, see NOTES section for OSPROFILE properties and create a hash table. + ${OSProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies a URL that refers to the location of the service package in the Blob service. + # The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + ${PackageUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile] + # Describes the role profile for the cloud service. + # To construct, see NOTES section for ROLEPROFILE properties and create a hash table. + ${RoleProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + # (Optional) Indicates whether to start the cloud service immediately after it is created. + # The default value is `true`.If false, the service model is still deployed, but the code is not run immediately. + # Instead, the service is PoweredOff until you call Start, at which time the service will be started. + # A deployed service still incurs charges, even if it is poweredoff. + ${StartCloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode])] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode] + # Update mode for the cloud service. + # Role instances are allocated to update domains when the service is deployed. + # Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. + # If set to Manual, PUT UpdateDomain must be called to apply the update. + # If set to Auto, the update is automatically applied to each update domain in sequence. + ${UpgradeMode}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CloudService.private\New-AzCloudService_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 b/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 new file mode 100644 index 000000000000..9636ceb3d17c --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceDiagnosticsExtension.ps1 @@ -0,0 +1,135 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Diagnostics Extension +.Description +Create a in-memory object for Diagnostics Extension +.Example +PS C:\> $storageAccountKey = Get-AzStorageAccountKey -ResourceGroupName "ContosOrg" -Name "ContosSA" +PS C:\> $configFile = "" +PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceDiagnosticsExtension { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Position=1)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${Subscription}, + + [Parameter(Position=0, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Diagnostics Extension. + ${Name}, + + [Parameter(Position=2, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource Group name of Cloud Service. + ${ResourceGroupName}, + + [Parameter(Position=3, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Cloud Service. + ${CloudServiceName}, + + [Parameter(Position=4, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the configuration for Azure Diagnostics. + # You can download the schema by using the following command: (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + ${DiagnosticsConfigurationPath}, + + [Parameter(Position=5, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of the Storage Account. + ${StorageAccountName}, + + [Parameter(Position=6, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Storage Account Key. + ${StorageAccountKey}, + + [Parameter(Position=7)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the version of the extension. + ${TypeHandlerVersion}, + + [Parameter(Position=8)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # Roles applied to. + ${RolesAppliedTo}, + + [Parameter(Position=9)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Auto upgrade minor version. + ${AutoUpgradeMinorVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceDiagnosticsExtension'; + } + if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Subscription')) { + $PSBoundParameters['Subscription'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 b/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 new file mode 100644 index 000000000000..a5340ec3c892 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceExtensionObject.ps1 @@ -0,0 +1,116 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Extension +.Description +Create a in-memory object for Extension +.Example +PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceExtensionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + ${AutoUpgradeMinorVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Protected settings for the extension which are encrypted before sent to the VM. + ${ProtectedSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Publisher. + ${Publisher}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # RolesAppliedTo. + ${RolesAppliedTo}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Public settings for the extension. + ${Setting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Type. + ${Type}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # TypeHandlerVersion. + ${TypeHandlerVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceExtensionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 b/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 new file mode 100644 index 000000000000..515c1f3f3cf1 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceLoadBalancerConfigurationObject.ps1 @@ -0,0 +1,93 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerConfiguration +.Description +Create a in-memory object for LoadBalancerConfiguration +.Example +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIP.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTENDIPCONFIGURATION : FrontendIPConfiguration. + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject +#> +function New-AzCloudServiceLoadBalancerConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + # FrontendIPConfiguration. + # To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. + ${FrontendIPConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of LoadBalancerConfiguration. + ${Name} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceLoadBalancerConfigurationObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 b/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 new file mode 100644 index 000000000000..07aaa1a7e309 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.ps1 @@ -0,0 +1,82 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerFrontendIPConfiguration +.Description +Create a in-memory object for LoadBalancerFrontendIPConfiguration +.Example +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject +#> +function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of FrontendIpConfigration. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource Id. + ${PublicIPAddressId} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 b/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 new file mode 100644 index 000000000000..048ee49a5820 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceRemoteDesktopExtensionObject.ps1 @@ -0,0 +1,106 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Remote Desktop Extension +.Description +Create a in-memory object for Remote Desktop Extension +.Example +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceRemoteDesktopExtensionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Position=0, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Remote Desktop Extension. + ${Name}, + + [Parameter(Position=1, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.PSCredential] + # Credential for Remote Desktop Extension. + ${Credential}, + + [Parameter(Position=2)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.DateTime] + # Expiration for Remote Desktop Extension. + ${Expiration}, + + [Parameter(Position=3)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Remote Desktop Extension version. + ${TypeHandlerVersion}, + + [Parameter(Position=4)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # Roles applied to. + ${RolesAppliedTo}, + + [Parameter(Position=5)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Auto upgrade minor version. + ${AutoUpgradeMinorVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceRemoteDesktopExtensionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 b/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 new file mode 100644 index 000000000000..7d97e02cbc05 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceRoleProfilePropertiesObject.ps1 @@ -0,0 +1,92 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for CloudServiceRoleProfileProperties +.Description +Create a in-memory object for CloudServiceRoleProfileProperties +.Example +$role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject +#> +function New-AzCloudServiceRoleProfilePropertiesObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of role profile. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Int64] + # Specifies the number of role instances in the cloud service. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # The sku name. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # SkuTier. + ${SkuTier} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceRoleProfilePropertiesObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 b/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 new file mode 100644 index 000000000000..e51a37773a49 --- /dev/null +++ b/src/CloudService/exports/New-AzCloudServiceVaultSecretGroupObject.ps1 @@ -0,0 +1,82 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Vault Secret Group +.Description +Create a in-memory object for Secret Group +.Example +$keyVault = Get-AzKeyVault -VaultName 'ContosoKeyVault' +$certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert' +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject +#> +function New-AzCloudServiceVaultSecretGroupObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Key Vault Resource Id. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # This is the URL of a certificate that has been uploaded to Key Vault as a secret. + ${CertificateUrl} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceVaultSecretGroupObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/ProxyCmdletDefinitions.ps1 b/src/CloudService/exports/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..6e5ea9cd6634 --- /dev/null +++ b/src/CloudService/exports/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,4731 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets the status of a cloud service. +.Description +Gets the status of a cloud service. +.Example +PS C:\>$cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +PS C:\>$cloudServiceInstanceView +RoleInstanceStatusesSummary Statuses +--------------------------- -------- +{{ProvisioningState/succeeded : 4}, {PowerState/started : 4}} {Provisioning succeeded, Started, Current Upgrade Domain of cloud service is -1., Max Upgrade Domain of cloud service is 1.} + +PS C:\>$cloudServiceInstanceView.ToJsonString() +{ + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "displayStatus": "Provisioning succeeded", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "PowerState/started", + "displayStatus": "Started", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "CurrentUpgradeDomain/-1", + "displayStatus": "Current Upgrade Domain of cloud service is -1.", + "level": "Info" + }, + { + "code": "MaxUpgradeDomain/1", + "displayStatus": "Max Upgrade Domain of cloud service is 1.", + "level": "Info" + } + ] +} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceinstanceview +#> +function Get-AzCloudServiceInstanceView { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceInstanceView_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a remote desktop file for a role instance in a cloud service. +.Description +Gets a remote desktop file for a role instance in a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -OutFile "C:\temp\ContosoFrontEnd_IN_0.rdp" + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceremotedesktopfile +#> +function Get-AzCloudServiceRoleInstanceRemoteDesktopFile { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstanceRemoteDesktopFile_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Retrieves information about the run-time state of a role instance in a cloud service. +.Description +Retrieves information about the run-time state of a role instance in a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Statuses PlatformFaultDomain PlatformUpdateDomain +-------- ------------------- -------------------- +{RoleStateStarted} 0 0 + + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceview +#> +function Get-AzCloudServiceRoleInstanceView { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstanceView_Get'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a role instance from a cloud service. +.Description +Gets a role instance from a cloud service. +.Example +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard +ContosoFrontEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard + +.Example +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstance +#> +function Get-AzCloudServiceRoleInstance { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes])] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes] + # The expand expression to apply to the operation. + ${Expand}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudServiceRoleInstance_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Display information about a cloud service. +.Description +Display information about a cloud service. +.Example +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded +ContosOrg ContosoCSTest eastus2euap Failed +.Example +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded + +PS C:\> $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +PS C:\> $cloudService | Format-List +ResourceGroupName : ContosOrg +Configuration : xxxxxxxx +ConfigurationUrl : +ExtensionProfile : xxxxxxxx +Id : xxxxxxxx +Location : East US +Name : ContosoCS +NetworkProfile : xxxxxxxx +OSProfile : xxxxxxxx +PackageUrl : xxxxxxxx +ProvisioningState : Succeeded +RoleProfile : xxxxxxxx +StartCloudService : +Tag : { + "Owner": "Contos" + } +Type : Microsoft.Compute/cloudServices +UniqueId : xxxxxxxx +UpgradeMode : Auto + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudservice +#> +function Get-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CloudService.private\Get-AzCloudService_Get'; + GetViaIdentity = 'Az.CloudService.private\Get-AzCloudService_GetViaIdentity'; + List = 'Az.CloudService.private\Get-AzCloudService_List'; + List1 = 'Az.CloudService.private\Get-AzCloudService_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. +.Description +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicerebuild +#> +function Invoke-AzCloudServiceRebuild { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RebuildExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='RebuildExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(ParameterSetName='RebuildExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='RebuildExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RebuildViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + RebuildExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceRebuild_RebuildExpanded'; + RebuildViaIdentityExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded'; + } + if (('RebuildExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Description +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicereimage +#> +function Invoke-AzCloudServiceReimage { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='ReimageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='ReimageExpanded', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='ReimageExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='ReimageExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ReimageViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + ReimageExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceReimage_ReimageExpanded'; + ReimageViaIdentityExpanded = 'Az.CloudService.private\Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded'; + } + if (('ReimageExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. +.Description +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. +.Example +PS C:\> Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild +#> +function Invoke-AzCloudServiceRoleInstanceRebuild { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Rebuild', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Rebuild', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Rebuild')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RebuildViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Rebuild = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild'; + RebuildViaIdentity = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity'; + } + if (('Rebuild') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Description +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. +.Example +PS C:\> Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancereimage +#> +function Invoke-AzCloudServiceRoleInstanceReimage { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Reimage', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Reimage', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Reimage')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ReimageViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Reimage = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceReimage_Reimage'; + ReimageViaIdentity = 'Az.CloudService.private\Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity'; + } + if (('Reimage') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Description +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosoOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +PS C:\> $extensionProfile = @{extension = @($extension)} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile +.Example +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create OS profile object +$keyVault = Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault +$certificate=Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +$osProfile = @{secret = @($secretGroup)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -OSProfile $osProfile +.Example +# Create role profile object +PS C:\> $role1 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $role2 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoBackend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role1, $role2)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +# Create Geneva extension object +PS C:\> $genevaExtension = New-AzCloudServiceExtensionObject -Name GenevaExtension -Publisher Microsoft.Azure.Geneva -Type GenevaMonitoringPaaS -TypeHandlerVersion "2.14.0.2" +PS C:\> $extensionProfile = @{extension = @($rdpExtension, $genevaExtension)} + +# Add tags +$tag=@{"Owner" = "Contoso"} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile ` + -Tag $tag + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +EXTENSIONPROFILE : Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + +NETWORKPROFILE : Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + +OSPROFILE : Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + +ROLEPROFILE : Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/new-azcloudservice +#> +function New-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the XML service configuration (.cscfg) for the cloud service. + ${Configuration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies a URL that refers to the location of the service configuration in the Blob service. + # The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + ${ConfigurationUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile] + # Describes a cloud service extension profile. + # To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. + ${ExtensionProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile] + # Network Profile for the cloud service. + # To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. + ${NetworkProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile] + # Describes the OS profile for the cloud service. + # To construct, see NOTES section for OSPROFILE properties and create a hash table. + ${OSProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies a URL that refers to the location of the service package in the Blob service. + # The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + ${PackageUrl}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile] + # Describes the role profile for the cloud service. + # To construct, see NOTES section for ROLEPROFILE properties and create a hash table. + ${RoleProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + # (Optional) Indicates whether to start the cloud service immediately after it is created. + # The default value is `true`.If false, the service model is still deployed, but the code is not run immediately. + # Instead, the service is PoweredOff until you call Start, at which time the service will be started. + # A deployed service still incurs charges, even if it is poweredoff. + ${StartCloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode])] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode] + # Update mode for the cloud service. + # Role instances are allocated to update domains when the service is deployed. + # Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. + # If set to Manual, PUT UpdateDomain must be called to apply the update. + # If set to Auto, the update is automatically applied to each update domain in sequence. + ${UpgradeMode}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CloudService.private\New-AzCloudService_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes role instances in a cloud service. +.Description +Deletes role instances in a cloud service. +.Example +PS C:\> Remove-AzCloudServiceInstance -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudserviceroleinstance +#> +function Remove-AzCloudServiceRoleInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='DeleteExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + DeleteExpanded = 'Az.CloudService.private\Remove-AzCloudServiceRoleInstance_DeleteExpanded'; + DeleteViaIdentityExpanded = 'Az.CloudService.private\Remove-AzCloudServiceRoleInstance_DeleteViaIdentityExpanded'; + } + if (('DeleteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a cloud service. +.Description +Deletes a cloud service. +.Example +PS C:\> Remove-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudservice +#> +function Remove-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.CloudService.private\Remove-AzCloudService_Delete'; + DeleteViaIdentity = 'Az.CloudService.private\Remove-AzCloudService_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. +.Description +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. +.Example +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudserviceroleinstance +#> +function Restart-AzCloudServiceRoleInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Restart')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Restart = 'Az.CloudService.private\Restart-AzCloudServiceRoleInstance_Restart'; + RestartViaIdentity = 'Az.CloudService.private\Restart-AzCloudServiceRoleInstance_RestartViaIdentity'; + } + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restarts one or more role instances in a cloud service. +.Description +Restarts one or more role instances in a cloud service. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudservice +#> +function Restart-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RestartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='RestartExpanded', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='RestartExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='RestartExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + RestartExpanded = 'Az.CloudService.private\Restart-AzCloudService_RestartExpanded'; + RestartViaIdentityExpanded = 'Az.CloudService.private\Restart-AzCloudService_RestartViaIdentityExpanded'; + } + if (('RestartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates the role instances in the specified update domain. +.Description +Updates the role instances in the specified update domain. +.Example +PS C:\> Set-AzCloudServiceUpdateDomain -CloudServiceName "ContosoCS" -ResourceGroupName "ContosOrg" -UpdateDomain 0 + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/set-azcloudserviceupdatedomain +#> +function Set-AzCloudServiceUpdateDomain { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='WalkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.Int32] + # Specifies an integer value that identifies the update domain. + # Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + ${UpdateDomain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + WalkExpanded = 'Az.CloudService.private\Set-AzCloudServiceUpdateDomain_WalkExpanded'; + } + if (('WalkExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Starts the cloud service. +.Description +Starts the cloud service. +.Example +PS C:\> Start-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/start-azcloudservice +#> +function Start-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Start = 'Az.CloudService.private\Start-AzCloudService_Start'; + StartViaIdentity = 'Az.CloudService.private\Start-AzCloudService_StartViaIdentity'; + } + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. +.Description +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. +.Example +PS C:\> Stop-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/stop-azcloudservice +#> +function Stop-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='PowerOff', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='PowerOff', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='PowerOff', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='PowerOff')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PowerOffViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PowerOff = 'Az.CloudService.private\Stop-AzCloudService_PowerOff'; + PowerOffViaIdentity = 'Az.CloudService.private\Stop-AzCloudService_PowerOffViaIdentity'; + } + if (('PowerOff') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Description +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Example +# Create RDP extension object +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPExtension" -Credential $credential -Expiration $expiration -TypeHandlerVersion "1.2.1" +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Add RDP extension to existing cloud service extension object +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $rdpExtension +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Set extension to empty list +PS C:\> $cloudService.ExtensionProfile.Extension = @() +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Remove extension by name RDPExtension +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension | Where-Object { $_.Name -ne "RDPExtension" } +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +# Scale-out all role instance count by 1 +PS C:\> $cloudService.RoleProfile.Role | ForEach-Object {$_.SkuCapacity += 1} + +# Scale-in ContosoFrontend role instance count by 1 +PS C:\> $role = $cloudService.RoleProfile.Role | Where-Object {$_.Name -eq "ContosoFrontend"} +PS C:\> $role.SkuCapacity -= 1 + +# Update cloud service configuration as per the new role instance count +PS C:\> $cloudService.Configuration = $configuration + +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +PARAMETER : Describes the cloud service. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/update-azcloudservice +#> +function Update-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService] + # Describes the cloud service. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateViaIdentity = 'Az.CloudService.private\Update-AzCloudService_CreateViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the network interfaces of a cloud service. +.Description +Get the network interfaces of a cloud service. +.Example +PS C:\> Get-AzCloudServiceNetworkInterfaces -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs + +.Example +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs -RoleInstanceName WebRole1_IN_0 + + +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : CloudService instance. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServiceNetworkInterfaces +#> +function Get-AzCloudServiceNetworkInterfaces { +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # CloudService instance. + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # RoleInstanceName. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # ResourceGroupName. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # CloudServiceName. + ${CloudServiceName} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudService = 'Az.CloudService.custom\Get-AzCloudServiceNetworkInterfaces'; + CloudServiceName = 'Az.CloudService.custom\Get-AzCloudServiceNetworkInterfaces'; + } + if (('CloudService', 'CloudServiceName') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the public IP address of a cloud service. +.Description +Get the public IP address of a cloud service. +.Example +PS C:\> Get-AzCloudServicePublicIPAddress -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServicePublicIPAddress -CloudService $cs + + +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : CloudService instance. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServicePublicIPAddress +#> +function Get-AzCloudServicePublicIPAddress { +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # ResourceGroupName. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # CloudServiceName. + ${CloudServiceName}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # CloudService instance. + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudServiceName = 'Az.CloudService.custom\Get-AzCloudServicePublicIPAddress'; + CloudService = 'Az.CloudService.custom\Get-AzCloudServicePublicIPAddress'; + } + if (('CloudServiceName', 'CloudService') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Diagnostics Extension +.Description +Create a in-memory object for Diagnostics Extension +.Example +PS C:\> $storageAccountKey = Get-AzStorageAccountKey -ResourceGroupName "ContosOrg" -Name "ContosSA" +PS C:\> $configFile = "" +PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceDiagnosticsExtension { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Position=1)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription. + ${Subscription}, + + [Parameter(Position=0, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Diagnostics Extension. + ${Name}, + + [Parameter(Position=2, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource Group name of Cloud Service. + ${ResourceGroupName}, + + [Parameter(Position=3, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Cloud Service. + ${CloudServiceName}, + + [Parameter(Position=4, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the configuration for Azure Diagnostics. + # You can download the schema by using the following command: (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + ${DiagnosticsConfigurationPath}, + + [Parameter(Position=5, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of the Storage Account. + ${StorageAccountName}, + + [Parameter(Position=6, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Storage Account Key. + ${StorageAccountKey}, + + [Parameter(Position=7)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Specifies the version of the extension. + ${TypeHandlerVersion}, + + [Parameter(Position=8)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # Roles applied to. + ${RolesAppliedTo}, + + [Parameter(Position=9)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Auto upgrade minor version. + ${AutoUpgradeMinorVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceDiagnosticsExtension'; + } + if (('__AllParameterSets') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Subscription')) { + $PSBoundParameters['Subscription'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Extension +.Description +Create a in-memory object for Extension +.Example +PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceExtensionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + ${AutoUpgradeMinorVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Protected settings for the extension which are encrypted before sent to the VM. + ${ProtectedSetting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Publisher. + ${Publisher}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # RolesAppliedTo. + ${RolesAppliedTo}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Public settings for the extension. + ${Setting}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Type. + ${Type}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # TypeHandlerVersion. + ${TypeHandlerVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceExtensionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerConfiguration +.Description +Create a in-memory object for LoadBalancerConfiguration +.Example +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIP.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FRONTENDIPCONFIGURATION : FrontendIPConfiguration. + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject +#> +function New-AzCloudServiceLoadBalancerConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]] + # FrontendIPConfiguration. + # To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. + ${FrontendIPConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of LoadBalancerConfiguration. + ${Name} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceLoadBalancerConfigurationObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for LoadBalancerFrontendIPConfiguration +.Description +Create a in-memory object for LoadBalancerFrontendIPConfiguration +.Example +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject +#> +function New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of FrontendIpConfigration. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Resource Id. + ${PublicIPAddressId} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Remote Desktop Extension +.Description +Create a in-memory object for Remote Desktop Extension +.Example +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +#> +function New-AzCloudServiceRemoteDesktopExtensionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Position=0, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of Remote Desktop Extension. + ${Name}, + + [Parameter(Position=1, Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.PSCredential] + # Credential for Remote Desktop Extension. + ${Credential}, + + [Parameter(Position=2)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.DateTime] + # Expiration for Remote Desktop Extension. + ${Expiration}, + + [Parameter(Position=3)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Remote Desktop Extension version. + ${TypeHandlerVersion}, + + [Parameter(Position=4)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # Roles applied to. + ${RolesAppliedTo}, + + [Parameter(Position=5)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Boolean] + # Auto upgrade minor version. + ${AutoUpgradeMinorVersion} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceRemoteDesktopExtensionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for CloudServiceRoleProfileProperties +.Description +Create a in-memory object for CloudServiceRoleProfileProperties +.Example +$role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject +#> +function New-AzCloudServiceRoleProfilePropertiesObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Name of role profile. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Int64] + # Specifies the number of role instances in the cloud service. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # The sku name. + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # SkuTier. + ${SkuTier} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceRoleProfilePropertiesObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for Vault Secret Group +.Description +Create a in-memory object for Secret Group +.Example +$keyVault = Get-AzKeyVault -VaultName 'ContosoKeyVault' +$certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert' +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject +#> +function New-AzCloudServiceVaultSecretGroupObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String] + # Key Vault Resource Id. + ${Id}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # This is the URL of a certificate that has been uploaded to Key Vault as a secret. + ${CertificateUrl} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CloudService.custom\New-AzCloudServiceVaultSecretGroupObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Swaps VIPs between two cloud service (extended support) load balancers. +.Description +Swaps VIPs between two cloud service (extended support) load balancers. +.Example +PS C:\> Switch-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Switch-AzCloudService -CloudService $cs + + +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/Switch-AzCloudService +#> +function Switch-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${CloudServiceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Async}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudServiceName = 'Az.CloudService.custom\Switch-AzCloudService'; + CloudService = 'Az.CloudService.custom\Switch-AzCloudService'; + } + if (('CloudServiceName', 'CloudService') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Remove-AzCloudService.ps1 b/src/CloudService/exports/Remove-AzCloudService.ps1 new file mode 100644 index 000000000000..8862c55237ff --- /dev/null +++ b/src/CloudService/exports/Remove-AzCloudService.ps1 @@ -0,0 +1,180 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a cloud service. +.Description +Deletes a cloud service. +.Example +PS C:\> Remove-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudservice +#> +function Remove-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.CloudService.private\Remove-AzCloudService_Delete'; + DeleteViaIdentity = 'Az.CloudService.private\Remove-AzCloudService_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 new file mode 100644 index 000000000000..82c2d86289e1 --- /dev/null +++ b/src/CloudService/exports/Remove-AzCloudServiceRoleInstance.ps1 @@ -0,0 +1,186 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes role instances in a cloud service. +.Description +Deletes role instances in a cloud service. +.Example +PS C:\> Remove-AzCloudServiceInstance -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudserviceroleinstance +#> +function Remove-AzCloudServiceRoleInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='DeleteExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + DeleteExpanded = 'Az.CloudService.private\Remove-AzCloudServiceRoleInstance_DeleteExpanded'; + DeleteViaIdentityExpanded = 'Az.CloudService.private\Remove-AzCloudServiceRoleInstance_DeleteViaIdentityExpanded'; + } + if (('DeleteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Restart-AzCloudService.ps1 b/src/CloudService/exports/Restart-AzCloudService.ps1 new file mode 100644 index 000000000000..93eace521270 --- /dev/null +++ b/src/CloudService/exports/Restart-AzCloudService.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restarts one or more role instances in a cloud service. +.Description +Restarts one or more role instances in a cloud service. +.Example +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +.Example +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudservice +#> +function Restart-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RestartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='RestartExpanded', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='RestartExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='RestartExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.String[]] + # List of cloud service role instance names. + # Value of '*' will signify all role instances of the cloud service. + ${RoleInstance}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + RestartExpanded = 'Az.CloudService.private\Restart-AzCloudService_RestartExpanded'; + RestartViaIdentityExpanded = 'Az.CloudService.private\Restart-AzCloudService_RestartViaIdentityExpanded'; + } + if (('RestartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 b/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 new file mode 100644 index 000000000000..7c199e3f2924 --- /dev/null +++ b/src/CloudService/exports/Restart-AzCloudServiceRoleInstance.ps1 @@ -0,0 +1,185 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. +.Description +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. +.Example +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudserviceroleinstance +#> +function Restart-AzCloudServiceRoleInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${CloudServiceName}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # . + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the role instance. + ${RoleInstanceName}, + + [Parameter(ParameterSetName='Restart')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Restart = 'Az.CloudService.private\Restart-AzCloudServiceRoleInstance_Restart'; + RestartViaIdentity = 'Az.CloudService.private\Restart-AzCloudServiceRoleInstance_RestartViaIdentity'; + } + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Set-AzCloudServiceUpdateDomain.ps1 b/src/CloudService/exports/Set-AzCloudServiceUpdateDomain.ps1 new file mode 100644 index 000000000000..7b2875218de8 --- /dev/null +++ b/src/CloudService/exports/Set-AzCloudServiceUpdateDomain.ps1 @@ -0,0 +1,163 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates the role instances in the specified update domain. +.Description +Updates the role instances in the specified update domain. +.Example +PS C:\> Set-AzCloudServiceUpdateDomain -CloudServiceName "ContosoCS" -ResourceGroupName "ContosOrg" -UpdateDomain 0 + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/set-azcloudserviceupdatedomain +#> +function Set-AzCloudServiceUpdateDomain { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='WalkExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${CloudServiceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.Int32] + # Specifies an integer value that identifies the update domain. + # Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + ${UpdateDomain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + WalkExpanded = 'Az.CloudService.private\Set-AzCloudServiceUpdateDomain_WalkExpanded'; + } + if (('WalkExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Start-AzCloudService.ps1 b/src/CloudService/exports/Start-AzCloudService.ps1 new file mode 100644 index 000000000000..9fef7ee8247d --- /dev/null +++ b/src/CloudService/exports/Start-AzCloudService.ps1 @@ -0,0 +1,180 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Starts the cloud service. +.Description +Starts the cloud service. +.Example +PS C:\> Start-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/start-azcloudservice +#> +function Start-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Start = 'Az.CloudService.private\Start-AzCloudService_Start'; + StartViaIdentity = 'Az.CloudService.private\Start-AzCloudService_StartViaIdentity'; + } + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Stop-AzCloudService.ps1 b/src/CloudService/exports/Stop-AzCloudService.ps1 new file mode 100644 index 000000000000..74157ed19e36 --- /dev/null +++ b/src/CloudService/exports/Stop-AzCloudService.ps1 @@ -0,0 +1,182 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. +.Description +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. +.Example +PS C:\> Stop-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/stop-azcloudservice +#> +function Stop-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='PowerOff', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='PowerOff', Mandatory)] + [Alias('CloudServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the cloud service. + ${Name}, + + [Parameter(ParameterSetName='PowerOff', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + # Name of the resource group. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='PowerOff')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PowerOffViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PowerOff = 'Az.CloudService.private\Stop-AzCloudService_PowerOff'; + PowerOffViaIdentity = 'Az.CloudService.private\Stop-AzCloudService_PowerOffViaIdentity'; + } + if (('PowerOff') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Switch-AzCloudService.ps1 b/src/CloudService/exports/Switch-AzCloudService.ps1 new file mode 100644 index 000000000000..b82ee192bddb --- /dev/null +++ b/src/CloudService/exports/Switch-AzCloudService.ps1 @@ -0,0 +1,174 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Swaps VIPs between two cloud service (extended support) load balancers. +.Description +Swaps VIPs between two cloud service (extended support) load balancers. +.Example +PS C:\> Switch-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +.Example +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Switch-AzCloudService -CloudService $cs + + +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLOUDSERVICE : + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/Switch-AzCloudService +#> +function Switch-AzCloudService { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='CloudServiceName', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CloudServiceName', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [System.String] + ${CloudServiceName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription credentials which uniquely identify Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CloudService', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService] + # To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + ${CloudService}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Async}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CloudServiceName = 'Az.CloudService.custom\Switch-AzCloudService'; + CloudService = 'Az.CloudService.custom\Switch-AzCloudService'; + } + if (('CloudServiceName', 'CloudService') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/Update-AzCloudService.ps1 b/src/CloudService/exports/Update-AzCloudService.ps1 new file mode 100644 index 000000000000..ad1e3fa2c499 --- /dev/null +++ b/src/CloudService/exports/Update-AzCloudService.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Description +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. +.Example +# Create RDP extension object +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPExtension" -Credential $credential -Expiration $expiration -TypeHandlerVersion "1.2.1" +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Add RDP extension to existing cloud service extension object +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $rdpExtension +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Set extension to empty list +PS C:\> $cloudService.ExtensionProfile.Extension = @() +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Remove extension by name RDPExtension +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension | Where-Object { $_.Name -ne "RDPExtension" } +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +.Example +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +# Scale-out all role instance count by 1 +PS C:\> $cloudService.RoleProfile.Role | ForEach-Object {$_.SkuCapacity += 1} + +# Scale-in ContosoFrontend role instance count by 1 +PS C:\> $role = $cloudService.RoleProfile.Role | Where-Object {$_.Name -eq "ContosoFrontend"} +PS C:\> $role.SkuCapacity -= 1 + +# Update cloud service configuration as per the new role instance count +PS C:\> $cloudService.Configuration = $configuration + +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [CloudServiceName ]: + [Id ]: Resource identity path + [ResourceGroupName ]: + [RoleInstanceName ]: Name of the role instance. + [RoleName ]: Name of the role. + [SubscriptionId ]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + [UpdateDomain ]: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +PARAMETER : Describes the cloud service. + Location : Resource location. + [Configuration ]: Specifies the XML service configuration (.cscfg) for the cloud service. + [ConfigurationUrl ]: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [ExtensionProfile ]: Describes a cloud service extension profile. + [Extension ]: List of extensions for the cloud service. + [AutoUpgradeMinorVersion ]: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + [ForceUpdateTag ]: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + [Name ]: The name of the extension. + [ProtectedSetting ]: Protected settings for the extension which are encrypted before sent to the role instance. + [ProtectedSettingFromKeyVaultSecretUrl ]: + [Publisher ]: The name of the extension handler publisher. + [RolesAppliedTo ]: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + [Setting ]: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + [SourceVaultId ]: Resource Id + [Type ]: Specifies the type of the extension. + [TypeHandlerVersion ]: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + [NetworkProfile ]: Network Profile for the cloud service. + [LoadBalancerConfiguration ]: The list of load balancer configurations for the cloud service. + [FrontendIPConfiguration ]: List of IP + [Name ]: + [PrivateIPAddress ]: The private IP address referenced by the cloud service. + [PublicIPAddressId ]: Resource Id + [SubnetId ]: Resource Id + [Name ]: Resource Name + [SwappableCloudService ]: + [Id ]: Resource Id + [OSProfile ]: Describes the OS profile for the cloud service. + [Secret ]: Specifies set of certificates that should be installed onto the role instances. + [SourceVaultId ]: Resource Id + [VaultCertificate ]: The list of key vault references in SourceVault which contain certificates. + [CertificateUrl ]: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + [PackageUrl ]: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + [RoleProfile ]: Describes the role profile for the cloud service. + [Role ]: List of roles for the cloud service. + [Name ]: Resource name. + [SkuCapacity ]: Specifies the number of role instances in the cloud service. + [SkuName ]: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + [SkuTier ]: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + [StartCloudService ]: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [UpgradeMode ]: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/update-azcloudservice +#> +function Update-AzCloudService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService])] +[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService] + # Describes the cloud service. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateViaIdentity = 'Az.CloudService.private\Update-AzCloudService_CreateViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CloudService/exports/readme.md b/src/CloudService/exports/readme.md new file mode 100644 index 000000000000..0a39814dfd6c --- /dev/null +++ b/src/CloudService/exports/readme.md @@ -0,0 +1,20 @@ +# Exports +This directory contains the cmdlets *exported by* `Az.CloudService`. No other cmdlets in this repository are directly exported. What that means is the `Az.CloudService` module will run [Export-ModuleMember](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.CloudService.private.dll`) and from the `..\custom\Az.CloudService.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [readme.md](..\internal/readme.md) in the `..\internal` folder. + +## Purpose +We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. + +## Structure +The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile. + +## Usage +When `./Az.CloudService.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message. \ No newline at end of file diff --git a/src/CloudService/generate-help.ps1 b/src/CloudService/generate-help.ps1 new file mode 100644 index 000000000000..60759b88e4fd --- /dev/null +++ b/src/CloudService/generate-help.ps1 @@ -0,0 +1,73 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(-not (Test-Path $exportsFolder)) { + Write-Error "Exports folder '$exportsFolder' was not found." +} + +$directories = Get-ChildItem -Directory -Path $exportsFolder +$hasProfiles = ($directories | Measure-Object).Count -gt 0 +if(-not $hasProfiles) { + $directories = Get-Item -Path $exportsFolder +} + +$docsFolder = Join-Path $PSScriptRoot 'docs' +if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue +$examplesFolder = Join-Path $PSScriptRoot 'examples' + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CloudService.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.CloudService.private.dll') +$instance = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName + +foreach($directory in $directories) +{ + if($hasProfiles) { + Select-AzProfile -Name $directory.Name + } + # Reload module per profile + Import-Module -Name $modulePath -Force + + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $directory.FullName + $cmdletHelpInfo = $cmdletNames | ForEach-Object { Get-Help -Name $_ -Full } + $cmdletFunctionInfo = Get-ScriptCmdlet -ScriptFolder $directory.FullName -AsFunctionInfo + + $docsPath = Join-Path $docsFolder $directory.Name + $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue + $examplesPath = Join-Path $examplesFolder $directory.Name + + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CloudService/generate-info.json b/src/CloudService/generate-info.json new file mode 100644 index 000000000000..9d445bba92e8 --- /dev/null +++ b/src/CloudService/generate-info.json @@ -0,0 +1,8 @@ +{ + "autorest_core": "3.0.6320", + "autorest_powershell": "2.1.401", + "autorest_remodeler": "2.1.27", + "autorest": "3.0.6149", + "swagger_commit": "c6ae7e9a1ff90c116baa2cacb944aebf74d72cb9", + "node": "v10.16.3" +} diff --git a/src/CloudService/generated/Module.cs b/src/CloudService/generated/Module.cs new file mode 100644 index 000000000000..a155895f276a --- /dev/null +++ b/src/CloudService/generated/Module.cs @@ -0,0 +1,158 @@ +// 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.CloudService +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; + using GetParameterDelegate = global::System.Func; + using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using ArgumentCompleterDelegate = global::System.Func; + using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; + using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; + using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + + /// A class that contains the module-common code and data. + public partial class Module + { + /// The currently selected profile. + public string Profile = global::System.String.Empty; + + public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + + /// the ISendAsync pipeline instance + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline _pipeline; + + /// the ISendAsync pipeline instance (when proxy is enabled) + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline _pipelineWithProxy; + + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); + + /// Gets completion data for azure specific fields + public ArgumentCompleterDelegate ArgumentCompleter { get; set; } + + /// The instance of the Client API + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService ClientAPI { get; set; } + + /// A delegate that gets called for each signalled event + public EventListenerDelegate EventListener { get; set; } + + /// The delegate to call to get parameter data from a common module. + public GetParameterDelegate GetParameterValue { get; set; } + + /// Backing field for property. + private static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module _instance; + + /// the singleton of this module class + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module()); + + /// The Name of this module + public string Name => @"Az.CloudService"; + + /// The delegate to call when this module is loaded (supporting a commmon module). + public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } + + /// The delegate to call before each new request (supporting a commmon module). + public NewRequestPipelineDelegate OnNewRequest { get; set; } + + /// The name of the currently selected Azure profile + public global::System.String ProfileName { get; set; } + + /// The ResourceID for this module (azure arm). + public string ResourceId => @"Az.CloudService"; + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline pipeline); + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline pipeline); + + partial void CustomInit(); + + /// Creates an instance of the HttpPipeline for each call. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the cmdlet's parameterset name. + /// An instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline for the remote call. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline pipeline = null; + BeforeCreatePipeline(invocationInfo, ref pipeline); + pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + AfterCreatePipeline(invocationInfo, ref pipeline); + pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); + OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); + return pipeline; + } + + /// Gets parameters from a common module. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// The name of the parameter to get the value for. + /// + /// The parameter value from the common module. (Note: this should be type converted on the way back) + /// + public object GetParameter(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName) => GetParameterValue?.Invoke( ResourceId, Name, invocationInfo, correlationId,parameterName ); + + /// 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(); + } + + /// Creates the module instance. + private Module() + { + /// constructor + ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService(); + _handler.Proxy = _webProxy; + _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); + _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler))); + } + + /// The HTTP Proxy to use. + /// The HTTP Proxy Credentials + /// True if the proxy should use default credentials + public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) + { + // set the proxy configuration + _webProxy.Address = proxy; + _webProxy.BypassProxyOnLocal = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; + _handler.UseProxy = proxy != null; + } + + /// Called to dispatch events to the common module listener + /// The ID of the event + /// The cancellation token for the event + /// A delegate to get the detailed event data + /// The callback for the event dispatcher + /// The from the cmdlet + /// the cmdlet's parameterset name. + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the exception that is being thrown (if available) + /// + /// A that will be complete when handling of the event is completed. + /// + public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception) + { + using( NoSynchronizationContext ) + { + await EventListener?.Invoke(id,token,getEventData, signal, invocationInfo, parameterSetName, correlationId,processRecordId,exception); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/CloudService.cs b/src/CloudService/generated/api/CloudService.cs new file mode 100644 index 000000000000..4dc59f644519 --- /dev/null +++ b/src/CloudService/generated/api/CloudService.cs @@ -0,0 +1,5916 @@ +// 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.CloudService +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Low-level API implementation for the CloudService service. + /// + public partial class CloudService + { + + /// Deletes a role instance from a cloud service. + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a role instance from a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesDelete_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Gets a role instance from a cloud service. + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The expand expression to apply to the operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Retrieves information about the run-time state of a role instance in a cloud service. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "/instanceView" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGetInstanceView_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Retrieves information about the run-time state of a role instance in a cloud service. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceViewViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)/instanceView$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "/instanceView" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGetInstanceView_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetInstanceView_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Gets a remote desktop file for a role instance in a cloud service. + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFile(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "/remoteDesktopFile" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGetRemoteDesktopFile_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a remote desktop file for a role instance in a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFileViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)/remoteDesktopFile$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "/remoteDesktopFile" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGetRemoteDesktopFile_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFile_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStreamAsync()); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,null /* deserializeFromResponse doesn't support '-none-' C:\Users\yunwang\.autorest\@autorest_powershell@2.1.401\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetRemoteDesktopFile_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Gets a role instance from a cloud service. + /// + /// The expand expression to apply to the operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The expand expression to apply to the operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesGet_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(Expand),Expand); + await eventListener.AssertEnum(nameof(Expand),Expand,@"instanceView"); + } + } + + /// + /// Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of + /// role instances. Do this till nextLink is null to fetch all the role instances. + /// + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The expand expression to apply to the operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of + /// role instances. Do this till nextLink is null to fetch all the role instances. + /// + /// + /// The expand expression to apply to the operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesListViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The expand expression to apply to the operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesList_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes? Expand, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(Expand),Expand); + await eventListener.AssertEnum(nameof(Expand),Expand,@"instanceView"); + } + } + + /// + /// The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles + /// and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can + /// use Reimage Role Instance. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "/rebuild" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesRebuild_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles + /// and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can + /// use Reimage Role Instance. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuildViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "/rebuild" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesRebuild_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRebuild_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "/reimage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesReimage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimageViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "/reimage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesReimage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesReimage_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roleInstances/" + + global::System.Uri.EscapeDataString(roleInstanceName) + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roleInstances/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart'"); + } + + // replace URI parameters with values from identity + var roleInstanceName = _match.Groups["roleInstanceName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roleInstances/" + + roleInstanceName + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRoleInstancesRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// Name of the role instance. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRoleInstancesRestart_Validate(string roleInstanceName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleInstanceName),roleInstanceName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Gets a role from a cloud service. + /// Name of the role. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRolesGet(string roleName, string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roles/" + + global::System.Uri.EscapeDataString(roleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRolesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a role from a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRolesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roles/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}'"); + } + + // replace URI parameters with values from identity + var roleName = _match.Groups["roleName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roles/" + + roleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRolesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRolesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the role. + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRolesGet_Validate(string roleName, string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(roleName),roleName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this + /// till nextLink is null to fetch all the roles. + /// + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRolesList(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/roles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRolesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this + /// till nextLink is null to fetch all the roles. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServiceRolesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/roles$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/roles" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServiceRolesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRolesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServiceRolesList_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Create or update a cloud service. Please note some properties can be set only during cloud service creation. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The cloud service object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Create or update a cloud service. Please note some properties can be set only during cloud service creation. + /// + /// + /// The cloud service object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The cloud service object. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesCreateOrUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesDelete(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes role instances in a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesDeleteInstances(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/delete" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesDeleteInstances_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Deletes role instances in a cloud service. + /// + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesDeleteInstancesViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/delete" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesDeleteInstances_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesDeleteInstances_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesDelete_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Display information about a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesGet(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the status of a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesGetInstanceView(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/instanceView" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesGetInstanceView_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the status of a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesGetInstanceViewViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/instanceView$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/instanceView" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesGetInstanceView_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesGetInstanceView_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceInstanceView.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesGetInstanceView_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Display information about a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesGet_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of + /// Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// Name of the resource group. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesList(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property + /// in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesListAll(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Compute/cloudServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesListAll_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property + /// in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesListAllViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Compute/cloudServices$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Compute/cloudServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesListAll_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesListAll_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesListAll_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of + /// Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesList_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesPowerOff(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/poweroff" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesPowerOff_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesPowerOffViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/poweroff" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesPowerOff_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesPowerOff_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesPowerOff_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage + /// resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesRebuild(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/rebuild" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesRebuild_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage + /// resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. + /// + /// + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesRebuildViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/rebuild" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesRebuild_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesRebuild_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesReimage(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/reimage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesReimage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesReimageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/reimage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesReimage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesReimage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesReimage_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Restarts one or more role instances in a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesRestart(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Restarts one or more role instances in a cloud service. + /// + /// List of cloud service role instance names. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesRestartViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// List of cloud service role instance names. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesRestart_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Starts the cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesStart(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesStart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Starts the cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesStart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesStart_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Update a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The cloud service object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update + /// domains. Do this till nextLink is null to fetch all the update domains. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Specifies an integer value that identifies the update domain. Update domains are identified + /// with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/updateDomains/" + + (updateDomain.ToString()) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainGetUpdateDomain_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update + /// domains. Do this till nextLink is null to fetch all the update domains. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomainViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/updateDomains/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var updateDomain = _match.Groups["updateDomain"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/updateDomains/" + + updateDomain + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainGetUpdateDomain_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Specifies an integer value that identifies the update domain. Update domains are identified + /// with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainGetUpdateDomain_Validate(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Gets a list of all update domains in a cloud service. + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains(string resourceGroupName, string cloudServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/updateDomains" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainListUpdateDomains_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a list of all update domains in a cloud service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomainsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/updateDomains$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/updateDomains" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainListUpdateDomains_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainListUpdateDomains_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Updates the role instances in the specified update domain. + /// Name of the resource group. + /// Name of the cloud service. + /// Specifies an integer value that identifies the update domain. Update domains are identified + /// with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The update domain object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Compute/cloudServices/" + + global::System.Uri.EscapeDataString(cloudServiceName) + + "/updateDomains/" + + (updateDomain.ToString()) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainWalkUpdateDomain_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates the role instances in the specified update domain. + /// + /// The update domain object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomainViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)/updateDomains/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var updateDomain = _match.Groups["updateDomain"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "/updateDomains/" + + updateDomain + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdateDomainWalkUpdateDomain_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Specifies an integer value that identifies the update domain. Update domains are identified + /// with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The update domain object. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdateDomainWalkUpdateDomain_Validate(string resourceGroupName, string cloudServiceName, int updateDomain, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Update a cloud service. + /// + /// The cloud service object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CloudServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/cloudServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var cloudServiceName = _match.Groups["cloudServiceName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Compute/cloudServices/" + + cloudServiceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CloudServicesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// Name of the resource group. + /// Name of the cloud service. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription + /// ID forms part of the URI for every service call. + /// The cloud service object. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CloudServicesUpdate_Validate(string resourceGroupName, string cloudServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(cloudServiceName),cloudServiceName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs new file mode 100644 index 000000000000..08928f7823b6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Api error. + [System.ComponentModel.TypeConverter(typeof(ApiErrorTypeConverter))] + public partial class ApiError + { + + /// + /// 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 ApiError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype, 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 ApiError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)this).InnererrorExceptiontype, 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.CloudService.Models.Api20201001Preview.IApiError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ApiError(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.CloudService.Models.Api20201001Preview.IApiError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ApiError(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.CloudService.Models.Api20201001Preview.IApiError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Api error. + [System.ComponentModel.TypeConverter(typeof(ApiErrorTypeConverter))] + public partial interface IApiError + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs new file mode 100644 index 000000000000..434c0e880036 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ApiErrorTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IApiError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ApiError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ApiError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ApiError.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/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs new file mode 100644 index 000000000000..a3e6261f310f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Api error. + public partial class ApiError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal + { + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] _detail; + + /// The Api error details + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get => this._detail; set => this._detail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError _innererror; + + /// The Api inner error + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError()); set => this._innererror = value; } + + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Errordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Errordetail = value; } + + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Exceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)Innererror).Exceptiontype = value; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Internal Acessors for Innererror + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal.Innererror { get => (this._innererror = this._innererror ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError()); set { {_innererror = value;} } } + + /// Backing field for property. + private string _target; + + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public ApiError() + { + + } + } + /// Api error. + public partial interface IApiError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The Api error details + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Api error details", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The internal error message or exception dump.", + SerializedName = @"errordetail", + PossibleTypes = new [] { typeof(string) })] + string InnererrorErrordetail { get; set; } + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The exception type.", + SerializedName = @"exceptiontype", + PossibleTypes = new [] { typeof(string) })] + string InnererrorExceptiontype { get; set; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// Api error. + internal partial interface IApiErrorInternal + + { + /// The error code. + string Code { get; set; } + /// The Api error details + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + /// The Api inner error + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get; set; } + /// The internal error message or exception dump. + string InnererrorErrordetail { get; set; } + /// The exception type. + string InnererrorExceptiontype { get; set; } + /// The error message. + string Message { get; set; } + /// The target of the particular error. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs new file mode 100644 index 000000000000..7d892c4afe76 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiError.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Api error. + public partial class ApiError + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal ApiError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_innererror = If( json?.PropertyT("innererror"), out var __jsonInnererror) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerError.FromJson(__jsonInnererror) : Innererror;} + {_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.CloudService.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.CloudService.Models.Api20201001Preview.IApiErrorBase) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBase.FromJson(__u) )) ))() : null : Detail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ApiError(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._innererror ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._innererror.ToJson(null,serializationMode) : null, "innererror" ,container.Add ); + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs new file mode 100644 index 000000000000..f44b22c864d5 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Api error base. + [System.ComponentModel.TypeConverter(typeof(ApiErrorBaseTypeConverter))] + public partial class ApiErrorBase + { + + /// + /// 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 ApiErrorBase(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target, 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 ApiErrorBase(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal)this).Target, 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.CloudService.Models.Api20201001Preview.IApiErrorBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ApiErrorBase(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.CloudService.Models.Api20201001Preview.IApiErrorBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ApiErrorBase(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.CloudService.Models.Api20201001Preview.IApiErrorBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Api error base. + [System.ComponentModel.TypeConverter(typeof(ApiErrorBaseTypeConverter))] + public partial interface IApiErrorBase + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs new file mode 100644 index 000000000000..a7257258979f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ApiErrorBaseTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IApiErrorBase ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ApiErrorBase.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ApiErrorBase.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ApiErrorBase.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/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs new file mode 100644 index 000000000000..8d89531098c1 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Api error base. + public partial class ApiErrorBase : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBaseInternal + { + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public ApiErrorBase() + { + + } + } + /// Api error base. + public partial interface IApiErrorBase : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// Api error base. + internal partial interface IApiErrorBaseInternal + + { + /// The error code. + string Code { get; set; } + /// The error message. + string Message { get; set; } + /// The target of the particular error. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs new file mode 100644 index 000000000000..bdb5f56d72bf --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ApiErrorBase.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Api error base. + public partial class ApiErrorBase + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal ApiErrorBase(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ApiErrorBase(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs new file mode 100644 index 000000000000..5db501861b81 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// An error response from the Compute service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial class CloudError + { + + /// + /// 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 CloudError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype, 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 CloudError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError) content.GetValueForProperty("Innererror",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Innererror, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiErrorBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail = (string) content.GetValueForProperty("InnererrorErrordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorErrordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype = (string) content.GetValueForProperty("InnererrorExceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal)this).InnererrorExceptiontype, 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.CloudService.Models.Api20201001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudError(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.CloudService.Models.Api20201001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudError(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.CloudService.Models.Api20201001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the Compute service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial interface ICloudError + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs new file mode 100644 index 000000000000..636c2035ef51 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudError.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/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs new file mode 100644 index 000000000000..78d15e133966 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.cs @@ -0,0 +1,130 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// An error response from the Compute service. + public partial class CloudError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal + { + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Code = value; } + + /// The Api error details + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Detail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError _error; + + /// Api error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError()); set => this._error = value; } + + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string InnererrorErrordetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorErrordetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorErrordetail = value; } + + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string InnererrorExceptiontype { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorExceptiontype; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).InnererrorExceptiontype = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Message = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError()); set { {_error = value;} } } + + /// Internal Acessors for Innererror + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudErrorInternal.Innererror { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Innererror; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Innererror = value; } + + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorInternal)Error).Target = value; } + + /// Creates an new instance. + public CloudError() + { + + } + } + /// An error response from the Compute service. + public partial interface ICloudError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The Api error details + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Api error details", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The internal error message or exception dump.", + SerializedName = @"errordetail", + PossibleTypes = new [] { typeof(string) })] + string InnererrorErrordetail { get; set; } + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The exception type.", + SerializedName = @"exceptiontype", + PossibleTypes = new [] { typeof(string) })] + string InnererrorExceptiontype { get; set; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// An error response from the Compute service. + internal partial interface ICloudErrorInternal + + { + /// The error code. + string Code { get; set; } + /// The Api error details + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiErrorBase[] Detail { get; set; } + /// Api error. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IApiError Error { get; set; } + /// The Api inner error + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError Innererror { get; set; } + /// The internal error message or exception dump. + string InnererrorErrordetail { get; set; } + /// The exception type. + string InnererrorExceptiontype { get; set; } + /// The error message. + string Message { get; set; } + /// The target of the particular error. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs new file mode 100644 index 000000000000..cd92520d458f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudError.json.cs @@ -0,0 +1,101 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// An error response from the Compute service. + public partial class CloudError + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ApiError.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudError(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs new file mode 100644 index 000000000000..d20fa762f0a6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.PowerShell.cs @@ -0,0 +1,163 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] + public partial class CloudService + { + + /// + /// 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 CloudService(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudService(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.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.CloudService.Models.Api20201001Preview.ICloudService DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudService(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.CloudService.Models.Api20201001Preview.ICloudService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudService(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.CloudService.Models.Api20201001Preview.ICloudService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTypeConverter))] + public partial interface ICloudService + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs new file mode 100644 index 000000000000..0246405369f6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudService ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudService.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudService.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudService.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/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs new file mode 100644 index 000000000000..fcbc2dea7912 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.cs @@ -0,0 +1,374 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the cloud service. + public partial class CloudService : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal + { + + /// Specifies the XML service configuration (.cscfg) for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Configuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).Configuration = value; } + + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string ConfigurationUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ConfigurationUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ConfigurationUrl = value; } + + /// Describes a cloud service extension profile. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ExtensionProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ExtensionProfile = value; } + + /// Backing field for property. + private string _id; + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Id { get => this._id; } + + /// Backing field for property. + private string _location; + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for UniqueId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId = value; } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string Name { get => this._name; } + + /// Network Profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).NetworkProfile = value; } + + /// Describes the OS profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).OSProfile = value; } + + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string PackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).PackageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).PackageUrl = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties _property; + + /// Cloud service properties + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties()); set => this._property = value; } + + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).ProvisioningState; } + + /// Describes the role profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).RoleProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).RoleProfile = value; } + + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public bool? StartCloudService { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).StartCloudService; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).StartCloudService = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags()); set => this._tag = value; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Type { get => this._type; } + + /// The unique identifier for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UniqueId; } + + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UpgradeMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)Property).UpgradeMode = value; } + + /// Creates an new instance. + public CloudService() + { + + } + } + /// Describes the cloud service. + public partial interface ICloudService : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies the XML service configuration (.cscfg) for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the XML service configuration (.cscfg) for the cloud service.", + SerializedName = @"configuration", + PossibleTypes = new [] { typeof(string) })] + string Configuration { get; set; } + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + This is a write-only property and is not returned in GET calls.", + SerializedName = @"configurationUrl", + PossibleTypes = new [] { typeof(string) })] + string ConfigurationUrl { get; set; } + /// Describes a cloud service extension profile. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes a cloud service extension profile.", + SerializedName = @"extensionProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Network Profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Network Profile for the cloud service.", + SerializedName = @"networkProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + /// Describes the OS profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the OS profile for the cloud service.", + SerializedName = @"osProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + This is a write-only property and is not returned in GET calls.", + SerializedName = @"packageUrl", + PossibleTypes = new [] { typeof(string) })] + string PackageUrl { get; set; } + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state, which only appears in the response.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Describes the role profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the role profile for the cloud service.", + SerializedName = @"roleProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.", + SerializedName = @"startCloudService", + PossibleTypes = new [] { typeof(bool) })] + bool? StartCloudService { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get; set; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// The unique identifier for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique identifier for the cloud service.", + SerializedName = @"uniqueId", + PossibleTypes = new [] { typeof(string) })] + string UniqueId { get; } + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. + Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.", + SerializedName = @"upgradeMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get; set; } + + } + /// Describes the cloud service. + internal partial interface ICloudServiceInternal + + { + /// Specifies the XML service configuration (.cscfg) for the cloud service. + string Configuration { get; set; } + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + string ConfigurationUrl { get; set; } + /// Describes a cloud service extension profile. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + /// Resource Id. + string Id { get; set; } + /// Resource location. + string Location { get; set; } + /// Resource name. + string Name { get; set; } + /// Network Profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + /// Describes the OS profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + string PackageUrl { get; set; } + /// Cloud service properties + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties Property { get; set; } + /// The provisioning state, which only appears in the response. + string ProvisioningState { get; set; } + /// Describes the role profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + bool? StartCloudService { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get; set; } + /// Resource type. + string Type { get; set; } + /// The unique identifier for the cloud service. + string UniqueId { get; set; } + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs new file mode 100644 index 000000000000..4af4d5edfb1c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudService.json.cs @@ -0,0 +1,120 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the cloud service. + public partial class CloudService + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudService(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceProperties.FromJson(__jsonProperties) : Property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudService(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs new file mode 100644 index 000000000000..5bb1e23cae7b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service extension profile. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionProfileTypeConverter))] + public partial class CloudServiceExtensionProfile + { + + /// + /// 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 CloudServiceExtensionProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ExtensionTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceExtensionProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[]) content.GetValueForProperty("Extension",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal)this).Extension, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ExtensionTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceExtensionProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceExtensionProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service extension profile. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionProfileTypeConverter))] + public partial interface ICloudServiceExtensionProfile + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs new file mode 100644 index 000000000000..02e9ccaa6764 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceExtensionProfileTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceExtensionProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceExtensionProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceExtensionProfile.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs new file mode 100644 index 000000000000..701cad17843b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service extension profile. + public partial class CloudServiceExtensionProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfileInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] _extension; + + /// List of extensions for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get => this._extension; set => this._extension = value; } + + /// Creates an new instance. + public CloudServiceExtensionProfile() + { + + } + } + /// Describes a cloud service extension profile. + public partial interface ICloudServiceExtensionProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// List of extensions for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of extensions for the cloud service.", + SerializedName = @"extensions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get; set; } + + } + /// Describes a cloud service extension profile. + internal partial interface ICloudServiceExtensionProfileInternal + + { + /// List of extensions for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension[] Extension { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs new file mode 100644 index 000000000000..4dafdd58a5db --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProfile.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service extension profile. + public partial class CloudServiceExtensionProfile + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceExtensionProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_extension = If( json?.PropertyT("extensions"), out var __jsonExtensions) ? If( __jsonExtensions as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IExtension) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension.FromJson(__u) )) ))() : null : Extension;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceExtensionProfile(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._extension) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._extension ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("extensions",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs new file mode 100644 index 000000000000..c0bac1cde131 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Extension Properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] + public partial class CloudServiceExtensionProperties + { + + /// + /// 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 CloudServiceExtensionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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 CloudServiceExtensionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceExtensionProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceExtensionProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Extension Properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceExtensionPropertiesTypeConverter))] + public partial interface ICloudServiceExtensionProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs new file mode 100644 index 000000000000..283bfef2e0ee --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceExtensionPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceExtensionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceExtensionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceExtensionProperties.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs new file mode 100644 index 000000000000..f864b8f536ea --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.cs @@ -0,0 +1,304 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Extension Properties. + public partial class CloudServiceExtensionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal + { + + /// Backing field for property. + private bool? _autoUpgradeMinorVersion; + + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? AutoUpgradeMinorVersion { get => this._autoUpgradeMinorVersion; set => this._autoUpgradeMinorVersion = value; } + + /// Backing field for property. + private string _forceUpdateTag; + + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ForceUpdateTag { get => this._forceUpdateTag; set => this._forceUpdateTag = value; } + + /// Internal Acessors for ProtectedSettingFromKeyVaultSourceVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVault = value; } + + /// Internal Acessors for ProtectedSettingsFromKeyVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference()); set { {_protectedSettingsFromKeyVault = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _protectedSetting; + + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ProtectedSetting { get => this._protectedSetting; set => this._protectedSetting = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SecretUrl = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference _protectedSettingsFromKeyVault; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get => (this._protectedSettingsFromKeyVault = this._protectedSettingsFromKeyVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference()); set => this._protectedSettingsFromKeyVault = value; } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _publisher; + + /// The name of the extension handler publisher. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Publisher { get => this._publisher; set => this._publisher = value; } + + /// Backing field for property. + private string[] _rolesAppliedTo; + + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string[] RolesAppliedTo { get => this._rolesAppliedTo; set => this._rolesAppliedTo = value; } + + /// Backing field for property. + private string _setting; + + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Setting { get => this._setting; set => this._setting = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)ProtectedSettingsFromKeyVault).SourceVaultId = value; } + + /// Backing field for property. + private string _type; + + /// Specifies the type of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Type { get => this._type; set => this._type = value; } + + /// Backing field for property. + private string _typeHandlerVersion; + + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string TypeHandlerVersion { get => this._typeHandlerVersion; set => this._typeHandlerVersion = value; } + + /// Creates an new instance. + public CloudServiceExtensionProperties() + { + + } + } + /// Extension Properties. + public partial interface ICloudServiceExtensionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.", + SerializedName = @"autoUpgradeMinorVersion", + PossibleTypes = new [] { typeof(bool) })] + bool? AutoUpgradeMinorVersion { get; set; } + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not", + SerializedName = @"forceUpdateTag", + PossibleTypes = new [] { typeof(string) })] + string ForceUpdateTag { get; set; } + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Protected settings for the extension which are encrypted before sent to the role instance.", + SerializedName = @"protectedSettings", + PossibleTypes = new [] { typeof(string) })] + string ProtectedSetting { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"secretUrl", + PossibleTypes = new [] { typeof(string) })] + string ProtectedSettingFromKeyVaultSecretUrl { get; set; } + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state, which only appears in the response.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// The name of the extension handler publisher. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extension handler publisher.", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string Publisher { get; set; } + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.", + SerializedName = @"rolesAppliedTo", + PossibleTypes = new [] { typeof(string) })] + string[] RolesAppliedTo { get; set; } + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.", + SerializedName = @"settings", + PossibleTypes = new [] { typeof(string) })] + string Setting { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SourceVaultId { get; set; } + /// Specifies the type of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the type of the extension.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; set; } + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.", + SerializedName = @"typeHandlerVersion", + PossibleTypes = new [] { typeof(string) })] + string TypeHandlerVersion { get; set; } + + } + /// Extension Properties. + internal partial interface ICloudServiceExtensionPropertiesInternal + + { + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + bool? AutoUpgradeMinorVersion { get; set; } + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + string ForceUpdateTag { get; set; } + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + string ProtectedSetting { get; set; } + + string ProtectedSettingFromKeyVaultSecretUrl { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } + /// The provisioning state, which only appears in the response. + string ProvisioningState { get; set; } + /// The name of the extension handler publisher. + string Publisher { get; set; } + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + string[] RolesAppliedTo { get; set; } + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + string Setting { get; set; } + /// Resource Id + string SourceVaultId { get; set; } + /// Specifies the type of the extension. + string Type { get; set; } + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + string TypeHandlerVersion { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs new file mode 100644 index 000000000000..73066ccd5fad --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceExtensionProperties.json.cs @@ -0,0 +1,130 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Extension Properties. + public partial class CloudServiceExtensionProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceExtensionProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_protectedSettingsFromKeyVault = If( json?.PropertyT("protectedSettingsFromKeyVault"), out var __jsonProtectedSettingsFromKeyVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReference.FromJson(__jsonProtectedSettingsFromKeyVault) : ProtectedSettingsFromKeyVault;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_autoUpgradeMinorVersion = If( json?.PropertyT("autoUpgradeMinorVersion"), out var __jsonAutoUpgradeMinorVersion) ? (bool?)__jsonAutoUpgradeMinorVersion : AutoUpgradeMinorVersion;} + {_forceUpdateTag = If( json?.PropertyT("forceUpdateTag"), out var __jsonForceUpdateTag) ? (string)__jsonForceUpdateTag : (string)ForceUpdateTag;} + {_protectedSetting = If( json?.PropertyT("protectedSettings"), out var __jsonProtectedSettings) ? (string)__jsonProtectedSettings : (string)ProtectedSetting;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_publisher = If( json?.PropertyT("publisher"), out var __jsonPublisher) ? (string)__jsonPublisher : (string)Publisher;} + {_rolesAppliedTo = If( json?.PropertyT("rolesAppliedTo"), out var __jsonRolesAppliedTo) ? If( __jsonRolesAppliedTo as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : RolesAppliedTo;} + {_setting = If( json?.PropertyT("settings"), out var __jsonSettings) ? (string)__jsonSettings : (string)Setting;} + {_typeHandlerVersion = If( json?.PropertyT("typeHandlerVersion"), out var __jsonTypeHandlerVersion) ? (string)__jsonTypeHandlerVersion : (string)TypeHandlerVersion;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceExtensionProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._protectedSettingsFromKeyVault ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._protectedSettingsFromKeyVault.ToJson(null,serializationMode) : null, "protectedSettingsFromKeyVault" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._autoUpgradeMinorVersion ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._autoUpgradeMinorVersion) : null, "autoUpgradeMinorVersion" ,container.Add ); + AddIf( null != (((object)this._forceUpdateTag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._forceUpdateTag.ToString()) : null, "forceUpdateTag" ,container.Add ); + AddIf( null != (((object)this._protectedSetting)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._protectedSetting.ToString()) : null, "protectedSettings" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AddIf( null != (((object)this._publisher)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._publisher.ToString()) : null, "publisher" ,container.Add ); + if (null != this._rolesAppliedTo) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._rolesAppliedTo ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("rolesAppliedTo",__w); + } + AddIf( null != (((object)this._setting)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._setting.ToString()) : null, "settings" ,container.Add ); + AddIf( null != (((object)this._typeHandlerVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._typeHandlerVersion.ToString()) : null, "typeHandlerVersion" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs new file mode 100644 index 000000000000..eda4baef3db3 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// InstanceView of CloudService as a whole + [System.ComponentModel.TypeConverter(typeof(CloudServiceInstanceViewTypeConverter))] + public partial class CloudServiceInstanceView + { + + /// + /// 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 CloudServiceInstanceView(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceInstanceView(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstance, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummaryTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion = (string) content.GetValueForProperty("SdkVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).SdkVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("RoleInstanceStatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal)this).RoleInstanceStatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceInstanceView(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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceInstanceView(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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InstanceView of CloudService as a whole + [System.ComponentModel.TypeConverter(typeof(CloudServiceInstanceViewTypeConverter))] + public partial interface ICloudServiceInstanceView + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs new file mode 100644 index 000000000000..84475e32b798 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceInstanceViewTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceInstanceView.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceInstanceView.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceInstanceView.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs new file mode 100644 index 000000000000..02afc5306d57 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// InstanceView of CloudService as a whole + public partial class CloudServiceInstanceView : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal + { + + /// Internal Acessors for RoleInstance + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary()); set { {_roleInstance = value;} } } + + /// Internal Acessors for RoleInstanceStatusesSummary + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary = value; } + + /// Internal Acessors for SdkVersion + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.SdkVersion { get => this._sdkVersion; set { {_sdkVersion = value;} } } + + /// Internal Acessors for Statuses + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary _roleInstance; + + /// Instance view statuses. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary RoleInstance { get => (this._roleInstance = this._roleInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary()); set => this._roleInstance = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)RoleInstance).StatusesSummary; } + + /// Backing field for property. + private string _sdkVersion; + + /// + /// The version of the SDK that was used to generate the package for the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string SdkVersion { get => this._sdkVersion; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] _statuses; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } + + /// Creates an new instance. + public CloudServiceInstanceView() + { + + } + } + /// InstanceView of CloudService as a whole + public partial interface ICloudServiceInstanceView : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statusesSummary", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get; } + /// + /// The version of the SDK that was used to generate the package for the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version of the SDK that was used to generate the package for the cloud service.", + SerializedName = @"sdkVersion", + PossibleTypes = new [] { typeof(string) })] + string SdkVersion { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statuses", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; } + + } + /// InstanceView of CloudService as a whole + internal partial interface ICloudServiceInstanceViewInternal + + { + /// Instance view statuses. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary RoleInstance { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] RoleInstanceStatusesSummary { get; set; } + /// + /// The version of the SDK that was used to generate the package for the cloud service. + /// + string SdkVersion { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs new file mode 100644 index 000000000000..0d9c3dbd30a1 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceInstanceView.json.cs @@ -0,0 +1,119 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// InstanceView of CloudService as a whole + public partial class CloudServiceInstanceView + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceInstanceView(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_roleInstance = If( json?.PropertyT("roleInstance"), out var __jsonRoleInstance) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceViewStatusesSummary.FromJson(__jsonRoleInstance) : RoleInstance;} + {_sdkVersion = If( json?.PropertyT("sdkVersion"), out var __jsonSdkVersion) ? (string)__jsonSdkVersion : (string)SdkVersion;} + {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus.FromJson(__u) )) ))() : null : Statuses;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceInstanceView(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._roleInstance ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._roleInstance.ToJson(null,serializationMode) : null, "roleInstance" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._sdkVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._sdkVersion.ToString()) : null, "sdkVersion" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._statuses) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._statuses ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("statuses",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs new file mode 100644 index 000000000000..bb8a563f1979 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceListResultTypeConverter))] + public partial class CloudServiceListResult + { + + /// + /// 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 CloudServiceListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceListResultTypeConverter))] + public partial interface ICloudServiceListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs new file mode 100644 index 000000000000..86236fd55240 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceListResult.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs new file mode 100644 index 000000000000..fe2793d1ac0c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public CloudServiceListResult() + { + + } + } + public partial interface ICloudServiceListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get; set; } + + } + internal partial interface ICloudServiceListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs new file mode 100644 index 000000000000..cac2831008e5 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceListResult + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CloudService.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.CloudService.Models.Api20201001Preview.ICloudService) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs new file mode 100644 index 000000000000..dd92da352a9f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Network Profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceNetworkProfileTypeConverter))] + public partial class CloudServiceNetworkProfile + { + + /// + /// 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 CloudServiceNetworkProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceNetworkProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[]) content.GetValueForProperty("LoadBalancerConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).LoadBalancerConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SwappableCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal)this).SwappableCloudService, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + 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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceNetworkProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceNetworkProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network Profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceNetworkProfileTypeConverter))] + public partial interface ICloudServiceNetworkProfile + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs new file mode 100644 index 000000000000..db4cc96c04a2 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceNetworkProfileTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceNetworkProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceNetworkProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceNetworkProfile.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs new file mode 100644 index 000000000000..d9cf0a651a9d --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.cs @@ -0,0 +1,62 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Network Profile for the cloud service. + public partial class CloudServiceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfileInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] _loadBalancerConfiguration; + + /// The list of load balancer configurations for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get => this._loadBalancerConfiguration; set => this._loadBalancerConfiguration = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _swappableCloudService; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get => (this._swappableCloudService = this._swappableCloudService ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._swappableCloudService = value; } + + /// Creates an new instance. + public CloudServiceNetworkProfile() + { + + } + } + /// Network Profile for the cloud service. + public partial interface ICloudServiceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The list of load balancer configurations for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of load balancer configurations for the cloud service.", + SerializedName = @"loadBalancerConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"swappableCloudService", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get; set; } + + } + /// Network Profile for the cloud service. + internal partial interface ICloudServiceNetworkProfileInternal + + { + /// The list of load balancer configurations for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration[] LoadBalancerConfiguration { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SwappableCloudService { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs new file mode 100644 index 000000000000..dd3fd56a42df --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceNetworkProfile.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Network Profile for the cloud service. + public partial class CloudServiceNetworkProfile + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceNetworkProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_loadBalancerConfiguration = If( json?.PropertyT("loadBalancerConfigurations"), out var __jsonLoadBalancerConfigurations) ? If( __jsonLoadBalancerConfigurations as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration.FromJson(__u) )) ))() : null : LoadBalancerConfiguration;} + {_swappableCloudService = If( json?.PropertyT("swappableCloudService"), out var __jsonSwappableCloudService) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSwappableCloudService) : SwappableCloudService;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceNetworkProfile(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._loadBalancerConfiguration) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._loadBalancerConfiguration ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("loadBalancerConfigurations",__w); + } + AddIf( null != this._swappableCloudService ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._swappableCloudService.ToJson(null,serializationMode) : null, "swappableCloudService" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs new file mode 100644 index 000000000000..2e0173bc7acb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the OS profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceOSProfileTypeConverter))] + public partial class CloudServiceOSProfile + { + + /// + /// 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 CloudServiceOSProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroupTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceOSProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[]) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal)this).Secret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroupTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceOSProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceOSProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the OS profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceOSProfileTypeConverter))] + public partial interface ICloudServiceOSProfile + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs new file mode 100644 index 000000000000..ddaddf25bfed --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceOSProfileTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceOSProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceOSProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceOSProfile.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs new file mode 100644 index 000000000000..c6497982c5a8 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the OS profile for the cloud service. + public partial class CloudServiceOSProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfileInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] _secret; + + /// Specifies set of certificates that should be installed onto the role instances. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get => this._secret; set => this._secret = value; } + + /// Creates an new instance. + public CloudServiceOSProfile() + { + + } + } + /// Describes the OS profile for the cloud service. + public partial interface ICloudServiceOSProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies set of certificates that should be installed onto the role instances. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies set of certificates that should be installed onto the role instances.", + SerializedName = @"secrets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get; set; } + + } + /// Describes the OS profile for the cloud service. + internal partial interface ICloudServiceOSProfileInternal + + { + /// Specifies set of certificates that should be installed onto the role instances. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup[] Secret { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs new file mode 100644 index 000000000000..7b7dbd2aa246 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceOSProfile.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the OS profile for the cloud service. + public partial class CloudServiceOSProfile + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceOSProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_secret = If( json?.PropertyT("secrets"), out var __jsonSecrets) ? If( __jsonSecrets as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup.FromJson(__u) )) ))() : null : Secret;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceOSProfile(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._secret) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._secret ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("secrets",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs new file mode 100644 index 000000000000..89c3d1646fcb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.PowerShell.cs @@ -0,0 +1,153 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Cloud service properties + [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] + public partial class CloudServiceProperties + { + + /// + /// 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 CloudServiceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).Configuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl = (string) content.GetValueForProperty("ConfigurationUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ConfigurationUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) content.GetValueForProperty("ExtensionProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) content.GetValueForProperty("OSProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).OSProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl = (string) content.GetValueForProperty("PackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).PackageUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) content.GetValueForProperty("RoleProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).RoleProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService = (bool?) content.GetValueForProperty("StartCloudService",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).StartCloudService, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode?) content.GetValueForProperty("UpgradeMode",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal)this).UpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode.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.CloudService.Models.Api20201001Preview.ICloudServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Cloud service properties + [System.ComponentModel.TypeConverter(typeof(CloudServicePropertiesTypeConverter))] + public partial interface ICloudServiceProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs new file mode 100644 index 000000000000..9096e1ebe23e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServicePropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceProperties.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs new file mode 100644 index 000000000000..b6725739fe68 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.cs @@ -0,0 +1,284 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Cloud service properties + public partial class CloudServiceProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal + { + + /// Backing field for property. + private string _configuration; + + /// Specifies the XML service configuration (.cscfg) for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Configuration { get => this._configuration; set => this._configuration = value; } + + /// Backing field for property. + private string _configurationUrl; + + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ConfigurationUrl { get => this._configurationUrl; set => this._configurationUrl = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile _extensionProfile; + + /// Describes a cloud service extension profile. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => (this._extensionProfile = this._extensionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfile()); set => this._extensionProfile = value; } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for UniqueId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServicePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile _networkProfile; + + /// Network Profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfile()); set => this._networkProfile = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile _oSProfile; + + /// Describes the OS profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => (this._oSProfile = this._oSProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfile()); set => this._oSProfile = value; } + + /// Backing field for property. + private string _packageUrl; + + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string PackageUrl { get => this._packageUrl; set => this._packageUrl = value; } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile _roleProfile; + + /// Describes the role profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => (this._roleProfile = this._roleProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfile()); set => this._roleProfile = value; } + + /// Backing field for property. + private bool? _startCloudService; + + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public bool? StartCloudService { get => this._startCloudService; set => this._startCloudService = value; } + + /// Backing field for property. + private string _uniqueId; + + /// The unique identifier for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string UniqueId { get => this._uniqueId; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? _upgradeMode; + + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get => this._upgradeMode; set => this._upgradeMode = value; } + + /// Creates an new instance. + public CloudServiceProperties() + { + + } + } + /// Cloud service properties + public partial interface ICloudServiceProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies the XML service configuration (.cscfg) for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the XML service configuration (.cscfg) for the cloud service.", + SerializedName = @"configuration", + PossibleTypes = new [] { typeof(string) })] + string Configuration { get; set; } + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + This is a write-only property and is not returned in GET calls.", + SerializedName = @"configurationUrl", + PossibleTypes = new [] { typeof(string) })] + string ConfigurationUrl { get; set; } + /// Describes a cloud service extension profile. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes a cloud service extension profile.", + SerializedName = @"extensionProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + /// Network Profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Network Profile for the cloud service.", + SerializedName = @"networkProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + /// Describes the OS profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the OS profile for the cloud service.", + SerializedName = @"osProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + This is a write-only property and is not returned in GET calls.", + SerializedName = @"packageUrl", + PossibleTypes = new [] { typeof(string) })] + string PackageUrl { get; set; } + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state, which only appears in the response.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// Describes the role profile for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the role profile for the cloud service.", + SerializedName = @"roleProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.", + SerializedName = @"startCloudService", + PossibleTypes = new [] { typeof(bool) })] + bool? StartCloudService { get; set; } + /// The unique identifier for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique identifier for the cloud service.", + SerializedName = @"uniqueId", + PossibleTypes = new [] { typeof(string) })] + string UniqueId { get; } + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. + Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.", + SerializedName = @"upgradeMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get; set; } + + } + /// Cloud service properties + internal partial interface ICloudServicePropertiesInternal + + { + /// Specifies the XML service configuration (.cscfg) for the cloud service. + string Configuration { get; set; } + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + string ConfigurationUrl { get; set; } + /// Describes a cloud service extension profile. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get; set; } + /// Network Profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get; set; } + /// Describes the OS profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get; set; } + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + string PackageUrl { get; set; } + /// The provisioning state, which only appears in the response. + string ProvisioningState { get; set; } + /// Describes the role profile for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get; set; } + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff + /// until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is + /// poweredoff. + /// + bool? StartCloudService { get; set; } + /// The unique identifier for the cloud service. + string UniqueId { get; set; } + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are

**Auto**

**Manual**

**Simultaneous**

+ /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If + /// set to Auto, the update is automatically applied to each update domain in sequence. + ///
+ Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode? UpgradeMode { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs new file mode 100644 index 000000000000..d3ce121214a6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceProperties.json.cs @@ -0,0 +1,127 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Cloud service properties + public partial class CloudServiceProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? (string)__jsonConfiguration : (string)Configuration;} + {_configurationUrl = If( json?.PropertyT("configurationUrl"), out var __jsonConfigurationUrl) ? (string)__jsonConfigurationUrl : (string)ConfigurationUrl;} + {_extensionProfile = If( json?.PropertyT("extensionProfile"), out var __jsonExtensionProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProfile.FromJson(__jsonExtensionProfile) : ExtensionProfile;} + {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} + {_oSProfile = If( json?.PropertyT("osProfile"), out var __jsonOSProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceOSProfile.FromJson(__jsonOSProfile) : OSProfile;} + {_packageUrl = If( json?.PropertyT("packageUrl"), out var __jsonPackageUrl) ? (string)__jsonPackageUrl : (string)PackageUrl;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_roleProfile = If( json?.PropertyT("roleProfile"), out var __jsonRoleProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfile.FromJson(__jsonRoleProfile) : RoleProfile;} + {_startCloudService = If( json?.PropertyT("startCloudService"), out var __jsonStartCloudService) ? (bool?)__jsonStartCloudService : StartCloudService;} + {_uniqueId = If( json?.PropertyT("uniqueId"), out var __jsonUniqueId) ? (string)__jsonUniqueId : (string)UniqueId;} + {_upgradeMode = If( json?.PropertyT("upgradeMode"), out var __jsonUpgradeMode) ? (string)__jsonUpgradeMode : (string)UpgradeMode;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._configuration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._configuration.ToString()) : null, "configuration" ,container.Add ); + AddIf( null != (((object)this._configurationUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._configurationUrl.ToString()) : null, "configurationUrl" ,container.Add ); + AddIf( null != this._extensionProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._extensionProfile.ToJson(null,serializationMode) : null, "extensionProfile" ,container.Add ); + AddIf( null != this._networkProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._networkProfile.ToJson(null,serializationMode) : null, "networkProfile" ,container.Add ); + AddIf( null != this._oSProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._oSProfile.ToJson(null,serializationMode) : null, "osProfile" ,container.Add ); + AddIf( null != (((object)this._packageUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._packageUrl.ToString()) : null, "packageUrl" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AddIf( null != this._roleProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._roleProfile.ToJson(null,serializationMode) : null, "roleProfile" ,container.Add ); + AddIf( null != this._startCloudService ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonBoolean((bool)this._startCloudService) : null, "startCloudService" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uniqueId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._uniqueId.ToString()) : null, "uniqueId" ,container.Add ); + } + AddIf( null != (((object)this._upgradeMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._upgradeMode.ToString()) : null, "upgradeMode" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs new file mode 100644 index 000000000000..ae96dd7506d5 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.PowerShell.cs @@ -0,0 +1,151 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a role of the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleTypeConverter))] + public partial class CloudServiceRole + { + + /// + /// 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 CloudServiceRole(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRolePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier, 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 CloudServiceRole(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRolePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).UniqueId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal)this).SkuTier, 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.CloudService.Models.Api20201001Preview.ICloudServiceRole DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRole(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.CloudService.Models.Api20201001Preview.ICloudServiceRole DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRole(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.CloudService.Models.Api20201001Preview.ICloudServiceRole FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a role of the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleTypeConverter))] + public partial interface ICloudServiceRole + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs new file mode 100644 index 000000000000..7b53bc96f28b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRoleTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRole ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRole.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRole.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRole.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs new file mode 100644 index 000000000000..4f8bca01ecac --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.cs @@ -0,0 +1,206 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a role of the cloud service. + public partial class CloudServiceRole : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal + { + + /// Backing field for property. + private string _id; + + /// Resource id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Backing field for property. + private string _location; + + /// Resource location + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Location { get => this._location; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Location + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Location { get => this._location; set { {_location = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties()); set { {_property = value;} } } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set { {_sku = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.Type { get => this._type; set { {_type = value;} } } + + /// Internal Acessors for UniqueId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleInternal.UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId = value; } + + /// Backing field for property. + private string _name; + + /// Resource name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties _property; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku _sku; + + /// Describes the cloud service role sku. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set => this._sku = value; } + + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity = value; } + + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name = value; } + + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier = value; } + + /// Backing field for property. + private string _type; + + /// Resource type + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Specifies the ID which uniquely identifies a cloud service role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string UniqueId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)Property).UniqueId; } + + /// Creates an new instance. + public CloudServiceRole() + { + + } + } + /// Describes a role of the cloud service. + public partial interface ICloudServiceRole : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource location + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource location", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; } + /// Resource name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the number of role instances in the cloud service.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(long) })] + long? SkuCapacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + string SkuTier { get; set; } + /// Resource type + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// Specifies the ID which uniquely identifies a cloud service role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the ID which uniquely identifies a cloud service role.", + SerializedName = @"uniqueId", + PossibleTypes = new [] { typeof(string) })] + string UniqueId { get; } + + } + /// Describes a role of the cloud service. + internal partial interface ICloudServiceRoleInternal + + { + /// Resource id + string Id { get; set; } + /// Resource location + string Location { get; set; } + /// Resource name + string Name { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties Property { get; set; } + /// Describes the cloud service role sku. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get; set; } + /// Specifies the number of role instances in the cloud service. + long? SkuCapacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + string SkuName { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ string SkuTier { get; set; } + /// Resource type + string Type { get; set; } + /// Specifies the ID which uniquely identifies a cloud service role. + string UniqueId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs new file mode 100644 index 000000000000..a9488c3a5a5c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRole.json.cs @@ -0,0 +1,123 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a role of the cloud service. + public partial class CloudServiceRole + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRole(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRole(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs new file mode 100644 index 000000000000..0419f9de9810 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleListResultTypeConverter))] + public partial class CloudServiceRoleListResult + { + + /// + /// 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 CloudServiceRoleListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceRoleListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRoleListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRoleListResult(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleListResultTypeConverter))] + public partial interface ICloudServiceRoleListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs new file mode 100644 index 000000000000..e747d60dc0d1 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRoleListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRoleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRoleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRoleListResult.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs new file mode 100644 index 000000000000..4d75e8a7c5ee --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceRoleListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public CloudServiceRoleListResult() + { + + } + } + public partial interface ICloudServiceRoleListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get; set; } + + } + internal partial interface ICloudServiceRoleListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRole[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs new file mode 100644 index 000000000000..148a001b313b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceRoleListResult + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRoleListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRole) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRole.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs new file mode 100644 index 000000000000..e19f7d157c22 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the role profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleProfileTypeConverter))] + public partial class CloudServiceRoleProfile + { + + /// + /// 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 CloudServiceRoleProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfilePropertiesTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceRoleProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfilePropertiesTypeConverter.ConvertFrom)); + 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRoleProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRoleProfile(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the role profile for the cloud service. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleProfileTypeConverter))] + public partial interface ICloudServiceRoleProfile + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs new file mode 100644 index 000000000000..c75faebf105c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRoleProfileTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRoleProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRoleProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRoleProfile.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs new file mode 100644 index 000000000000..047f65739cf3 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the role profile for the cloud service. + public partial class CloudServiceRoleProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] _role; + + /// List of roles for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get => this._role; set => this._role = value; } + + /// Creates an new instance. + public CloudServiceRoleProfile() + { + + } + } + /// Describes the role profile for the cloud service. + public partial interface ICloudServiceRoleProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// List of roles for the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of roles for the cloud service.", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get; set; } + + } + /// Describes the role profile for the cloud service. + internal partial interface ICloudServiceRoleProfileInternal + + { + /// List of roles for the cloud service. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties[] Role { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs new file mode 100644 index 000000000000..c3d4243d025e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfile.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the role profile for the cloud service. + public partial class CloudServiceRoleProfile + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRoleProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties.FromJson(__u) )) ))() : null : Role;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProfile(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("roles",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs new file mode 100644 index 000000000000..bca82606b70f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the role properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleProfilePropertiesTypeConverter))] + public partial class CloudServiceRoleProfileProperties + { + + /// + /// 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 CloudServiceRoleProfileProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, 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 CloudServiceRoleProfileProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity = (long?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuCapacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal)this).SkuTier, 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRoleProfileProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRoleProfileProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the role properties. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleProfilePropertiesTypeConverter))] + public partial interface ICloudServiceRoleProfileProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs new file mode 100644 index 000000000000..dffafcc564c9 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRoleProfilePropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRoleProfileProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRoleProfileProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRoleProfileProperties.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs new file mode 100644 index 000000000000..74c1a6fde986 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.cs @@ -0,0 +1,120 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the role properties. + public partial class CloudServiceRoleProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal + { + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfilePropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set { {_sku = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku _sku; + + /// Describes the cloud service role sku. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku()); set => this._sku = value; } + + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] + public long? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Capacity = value; } + + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Name = value; } + + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)Sku).Tier = value; } + + /// Creates an new instance. + public CloudServiceRoleProfileProperties() + { + + } + } + /// Describes the role properties. + public partial interface ICloudServiceRoleProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the number of role instances in the cloud service.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(long) })] + long? SkuCapacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + string SkuTier { get; set; } + + } + /// Describes the role properties. + internal partial interface ICloudServiceRoleProfilePropertiesInternal + + { + /// Resource name. + string Name { get; set; } + /// Describes the cloud service role sku. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku Sku { get; set; } + /// Specifies the number of role instances in the cloud service. + long? SkuCapacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + string SkuName { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ string SkuTier { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs new file mode 100644 index 000000000000..ddf0bfc44d4a --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProfileProperties.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the role properties. + public partial class CloudServiceRoleProfileProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRoleProfileProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleSku.FromJson(__jsonSku) : Sku;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfileProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProfileProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs new file mode 100644 index 000000000000..6b7a8f3add23 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceRolePropertiesTypeConverter))] + public partial class CloudServiceRoleProperties + { + + /// + /// 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 CloudServiceRoleProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId, 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 CloudServiceRoleProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal)this).UniqueId, 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRoleProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRoleProperties(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceRolePropertiesTypeConverter))] + public partial interface ICloudServiceRoleProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs new file mode 100644 index 000000000000..d252b62a25ec --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRolePropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRoleProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRoleProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRoleProperties.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs new file mode 100644 index 000000000000..b5c0d224266d --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceRoleProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal + { + + /// Internal Acessors for UniqueId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRolePropertiesInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + + /// Backing field for property. + private string _uniqueId; + + /// Specifies the ID which uniquely identifies a cloud service role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string UniqueId { get => this._uniqueId; } + + /// Creates an new instance. + public CloudServiceRoleProperties() + { + + } + } + public partial interface ICloudServiceRoleProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies the ID which uniquely identifies a cloud service role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the ID which uniquely identifies a cloud service role.", + SerializedName = @"uniqueId", + PossibleTypes = new [] { typeof(string) })] + string UniqueId { get; } + + } + internal partial interface ICloudServiceRolePropertiesInternal + + { + /// Specifies the ID which uniquely identifies a cloud service role. + string UniqueId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs new file mode 100644 index 000000000000..ca7ee28fcd1b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleProperties.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceRoleProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRoleProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uniqueId = If( json?.PropertyT("uniqueId"), out var __jsonUniqueId) ? (string)__jsonUniqueId : (string)UniqueId;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uniqueId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._uniqueId.ToString()) : null, "uniqueId" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs new file mode 100644 index 000000000000..bf570c5d1557 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the cloud service role sku. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleSkuTypeConverter))] + public partial class CloudServiceRoleSku + { + + /// + /// 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 CloudServiceRoleSku(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier, 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 CloudServiceRoleSku(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity = (long?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Capacity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal)this).Tier, 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceRoleSku(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceRoleSku(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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the cloud service role sku. + [System.ComponentModel.TypeConverter(typeof(CloudServiceRoleSkuTypeConverter))] + public partial interface ICloudServiceRoleSku + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs new file mode 100644 index 000000000000..32f04327c9d7 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceRoleSkuTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceRoleSku.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceRoleSku.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceRoleSku.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs new file mode 100644 index 000000000000..cc01653c0ef4 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.cs @@ -0,0 +1,95 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the cloud service role sku. + public partial class CloudServiceRoleSku : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSkuInternal + { + + /// Backing field for property. + private long? _capacity; + + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public long? Capacity { get => this._capacity; set => this._capacity = value; } + + /// Backing field for property. + private string _name; + + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _tier; + + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Tier { get => this._tier; set => this._tier = value; } + + /// Creates an new instance. + public CloudServiceRoleSku() + { + + } + } + /// Describes the cloud service role sku. + public partial interface ICloudServiceRoleSku : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Specifies the number of role instances in the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the number of role instances in the cloud service.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(long) })] + long? Capacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + string Tier { get; set; } + + } + /// Describes the cloud service role sku. + internal partial interface ICloudServiceRoleSkuInternal + + { + /// Specifies the number of role instances in the cloud service. + long? Capacity { get; set; } + /// + /// The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete + /// and recreate the cloud service or move back to the old sku. + /// + string Name { get; set; } + /// + /// Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + ///
+ string Tier { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs new file mode 100644 index 000000000000..d298a7ebb5c2 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceRoleSku.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the cloud service role sku. + public partial class CloudServiceRoleSku + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceRoleSku(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_capacity = If( json?.PropertyT("capacity"), out var __jsonCapacity) ? (long?)__jsonCapacity : Capacity;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceRoleSku(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._capacity ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((long)this._capacity) : null, "capacity" ,container.Add ); + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs new file mode 100644 index 000000000000..603a804ea851 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTagsTypeConverter))] + public partial class CloudServiceTags + { + + /// + /// 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 CloudServiceTags(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 CloudServiceTags(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); + } + + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceTags(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.CloudService.Models.Api20201001Preview.ICloudServiceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceTags(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.CloudService.Models.Api20201001Preview.ICloudServiceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(CloudServiceTagsTypeConverter))] + public partial interface ICloudServiceTags + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs new file mode 100644 index 000000000000..cabdc69fddda --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceTagsTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceTags.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs new file mode 100644 index 000000000000..3f3d63ac7ebf --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags. + public partial class CloudServiceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTagsInternal + { + + /// Creates an new instance. + public CloudServiceTags() + { + + } + } + /// Resource tags. + public partial interface ICloudServiceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface ICloudServiceTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs new file mode 100644 index 000000000000..8305af77eb22 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs new file mode 100644 index 000000000000..35d320c98ba9 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags. + public partial class CloudServiceTags + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + /// + internal CloudServiceTags(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs new file mode 100644 index 000000000000..6c5a7e5a1fc6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceUpdateTypeConverter))] + public partial class CloudServiceUpdate + { + + /// + /// 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 CloudServiceUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTagsTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTagsTypeConverter.ConvertFrom); + 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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceUpdate(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceUpdate(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceUpdateTypeConverter))] + public partial interface ICloudServiceUpdate + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs new file mode 100644 index 000000000000..d3322c0a0611 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceUpdateTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceUpdate.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs new file mode 100644 index 000000000000..c97e79b0ae77 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceUpdate : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags _tag; + + /// Resource tags + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public CloudServiceUpdate() + { + + } + } + public partial interface ICloudServiceUpdate : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource tags + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get; set; } + + } + internal partial interface ICloudServiceUpdateInternal + + { + /// Resource tags + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs new file mode 100644 index 000000000000..0f8fa6aa9e14 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdate.json.cs @@ -0,0 +1,100 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceUpdate + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceUpdate(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs new file mode 100644 index 000000000000..c285ff39da7f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Resource tags + [System.ComponentModel.TypeConverter(typeof(CloudServiceUpdateTagsTypeConverter))] + public partial class CloudServiceUpdateTags + { + + /// + /// 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 CloudServiceUpdateTags(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 CloudServiceUpdateTags(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); + } + + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceUpdateTags(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceUpdateTags(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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resource tags + [System.ComponentModel.TypeConverter(typeof(CloudServiceUpdateTagsTypeConverter))] + public partial interface ICloudServiceUpdateTags + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs new file mode 100644 index 000000000000..b452b742c445 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceUpdateTagsTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceUpdateTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceUpdateTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceUpdateTags.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs new file mode 100644 index 000000000000..7a5cb0839b03 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags + public partial class CloudServiceUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTagsInternal + { + + /// Creates an new instance. + public CloudServiceUpdateTags() + { + + } + } + /// Resource tags + public partial interface ICloudServiceUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + + } + /// Resource tags + internal partial interface ICloudServiceUpdateTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs new file mode 100644 index 000000000000..4490517ab8cd --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceUpdateTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs new file mode 100644 index 000000000000..daa3be919a88 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceUpdateTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags + public partial class CloudServiceUpdateTags + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + /// + internal CloudServiceUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceUpdateTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs new file mode 100644 index 000000000000..100088504726 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultAndSecretReferenceTypeConverter))] + public partial class CloudServiceVaultAndSecretReference + { + + /// + /// 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 CloudServiceVaultAndSecretReference(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, 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 CloudServiceVaultAndSecretReference(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl = (string) content.GetValueForProperty("SecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceVaultAndSecretReference(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceVaultAndSecretReference(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultAndSecretReferenceTypeConverter))] + public partial interface ICloudServiceVaultAndSecretReference + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs new file mode 100644 index 000000000000..2a8698571440 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceVaultAndSecretReferenceTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceVaultAndSecretReference.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceVaultAndSecretReference.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceVaultAndSecretReference.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs new file mode 100644 index 000000000000..3c2377787e5e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.cs @@ -0,0 +1,65 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceVaultAndSecretReference : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal + { + + /// Internal Acessors for SourceVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReferenceInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_sourceVault = value;} } } + + /// Backing field for property. + private string _secretUrl; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string SecretUrl { get => this._secretUrl; set => this._secretUrl = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _sourceVault; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._sourceVault = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id = value; } + + /// Creates an new instance. + public CloudServiceVaultAndSecretReference() + { + + } + } + public partial interface ICloudServiceVaultAndSecretReference : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"secretUrl", + PossibleTypes = new [] { typeof(string) })] + string SecretUrl { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SourceVaultId { get; set; } + + } + internal partial interface ICloudServiceVaultAndSecretReferenceInternal + + { + string SecretUrl { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get; set; } + /// Resource Id + string SourceVaultId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs new file mode 100644 index 000000000000..54d6c4b28e68 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultAndSecretReference.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceVaultAndSecretReference + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceVaultAndSecretReference(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSourceVault) : SourceVault;} + {_secretUrl = If( json?.PropertyT("secretUrl"), out var __jsonSecretUrl) ? (string)__jsonSecretUrl : (string)SecretUrl;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultAndSecretReference(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sourceVault ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._sourceVault.ToJson(null,serializationMode) : null, "sourceVault" ,container.Add ); + AddIf( null != (((object)this._secretUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._secretUrl.ToString()) : null, "secretUrl" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs new file mode 100644 index 000000000000..ab5d76d2d08e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + /// + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultCertificateTypeConverter))] + public partial class CloudServiceVaultCertificate + { + + /// + /// 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 CloudServiceVaultCertificate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl, 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 CloudServiceVaultCertificate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl = (string) content.GetValueForProperty("CertificateUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal)this).CertificateUrl, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceVaultCertificate(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceVaultCertificate(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultCertificateTypeConverter))] + public partial interface ICloudServiceVaultCertificate + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs new file mode 100644 index 000000000000..44096f42431b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceVaultCertificateTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceVaultCertificate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceVaultCertificate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceVaultCertificate.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs new file mode 100644 index 000000000000..fb9ba5f9c9fb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.cs @@ -0,0 +1,54 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + /// + public partial class CloudServiceVaultCertificate : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificateInternal + { + + /// Backing field for property. + private string _certificateUrl; + + /// + /// This is the URL of a certificate that has been uploaded to Key Vault as a secret. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string CertificateUrl { get => this._certificateUrl; set => this._certificateUrl = value; } + + /// Creates an new instance. + public CloudServiceVaultCertificate() + { + + } + } + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + public partial interface ICloudServiceVaultCertificate : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// This is the URL of a certificate that has been uploaded to Key Vault as a secret. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This is the URL of a certificate that has been uploaded to Key Vault as a secret.", + SerializedName = @"certificateUrl", + PossibleTypes = new [] { typeof(string) })] + string CertificateUrl { get; set; } + + } + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + internal partial interface ICloudServiceVaultCertificateInternal + + { + /// + /// This is the URL of a certificate that has been uploaded to Key Vault as a secret. + /// + string CertificateUrl { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs new file mode 100644 index 000000000000..c8a1399369eb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultCertificate.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + /// + public partial class CloudServiceVaultCertificate + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceVaultCertificate(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_certificateUrl = If( json?.PropertyT("certificateUrl"), out var __jsonCertificateUrl) ? (string)__jsonCertificateUrl : (string)CertificateUrl;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultCertificate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._certificateUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._certificateUrl.ToString()) : null, "certificateUrl" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs new file mode 100644 index 000000000000..21fac065b726 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a set of certificates which are all in the same Key Vault. + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultSecretGroupTypeConverter))] + public partial class CloudServiceVaultSecretGroup + { + + /// + /// 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 CloudServiceVaultSecretGroup(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, 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 CloudServiceVaultSecretGroup(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("SourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[]) content.GetValueForProperty("VaultCertificate",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).VaultCertificate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificateTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal)this).SourceVaultId, 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceVaultSecretGroup(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceVaultSecretGroup(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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a set of certificates which are all in the same Key Vault. + [System.ComponentModel.TypeConverter(typeof(CloudServiceVaultSecretGroupTypeConverter))] + public partial interface ICloudServiceVaultSecretGroup + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs new file mode 100644 index 000000000000..21e44e7cd536 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceVaultSecretGroupTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceVaultSecretGroup.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceVaultSecretGroup.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceVaultSecretGroup.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/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs new file mode 100644 index 000000000000..f63a4e59adf5 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.cs @@ -0,0 +1,76 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a set of certificates which are all in the same Key Vault. + public partial class CloudServiceVaultSecretGroup : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal + { + + /// Internal Acessors for SourceVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroupInternal.SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_sourceVault = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _sourceVault; + + /// + /// The relative URL of the Key Vault containing all of the certificates in VaultCertificates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get => (this._sourceVault = this._sourceVault ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._sourceVault = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)SourceVault).Id = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] _vaultCertificate; + + /// The list of key vault references in SourceVault which contain certificates. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get => this._vaultCertificate; set => this._vaultCertificate = value; } + + /// Creates an new instance. + public CloudServiceVaultSecretGroup() + { + + } + } + /// Describes a set of certificates which are all in the same Key Vault. + public partial interface ICloudServiceVaultSecretGroup : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SourceVaultId { get; set; } + /// The list of key vault references in SourceVault which contain certificates. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of key vault references in SourceVault which contain certificates.", + SerializedName = @"vaultCertificates", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } + + } + /// Describes a set of certificates which are all in the same Key Vault. + internal partial interface ICloudServiceVaultSecretGroupInternal + + { + /// + /// The relative URL of the Key Vault containing all of the certificates in VaultCertificates. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource SourceVault { get; set; } + /// Resource Id + string SourceVaultId { get; set; } + /// The list of key vault references in SourceVault which contain certificates. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate[] VaultCertificate { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs new file mode 100644 index 000000000000..364ed52e280d --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/CloudServiceVaultSecretGroup.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a set of certificates which are all in the same Key Vault. + public partial class CloudServiceVaultSecretGroup + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceVaultSecretGroup(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sourceVault = If( json?.PropertyT("sourceVault"), out var __jsonSourceVault) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSourceVault) : SourceVault;} + {_vaultCertificate = If( json?.PropertyT("vaultCertificates"), out var __jsonVaultCertificates) ? If( __jsonVaultCertificates as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ICloudServiceVaultCertificate) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultCertificate.FromJson(__u) )) ))() : null : VaultCertificate;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultSecretGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceVaultSecretGroup(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sourceVault ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._sourceVault.ToJson(null,serializationMode) : null, "sourceVault" ,container.Add ); + if (null != this._vaultCertificate) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._vaultCertificate ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("vaultCertificates",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs new file mode 100644 index 000000000000..8fbcd6ad4cf6 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.PowerShell.cs @@ -0,0 +1,159 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service Extension. + [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] + public partial class Extension + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Extension(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.CloudService.Models.Api20201001Preview.IExtension DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Extension(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Extension(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId, 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 Extension(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Publisher, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference) content.GetValueForProperty("ProtectedSettingsFromKeyVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingsFromKeyVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultAndSecretReferenceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion = (bool?) content.GetValueForProperty("AutoUpgradeMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).AutoUpgradeMinorVersion, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag = (string) content.GetValueForProperty("ForceUpdateTag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ForceUpdateTag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting = (string) content.GetValueForProperty("ProtectedSetting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSetting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo = (string[]) content.GetValueForProperty("RolesAppliedTo",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).RolesAppliedTo, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting = (string) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).Setting, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion = (string) content.GetValueForProperty("TypeHandlerVersion",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).TypeHandlerVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("ProtectedSettingFromKeyVaultSourceVault",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSourceVault, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl = (string) content.GetValueForProperty("ProtectedSettingFromKeyVaultSecretUrl",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).ProtectedSettingFromKeyVaultSecretUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId = (string) content.GetValueForProperty("SourceVaultId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal)this).SourceVaultId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service Extension. + [System.ComponentModel.TypeConverter(typeof(ExtensionTypeConverter))] + public partial interface IExtension + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs new file mode 100644 index 000000000000..ddff824ee3dd --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExtensionTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IExtension ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Extension.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Extension.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Extension.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/CloudService/generated/api/Models/Api20201001Preview/Extension.cs b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.cs new file mode 100644 index 000000000000..e5f6adb09143 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.cs @@ -0,0 +1,313 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service Extension. + public partial class Extension : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal + { + + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public bool? AutoUpgradeMinorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).AutoUpgradeMinorVersion = value; } + + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string ForceUpdateTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ForceUpdateTag = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProtectedSettingFromKeyVaultSourceVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProtectedSettingFromKeyVaultSourceVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSourceVault = value; } + + /// Internal Acessors for ProtectedSettingsFromKeyVault + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProtectedSettingsFromKeyVault { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingsFromKeyVault = value; } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtensionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState = value; } + + /// Backing field for property. + private string _name; + + /// The name of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties _property; + + /// Extension Properties. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties()); set => this._property = value; } + + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string ProtectedSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSetting = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string ProtectedSettingFromKeyVaultSecretUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProtectedSettingFromKeyVaultSecretUrl = value; } + + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 4)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).ProvisioningState; } + + /// The name of the extension handler publisher. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Publisher = value; } + + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string[] RolesAppliedTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).RolesAppliedTo = value; } + + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Setting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Setting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Setting = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string SourceVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).SourceVaultId = value; } + + /// Specifies the type of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).Type = value; } + + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] + public string TypeHandlerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionPropertiesInternal)Property).TypeHandlerVersion = value; } + + /// Creates an new instance. + public Extension() + { + + } + } + /// Describes a cloud service Extension. + public partial interface IExtension : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.", + SerializedName = @"autoUpgradeMinorVersion", + PossibleTypes = new [] { typeof(bool) })] + bool? AutoUpgradeMinorVersion { get; set; } + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not", + SerializedName = @"forceUpdateTag", + PossibleTypes = new [] { typeof(string) })] + string ForceUpdateTag { get; set; } + /// The name of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extension.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Protected settings for the extension which are encrypted before sent to the role instance.", + SerializedName = @"protectedSettings", + PossibleTypes = new [] { typeof(string) })] + string ProtectedSetting { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"secretUrl", + PossibleTypes = new [] { typeof(string) })] + string ProtectedSettingFromKeyVaultSecretUrl { get; set; } + /// The provisioning state, which only appears in the response. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state, which only appears in the response.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// The name of the extension handler publisher. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extension handler publisher.", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string Publisher { get; set; } + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.", + SerializedName = @"rolesAppliedTo", + PossibleTypes = new [] { typeof(string) })] + string[] RolesAppliedTo { get; set; } + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.", + SerializedName = @"settings", + PossibleTypes = new [] { typeof(string) })] + string Setting { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SourceVaultId { get; set; } + /// Specifies the type of the extension. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the type of the extension.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; set; } + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.", + SerializedName = @"typeHandlerVersion", + PossibleTypes = new [] { typeof(string) })] + string TypeHandlerVersion { get; set; } + + } + /// Describes a cloud service Extension. + internal partial interface IExtensionInternal + + { + /// + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become + /// available. + /// + bool? AutoUpgradeMinorVersion { get; set; } + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with + /// the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + string ForceUpdateTag { get; set; } + /// The name of the extension. + string Name { get; set; } + /// Extension Properties. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProperties Property { get; set; } + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + string ProtectedSetting { get; set; } + + string ProtectedSettingFromKeyVaultSecretUrl { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource ProtectedSettingFromKeyVaultSourceVault { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } + /// The provisioning state, which only appears in the response. + string ProvisioningState { get; set; } + /// The name of the extension handler publisher. + string Publisher { get; set; } + /// + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied + /// to all roles in the cloud service. + /// + string[] RolesAppliedTo { get; set; } + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension + /// (like RDP), this is the XML setting for the extension. + /// + string Setting { get; set; } + /// Resource Id + string SourceVaultId { get; set; } + /// Specifies the type of the extension. + string Type { get; set; } + /// + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an + /// asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major + /// version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version + /// is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version + /// is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// + string TypeHandlerVersion { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs new file mode 100644 index 000000000000..1e8031ac9201 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/Extension.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service Extension. + public partial class Extension + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal Extension(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceExtensionProperties.FromJson(__jsonProperties) : Property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IExtension FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new Extension(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs new file mode 100644 index 000000000000..bfd435a17a34 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Inner error details. + [System.ComponentModel.TypeConverter(typeof(InnerErrorTypeConverter))] + public partial class InnerError + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InnerError(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.CloudService.Models.Api20201001Preview.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InnerError(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.CloudService.Models.Api20201001Preview.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InnerError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype, 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 InnerError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail = (string) content.GetValueForProperty("Errordetail",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Errordetail, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype = (string) content.GetValueForProperty("Exceptiontype",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal)this).Exceptiontype, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Inner error details. + [System.ComponentModel.TypeConverter(typeof(InnerErrorTypeConverter))] + public partial interface IInnerError + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs new file mode 100644 index 000000000000..c26afbf9f07a --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class InnerErrorTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IInnerError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return InnerError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return InnerError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return InnerError.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/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs new file mode 100644 index 000000000000..a468b718dd7a --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Inner error details. + public partial class InnerError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerErrorInternal + { + + /// Backing field for property. + private string _errordetail; + + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Errordetail { get => this._errordetail; set => this._errordetail = value; } + + /// Backing field for property. + private string _exceptiontype; + + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Exceptiontype { get => this._exceptiontype; set => this._exceptiontype = value; } + + /// Creates an new instance. + public InnerError() + { + + } + } + /// Inner error details. + public partial interface IInnerError : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The internal error message or exception dump. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The internal error message or exception dump.", + SerializedName = @"errordetail", + PossibleTypes = new [] { typeof(string) })] + string Errordetail { get; set; } + /// The exception type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The exception type.", + SerializedName = @"exceptiontype", + PossibleTypes = new [] { typeof(string) })] + string Exceptiontype { get; set; } + + } + /// Inner error details. + internal partial interface IInnerErrorInternal + + { + /// The internal error message or exception dump. + string Errordetail { get; set; } + /// The exception type. + string Exceptiontype { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs new file mode 100644 index 000000000000..ebe6a09b34e8 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InnerError.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Inner error details. + public partial class InnerError + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InnerError(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal InnerError(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_errordetail = If( json?.PropertyT("errordetail"), out var __jsonErrordetail) ? (string)__jsonErrordetail : (string)Errordetail;} + {_exceptiontype = If( json?.PropertyT("exceptiontype"), out var __jsonExceptiontype) ? (string)__jsonExceptiontype : (string)Exceptiontype;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._errordetail)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._errordetail.ToString()) : null, "errordetail" ,container.Add ); + AddIf( null != (((object)this._exceptiontype)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._exceptiontype.ToString()) : null, "exceptiontype" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs new file mode 100644 index 000000000000..55e748e306d8 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(InstanceSkuTypeConverter))] + public partial class InstanceSku + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InstanceSku(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.CloudService.Models.Api20201001Preview.IInstanceSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InstanceSku(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.CloudService.Models.Api20201001Preview.IInstanceSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InstanceSku(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier, 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 InstanceSku(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)this).Tier, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(InstanceSkuTypeConverter))] + public partial interface IInstanceSku + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs new file mode 100644 index 000000000000..a5827dbd944a --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class InstanceSkuTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IInstanceSku ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return InstanceSku.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return InstanceSku.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return InstanceSku.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/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs new file mode 100644 index 000000000000..3612ad25d389 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.cs @@ -0,0 +1,66 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class InstanceSku : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Tier + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal.Tier { get => this._tier; set { {_tier = value;} } } + + /// Backing field for property. + private string _name; + + /// The sku name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _tier; + + /// The tier of the cloud service role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Tier { get => this._tier; } + + /// Creates an new instance. + public InstanceSku() + { + + } + } + public partial interface IInstanceSku : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The sku name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The sku name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The tier of the cloud service role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tier of the cloud service role instance.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + string Tier { get; } + + } + internal partial interface IInstanceSkuInternal + + { + /// The sku name. + string Name { get; set; } + /// The tier of the cloud service role instance. + string Tier { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs new file mode 100644 index 000000000000..841a53e5cb69 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceSku.json.cs @@ -0,0 +1,108 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class InstanceSku + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InstanceSku(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal InstanceSku(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs new file mode 100644 index 000000000000..7402b5de0341 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Instance view statuses. + [System.ComponentModel.TypeConverter(typeof(InstanceViewStatusesSummaryTypeConverter))] + public partial class InstanceViewStatusesSummary + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InstanceViewStatusesSummary(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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InstanceViewStatusesSummary(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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InstanceViewStatusesSummary(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InstanceViewStatusesSummary(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[]) content.GetValueForProperty("StatusesSummary",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal)this).StatusesSummary, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCountTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Instance view statuses. + [System.ComponentModel.TypeConverter(typeof(InstanceViewStatusesSummaryTypeConverter))] + public partial interface IInstanceViewStatusesSummary + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs new file mode 100644 index 000000000000..b4427064f4ef --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class InstanceViewStatusesSummaryTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return InstanceViewStatusesSummary.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return InstanceViewStatusesSummary.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return InstanceViewStatusesSummary.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/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs new file mode 100644 index 000000000000..a19e85c49901 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Instance view statuses. + public partial class InstanceViewStatusesSummary : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal + { + + /// Internal Acessors for StatusesSummary + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummaryInternal.StatusesSummary { get => this._statusesSummary; set { {_statusesSummary = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] _statusesSummary; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get => this._statusesSummary; } + + /// Creates an new instance. + public InstanceViewStatusesSummary() + { + + } + } + /// Instance view statuses. + public partial interface IInstanceViewStatusesSummary : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statusesSummary", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get; } + + } + /// Instance view statuses. + internal partial interface IInstanceViewStatusesSummaryInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount[] StatusesSummary { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs new file mode 100644 index 000000000000..a054219cc933 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/InstanceViewStatusesSummary.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Instance view statuses. + public partial class InstanceViewStatusesSummary + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceViewStatusesSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new InstanceViewStatusesSummary(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal InstanceViewStatusesSummary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_statusesSummary = If( json?.PropertyT("statusesSummary"), out var __jsonStatusesSummary) ? If( __jsonStatusesSummary as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IStatusCodeCount) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.StatusCodeCount.FromJson(__u) )) ))() : null : StatusesSummary;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._statusesSummary) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._statusesSummary ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("statusesSummary",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs new file mode 100644 index 000000000000..54490b4d345e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the load balancer configuration. + [System.ComponentModel.TypeConverter(typeof(LoadBalancerConfigurationTypeConverter))] + public partial class LoadBalancerConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancerConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancerConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancerConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancerConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the load balancer configuration. + [System.ComponentModel.TypeConverter(typeof(LoadBalancerConfigurationTypeConverter))] + public partial interface ILoadBalancerConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..acef26feed8f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancerConfigurationTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancerConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancerConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancerConfiguration.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/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs new file mode 100644 index 000000000000..d2dbbee1e102 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.cs @@ -0,0 +1,74 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the load balancer configuration. + public partial class LoadBalancerConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal + { + + /// List of IP + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)Property).FrontendIPConfiguration = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties()); set { {_property = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties _property; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties()); set => this._property = value; } + + /// Creates an new instance. + public LoadBalancerConfiguration() + { + + } + } + /// Describes the load balancer configuration. + public partial interface ILoadBalancerConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// List of IP + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of IP", + SerializedName = @"frontendIPConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// Describes the load balancer configuration. + internal partial interface ILoadBalancerConfigurationInternal + + { + /// List of IP + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + /// Resource Name + string Name { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs new file mode 100644 index 000000000000..dd2bcc625d36 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfiguration.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the load balancer configuration. + public partial class LoadBalancerConfiguration + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancerConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfigurationProperties.FromJson(__jsonProperties) : Property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs new file mode 100644 index 000000000000..81670b0d4a67 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(LoadBalancerConfigurationPropertiesTypeConverter))] + public partial class LoadBalancerConfigurationProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancerConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancerConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancerConfigurationProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LoadBalancerConfigurationProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[]) content.GetValueForProperty("FrontendIPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal)this).FrontendIPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(LoadBalancerConfigurationPropertiesTypeConverter))] + public partial interface ILoadBalancerConfigurationProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs new file mode 100644 index 000000000000..625d809d8b44 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancerConfigurationPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancerConfigurationProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancerConfigurationProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancerConfigurationProperties.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/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs new file mode 100644 index 000000000000..de5b083ee2d4 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] _frontendIPConfiguration; + + /// List of IP + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get => this._frontendIPConfiguration; set => this._frontendIPConfiguration = value; } + + /// Creates an new instance. + public LoadBalancerConfigurationProperties() + { + + } + } + public partial interface ILoadBalancerConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// List of IP + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of IP", + SerializedName = @"frontendIPConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + + } + internal partial interface ILoadBalancerConfigurationPropertiesInternal + + { + /// List of IP + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] FrontendIPConfiguration { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs new file mode 100644 index 000000000000..c6244a067132 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerConfigurationProperties.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerConfigurationProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerConfigurationProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancerConfigurationProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + var frontendIpConfigurationJsonArray = json?.PropertyT("frontendIpConfigurations") as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray; + _frontendIPConfiguration = global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(frontendIpConfigurationJsonArray, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration.FromJson(__u) ))); + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._frontendIPConfiguration) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._frontendIPConfiguration ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("frontendIPConfigurations",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs new file mode 100644 index 000000000000..7130f8e4bfdf --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(LoadBalancerFrontendIPConfigurationTypeConverter))] + public partial class LoadBalancerFrontendIPConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancerFrontendIPConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancerFrontendIPConfiguration(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancerFrontendIPConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, 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 LoadBalancerFrontendIPConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(LoadBalancerFrontendIPConfigurationTypeConverter))] + public partial interface ILoadBalancerFrontendIPConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..14afbc20b969 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancerFrontendIPConfigurationTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancerFrontendIPConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancerFrontendIPConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancerFrontendIPConfiguration.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/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs new file mode 100644 index 000000000000..c3b842ada2c7 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.cs @@ -0,0 +1,104 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerFrontendIPConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties()); set { {_property = value;} } } + + /// Internal Acessors for PublicIPAddress + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.PublicIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddress = value; } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).Subnet = value; } + + /// Backing field for property. + private string _name; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The private IP address referenced by the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string PrivateIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PrivateIPAddress = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties _property; + + /// Describes a cloud service IP Configuration + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties()); set => this._property = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).PublicIPAddressId = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)Property).SubnetId = value; } + + /// Creates an new instance. + public LoadBalancerFrontendIPConfiguration() + { + + } + } + public partial interface ILoadBalancerFrontendIPConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The private IP address referenced by the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The private IP address referenced by the cloud service.", + SerializedName = @"privateIPAddress", + PossibleTypes = new [] { typeof(string) })] + string PrivateIPAddress { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string PublicIPAddressId { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + internal partial interface ILoadBalancerFrontendIPConfigurationInternal + + { + string Name { get; set; } + /// The private IP address referenced by the cloud service. + string PrivateIPAddress { get; set; } + /// Describes a cloud service IP Configuration + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties Property { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get; set; } + /// Resource Id + string PublicIPAddressId { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get; set; } + /// Resource Id + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs new file mode 100644 index 000000000000..20dc32802093 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfiguration.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class LoadBalancerFrontendIPConfiguration + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerFrontendIPConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancerFrontendIPConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfigurationProperties.FromJson(__jsonProperties) : Property;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs new file mode 100644 index 000000000000..c498f79dc411 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.PowerShell.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes a cloud service IP Configuration + [System.ComponentModel.TypeConverter(typeof(LoadBalancerFrontendIPConfigurationPropertiesTypeConverter))] + public partial class LoadBalancerFrontendIPConfigurationProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LoadBalancerFrontendIPConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LoadBalancerFrontendIPConfigurationProperties(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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LoadBalancerFrontendIPConfigurationProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, 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 LoadBalancerFrontendIPConfigurationProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("PublicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddress, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId = (string) content.GetValueForProperty("PublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).PublicIPAddressId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a cloud service IP Configuration + [System.ComponentModel.TypeConverter(typeof(LoadBalancerFrontendIPConfigurationPropertiesTypeConverter))] + public partial interface ILoadBalancerFrontendIPConfigurationProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs new file mode 100644 index 000000000000..b52b8d874b30 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.TypeConverter.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class LoadBalancerFrontendIPConfigurationPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return LoadBalancerFrontendIPConfigurationProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return LoadBalancerFrontendIPConfigurationProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return LoadBalancerFrontendIPConfigurationProperties.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/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs new file mode 100644 index 000000000000..0e2e26fa41bc --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.cs @@ -0,0 +1,98 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service IP Configuration + public partial class LoadBalancerFrontendIPConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal + { + + /// Internal Acessors for PublicIPAddress + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal.PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_publicIPAddress = value;} } } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set { {_subnet = value;} } } + + /// Backing field for property. + private string _privateIPAddress; + + /// The private IP address referenced by the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string PrivateIPAddress { get => this._privateIPAddress; set => this._privateIPAddress = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _publicIPAddress; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get => (this._publicIPAddress = this._publicIPAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._publicIPAddress = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string PublicIPAddressId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)PublicIPAddress).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)PublicIPAddress).Id = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource _subnet; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource()); set => this._subnet = value; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)Subnet).Id = value; } + + /// + /// Creates an new instance. + /// + public LoadBalancerFrontendIPConfigurationProperties() + { + + } + } + /// Describes a cloud service IP Configuration + public partial interface ILoadBalancerFrontendIPConfigurationProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The private IP address referenced by the cloud service. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The private IP address referenced by the cloud service.", + SerializedName = @"privateIPAddress", + PossibleTypes = new [] { typeof(string) })] + string PrivateIPAddress { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string PublicIPAddressId { get; set; } + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + /// Describes a cloud service IP Configuration + internal partial interface ILoadBalancerFrontendIPConfigurationPropertiesInternal + + { + /// The private IP address referenced by the cloud service. + string PrivateIPAddress { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource PublicIPAddress { get; set; } + /// Resource Id + string PublicIPAddressId { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource Subnet { get; set; } + /// Resource Id + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs new file mode 100644 index 000000000000..bee5e39904a2 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/LoadBalancerFrontendIPConfigurationProperties.json.cs @@ -0,0 +1,108 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes a cloud service IP Configuration + public partial class LoadBalancerFrontendIPConfigurationProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfigurationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new LoadBalancerFrontendIPConfigurationProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal LoadBalancerFrontendIPConfigurationProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_publicIPAddress = If( json?.PropertyT("publicIPAddress"), out var __jsonPublicIPAddress) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonPublicIPAddress) : PublicIPAddress;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_privateIPAddress = If( json?.PropertyT("privateIPAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)PrivateIPAddress;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._publicIPAddress ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._publicIPAddress.ToJson(null,serializationMode) : null, "publicIPAddress" ,container.Add ); + AddIf( null != this._subnet ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._subnet.ToJson(null,serializationMode) : null, "subnet" ,container.Add ); + AddIf( null != (((object)this._privateIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._privateIPAddress.ToString()) : null, "privateIPAddress" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs new file mode 100644 index 000000000000..2844c5a90443 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Instance view status. + [System.ComponentModel.TypeConverter(typeof(ResourceInstanceViewStatusTypeConverter))] + public partial class ResourceInstanceViewStatus + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResourceInstanceViewStatus(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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResourceInstanceViewStatus(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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResourceInstanceViewStatus(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResourceInstanceViewStatus(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus = (string) content.GetValueForProperty("DisplayStatus",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).DisplayStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes?) content.GetValueForProperty("Level",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Level, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Instance view status. + [System.ComponentModel.TypeConverter(typeof(ResourceInstanceViewStatusTypeConverter))] + public partial interface IResourceInstanceViewStatus + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs new file mode 100644 index 000000000000..f0bcc5b7b0c0 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceInstanceViewStatusTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ResourceInstanceViewStatus.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ResourceInstanceViewStatus.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ResourceInstanceViewStatus.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/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs new file mode 100644 index 000000000000..4710c38f16eb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.cs @@ -0,0 +1,126 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Instance view status. + public partial class ResourceInstanceViewStatus : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal + { + + /// Backing field for property. + private string _code; + + /// The status code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private string _displayStatus; + + /// The short localizable label for the status. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string DisplayStatus { get => this._displayStatus; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes? _level; + + /// The level code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes? Level { get => this._level; set => this._level = value; } + + /// Backing field for property. + private string _message; + + /// The detailed status message, including for alerts and error messages. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for DisplayStatus + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.DisplayStatus { get => this._displayStatus; set { {_displayStatus = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Time + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatusInternal.Time { get => this._time; set { {_time = value;} } } + + /// Backing field for property. + private global::System.DateTime? _time; + + /// The time of the status. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public global::System.DateTime? Time { get => this._time; } + + /// Creates an new instance. + public ResourceInstanceViewStatus() + { + + } + } + /// Instance view status. + public partial interface IResourceInstanceViewStatus : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The status code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The status code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The short localizable label for the status. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The short localizable label for the status.", + SerializedName = @"displayStatus", + PossibleTypes = new [] { typeof(string) })] + string DisplayStatus { get; } + /// The level code. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The level code.", + SerializedName = @"level", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes? Level { get; set; } + /// The detailed status message, including for alerts and error messages. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The detailed status message, including for alerts and error messages.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The time of the status. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The time of the status.", + SerializedName = @"time", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? Time { get; } + + } + /// Instance view status. + internal partial interface IResourceInstanceViewStatusInternal + + { + /// The status code. + string Code { get; set; } + /// The short localizable label for the status. + string DisplayStatus { get; set; } + /// The level code. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes? Level { get; set; } + /// The detailed status message, including for alerts and error messages. + string Message { get; set; } + /// The time of the status. + global::System.DateTime? Time { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs new file mode 100644 index 000000000000..e856ccb58314 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/ResourceInstanceViewStatus.json.cs @@ -0,0 +1,121 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Instance view status. + public partial class ResourceInstanceViewStatus + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new ResourceInstanceViewStatus(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal ResourceInstanceViewStatus(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_displayStatus = If( json?.PropertyT("displayStatus"), out var __jsonDisplayStatus) ? (string)__jsonDisplayStatus : (string)DisplayStatus;} + {_level = If( json?.PropertyT("level"), out var __jsonLevel) ? (string)__jsonLevel : (string)Level;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_time = If( json?.PropertyT("time"), out var __jsonTime) ? global::System.DateTime.TryParse((string)__jsonTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonTimeValue) ? __jsonTimeValue : Time : Time;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._displayStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._displayStatus.ToString()) : null, "displayStatus" ,container.Add ); + } + AddIf( null != (((object)this._level)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._level.ToString()) : null, "level" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._time ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._time?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "time" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs new file mode 100644 index 000000000000..131607d6fb6b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.PowerShell.cs @@ -0,0 +1,159 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] + public partial class RoleInstance + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstance(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.CloudService.Models.Api20201001Preview.IRoleInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstance(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.CloudService.Models.Api20201001Preview.IRoleInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstance(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstancePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstance(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstancePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).SkuTier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTypeConverter))] + public partial interface IRoleInstance + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs new file mode 100644 index 000000000000..02c1c402697e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstanceTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstance ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstance.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstance.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstance.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs new file mode 100644 index 000000000000..af5f467823a2 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.cs @@ -0,0 +1,305 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstance : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal + { + + /// Backing field for property. + private string _id; + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Id { get => this._id; } + + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; } + + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; } + + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; } + + /// Backing field for property. + private string _location; + + /// Resource Location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public string Location { get => this._location; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for InstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceView { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceView; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceView = value; } + + /// Internal Acessors for InstanceViewPlatformFaultDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformFaultDomain = value; } + + /// Internal Acessors for InstanceViewPlatformUpdateDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPlatformUpdateDomain = value; } + + /// Internal Acessors for InstanceViewPrivateId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewPrivateId = value; } + + /// Internal Acessors for InstanceViewStatuses + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).InstanceViewStatuses = value; } + + /// Internal Acessors for Location + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Location { get => this._location; set { {_location = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for NetworkProfile + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.NetworkProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfile = value; } + + /// Internal Acessors for NetworkProfileNetworkInterface + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties()); set { {_property = value;} } } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku()); set { {_sku = value;} } } + + /// Internal Acessors for SkuName + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name = value; } + + /// Internal Acessors for SkuTier + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier = value; } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags()); set { {_tag = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource Name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public string Name { get => this._name; } + + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)Property).NetworkProfileNetworkInterface; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties _property; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku _sku; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku()); set => this._sku = value; } + + /// The sku name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Name; } + + /// The tier of the cloud service role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 3)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSkuInternal)Sku).Tier; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags()); } + + /// Backing field for property. + private string _type; + + /// Resource Type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string Type { get => this._type; } + + /// Creates an new instance. + public RoleInstance() + { + + } + } + public partial interface IRoleInstance : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Fault Domain.", + SerializedName = @"platformFaultDomain", + PossibleTypes = new [] { typeof(int) })] + int? InstanceViewPlatformFaultDomain { get; } + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Update Domain.", + SerializedName = @"platformUpdateDomain", + PossibleTypes = new [] { typeof(int) })] + int? InstanceViewPlatformUpdateDomain { get; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + SerializedName = @"privateId", + PossibleTypes = new [] { typeof(string) })] + string InstanceViewPrivateId { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statuses", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } + /// Resource Location. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; } + /// Resource Name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", + SerializedName = @"networkInterfaces", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; } + /// The sku name. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The sku name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; } + /// The tier of the cloud service role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tier of the cloud service role instance.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + string SkuTier { get; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get; } + /// Resource Type. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + internal partial interface IRoleInstanceInternal + + { + /// Resource Id + string Id { get; set; } + /// The instance view of the role instance. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get; set; } + /// The Fault Domain. + int? InstanceViewPlatformFaultDomain { get; set; } + /// The Update Domain. + int? InstanceViewPlatformUpdateDomain { get; set; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ string InstanceViewPrivateId { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } + /// Resource Location. + string Location { get; set; } + /// Resource Name. + string Name { get; set; } + /// Describes the network profile for the role instance. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get; set; } + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties Property { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IInstanceSku Sku { get; set; } + /// The sku name. + string SkuName { get; set; } + /// The tier of the cloud service role instance. + string SkuTier { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags Tag { get; set; } + /// Resource Type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs new file mode 100644 index 000000000000..73c81557234f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstance.json.cs @@ -0,0 +1,127 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstance + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstance(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstance(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.InstanceSku.FromJson(__jsonSku) : Sku;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags.FromJson(__jsonTags) : Tag;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs new file mode 100644 index 000000000000..ba2ad88b47af --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(RoleInstanceListResultTypeConverter))] + public partial class RoleInstanceListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceListResult(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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceListResult(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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstanceListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(RoleInstanceListResultTypeConverter))] + public partial interface IRoleInstanceListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs new file mode 100644 index 000000000000..2be8b4a56552 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstanceListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstanceListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstanceListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstanceListResult.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs new file mode 100644 index 000000000000..8d317d548745 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstanceListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public RoleInstanceListResult() + { + + } + } + public partial interface IRoleInstanceListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get; set; } + + } + internal partial interface IRoleInstanceListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs new file mode 100644 index 000000000000..5f655fc44306 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstanceListResult + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstanceListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CloudService.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.CloudService.Models.Api20201001Preview.IRoleInstance) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstance.FromJson(__u) )) ))() : null : Value;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs new file mode 100644 index 000000000000..85c9866387f7 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Describes the network profile for the role instance. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceNetworkProfileTypeConverter))] + public partial class RoleInstanceNetworkProfile + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceNetworkProfile(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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceNetworkProfile(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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceNetworkProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstanceNetworkProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)this).NetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes the network profile for the role instance. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceNetworkProfileTypeConverter))] + public partial interface IRoleInstanceNetworkProfile + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs new file mode 100644 index 000000000000..9c37d354e387 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstanceNetworkProfileTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstanceNetworkProfile.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstanceNetworkProfile.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstanceNetworkProfile.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs new file mode 100644 index 000000000000..5dd37278fabe --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.cs @@ -0,0 +1,55 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the network profile for the role instance. + public partial class RoleInstanceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal + { + + /// Internal Acessors for NetworkInterface + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal.NetworkInterface { get => this._networkInterface; set { {_networkInterface = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] _networkInterface; + + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get => this._networkInterface; } + + /// Creates an new instance. + public RoleInstanceNetworkProfile() + { + + } + } + /// Describes the network profile for the role instance. + public partial interface IRoleInstanceNetworkProfile : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", + SerializedName = @"networkInterfaces", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get; } + + } + /// Describes the network profile for the role instance. + internal partial interface IRoleInstanceNetworkProfileInternal + + { + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkInterface { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs new file mode 100644 index 000000000000..e7eff084a3d9 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceNetworkProfile.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Describes the network profile for the role instance. + public partial class RoleInstanceNetworkProfile + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceNetworkProfile(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstanceNetworkProfile(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_networkInterface = If( json?.PropertyT("networkInterfaces"), out var __jsonNetworkInterfaces) ? If( __jsonNetworkInterfaces as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResource.FromJson(__u) )) ))() : null : NetworkInterface;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._networkInterface) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._networkInterface ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("networkInterfaces",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs new file mode 100644 index 000000000000..e37a37070778 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] + public partial class RoleInstanceProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceProperties(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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceProperties(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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstanceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView) content.GetValueForProperty("InstanceView",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceView, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceViewTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile) content.GetValueForProperty("NetworkProfile",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain = (int?) content.GetValueForProperty("InstanceViewPlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain = (int?) content.GetValueForProperty("InstanceViewPlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId = (string) content.GetValueForProperty("InstanceViewPrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewPrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("InstanceViewStatuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).InstanceViewStatuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[]) content.GetValueForProperty("NetworkProfileNetworkInterface",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal)this).NetworkProfileNetworkInterface, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.SubResourceTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(RoleInstancePropertiesTypeConverter))] + public partial interface IRoleInstanceProperties + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs new file mode 100644 index 000000000000..d8389346a07c --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstancePropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstanceProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstanceProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstanceProperties.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs new file mode 100644 index 000000000000..33677555e5ef --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstanceProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView _instanceView; + + /// The instance view of the role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView()); set => this._instanceView = value; } + + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public int? InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; } + + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public int? InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; } + + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public string InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses; } + + /// Internal Acessors for InstanceView + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceView { get => (this._instanceView = this._instanceView ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView()); set { {_instanceView = value;} } } + + /// Internal Acessors for InstanceViewPlatformFaultDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPlatformFaultDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformFaultDomain = value; } + + /// Internal Acessors for InstanceViewPlatformUpdateDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPlatformUpdateDomain { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PlatformUpdateDomain = value; } + + /// Internal Acessors for InstanceViewPrivateId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewPrivateId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).PrivateId = value; } + + /// Internal Acessors for InstanceViewStatuses + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.InstanceViewStatuses { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)InstanceView).Statuses = value; } + + /// Internal Acessors for NetworkProfile + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile()); set { {_networkProfile = value;} } } + + /// Internal Acessors for NetworkProfileNetworkInterface + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancePropertiesInternal.NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; set => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile _networkProfile; + + /// Describes the network profile for the role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get => (this._networkProfile = this._networkProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile()); set => this._networkProfile = value; } + + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfileInternal)NetworkProfile).NetworkInterface; } + + /// Creates an new instance. + public RoleInstanceProperties() + { + + } + } + public partial interface IRoleInstanceProperties : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Fault Domain.", + SerializedName = @"platformFaultDomain", + PossibleTypes = new [] { typeof(int) })] + int? InstanceViewPlatformFaultDomain { get; } + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Update Domain.", + SerializedName = @"platformUpdateDomain", + PossibleTypes = new [] { typeof(int) })] + int? InstanceViewPlatformUpdateDomain { get; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + SerializedName = @"privateId", + PossibleTypes = new [] { typeof(string) })] + string InstanceViewPrivateId { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statuses", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; } + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the list of resource Ids for the network interfaces associated with the role instance.", + SerializedName = @"networkInterfaces", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; } + + } + internal partial interface IRoleInstancePropertiesInternal + + { + /// The instance view of the role instance. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView InstanceView { get; set; } + /// The Fault Domain. + int? InstanceViewPlatformFaultDomain { get; set; } + /// The Update Domain. + int? InstanceViewPlatformUpdateDomain { get; set; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ string InstanceViewPrivateId { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] InstanceViewStatuses { get; set; } + /// Describes the network profile for the role instance. + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceNetworkProfile NetworkProfile { get; set; } + /// + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + /// + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource[] NetworkProfileNetworkInterface { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs new file mode 100644 index 000000000000..733a92057f59 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceProperties.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstanceProperties + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstanceProperties(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_instanceView = If( json?.PropertyT("instanceView"), out var __jsonInstanceView) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceView.FromJson(__jsonInstanceView) : InstanceView;} + {_networkProfile = If( json?.PropertyT("networkProfile"), out var __jsonNetworkProfile) ? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceNetworkProfile.FromJson(__jsonNetworkProfile) : NetworkProfile;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._instanceView ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._instanceView.ToJson(null,serializationMode) : null, "instanceView" ,container.Add ); + AddIf( null != this._networkProfile ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) this._networkProfile.ToJson(null,serializationMode) : null, "networkProfile" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs new file mode 100644 index 000000000000..2dfedb6fa984 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTagsTypeConverter))] + public partial class RoleInstanceTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceTags(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.CloudService.Models.Api20201001Preview.IRoleInstanceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceTags(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.CloudService.Models.Api20201001Preview.IRoleInstanceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceTags(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 RoleInstanceTags(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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceTagsTypeConverter))] + public partial interface IRoleInstanceTags + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs new file mode 100644 index 000000000000..417a483d0f70 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstanceTagsTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstanceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstanceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstanceTags.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs new file mode 100644 index 000000000000..f3628204ccd4 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags. + public partial class RoleInstanceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTagsInternal + { + + /// Creates an new instance. + public RoleInstanceTags() + { + + } + } + /// Resource tags. + public partial interface IRoleInstanceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface IRoleInstanceTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs new file mode 100644 index 000000000000..52074f7568a3 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class RoleInstanceTags : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstanceTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs new file mode 100644 index 000000000000..c5d03635bd69 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Resource tags. + public partial class RoleInstanceTags + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + /// + internal RoleInstanceTags(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs new file mode 100644 index 000000000000..ef4ae93d1f7b --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// The instance view of the role instance. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceViewTypeConverter))] + public partial class RoleInstanceView + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstanceView(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.CloudService.Models.Api20201001Preview.IRoleInstanceView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstanceView(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.CloudService.Models.Api20201001Preview.IRoleInstanceView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstanceView(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstanceView(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain = (int?) content.GetValueForProperty("PlatformFaultDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformFaultDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain = (int?) content.GetValueForProperty("PlatformUpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PlatformUpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId = (string) content.GetValueForProperty("PrivateId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).PrivateId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[]) content.GetValueForProperty("Statuses",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal)this).Statuses, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatusTypeConverter.ConvertFrom)); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The instance view of the role instance. + [System.ComponentModel.TypeConverter(typeof(RoleInstanceViewTypeConverter))] + public partial interface IRoleInstanceView + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs new file mode 100644 index 000000000000..48d570f024ce --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstanceViewTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstanceView ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstanceView.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstanceView.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstanceView.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs new file mode 100644 index 000000000000..76bce48bf8b3 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.cs @@ -0,0 +1,121 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// The instance view of the role instance. + public partial class RoleInstanceView : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal + { + + /// Internal Acessors for PlatformFaultDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PlatformFaultDomain { get => this._platformFaultDomain; set { {_platformFaultDomain = value;} } } + + /// Internal Acessors for PlatformUpdateDomain + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PlatformUpdateDomain { get => this._platformUpdateDomain; set { {_platformUpdateDomain = value;} } } + + /// Internal Acessors for PrivateId + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.PrivateId { get => this._privateId; set { {_privateId = value;} } } + + /// Internal Acessors for Statuses + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceViewInternal.Statuses { get => this._statuses; set { {_statuses = value;} } } + + /// Backing field for property. + private int? _platformFaultDomain; + + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 1)] + public int? PlatformFaultDomain { get => this._platformFaultDomain; } + + /// Backing field for property. + private int? _platformUpdateDomain; + + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 2)] + public int? PlatformUpdateDomain { get => this._platformUpdateDomain; } + + /// Backing field for property. + private string _privateId; + + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.DoNotFormat] + public string PrivateId { get => this._privateId; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] _statuses; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.FormatTable(Index = 0)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get => this._statuses; } + + /// Creates an new instance. + public RoleInstanceView() + { + + } + } + /// The instance view of the role instance. + public partial interface IRoleInstanceView : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The Fault Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Fault Domain.", + SerializedName = @"platformFaultDomain", + PossibleTypes = new [] { typeof(int) })] + int? PlatformFaultDomain { get; } + /// The Update Domain. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Update Domain.", + SerializedName = @"platformUpdateDomain", + PossibleTypes = new [] { typeof(int) })] + int? PlatformUpdateDomain { get; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + SerializedName = @"privateId", + PossibleTypes = new [] { typeof(string) })] + string PrivateId { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"statuses", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; } + + } + /// The instance view of the role instance. + internal partial interface IRoleInstanceViewInternal + + { + /// The Fault Domain. + int? PlatformFaultDomain { get; set; } + /// The Update Domain. + int? PlatformUpdateDomain { get; set; } + /// + /// Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + ///
+ string PrivateId { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus[] Statuses { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs new file mode 100644 index 000000000000..b02aca7a9e9a --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstanceView.json.cs @@ -0,0 +1,127 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// The instance view of the role instance. + public partial class RoleInstanceView + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstanceView(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstanceView(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_platformFaultDomain = If( json?.PropertyT("platformFaultDomain"), out var __jsonPlatformFaultDomain) ? (int?)__jsonPlatformFaultDomain : PlatformFaultDomain;} + {_platformUpdateDomain = If( json?.PropertyT("platformUpdateDomain"), out var __jsonPlatformUpdateDomain) ? (int?)__jsonPlatformUpdateDomain : PlatformUpdateDomain;} + {_privateId = If( json?.PropertyT("privateId"), out var __jsonPrivateId) ? (string)__jsonPrivateId : (string)PrivateId;} + {_statuses = If( json?.PropertyT("statuses"), out var __jsonStatuses) ? If( __jsonStatuses as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.IResourceInstanceViewStatus) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ResourceInstanceViewStatus.FromJson(__u) )) ))() : null : Statuses;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._platformFaultDomain ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((int)this._platformFaultDomain) : null, "platformFaultDomain" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._platformUpdateDomain ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((int)this._platformUpdateDomain) : null, "platformUpdateDomain" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._privateId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._privateId.ToString()) : null, "privateId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._statuses) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._statuses ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("statuses",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs new file mode 100644 index 000000000000..6b6a615b1e70 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Specifies a list of role instances from the cloud service. + [System.ComponentModel.TypeConverter(typeof(RoleInstancesTypeConverter))] + public partial class RoleInstances + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleInstances(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.CloudService.Models.Api20201001Preview.IRoleInstances DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleInstances(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.CloudService.Models.Api20201001Preview.IRoleInstances FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleInstances(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RoleInstances(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance = (string[]) content.GetValueForProperty("RoleInstance",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal)this).RoleInstance, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Specifies a list of role instances from the cloud service. + [System.ComponentModel.TypeConverter(typeof(RoleInstancesTypeConverter))] + public partial interface IRoleInstances + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs new file mode 100644 index 000000000000..f63de11eada7 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class RoleInstancesTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IRoleInstances ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return RoleInstances.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return RoleInstances.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return RoleInstances.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/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs new file mode 100644 index 000000000000..b2e9607c523f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.cs @@ -0,0 +1,52 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Specifies a list of role instances from the cloud service. + public partial class RoleInstances : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstancesInternal + { + + /// Backing field for property. + private string[] _roleInstance; + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string[] RoleInstance { get => this._roleInstance; set => this._roleInstance = value; } + + /// Creates an new instance. + public RoleInstances() + { + + } + } + /// Specifies a list of role instances from the cloud service. + public partial interface IRoleInstances : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + string[] RoleInstance { get; set; } + + } + /// Specifies a list of role instances from the cloud service. + internal partial interface IRoleInstancesInternal + + { + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + string[] RoleInstance { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs new file mode 100644 index 000000000000..12d190288c49 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/RoleInstances.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Specifies a list of role instances from the cloud service. + public partial class RoleInstances + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new RoleInstances(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal RoleInstances(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_roleInstance = If( json?.PropertyT("roleInstances"), out var __jsonRoleInstances) ? If( __jsonRoleInstances as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : RoleInstance;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._roleInstance) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._roleInstance ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roleInstances",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs new file mode 100644 index 000000000000..f238d128abe0 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(StatusCodeCountTypeConverter))] + public partial class StatusCodeCount + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StatusCodeCount(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.CloudService.Models.Api20201001Preview.IStatusCodeCount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StatusCodeCount(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.CloudService.Models.Api20201001Preview.IStatusCodeCount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StatusCodeCount(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StatusCodeCount(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count = (int?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal)this).Count, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(StatusCodeCountTypeConverter))] + public partial interface IStatusCodeCount + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs new file mode 100644 index 000000000000..1c24ea259d80 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StatusCodeCountTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IStatusCodeCount ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StatusCodeCount.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StatusCodeCount.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StatusCodeCount.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/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs new file mode 100644 index 000000000000..3c8441015cad --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.cs @@ -0,0 +1,66 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class StatusCodeCount : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal + { + + /// Backing field for property. + private string _code; + + /// The instance view status code + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private int? _count; + + /// Number of instances having this status code + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public int? Count { get => this._count; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Count + int? Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCountInternal.Count { get => this._count; set { {_count = value;} } } + + /// Creates an new instance. + public StatusCodeCount() + { + + } + } + public partial interface IStatusCodeCount : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// The instance view status code + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The instance view status code", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Number of instances having this status code + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of instances having this status code", + SerializedName = @"count", + PossibleTypes = new [] { typeof(int) })] + int? Count { get; } + + } + internal partial interface IStatusCodeCountInternal + + { + /// The instance view status code + string Code { get; set; } + /// Number of instances having this status code + int? Count { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs new file mode 100644 index 000000000000..0103e8c0962f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/StatusCodeCount.json.cs @@ -0,0 +1,108 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class StatusCodeCount + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IStatusCodeCount FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new StatusCodeCount(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal StatusCodeCount(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_count = If( json?.PropertyT("count"), out var __jsonCount) ? (int?)__jsonCount : Count;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._count ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((int)this._count) : null, "count" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs new file mode 100644 index 000000000000..38b09a577eee --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.PowerShell.cs @@ -0,0 +1,129 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] + public partial class SubResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SubResource(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.CloudService.Models.Api20201001Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SubResource(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.CloudService.Models.Api20201001Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SubResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id, 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 SubResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(SubResourceTypeConverter))] + public partial interface ISubResource + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs new file mode 100644 index 000000000000..27dd937bfe57 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SubResourceTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.ISubResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SubResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SubResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SubResource.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/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs new file mode 100644 index 000000000000..cc29ff32e830 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class SubResource : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResourceInternal + { + + /// Backing field for property. + private string _id; + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Creates an new instance. + public SubResource() + { + + } + } + public partial interface ISubResource : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + internal partial interface ISubResourceInternal + + { + /// Resource Id + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs new file mode 100644 index 000000000000..d6ba64b2a2d0 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/SubResource.json.cs @@ -0,0 +1,100 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class SubResource + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new SubResource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal SubResource(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + 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.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs new file mode 100644 index 000000000000..77d3769053fd --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// Defines an update domain for the cloud service. + [System.ComponentModel.TypeConverter(typeof(UpdateDomainTypeConverter))] + public partial class UpdateDomain + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateDomain(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.CloudService.Models.Api20201001Preview.IUpdateDomain DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateDomain(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.CloudService.Models.Api20201001Preview.IUpdateDomain FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateDomain(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id, 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 UpdateDomain(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal)this).Id, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + } + /// Defines an update domain for the cloud service. + [System.ComponentModel.TypeConverter(typeof(UpdateDomainTypeConverter))] + public partial interface IUpdateDomain + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs new file mode 100644 index 000000000000..0b56aacd513f --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class UpdateDomainTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IUpdateDomain ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return UpdateDomain.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return UpdateDomain.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return UpdateDomain.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/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs new file mode 100644 index 000000000000..971637ad04c8 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Defines an update domain for the cloud service. + public partial class UpdateDomain : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal + { + + /// Backing field for property. + private string _id; + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainInternal.Name { get => this._name; set { {_name = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Creates an new instance. + public UpdateDomain() + { + + } + } + /// Defines an update domain for the cloud service. + public partial interface IUpdateDomain : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + + } + /// Defines an update domain for the cloud service. + internal partial interface IUpdateDomainInternal + + { + /// Resource Id + string Id { get; set; } + /// Resource Name + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs new file mode 100644 index 000000000000..85fa73f7d2ed --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomain.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Defines an update domain for the cloud service. + public partial class UpdateDomain + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new UpdateDomain(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal UpdateDomain(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs new file mode 100644 index 000000000000..fd623efc1dd9 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(UpdateDomainListResultTypeConverter))] + public partial class UpdateDomainListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateDomainListResult(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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateDomainListResult(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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateDomainListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UpdateDomainListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomainTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + } + [System.ComponentModel.TypeConverter(typeof(UpdateDomainListResultTypeConverter))] + public partial interface IUpdateDomainListResult + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs new file mode 100644 index 000000000000..7a774fa6734e --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class UpdateDomainListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.Api20201001Preview.IUpdateDomainListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return UpdateDomainListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return UpdateDomainListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return UpdateDomainListResult.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/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs new file mode 100644 index 000000000000..82c1d7f619cb --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.cs @@ -0,0 +1,56 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class UpdateDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] _value; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public UpdateDomainListResult() + { + + } + } + public partial interface IUpdateDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain) })] + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get; set; } + + } + internal partial interface IUpdateDomainListResultInternal + + { + string NextLink { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs new file mode 100644 index 000000000000..cc626199e888 --- /dev/null +++ b/src/CloudService/generated/api/Models/Api20201001Preview/UpdateDomainListResult.json.cs @@ -0,0 +1,110 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class UpdateDomainListResult + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new UpdateDomainListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal UpdateDomainListResult(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CloudService.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.CloudService.Models.Api20201001Preview.IUpdateDomain) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs new file mode 100644 index 000000000000..07bd639c23a5 --- /dev/null +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CloudServiceIdentityTypeConverter))] + public partial class CloudServiceIdentity + { + + /// + /// 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 CloudServiceIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).CloudServiceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleInstanceName = (string) content.GetValueForProperty("RoleInstanceName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleInstanceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudServiceIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).CloudServiceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleInstanceName = (string) content.GetValueForProperty("RoleInstanceName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleInstanceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).RoleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain = (int?) content.GetValueForProperty("UpdateDomain",((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal)this).UpdateDomain, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.CloudService.Models.ICloudServiceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudServiceIdentity(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.CloudService.Models.ICloudServiceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudServiceIdentity(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.CloudService.Models.ICloudServiceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CloudServiceIdentityTypeConverter))] + public partial interface ICloudServiceIdentity + + { + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.TypeConverter.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.TypeConverter.cs new file mode 100644 index 000000000000..b21d8436322d --- /dev/null +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.TypeConverter.cs @@ -0,0 +1,157 @@ +// 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.CloudService.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudServiceIdentityTypeConverter : 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 + /// parameter. + /// + /// 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(); + // we allow string conversion too. + if (type == typeof(global::System.String)) + { + return true; + } + 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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// 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.CloudService.Models.ICloudServiceIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + // support direct string to id type conversion. + if (type == typeof(global::System.String)) + { + return new CloudServiceIdentity { Id = sourceValue }; + } + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudServiceIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudServiceIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudServiceIdentity.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/CloudService/generated/api/Models/CloudServiceIdentity.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.cs new file mode 100644 index 000000000000..116b240e4b46 --- /dev/null +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.cs @@ -0,0 +1,164 @@ +// 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.CloudService.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceIdentity : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentityInternal + { + + /// Backing field for property. + private string _cloudServiceName; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// Backing field for property. + private string _id; + + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _resourceGroupName; + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string _roleName; + + /// Name of the role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string RoleName { get => this._roleName; set => this._roleName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int? _updateDomain; + + /// + /// Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the + /// first update domain has an ID of 0, the second has an ID of 1, and so on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Origin(Microsoft.Azure.PowerShell.Cmdlets.CloudService.PropertyOrigin.Owned)] + public int? UpdateDomain { get => this._updateDomain; set => this._updateDomain = value; } + + /// Creates an new instance. + public CloudServiceIdentity() + { + + } + } + public partial interface ICloudServiceIdentity : + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + string CloudServiceName { get; set; } + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource identity path", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; set; } + /// Name of the role instance. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + string RoleInstanceName { get; set; } + /// Name of the role. + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the role.", + SerializedName = @"roleName", + PossibleTypes = new [] { typeof(string) })] + string RoleName { get; set; } + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + string SubscriptionId { get; set; } + /// + /// Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the + /// first update domain has an ID of 0, the second has an ID of 1, and so on. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + SerializedName = @"updateDomain", + PossibleTypes = new [] { typeof(int) })] + int? UpdateDomain { get; set; } + + } + internal partial interface ICloudServiceIdentityInternal + + { + string CloudServiceName { get; set; } + /// Resource identity path + string Id { get; set; } + + string ResourceGroupName { get; set; } + /// Name of the role instance. + string RoleInstanceName { get; set; } + /// Name of the role. + string RoleName { get; set; } + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + string SubscriptionId { get; set; } + /// + /// Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the + /// first update domain has an ID of 0, the second has an ID of 1, and so on. + /// + int? UpdateDomain { get; set; } + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs b/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs new file mode 100644 index 000000000000..59ef9f0dccb5 --- /dev/null +++ b/src/CloudService/generated/api/Models/CloudServiceIdentity.json.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public partial class CloudServiceIdentity + { + + /// + /// 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.CloudService.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CloudService.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.CloudService.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.CloudService.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject instance to deserialize from. + internal CloudServiceIdentity(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_cloudServiceName = If( json?.PropertyT("cloudServiceName"), out var __jsonCloudServiceName) ? (string)__jsonCloudServiceName : (string)CloudServiceName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} + {_roleInstanceName = If( json?.PropertyT("roleInstanceName"), out var __jsonRoleInstanceName) ? (string)__jsonRoleInstanceName : (string)RoleInstanceName;} + {_roleName = If( json?.PropertyT("roleName"), out var __jsonRoleName) ? (string)__jsonRoleName : (string)RoleName;} + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_updateDomain = If( json?.PropertyT("updateDomain"), out var __jsonUpdateDomain) ? (int?)__jsonUpdateDomain : UpdateDomain;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new CloudServiceIdentity(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._cloudServiceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._cloudServiceName.ToString()) : null, "cloudServiceName" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); + AddIf( null != (((object)this._roleInstanceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._roleInstanceName.ToString()) : null, "roleInstanceName" ,container.Add ); + AddIf( null != (((object)this._roleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._roleName.ToString()) : null, "roleName" ,container.Add ); + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != this._updateDomain ? (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNumber((int)this._updateDomain) : null, "updateDomain" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.Completer.cs b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.Completer.cs new file mode 100644 index 000000000000..6baf0d4542e4 --- /dev/null +++ b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// Argument completer implementation for CloudServiceUpgradeMode. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeModeTypeConverter))] + public partial struct CloudServiceUpgradeMode : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Auto".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Auto", "Auto", global::System.Management.Automation.CompletionResultType.ParameterValue, "Auto"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Manual".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Manual", "Manual", global::System.Management.Automation.CompletionResultType.ParameterValue, "Manual"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Simultaneous".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Simultaneous", "Simultaneous", global::System.Management.Automation.CompletionResultType.ParameterValue, "Simultaneous"); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.TypeConverter.cs b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.TypeConverter.cs new file mode 100644 index 000000000000..de73e1d628cd --- /dev/null +++ b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// TypeConverter implementation for CloudServiceUpgradeMode. + public partial class CloudServiceUpgradeModeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => CloudServiceUpgradeMode.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.cs b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.cs new file mode 100644 index 000000000000..1c89d562aa15 --- /dev/null +++ b/src/CloudService/generated/api/Support/CloudServiceUpgradeMode.cs @@ -0,0 +1,99 @@ +// 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.CloudService.Support +{ + + public partial struct CloudServiceUpgradeMode : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode Auto = @"Auto"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode Manual = @"Manual"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode Simultaneous = @"Simultaneous"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private CloudServiceUpgradeMode(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to CloudServiceUpgradeMode + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CloudServiceUpgradeMode(System.Convert.ToString(value)); + } + + /// Compares values of enum type CloudServiceUpgradeMode + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CloudServiceUpgradeMode (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CloudServiceUpgradeMode && Equals((CloudServiceUpgradeMode)obj); + } + + /// Returns hashCode for enum CloudServiceUpgradeMode + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CloudServiceUpgradeMode + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CloudServiceUpgradeMode + /// the value to convert to an instance of . + + public static implicit operator CloudServiceUpgradeMode(string value) + { + return new CloudServiceUpgradeMode(value); + } + + /// Implicit operator to convert CloudServiceUpgradeMode to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e) + { + return e._value; + } + + /// Overriding != operator for enum CloudServiceUpgradeMode + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CloudServiceUpgradeMode + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/InstanceViewTypes.Completer.cs b/src/CloudService/generated/api/Support/InstanceViewTypes.Completer.cs new file mode 100644 index 000000000000..1ef0e8f1d013 --- /dev/null +++ b/src/CloudService/generated/api/Support/InstanceViewTypes.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// Argument completer implementation for InstanceViewTypes. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypesTypeConverter))] + public partial struct InstanceViewTypes : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "instanceView".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("instanceView", "instanceView", global::System.Management.Automation.CompletionResultType.ParameterValue, "instanceView"); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/InstanceViewTypes.TypeConverter.cs b/src/CloudService/generated/api/Support/InstanceViewTypes.TypeConverter.cs new file mode 100644 index 000000000000..e383f3c17c89 --- /dev/null +++ b/src/CloudService/generated/api/Support/InstanceViewTypes.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// TypeConverter implementation for InstanceViewTypes. + public partial class InstanceViewTypesTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => InstanceViewTypes.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/InstanceViewTypes.cs b/src/CloudService/generated/api/Support/InstanceViewTypes.cs new file mode 100644 index 000000000000..3b96a4ddbeca --- /dev/null +++ b/src/CloudService/generated/api/Support/InstanceViewTypes.cs @@ -0,0 +1,95 @@ +// 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.CloudService.Support +{ + + public partial struct InstanceViewTypes : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes InstanceView = @"instanceView"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to InstanceViewTypes + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new InstanceViewTypes(System.Convert.ToString(value)); + } + + /// Compares values of enum type InstanceViewTypes + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type InstanceViewTypes (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is InstanceViewTypes && Equals((InstanceViewTypes)obj); + } + + /// Returns hashCode for enum InstanceViewTypes + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private InstanceViewTypes(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for InstanceViewTypes + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to InstanceViewTypes + /// the value to convert to an instance of . + + public static implicit operator InstanceViewTypes(string value) + { + return new InstanceViewTypes(value); + } + + /// Implicit operator to convert InstanceViewTypes to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e) + { + return e._value; + } + + /// Overriding != operator for enum InstanceViewTypes + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum InstanceViewTypes + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/StatusLevelTypes.Completer.cs b/src/CloudService/generated/api/Support/StatusLevelTypes.Completer.cs new file mode 100644 index 000000000000..f6ab5d30ed2e --- /dev/null +++ b/src/CloudService/generated/api/Support/StatusLevelTypes.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// Argument completer implementation for StatusLevelTypes. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypesTypeConverter))] + public partial struct StatusLevelTypes : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Info".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Info", "Info", global::System.Management.Automation.CompletionResultType.ParameterValue, "Info"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Warning".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Warning", "Warning", global::System.Management.Automation.CompletionResultType.ParameterValue, "Warning"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Error".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Error", "Error", global::System.Management.Automation.CompletionResultType.ParameterValue, "Error"); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/StatusLevelTypes.TypeConverter.cs b/src/CloudService/generated/api/Support/StatusLevelTypes.TypeConverter.cs new file mode 100644 index 000000000000..9d6c00fedf9d --- /dev/null +++ b/src/CloudService/generated/api/Support/StatusLevelTypes.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support +{ + + /// TypeConverter implementation for StatusLevelTypes. + public partial class StatusLevelTypesTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => StatusLevelTypes.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/api/Support/StatusLevelTypes.cs b/src/CloudService/generated/api/Support/StatusLevelTypes.cs new file mode 100644 index 000000000000..7c7c250200a4 --- /dev/null +++ b/src/CloudService/generated/api/Support/StatusLevelTypes.cs @@ -0,0 +1,99 @@ +// 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.CloudService.Support +{ + + public partial struct StatusLevelTypes : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes Error = @"Error"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes Info = @"Info"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes Warning = @"Warning"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to StatusLevelTypes + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new StatusLevelTypes(System.Convert.ToString(value)); + } + + /// Compares values of enum type StatusLevelTypes + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type StatusLevelTypes (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is StatusLevelTypes && Equals((StatusLevelTypes)obj); + } + + /// Returns hashCode for enum StatusLevelTypes + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private StatusLevelTypes(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for StatusLevelTypes + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to StatusLevelTypes + /// the value to convert to an instance of . + + public static implicit operator StatusLevelTypes(string value) + { + return new StatusLevelTypes(value); + } + + /// Implicit operator to convert StatusLevelTypes to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e) + { + return e._value; + } + + /// Overriding != operator for enum StatusLevelTypes + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum StatusLevelTypes + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e1, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.StatusLevelTypes e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs new file mode 100644 index 000000000000..652121f6bb7f --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceInstanceView_Get.cs @@ -0,0 +1,401 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Gets the status of a cloud service. + /// + /// [OpenAPI] CloudServices_GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceInstanceView_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the status of a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceInstanceView_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceInstanceView_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesGetInstanceView(ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs new file mode 100644 index 000000000000..0ea30f87bda9 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get.cs @@ -0,0 +1,443 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Gets a remote desktop file for a role instance in a cloud service. + /// + /// [OpenAPI] CloudServiceRoleInstances_GetRemoteDesktopFile=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstanceRemoteDesktopFile_Get")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a remote desktop file for a role instance in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Path to write output file to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path to write output file to")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + public global::System.String OutFile { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceRoleInstanceRemoteDesktopFile_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesGetRemoteDesktopFile(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/x-rdp + // (await response) // should be global::System.IO.Stream + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + using( var stream = await response ) + { + using( var fileStream = global::System.IO.File.OpenWrite(paths[0]) ) + { + await stream.CopyToAsync(fileStream); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs new file mode 100644 index 000000000000..76b8ad313909 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstanceView_Get.cs @@ -0,0 +1,415 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Retrieves information about the run-time state of a role instance in a cloud service. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_GetInstanceView=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstanceView_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Retrieves information about the run-time state of a role instance in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceRoleInstanceView_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceRoleInstanceView_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesGetInstanceView(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs new file mode 100644 index 000000000000..65c47888da05 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_Get.cs @@ -0,0 +1,428 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Gets a role instance from a cloud service. + /// + /// [OpenAPI] CloudServiceRoleInstances_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceRoleInstance_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes _expand; + + /// The expand expression to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The expand expression to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The expand expression to apply to the operation.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Query)] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes))] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceRoleInstance_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesGet(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs new file mode 100644 index 000000000000..608bb8631e3f --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_GetViaIdentity.cs @@ -0,0 +1,396 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Gets a role instance from a cloud service. + /// + /// [OpenAPI] CloudServiceRoleInstances_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a role instance from a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceRoleInstance_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes _expand; + + /// The expand expression to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The expand expression to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The expand expression to apply to the operation.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Query)] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes))] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceRoleInstance_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceRoleInstancesGetViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.RoleInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RoleInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceRoleInstancesGet(InputObject.RoleInstanceName ?? null, InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs new file mode 100644 index 000000000000..e6353f704582 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudServiceRoleInstance_List.cs @@ -0,0 +1,428 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of + /// role instances. Do this till nextLink is null to fetch all the role instances. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudServiceRoleInstance_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudServiceRoleInstance_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes _expand; + + /// The expand expression to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The expand expression to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The expand expression to apply to the operation.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Query)] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes))] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudServiceRoleInstance_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesList(ResourceGroupName, CloudServiceName, SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs new file mode 100644 index 000000000000..87ccdfe0489b --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_Get.cs @@ -0,0 +1,402 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Display information about a cloud service. + /// + /// [OpenAPI] CloudServices_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudService_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudService_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesGet(ResourceGroupName, Name, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs new file mode 100644 index 000000000000..9f25bbef78db --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_GetViaIdentity.cs @@ -0,0 +1,377 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Display information about a cloud service. + /// + /// [OpenAPI] CloudServices_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Display information about a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudService_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudService_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesGet(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs new file mode 100644 index 000000000000..e330048879ba --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_List.cs @@ -0,0 +1,387 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property + /// in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// + /// [OpenAPI] CloudServices_ListAll=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudService_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudService_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesListAll(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesListAll_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs b/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs new file mode 100644 index 000000000000..71c1ae955079 --- /dev/null +++ b/src/CloudService/generated/cmdlets/GetAzCloudService_List1.cs @@ -0,0 +1,401 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of + /// Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. + /// + /// + /// [OpenAPI] CloudServices_List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCloudService_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class GetAzCloudService_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCloudService_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesList(ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs new file mode 100644 index 000000000000..f31324924ce1 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildExpanded.cs @@ -0,0 +1,496 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage + /// resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. + /// + /// + /// [OpenAPI] CloudServices_Rebuild=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRebuild_RebuildExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRebuild_RebuildExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceRebuild_RebuildExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRebuild_RebuildExpanded Clone() + { + var clone = new InvokeAzCloudServiceRebuild_RebuildExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRebuild_RebuildExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesRebuild' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesRebuild(ResourceGroupName, CloudServiceName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs new file mode 100644 index 000000000000..4dc02ad59ed0 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded.cs @@ -0,0 +1,472 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage + /// resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. + /// + /// + /// [OpenAPI] CloudServices_Rebuild=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRebuild_RebuildViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded Clone() + { + var clone = new InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRebuild_RebuildViaIdentityExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesRebuild' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesRebuildViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesRebuild(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs new file mode 100644 index 000000000000..2d0727c747c7 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageExpanded.cs @@ -0,0 +1,496 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// [OpenAPI] CloudServices_Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceReimage_ReimageExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceReimage_ReimageExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceReimage_ReimageExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceReimage_ReimageExpanded Clone() + { + var clone = new InvokeAzCloudServiceReimage_ReimageExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceReimage_ReimageExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesReimage' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesReimage(ResourceGroupName, Name, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs new file mode 100644 index 000000000000..8819402cc545 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded.cs @@ -0,0 +1,471 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// [OpenAPI] CloudServices_Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceReimage_ReimageViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded Clone() + { + var clone = new InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceReimage_ReimageViaIdentityExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesReimage' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesReimageViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesReimage(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs new file mode 100644 index 000000000000..0543d6465c96 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_Rebuild.cs @@ -0,0 +1,489 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles + /// and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can + /// use Reimage Role Instance. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Rebuild=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRoleInstanceRebuild_Rebuild", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRoleInstanceRebuild_Rebuild : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceRoleInstanceRebuild_Rebuild + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRoleInstanceRebuild_Rebuild Clone() + { + var clone = new InvokeAzCloudServiceRoleInstanceRebuild_Rebuild(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.RoleInstanceName = this.RoleInstanceName; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRoleInstanceRebuild_Rebuild() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesRebuild' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesRebuild(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs new file mode 100644 index 000000000000..e48beb4a347d --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity.cs @@ -0,0 +1,458 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles + /// and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can + /// use Reimage Role Instance. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Rebuild=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity Clone() + { + var clone = new InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRoleInstanceRebuild_RebuildViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesRebuild' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceRoleInstancesRebuildViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.RoleInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RoleInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceRoleInstancesRebuild(InputObject.RoleInstanceName ?? null, InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs new file mode 100644 index 000000000000..99f252a10872 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_Reimage.cs @@ -0,0 +1,487 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRoleInstanceReimage_Reimage", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRoleInstanceReimage_Reimage : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzCloudServiceRoleInstanceReimage_Reimage + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRoleInstanceReimage_Reimage Clone() + { + var clone = new InvokeAzCloudServiceRoleInstanceReimage_Reimage(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.RoleInstanceName = this.RoleInstanceName; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRoleInstanceReimage_Reimage() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesReimage' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesReimage(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs new file mode 100644 index 000000000000..d7f7a40931b0 --- /dev/null +++ b/src/CloudService/generated/cmdlets/InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity.cs @@ -0,0 +1,456 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Reimage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCloudServiceRoleInstanceReimage_ReimageViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity Clone() + { + var clone = new InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCloudServiceRoleInstanceReimage_ReimageViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesReimage' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceRoleInstancesReimageViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.RoleInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RoleInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceRoleInstancesReimage(InputObject.RoleInstanceName ?? null, InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs b/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs new file mode 100644 index 000000000000..0f807db9814e --- /dev/null +++ b/src/CloudService/generated/cmdlets/NewAzCloudService_CreateExpanded.cs @@ -0,0 +1,617 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Create or update a cloud service. Please note some properties can be set only during cloud service creation. + /// + /// + /// [OpenAPI] CloudServices_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzCloudService_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Create or update a cloud service. Please note some properties can be set only during cloud service creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class NewAzCloudService_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Specifies the XML service configuration (.cscfg) for the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies the XML service configuration (.cscfg) for the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the XML service configuration (.cscfg) for the cloud service.", + SerializedName = @"configuration", + PossibleTypes = new [] { typeof(string) })] + public string Configuration { get => ParametersBody.Configuration ?? null; set => ParametersBody.Configuration = value; } + + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL + /// can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in + /// GET calls. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls.", + SerializedName = @"configurationUrl", + PossibleTypes = new [] { typeof(string) })] + public string ConfigurationUrl { get => ParametersBody.ConfigurationUrl ?? null; set => ParametersBody.ConfigurationUrl = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Describes a cloud service extension profile. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes a cloud service extension profile.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes a cloud service extension profile.", + SerializedName = @"extensionProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile ExtensionProfile { get => ParametersBody.ExtensionProfile ?? null /* object */; set => ParametersBody.ExtensionProfile = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource location.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Network Profile for the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Network Profile for the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Network Profile for the cloud service.", + SerializedName = @"networkProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile NetworkProfile { get => ParametersBody.NetworkProfile ?? null /* object */; set => ParametersBody.NetworkProfile = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Describes the OS profile for the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes the OS profile for the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the OS profile for the cloud service.", + SerializedName = @"osProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile OSProfile { get => ParametersBody.OSProfile ?? null /* object */; set => ParametersBody.OSProfile = value; } + + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be + /// Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls.", + SerializedName = @"packageUrl", + PossibleTypes = new [] { typeof(string) })] + public string PackageUrl { get => ParametersBody.PackageUrl ?? null; set => ParametersBody.PackageUrl = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService(); + + /// Describes the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Describes the role profile for the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Describes the role profile for the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Describes the role profile for the cloud service.", + SerializedName = @"roleProfile", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile RoleProfile { get => ParametersBody.RoleProfile ?? null /* object */; set => ParametersBody.RoleProfile = value; } + + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.If + /// false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until + /// you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.", + SerializedName = @"startCloudService", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + public global::System.Management.Automation.SwitchParameter StartCloudService { get => ParametersBody.StartCloudService ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.StartCloudService = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates + /// can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is + /// Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically + /// applied to each update domain in sequence. + ///
+ [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.", + SerializedName = @"upgradeMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode))] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode UpgradeMode { get => ParametersBody.UpgradeMode ?? ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode)""); set => ParametersBody.UpgradeMode = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzCloudService_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.NewAzCloudService_CreateExpanded Clone() + { + var clone = new NewAzCloudService_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzCloudService_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesCreateOrUpdate(ResourceGroupName, Name, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs new file mode 100644 index 000000000000..84eaad5d9bd7 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteExpanded.cs @@ -0,0 +1,493 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Deletes role instances in a cloud service. + /// + /// [OpenAPI] CloudServices_DeleteInstances=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCloudServiceRoleInstance_DeleteExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Deletes role instances in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RemoveAzCloudServiceRoleInstance_DeleteExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzCloudServiceRoleInstance_DeleteExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RemoveAzCloudServiceRoleInstance_DeleteExpanded Clone() + { + var clone = new RemoveAzCloudServiceRoleInstance_DeleteExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesDeleteInstances' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesDeleteInstances(ResourceGroupName, CloudServiceName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCloudServiceRoleInstance_DeleteExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs new file mode 100644 index 000000000000..b2a75fa260c0 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded.cs @@ -0,0 +1,471 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Deletes role instances in a cloud service. + /// + /// [OpenAPI] CloudServices_DeleteInstances=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCloudServiceRoleInstance_DeleteViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Deletes role instances in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded Clone() + { + var clone = new RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesDeleteInstances' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesDeleteInstancesViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesDeleteInstances(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCloudServiceRoleInstance_DeleteViaIdentityExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs new file mode 100644 index 000000000000..d3910f4e5d88 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudService_Delete.cs @@ -0,0 +1,507 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Deletes a cloud service. + /// + /// [OpenAPI] CloudServices_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCloudService_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Deletes a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RemoveAzCloudService_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzCloudService_Delete + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RemoveAzCloudService_Delete Clone() + { + var clone = new RemoveAzCloudService_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesDelete(ResourceGroupName, Name, SubscriptionId, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCloudService_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs b/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs new file mode 100644 index 000000000000..ff029d60bde1 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RemoveAzCloudService_DeleteViaIdentity.cs @@ -0,0 +1,482 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Deletes a cloud service. + /// + /// [OpenAPI] CloudServices_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCloudService_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Deletes a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RemoveAzCloudService_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzCloudService_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RemoveAzCloudService_DeleteViaIdentity Clone() + { + var clone = new RemoveAzCloudService_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesDelete(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCloudService_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs new file mode 100644 index 000000000000..a4daf16dec8c --- /dev/null +++ b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_Restart.cs @@ -0,0 +1,487 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzCloudServiceRoleInstance_Restart", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RestartAzCloudServiceRoleInstance_Restart : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _roleInstanceName; + + /// Name of the role instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the role instance.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the role instance.", + SerializedName = @"roleInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string RoleInstanceName { get => this._roleInstanceName; set => this._roleInstanceName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzCloudServiceRoleInstance_Restart + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RestartAzCloudServiceRoleInstance_Restart Clone() + { + var clone = new RestartAzCloudServiceRoleInstance_Restart(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.RoleInstanceName = this.RoleInstanceName; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServiceRoleInstancesRestart(RoleInstanceName, ResourceGroupName, CloudServiceName, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName,ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzCloudServiceRoleInstance_Restart() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { RoleInstanceName=RoleInstanceName, ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs new file mode 100644 index 000000000000..d00575bb1b8e --- /dev/null +++ b/src/CloudService/generated/cmdlets/RestartAzCloudServiceRoleInstance_RestartViaIdentity.cs @@ -0,0 +1,454 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + /// + /// + /// [OpenAPI] CloudServiceRoleInstances_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzCloudServiceRoleInstance_RestartViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RestartAzCloudServiceRoleInstance_RestartViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzCloudServiceRoleInstance_RestartViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RestartAzCloudServiceRoleInstance_RestartViaIdentity Clone() + { + var clone = new RestartAzCloudServiceRoleInstance_RestartViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServiceRoleInstancesRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServiceRoleInstancesRestartViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.RoleInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RoleInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServiceRoleInstancesRestart(InputObject.RoleInstanceName ?? null, InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzCloudServiceRoleInstance_RestartViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs new file mode 100644 index 000000000000..7706e2359ae5 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartExpanded.cs @@ -0,0 +1,494 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Restarts one or more role instances in a cloud service. + /// + /// [OpenAPI] CloudServices_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzCloudService_RestartExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Restarts one or more role instances in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RestartAzCloudService_RestartExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzCloudService_RestartExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RestartAzCloudService_RestartExpanded Clone() + { + var clone = new RestartAzCloudService_RestartExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesRestart(ResourceGroupName, Name, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzCloudService_RestartExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs new file mode 100644 index 000000000000..1dc368192b87 --- /dev/null +++ b/src/CloudService/generated/cmdlets/RestartAzCloudService_RestartViaIdentityExpanded.cs @@ -0,0 +1,469 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Restarts one or more role instances in a cloud service. + /// + /// [OpenAPI] CloudServices_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzCloudService_RestartViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Restarts one or more role instances in a cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class RestartAzCloudService_RestartViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.RoleInstances(); + + /// Specifies a list of role instances from the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstances ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + SerializedName = @"roleInstances", + PossibleTypes = new [] { typeof(string) })] + public string[] RoleInstance { get => ParametersBody.RoleInstance ?? null /* arrayOf */; set => ParametersBody.RoleInstance = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzCloudService_RestartViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.RestartAzCloudService_RestartViaIdentityExpanded Clone() + { + var clone = new RestartAzCloudService_RestartViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesRestartViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesRestart(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzCloudService_RestartViaIdentityExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs b/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs new file mode 100644 index 000000000000..7f7eb07a2961 --- /dev/null +++ b/src/CloudService/generated/cmdlets/SetAzCloudServiceUpdateDomain_WalkExpanded.cs @@ -0,0 +1,497 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Updates the role instances in the specified update domain. + /// + /// [OpenAPI] CloudServicesUpdateDomain_WalkUpdateDomain=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzCloudServiceUpdateDomain_WalkExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Updates the role instances in the specified update domain.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class SetAzCloudServiceUpdateDomain_WalkExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _cloudServiceName; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string CloudServiceName { get => this._cloudServiceName; set => this._cloudServiceName = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.UpdateDomain(); + + /// Defines an update domain for the cloud service. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IUpdateDomain ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _updateDomain; + + /// + /// Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the + /// first update domain has an ID of 0, the second has an ID of 1, and so on. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + SerializedName = @"updateDomain", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public int UpdateDomain { get => this._updateDomain; set => this._updateDomain = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzCloudServiceUpdateDomain_WalkExpanded + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.SetAzCloudServiceUpdateDomain_WalkExpanded Clone() + { + var clone = new SetAzCloudServiceUpdateDomain_WalkExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.CloudServiceName = this.CloudServiceName; + clone.UpdateDomain = this.UpdateDomain; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesUpdateDomainWalkUpdateDomain' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesUpdateDomainWalkUpdateDomain(ResourceGroupName, CloudServiceName, UpdateDomain, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,CloudServiceName=CloudServiceName,UpdateDomain=UpdateDomain,SubscriptionId=SubscriptionId,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public SetAzCloudServiceUpdateDomain_WalkExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, UpdateDomain=UpdateDomain, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, CloudServiceName=CloudServiceName, UpdateDomain=UpdateDomain, SubscriptionId=SubscriptionId, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs b/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs new file mode 100644 index 000000000000..c5d869400fea --- /dev/null +++ b/src/CloudService/generated/cmdlets/StartAzCloudService_Start.cs @@ -0,0 +1,473 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Starts the cloud service. + /// + /// [OpenAPI] CloudServices_Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzCloudService_Start", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Starts the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class StartAzCloudService_Start : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzCloudService_Start + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.StartAzCloudService_Start Clone() + { + var clone = new StartAzCloudService_Start(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesStart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesStart(ResourceGroupName, Name, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StartAzCloudService_Start() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs b/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs new file mode 100644 index 000000000000..5c705e0cea83 --- /dev/null +++ b/src/CloudService/generated/cmdlets/StartAzCloudService_StartViaIdentity.cs @@ -0,0 +1,448 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// Starts the cloud service. + /// + /// [OpenAPI] CloudServices_Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzCloudService_StartViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Starts the cloud service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class StartAzCloudService_StartViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzCloudService_StartViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.StartAzCloudService_StartViaIdentity Clone() + { + var clone = new StartAzCloudService_StartViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesStart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesStartViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesStart(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StartAzCloudService_StartViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs new file mode 100644 index 000000000000..93b339500fde --- /dev/null +++ b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOff.cs @@ -0,0 +1,475 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. + /// + /// + /// [OpenAPI] CloudServices_PowerOff=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzCloudService_PowerOff", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class StopAzCloudService_PowerOff : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud service.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the cloud service.", + SerializedName = @"cloudServiceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CloudServiceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// Name of the resource group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI + /// for every service call. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.")] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StopAzCloudService_PowerOff + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.StopAzCloudService_PowerOff Clone() + { + var clone = new StopAzCloudService_PowerOff(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesPowerOff' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CloudServicesPowerOff(ResourceGroupName, Name, SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,Name=Name,SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzCloudService_PowerOff() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, Name=Name, SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs new file mode 100644 index 000000000000..7be211f1c3cd --- /dev/null +++ b/src/CloudService/generated/cmdlets/StopAzCloudService_PowerOffViaIdentity.cs @@ -0,0 +1,450 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. + /// + /// + /// [OpenAPI] CloudServices_PowerOff=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzCloudService_PowerOffViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class StopAzCloudService_PowerOffViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StopAzCloudService_PowerOffViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.StopAzCloudService_PowerOffViaIdentity Clone() + { + var clone = new StopAzCloudService_PowerOffViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesPowerOff' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesPowerOffViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesPowerOff(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzCloudService_PowerOffViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs b/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs new file mode 100644 index 000000000000..01cbc96c2621 --- /dev/null +++ b/src/CloudService/generated/cmdlets/UpdateAzCloudService_CreateViaIdentity.cs @@ -0,0 +1,459 @@ +// 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.CloudService.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + /// + /// Create or update a cloud service. Please note some properties can be set only during cloud service creation. + /// + /// + /// [OpenAPI] CloudServices_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzCloudService_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Description(@"Create or update a cloud service. Please note some properties can be set only during cloud service creation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Generated] + public partial class UpdateAzCloudService_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.CloudService Client => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService _parameter; + + /// Describes the cloud service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Describes the cloud service.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Describes the cloud service.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService) })] + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CloudService.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzCloudService_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Cmdlets.UpdateAzCloudService_CreateViaIdentity Clone() + { + var clone = new UpdateAzCloudService_CreateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CloudServicesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CloudServicesCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CloudServiceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CloudServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CloudServicesCreateOrUpdate(InputObject.ResourceGroupName ?? null, InputObject.CloudServiceName ?? null, InputObject.SubscriptionId ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzCloudService_CreateViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/AsyncCommandRuntime.cs b/src/CloudService/generated/runtime/AsyncCommandRuntime.cs new file mode 100644 index 000000000000..fd3edac9f560 --- /dev/null +++ b/src/CloudService/generated/runtime/AsyncCommandRuntime.cs @@ -0,0 +1,828 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + using System.Linq; + + internal interface IAsyncCommandRuntimeExtensions + { + Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep func); + System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs); + + T ExecuteSync(System.Func step); + } + + public class AsyncCommandRuntime : System.Management.Automation.ICommandRuntime2, IAsyncCommandRuntimeExtensions, System.IDisposable + { + private ICommandRuntime2 originalCommandRuntime; + private System.Threading.Thread originalThread; + public bool AllowInteractive { get; set; } = false; + + public CancellationToken cancellationToken; + SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); + ManualResetEventSlim readyToRun = new ManualResetEventSlim(false); + ManualResetEventSlim completed = new ManualResetEventSlim(false); + + System.Action runOnMainThread; + + private System.Management.Automation.PSCmdlet cmdlet; + + internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, CancellationToken cancellationToken) + { + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + this.cancellationToken = cancellationToken; + this.cmdlet = cmdlet; + cmdlet.CommandRuntime = this; + } + + public PSHost Host => this.originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => this.originalCommandRuntime.CurrentPSTransaction; + + private void CheckForInteractive() + { + // This is an interactive call -- if we are not on the original thread, this will only work if this was done at ACR creation time; + if (!AllowInteractive) + { + throw new System.Exception("AsyncCommandRuntime is not configured for interactive calls"); + } + } + private void WaitOurTurn() + { + // wait for our turn to play + semaphore?.Wait(cancellationToken); + + // ensure that completed is not set + completed.Reset(); + } + + private void WaitForCompletion() + { + // wait for the result (or cancellation!) + WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, completed?.WaitHandle }); + + // let go of the semaphore + semaphore?.Release(); + + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target, string action) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target, action); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target, action); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + ShouldProcessReason reason = ShouldProcessReason.None; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out reason); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + shouldProcessReason = reason; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.ThrowTerminatingError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.ThrowTerminatingError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool TransactionAvailable() + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.TransactionAvailable(); + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.TransactionAvailable(); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteCommandDetail(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteCommandDetail(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteCommandDetail(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteDebug(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteDebug(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteDebug(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteInformation(informationRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteInformation(informationRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(sourceId, progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(sourceId, progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteVerbose(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteVerbose(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteVerbose(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteWarning(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteWarning(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteWarning(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Threading.CancellationToken cancellationToken) + { + do + { + WaitHandle.WaitAny(new[] { readyToRun.WaitHandle, ((System.IAsyncResult)ProcessRecordAsyncTask).AsyncWaitHandle }); + if (readyToRun.IsSet) + { + // reset the request for the next time + readyToRun.Reset(); + + // run the delegate on this thread + runOnMainThread(); + + // tell the originator everything is complete + completed.Set(); + } + } + while (!ProcessRecordAsyncTask.IsCompleted); + if (ProcessRecordAsyncTask.IsFaulted) + { + // don't unwrap a Aggregate Exception -- we'll lose the stack trace of the actual exception. + // if( ProcessRecordAsyncTask.Exception is System.AggregateException aggregate ) { + // throw aggregate.InnerException; + // } + throw ProcessRecordAsyncTask.Exception; + } + } + public Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3)); + public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap); + + public T ExecuteSync(System.Func step) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return step(); + } + + T result = default(T); + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + // set the function to run + runOnMainThread = () => { result = step(); }; + // tell the main thread to go ahead + readyToRun.Set(); + // wait for the result (or cancellation!) + WaitForCompletion(); + // return + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Dispose() + { + if (cmdlet != null) + { + cmdlet.CommandRuntime = this.originalCommandRuntime; + cmdlet = null; + } + + semaphore?.Dispose(); + semaphore = null; + readyToRun?.Dispose(); + readyToRun = null; + completed?.Dispose(); + completed = null; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/AsyncJob.cs b/src/CloudService/generated/runtime/AsyncJob.cs new file mode 100644 index 000000000000..bed37b41ab43 --- /dev/null +++ b/src/CloudService/generated/runtime/AsyncJob.cs @@ -0,0 +1,270 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + + using System.Threading.Tasks; + + public class LongRunningJobCancelledException : System.Exception + { + public LongRunningJobCancelledException(string message) : base(message) + { + + } + } + + public class AsyncJob : Job, System.Management.Automation.ICommandRuntime2 + { + const int MaxRecords = 1000; + + private string _statusMessage = string.Empty; + + public override string StatusMessage => _statusMessage; + + public override bool HasMoreData => Output.Count > 0 || Progress.Count > 0 || Error.Count > 0 || Warning.Count > 0 || Verbose.Count > 0 || Debug.Count > 0; + + public override string Location => "localhost"; + + public PSHost Host => originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => originalCommandRuntime.CurrentPSTransaction; + + public override void StopJob() + { + Cancel(); + } + + private readonly PSCmdlet cmdlet; + private readonly ICommandRuntime2 originalCommandRuntime; + private readonly System.Threading.Thread originalThread; + + private void CheckForInteractive() + { + // This is an interactive call -- We should never allow interactivity in AsnycJob cmdlets. + throw new System.Exception("Cmdlets in AsyncJob; interactive calls are not permitted."); + } + private bool IsJobDone => CancellationToken.IsCancellationRequested || this.JobStateInfo.State == JobState.Failed || this.JobStateInfo.State == JobState.Stopped || this.JobStateInfo.State == JobState.Stopping || this.JobStateInfo.State == JobState.Completed; + + private readonly System.Action Cancel; + private readonly CancellationToken CancellationToken; + + internal AsyncJob(PSCmdlet cmdlet, string line, string name, CancellationToken cancellationToken, System.Action cancelMethod) : base(line, name) + { + SetJobState(JobState.NotStarted); + // know how to cancel/check for cancelation + this.CancellationToken = cancellationToken; + this.Cancel = cancelMethod; + + // we might need these. + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + + // the instance of the cmdlet we're going to run + this.cmdlet = cmdlet; + + // set the command runtime to the AsyncJob + cmdlet.CommandRuntime = this; + } + + /// + /// Monitors the task (which should be ProcessRecordAsync) to control + /// the lifetime of the job itself + /// + /// + public void Monitor(Task task) + { + SetJobState(JobState.Running); + task.ContinueWith(antecedent => + { + if (antecedent.IsCanceled) + { + // if the task was canceled, we're just going to call it completed. + SetJobState(JobState.Completed); + } + else if (antecedent.IsFaulted) + { + foreach (var innerException in antecedent.Exception.Flatten().InnerExceptions) + { + WriteError(new System.Management.Automation.ErrorRecord(innerException, string.Empty, System.Management.Automation.ErrorCategory.NotSpecified, null)); + } + + // a fault indicates an actual failure + SetJobState(JobState.Failed); + } + else + { + // otherwiser it's a completed state. + SetJobState(JobState.Completed); + } + }, CancellationToken); + } + + private void CheckForCancellation() + { + if (IsJobDone) + { + throw new LongRunningJobCancelledException("Long running job is canceled or stopping, continuation of the cmdlet is not permitted."); + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + CheckForCancellation(); + + this.Information.Add(informationRecord); + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public void WriteDebug(string text) + { + _statusMessage = text; + CheckForCancellation(); + + if (Debug.IsOpen && Debug.Count < MaxRecords) + { + Debug.Add(new DebugRecord(text)); + } + } + + public void WriteError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + + public void WriteObject(object sendToPipeline) + { + CheckForCancellation(); + + if (Output.IsOpen) + { + Output.Add(new PSObject(sendToPipeline)); + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + CheckForCancellation(); + + if (enumerateCollection && sendToPipeline is System.Collections.IEnumerable enumerable) + { + foreach (var item in enumerable) + { + WriteObject(item); + } + } + else + { + WriteObject(sendToPipeline); + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteVerbose(string text) + { + CheckForCancellation(); + + if (Verbose.IsOpen && Verbose.Count < MaxRecords) + { + Verbose.Add(new VerboseRecord(text)); + } + } + + public void WriteWarning(string text) + { + CheckForCancellation(); + + if (Warning.IsOpen && Warning.Count < MaxRecords) + { + Warning.Add(new WarningRecord(text)); + } + } + + public void WriteCommandDetail(string text) + { + WriteVerbose(text); + } + + public bool ShouldProcess(string target) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string target, string action) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + CheckForInteractive(); + shouldProcessReason = ShouldProcessReason.None; + return false; + } + + public bool ShouldContinue(string query, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public bool TransactionAvailable() + { + // interactivity required? + return false; + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/AsyncOperationResponse.cs b/src/CloudService/generated/runtime/AsyncOperationResponse.cs new file mode 100644 index 000000000000..6c10436002c3 --- /dev/null +++ b/src/CloudService/generated/runtime/AsyncOperationResponse.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + [System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))] + public class AsyncOperationResponse + { + private string _target; + public string Target { get => _target; set => _target = value; } + public AsyncOperationResponse() + { + } + internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json) + { + // pull target + { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; } + } + public string ToJsonString() + { + return $"{{ \"target\" : \"{this.Target}\" }}"; + } + + public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null; + } + + + /// + /// 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 AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(jsonText)); + + } + + public partial class AsyncOperationResponseTypeConverter : 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 + /// parameter. + /// + /// 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(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.CloudService.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CloudService.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 to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static object ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(AsyncOperationResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AsyncOperationResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString()); ; + } + catch + { + // Unable to use JSON pattern + } + + if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as System.Management.Automation.PSObject).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as global::System.Collections.IDictionary).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + 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/CloudService/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs new file mode 100644 index 000000000000..2db6e3a6560b --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs @@ -0,0 +1,113 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "CmdletSurface")] + [DoNotExport] + public class ExportCmdletSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CmdletFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool IncludeGeneralParameters { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = GetScriptCmdlets(this, CmdletFolder) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + foreach (var profileGroup in profileGroups) + { + var variantGroups = profileGroup.Variants + .GroupBy(v => new { v.CmdletName }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), String.Empty, profileGroup.ProfileName)); + var sb = UseExpandedFormat ? ExpandedFormat(variantGroups) : CondensedFormat(variantGroups); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, $"CmdletSurface-{profileGroup.ProfileName}.md"), sb.ToString()); + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private StringBuilder ExpandedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + foreach (var variantGroup in variantGroups.OrderBy(vg => vg.CmdletName)) + { + sb.Append($"### {variantGroup.CmdletName}{Environment.NewLine}"); + var parameterGroups = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private StringBuilder CondensedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + var condensedGroups = variantGroups + .GroupBy(vg => vg.CmdletNoun) + .Select(vgg => ( + CmdletNoun: vgg.Key, + CmdletVerbs: vgg.Select(vg => vg.CmdletVerb).OrderBy(cv => cv).ToArray(), + ParameterGroups: vgg.SelectMany(vg => vg.ParameterGroups).DistinctBy(p => p.ParameterName).ToArray(), + OutputTypes: vgg.SelectMany(vg => vg.OutputTypes).Select(ot => ot.Type).DistinctBy(t => t.Name).Select(t => t.ToSyntaxTypeName()).ToArray())) + .OrderBy(vg => vg.CmdletNoun); + foreach (var condensedGroup in condensedGroups) + { + sb.Append($"### {condensedGroup.CmdletNoun} [{String.Join(", ", condensedGroup.CmdletVerbs)}] `{String.Join(", ", condensedGroup.OutputTypes)}`{Environment.NewLine}"); + var parameterGroups = condensedGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs new file mode 100644 index 000000000000..23f5e1dfa03b --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ExampleStub")] + [DoNotExport] + public class ExportExampleStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + + var exampleText = String.Join(String.Empty, DefaultExampleHelpInfos.Select(ehi => ehi.ToHelpExampleOutput())); + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var cmdletFilePaths = GetScriptCmdlets(exportDirectory).Select(fi => Path.Combine(outputFolder, $"{fi.Name}.md")).ToArray(); + var currentExamplesFilePaths = Directory.GetFiles(outputFolder).ToArray(); + // Remove examples of non-existing cmdlets + var removedCmdletFilePaths = currentExamplesFilePaths.Except(cmdletFilePaths); + foreach (var removedCmdletFilePath in removedCmdletFilePaths) + { + File.Delete(removedCmdletFilePath); + } + + // Only create example stubs if they don't exist + foreach (var cmdletFilePath in cmdletFilePaths.Except(currentExamplesFilePaths)) + { + File.WriteAllText(cmdletFilePath, exampleText); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs new file mode 100644 index 000000000000..2845470ee65c --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -0,0 +1,99 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "FormatPs1xml")] + [DoNotExport] + public class ExportFormatPs1xml : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string FilePath { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support"; + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + + protected override void ProcessRecord() + { + try + { + var viewModels = GetFilteredViewParameters().Select(CreateViewModel).ToList(); + var ps1xml = new Configuration + { + ViewDefinitions = new ViewDefinitions + { + Views = viewModels + } + }; + File.WriteAllText(FilePath, ps1xml.ToXmlString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static IEnumerable GetFilteredViewParameters() + { + //https://stackoverflow.com/a/79738/294804 + //https://stackoverflow.com/a/949285/294804 + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass + && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace)) + && !t.GetCustomAttributes().Any()); + return types.Select(t => new ViewParameters(t, t.GetProperties() + .Select(p => new PropertyFormat(p)) + .Where(pf => !pf.Property.GetCustomAttributes().Any() + && (!IsAzure || pf.Property.Name != "Id") + && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) + .OrderByDescending(pf => pf.Index.HasValue) + .ThenBy(pf => pf.Index) + .ThenByDescending(pf => pf.Origin.HasValue) + .ThenBy(pf => pf.Origin))).Where(vp => vp.Properties.Any()); + } + + private static View CreateViewModel(ViewParameters viewParameters) + { + var entries = viewParameters.Properties.Select(pf => + (TableColumnHeader: new TableColumnHeader { Label = pf.Label, Width = pf.Width }, + TableColumnItem: new TableColumnItem { PropertyName = pf.Property.Name })).ToArray(); + + return new View + { + Name = viewParameters.Type.FullName, + ViewSelectedBy = new ViewSelectedBy + { + TypeName = viewParameters.Type.FullName + }, + TableControl = new TableControl + { + TableHeaders = new TableHeaders + { + TableColumnHeaders = entries.Select(e => e.TableColumnHeader).ToList() + }, + TableRowEntries = new TableRowEntries + { + TableRowEntry = new TableRowEntry + { + TableColumnItems = new TableColumnItems + { + TableItems = entries.Select(e => e.TableColumnItem).ToList() + } + } + } + } + }; + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs new file mode 100644 index 000000000000..090a8118d7ff --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.MarkdownRenderer; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "HelpMarkdown")] + [DoNotExport] + public class ExportHelpMarkdown : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSModuleInfo ModuleInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] FunctionInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] HelpInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + var helpInfos = HelpInfo.Select(hi => hi.ToPsHelpInfo()); + var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() + .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) + .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs new file mode 100644 index 000000000000..fc2f356c36fe --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ModelSurface")] + [DoNotExport] + public class ExportModelSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support"; + + protected override void ProcessRecord() + { + try + { + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace))); + var typeInfos = types.Select(t => new ModelTypeInfo + { + Type = t, + TypeName = t.Name, + Properties = t.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => !p.GetIndexParameters().Any()).OrderBy(p => p.Name).ToArray(), + NamespaceGroup = t.Namespace.Split('.').LastOrDefault().EmptyIfNull() + }).Where(mti => mti.Properties.Any()); + var sb = UseExpandedFormat ? ExpandedFormat(typeInfos) : CondensedFormat(typeInfos); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, "ModelSurface.md"), sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static StringBuilder ExpandedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + foreach (var typeInfo in typeInfos.OrderBy(mti => mti.TypeName).ThenBy(mti => mti.NamespaceGroup)) + { + sb.Append($"### {typeInfo.TypeName} [{typeInfo.NamespaceGroup}]{Environment.NewLine}"); + foreach (var property in typeInfo.Properties) + { + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private static StringBuilder CondensedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + var typeGroups = typeInfos + .GroupBy(mti => mti.TypeName) + .Select(tig => ( + Types: tig.Select(mti => mti.Type).ToArray(), + TypeName: tig.Key, + Properties: tig.SelectMany(mti => mti.Properties).DistinctBy(p => p.Name).OrderBy(p => p.Name).ToArray(), + NamespaceGroups: tig.Select(mti => mti.NamespaceGroup).OrderBy(ng => ng).ToArray() + )) + .OrderBy(tg => tg.TypeName); + foreach (var typeGroup in typeGroups) + { + var aType = typeGroup.Types.Select(GetAssociativeType).FirstOrDefault(t => t != null); + var aText = aType != null ? $@" \<{aType.ToSyntaxTypeName()}\>" : String.Empty; + sb.Append($"### {typeGroup.TypeName}{aText} [{String.Join(", ", typeGroup.NamespaceGroups)}]{Environment.NewLine}"); + foreach (var property in typeGroup.Properties) + { + var propertyAType = GetAssociativeType(property.PropertyType); + var propertyAText = propertyAType != null ? $" <{propertyAType.ToSyntaxTypeName()}>" : String.Empty; + var enumNames = GetEnumFieldNames(property.PropertyType.Unwrap()); + var enumNamesText = enumNames.Any() ? $" **{{{String.Join(", ", enumNames)}}}**" : String.Empty; + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}{propertyAText}`{enumNamesText}{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + //https://stackoverflow.com/a/4963190/294804 + private static Type GetAssociativeType(Type type) => + type.GetInterfaces().FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>))?.GetGenericArguments().First(); + + private static string[] GetEnumFieldNames(Type type) => + type.IsValueType && !type.IsPrimitive && type != typeof(decimal) && type != typeof(DateTime) + ? type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(f => f.FieldType == type).Select(p => p.Name).ToArray() + : new string[] { }; + + private class ModelTypeInfo + { + public Type Type { get; set; } + public string TypeName { get; set; } + public PropertyInfo[] Properties { get; set; } + public string NamespaceGroup { get; set; } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs new file mode 100644 index 000000000000..0b72cf7488a3 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -0,0 +1,159 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.MarkdownRenderer; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyTypeExtensions; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")] + [DoNotExport] + public class ExportProxyCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string[] ModulePath { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string InternalFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [AllowEmptyString] + public string ModuleDescription { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + public Guid ModuleGuid { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] + public SwitchParameter ExcludeDocs { get; set; } + + protected override void ProcessRecord() + { + try { + var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + var variantGroups = profileGroups.SelectMany(pg => pg.Variants + .GroupBy(v => new { v.CmdletName, v.IsInternal }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + .ToArray(); + + foreach (var variantGroup in variantGroups) + { + var parameterGroups = variantGroup.ParameterGroups.ToList(); + var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; + var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); + List examples = new List(); + foreach (var it in markdownInfo.Examples) + { + examples.Add(it); + } + variantGroup.HelpInfo.Examples = examples.ToArray(); + var sb = new StringBuilder(); + sb.Append(@" +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +"); + sb.Append($"{Environment.NewLine}"); + sb.Append(variantGroup.ToHelpCommentOutput()); + sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); + sb.Append(variantGroup.Aliases.ToAliasOutput()); + sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); + sb.Append(variantGroup.ToCmdletBindingOutput()); + sb.Append(variantGroup.ProfileName.ToProfileOutput()); + + sb.Append("param("); + sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) + { + var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; + foreach (var parameter in parameters) + { + sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + } + sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); + sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); + sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); + sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); + sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); + sb.Append(parameterGroup.ToDefaultInfoOutput()); + sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); + sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); + sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); + } + sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + + sb.Append(variantGroup.ToBeginOutput()); + sb.Append(variantGroup.ToProcessOutput()); + sb.Append(variantGroup.ToEndOutput()); + + sb.Append($"}}{Environment.NewLine}"); + + Directory.CreateDirectory(variantGroup.OutputFolder); + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); + } + + if (!ExcludeDocs) + { + var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); + foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + { + var profileName = variantGroupsByProfile.Key; + var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; + var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + } + } + } catch (Exception ee) { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs new file mode 100644 index 000000000000..067f95b6c44f --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -0,0 +1,125 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } + + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.CloudService.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: CloudService cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.CloudService.private.dll"}'"); + + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.CloudService.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule CloudService".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs new file mode 100644 index 000000000000..085d61481fb8 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -0,0 +1,137 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing +} +"); + File.WriteAllText(utilFile, sc.ToString()); + } + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine(@"$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath)" +); + sb.AppendLine($@"$TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@"$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName +"); + + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); + + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); + + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs new file mode 100644 index 000000000000..24b08265e2f2 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs @@ -0,0 +1,52 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "CommonParameter")] + [OutputType(typeof(Dictionary))] + [DoNotExport] + public class GetCommonParameter : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSCmdlet PSCmdlet { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public Dictionary PSBoundParameter { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = PSCmdlet.MyInvocation.MyCommand.ToVariants(); + var commonParameterNames = variants.ToParameterGroups() + .Where(pg => pg.OrderCategory == ParameterCategory.Azure || pg.OrderCategory == ParameterCategory.Runtime) + .Select(pg => pg.ParameterName); + if (variants.Any(v => v.SupportsShouldProcess)) + { + commonParameterNames = commonParameterNames.Append("Confirm").Append("WhatIf"); + } + if (variants.Any(v => v.SupportsPaging)) + { + commonParameterNames = commonParameterNames.Append("First").Append("Skip").Append("IncludeTotalCount"); + } + + var names = commonParameterNames.ToArray(); + var keys = PSBoundParameter.Keys.Where(k => names.Contains(k)); + WriteObject(keys.ToDictionary(key => key, key => PSBoundParameter[key]), true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs new file mode 100644 index 000000000000..c25a9daebc9a --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ModuleGuid")] + [DoNotExport] + public class GetModuleGuid : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + protected override void ProcessRecord() + { + try + { + WriteObject(ReadGuidFromPsd1(Psd1Path)); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs new file mode 100644 index 000000000000..5982b9a4032a --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ScriptCmdlet")] + [OutputType(typeof(string[]))] + [DoNotExport] + public class GetScriptCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ScriptFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeDoNotExport { get; set; } + + [Parameter] + public SwitchParameter AsAlias { get; set; } + + [Parameter] + public SwitchParameter AsFunctionInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var functionInfos = GetScriptCmdlets(this, ScriptFolder) + .Where(fi => IncludeDoNotExport || !fi.ScriptBlock.Attributes.OfType().Any()) + .ToArray(); + if (AsFunctionInfo) + { + WriteObject(functionInfos, true); + return; + } + var aliases = functionInfos.SelectMany(i => i.ScriptBlock.Attributes).ToAliasNames(); + var names = functionInfos.Select(fi => fi.Name).Distinct(); + var output = (AsAlias ? aliases : names).DefaultIfEmpty("''").ToArray(); + WriteObject(output, true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/CollectionExtensions.cs b/src/CloudService/generated/runtime/BuildTime/CollectionExtensions.cs new file mode 100644 index 000000000000..381cf2775030 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/CollectionExtensions.cs @@ -0,0 +1,20 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class CollectionExtensions + { + public static T[] NullIfEmpty(this T[] collection) => (collection?.Any() ?? false) ? collection : null; + public static IEnumerable EmptyIfNull(this IEnumerable collection) => collection ?? Enumerable.Empty(); + + // https://stackoverflow.com/a/4158364/294804 + public static IEnumerable DistinctBy(this IEnumerable collection, Func selector) => + collection.GroupBy(selector).Select(group => group.First()); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/CloudService/generated/runtime/BuildTime/MarkdownRenderer.cs new file mode 100644 index 000000000000..59ae73f89be3 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -0,0 +1,121 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class MarkdownRenderer + { + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + { + Directory.CreateDirectory(docsFolder); + var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); + + foreach (var markdownInfo in markdownInfos) + { + var sb = new StringBuilder(); + sb.Append(markdownInfo.ToHelpMetadataOutput()); + sb.Append($"# {markdownInfo.CmdletName}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"## SYNOPSIS{Environment.NewLine}{markdownInfo.Synopsis.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## SYNTAX{Environment.NewLine}{Environment.NewLine}"); + var hasMultipleParameterSets = markdownInfo.SyntaxInfos.Length > 1; + foreach (var syntaxInfo in markdownInfo.SyntaxInfos) + { + sb.Append(syntaxInfo.ToHelpSyntaxOutput(hasMultipleParameterSets)); + } + + sb.Append($"## DESCRIPTION{Environment.NewLine}{markdownInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## EXAMPLES{Environment.NewLine}{Environment.NewLine}"); + foreach (var exampleInfo in markdownInfo.Examples) + { + sb.Append(exampleInfo.ToHelpExampleOutput()); + } + + sb.Append($"## PARAMETERS{Environment.NewLine}{Environment.NewLine}"); + foreach (var parameter in markdownInfo.Parameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + if (markdownInfo.SupportsShouldProcess) + { + foreach (var parameter in SupportsShouldProcessParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + if (markdownInfo.SupportsPaging) + { + foreach (var parameter in SupportsPagingParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + + sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## INPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var input in markdownInfo.Inputs) + { + sb.Append($"### {input}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## OUTPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var output in markdownInfo.Outputs) + { + sb.Append($"### {output}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); + foreach (var alias in markdownInfo.Aliases) + { + sb.Append($"### {alias}{Environment.NewLine}{Environment.NewLine}"); + } + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); + foreach (var relatedLink in markdownInfo.RelatedLinks) + { + sb.Append($"{relatedLink}{Environment.NewLine}{Environment.NewLine}"); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); + } + + WriteModulePage(moduleHelpInfo, markdownInfos, docsFolder); + } + + private static void WriteModulePage(PsModuleHelpInfo moduleInfo, MarkdownHelpInfo[] markdownInfos, string docsFolder) + { + var sb = new StringBuilder(); + sb.Append(moduleInfo.ToModulePageMetadataOutput()); + sb.Append($"# {moduleInfo.Name} Module{Environment.NewLine}"); + sb.Append($"## Description{Environment.NewLine}{moduleInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## {moduleInfo.Name} Cmdlets{Environment.NewLine}"); + foreach (var markdownInfo in markdownInfos) + { + sb.Append(markdownInfo.ToModulePageCmdletOutput()); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{moduleInfo.Name}.md"), sb.ToString()); + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsFormatTypes.cs new file mode 100644 index 000000000000..ad135fced71c --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsFormatTypes.cs @@ -0,0 +1,138 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class ViewParameters + { + public Type Type { get; } + public IEnumerable Properties { get; } + + public ViewParameters(Type type, IEnumerable properties) + { + Type = type; + Properties = properties; + } + } + + internal class PropertyFormat + { + public PropertyInfo Property { get; } + public FormatTableAttribute FormatTable { get; } + + public int? Index { get; } + public string Label { get; } + public int? Width { get; } + public PropertyOrigin? Origin { get; } + + public PropertyFormat(PropertyInfo propertyInfo) + { + Property = propertyInfo; + FormatTable = Property.GetCustomAttributes().FirstOrDefault(); + var origin = Property.GetCustomAttributes().FirstOrDefault(); + + Index = FormatTable?.HasIndex ?? false ? (int?)FormatTable.Index : null; + Label = FormatTable?.Label ?? propertyInfo.Name; + Width = FormatTable?.HasWidth ?? false ? (int?)FormatTable.Width : null; + // If we have an index, we don't want to use Origin. + Origin = FormatTable?.HasIndex ?? false ? null : origin?.Origin; + } + } + + [Serializable] + [XmlRoot(nameof(Configuration))] + public class Configuration + { + [XmlElement("ViewDefinitions")] + public ViewDefinitions ViewDefinitions { get; set; } + } + + [Serializable] + public class ViewDefinitions + { + //https://stackoverflow.com/a/10518657/294804 + [XmlElement("View")] + public List Views { get; set; } + } + + [Serializable] + public class View + { + [XmlElement(nameof(Name))] + public string Name { get; set; } + [XmlElement(nameof(ViewSelectedBy))] + public ViewSelectedBy ViewSelectedBy { get; set; } + [XmlElement(nameof(TableControl))] + public TableControl TableControl { get; set; } + } + + [Serializable] + public class ViewSelectedBy + { + [XmlElement(nameof(TypeName))] + public string TypeName { get; set; } + } + + [Serializable] + public class TableControl + { + [XmlElement(nameof(TableHeaders))] + public TableHeaders TableHeaders { get; set; } + [XmlElement(nameof(TableRowEntries))] + public TableRowEntries TableRowEntries { get; set; } + } + + [Serializable] + public class TableHeaders + { + [XmlElement("TableColumnHeader")] + public List TableColumnHeaders { get; set; } + } + + [Serializable] + public class TableColumnHeader + { + [XmlElement(nameof(Label))] + public string Label { get; set; } + [XmlElement(nameof(Width))] + public int? Width { get; set; } + + //https://stackoverflow.com/a/4095225/294804 + public bool ShouldSerializeWidth() => Width.HasValue; + } + + [Serializable] + public class TableRowEntries + { + [XmlElement(nameof(TableRowEntry))] + public TableRowEntry TableRowEntry { get; set; } + } + + [Serializable] + public class TableRowEntry + { + [XmlElement(nameof(TableColumnItems))] + public TableColumnItems TableColumnItems { get; set; } + } + + [Serializable] + public class TableColumnItems + { + [XmlElement("TableColumnItem")] + public List TableItems { get; set; } + } + + [Serializable] + public class TableColumnItem + { + [XmlElement(nameof(PropertyName))] + public string PropertyName { get; set; } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs new file mode 100644 index 000000000000..0c2a8035c0f1 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class HelpMetadataOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public HelpMetadataOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"--- +external help file:{(!String.IsNullOrEmpty(HelpInfo.ExternalHelpFilename) ? $" {HelpInfo.ExternalHelpFilename}" : String.Empty)} +Module Name: {HelpInfo.ModuleName} +online version: {HelpInfo.OnlineVersion} +schema: {HelpInfo.Schema.ToString(3)} +--- + +"; + } + + internal class HelpSyntaxOutput + { + public MarkdownSyntaxHelpInfo SyntaxInfo { get; } + public bool HasMultipleParameterSets { get; } + + public HelpSyntaxOutput(MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) + { + SyntaxInfo = syntaxInfo; + HasMultipleParameterSets = hasMultipleParameterSets; + } + + public override string ToString() + { + var psnText = HasMultipleParameterSets ? $"### {SyntaxInfo.ParameterSetName}{(SyntaxInfo.IsDefault ? " (Default)" : String.Empty)}{Environment.NewLine}" : String.Empty; + return $@"{psnText}``` +{SyntaxInfo.SyntaxText} +``` + +"; + } + } + + internal class HelpExampleOutput + { + public MarkdownExampleHelpInfo ExampleInfo { get; } + + public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) + { + ExampleInfo = exampleInfo; + } + + public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} +{ExampleCodeHeader} +{ExampleInfo.Code} +{ExampleCodeFooter} + +{ExampleInfo.Description.ToDescriptionFormat()} + +"; + } + + + internal class HelpParameterOutput + { + public MarkdownParameterHelpInfo ParameterInfo { get; } + + public HelpParameterOutput(MarkdownParameterHelpInfo parameterInfo) + { + ParameterInfo = parameterInfo; + } + + public override string ToString() + { + var pipelineInputTypes = new[] + { + ParameterInfo.AcceptsPipelineByValue ? "ByValue" : String.Empty, + ParameterInfo.AcceptsPipelineByPropertyName ? "ByPropertyName" : String.Empty + }.JoinIgnoreEmpty(", "); + var pipelineInput = ParameterInfo.AcceptsPipelineByValue || ParameterInfo.AcceptsPipelineByPropertyName + ? $@"{true} ({pipelineInputTypes})" + : false.ToString(); + + return $@"### -{ParameterInfo.Name} +{ParameterInfo.Description.ToDescriptionFormat()} + +```yaml +Type: {ParameterInfo.Type.FullName} +Parameter Sets: {(ParameterInfo.HasAllParameterSets ? "(All)" : ParameterInfo.ParameterSetNames.JoinIgnoreEmpty(", "))} +Aliases:{(ParameterInfo.Aliases.Any() ? $" {ParameterInfo.Aliases.JoinIgnoreEmpty(", ")}" : String.Empty)} + +Required: {ParameterInfo.IsRequired} +Position: {ParameterInfo.Position} +Default value: {ParameterInfo.DefaultValue} +Accept pipeline input: {pipelineInput} +Accept wildcard characters: {ParameterInfo.AcceptsWildcardCharacters} +``` + +"; + } + } + + internal class ModulePageMetadataOutput + { + public PsModuleHelpInfo ModuleInfo { get; } + + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) + { + ModuleInfo = moduleInfo; + } + + public override string ToString() => $@"--- +Module Name: {ModuleInfo.Name} +Module Guid: {ModuleInfo.Guid} +Download Help Link: {HelpLinkPrefix}{ModuleInfo.Name.ToLowerInvariant()} +Help Version: 1.0.0.0 +Locale: en-US +--- + +"; + } + + internal class ModulePageCmdletOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) +{HelpInfo.Description.ToDescriptionFormat()} + +"; + } + + internal static class PsHelpOutputExtensions + { + public static string EscapeAngleBrackets(this string text) => text?.Replace("<", @"\<").Replace(">", @"\>"); + public static string ReplaceSentenceEndWithNewline(this string text) => text?.Replace(". ", $".{Environment.NewLine}").Replace(". ", $".{Environment.NewLine}"); + public static string ReplaceBrWithNewline(this string text) => text?.Replace("
", $"{Environment.NewLine}"); + public static string ToDescriptionFormat(this string text, bool escapeAngleBrackets = true) + { + var description = text?.ReplaceBrWithNewline(); + description = escapeAngleBrackets ? description?.EscapeAngleBrackets() : description; + return description?.ReplaceSentenceEndWithNewline().Trim(); + } + + public const string ExampleNameHeader = "### "; + public const string ExampleCodeHeader = "```powershell"; + public const string ExampleCodeFooter = "```"; + + public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); + + public static HelpSyntaxOutput ToHelpSyntaxOutput(this MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) => new HelpSyntaxOutput(syntaxInfo, hasMultipleParameterSets); + + public static HelpExampleOutput ToHelpExampleOutput(this MarkdownExampleHelpInfo exampleInfo) => new HelpExampleOutput(exampleInfo); + + public static HelpParameterOutput ToHelpParameterOutput(this MarkdownParameterHelpInfo parameterInfo) => new HelpParameterOutput(parameterInfo); + + public static ModulePageMetadataOutput ToModulePageMetadataOutput(this PsModuleHelpInfo moduleInfo) => new ModulePageMetadataOutput(moduleInfo); + + public static ModulePageCmdletOutput ToModulePageCmdletOutput(this MarkdownHelpInfo helpInfo) => new ModulePageCmdletOutput(helpInfo); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsHelpTypes.cs new file mode 100644 index 000000000000..bc2ab9b917e7 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -0,0 +1,199 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class PsHelpInfo + { + public string CmdletName { get; } + public string ModuleName { get; } + public string Synopsis { get; } + public string Description { get; } + public string AlertText { get; } + public string Category { get; } + public PsHelpLinkInfo OnlineVersion { get; } + public PsHelpLinkInfo[] RelatedLinks { get; } + public bool? HasCommonParameters { get; } + public bool? HasWorkflowCommonParameters { get; } + + public PsHelpTypeInfo[] InputTypes { get; } + public PsHelpTypeInfo[] OutputTypes { get; } + public PsHelpExampleInfo[] Examples { get; set; } + public string[] Aliases { get; } + + public PsParameterHelpInfo[] Parameters { get; } + public PsHelpSyntaxInfo[] Syntax { get; } + + public object Component { get; } + public object Functionality { get; } + public object PsSnapIn { get; } + public object Role { get; } + public string NonTerminatingErrors { get; } + + public PsHelpInfo(PSObject helpObject = null) + { + helpObject = helpObject ?? new PSObject(); + CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); + ModuleName = helpObject.GetProperty("ModuleName"); + Synopsis = helpObject.GetProperty("Synopsis"); + Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? + helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); + Category = helpObject.GetProperty("Category"); + HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); + HasWorkflowCommonParameters = helpObject.GetProperty("WorkflowCommonParameters").ToNullableBool(); + + var links = helpObject.GetNestedProperty("relatedLinks", "navigationLink").EmptyIfNull().Select(nl => nl.ToLinkInfo()).ToArray(); + OnlineVersion = links.FirstOrDefault(l => l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length == 1); + RelatedLinks = links.Where(l => !l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length != 1).ToArray(); + + InputTypes = helpObject.GetNestedProperty("inputTypes", "inputType").EmptyIfNull().Select(it => it.ToTypeInfo()).ToArray(); + OutputTypes = helpObject.GetNestedProperty("returnValues", "returnValue").EmptyIfNull().Select(rv => rv.ToTypeInfo()).ToArray(); + Examples = helpObject.GetNestedProperty("examples", "example").EmptyIfNull().Select(e => e.ToExampleInfo()).ToArray(); + Aliases = helpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); + + Parameters = helpObject.GetNestedProperty("parameters", "parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + Syntax = helpObject.GetNestedProperty("syntax", "syntaxItem").EmptyIfNull().Select(si => si.ToSyntaxInfo()).ToArray(); + + Component = helpObject.GetProperty("Component"); + Functionality = helpObject.GetProperty("Functionality"); + PsSnapIn = helpObject.GetProperty("PSSnapIn"); + Role = helpObject.GetProperty("Role"); + NonTerminatingErrors = helpObject.GetProperty("nonTerminatingErrors"); + } + } + + internal class PsHelpTypeInfo + { + public string Name { get; } + public string Description { get; } + + public PsHelpTypeInfo(PSObject typeObject) + { + Name = typeObject.GetNestedProperty("type", "name").EmptyIfNull().Trim(); + Description = typeObject.GetProperty("description").EmptyIfNull().ToDescriptionText(); + } + } + + internal class PsHelpLinkInfo + { + public string Uri { get; } + public string Text { get; } + + public PsHelpLinkInfo(PSObject linkObject) + { + Uri = linkObject.GetProperty("uri"); + Text = linkObject.GetProperty("linkText"); + } + } + + internal class PsHelpSyntaxInfo + { + public string CmdletName { get; } + public PsParameterHelpInfo[] Parameters { get; } + + public PsHelpSyntaxInfo(PSObject syntaxObject) + { + CmdletName = syntaxObject.GetProperty("name"); + Parameters = syntaxObject.GetProperty("parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + } + } + + internal class PsHelpExampleInfo + { + public string Title { get; } + public string Code { get; } + public string Remarks { get; } + + public PsHelpExampleInfo(PSObject exampleObject) + { + Title = exampleObject.GetProperty("title"); + Code = exampleObject.GetProperty("code"); + Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); + } + public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) + { + Title = markdownExample.Name; + Code = markdownExample.Code; + Remarks = markdownExample.Description; + } + + public static implicit operator PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) => new PsHelpExampleInfo(markdownExample); + } + + internal class PsParameterHelpInfo + { + public string DefaultValueAsString { get; } + + public string Name { get; } + public string TypeName { get; } + public string Description { get; } + public string SupportsPipelineInput { get; } + public string PositionText { get; } + public string[] ParameterSetNames { get; } + public string[] Aliases { get; } + + public bool? SupportsGlobbing { get; } + public bool? IsRequired { get; } + public bool? IsVariableLength { get; } + public bool? IsDynamic { get; } + + public PsParameterHelpInfo(PSObject parameterHelpObject = null) + { + parameterHelpObject = parameterHelpObject ?? new PSObject(); + DefaultValueAsString = parameterHelpObject.GetProperty("defaultValue"); + Name = parameterHelpObject.GetProperty("name"); + TypeName = parameterHelpObject.GetProperty("parameterValue").NullIfEmpty() ?? parameterHelpObject.GetNestedProperty("type", "name"); + Description = parameterHelpObject.GetProperty("Description").EmptyIfNull().ToDescriptionText(); + SupportsPipelineInput = parameterHelpObject.GetProperty("pipelineInput"); + PositionText = parameterHelpObject.GetProperty("position"); + ParameterSetNames = parameterHelpObject.GetProperty("parameterSetName").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + Aliases = parameterHelpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + + SupportsGlobbing = parameterHelpObject.GetProperty("globbing").ToNullableBool(); + IsRequired = parameterHelpObject.GetProperty("required").ToNullableBool(); + IsVariableLength = parameterHelpObject.GetProperty("variableLength").ToNullableBool(); + IsDynamic = parameterHelpObject.GetProperty("isDynamic").ToNullableBool(); + } + } + + internal class PsModuleHelpInfo + { + public string Name { get; } + public Guid Guid { get; } + public string Description { get; } + + public PsModuleHelpInfo(PSModuleInfo moduleInfo) + : this(moduleInfo?.Name ?? String.Empty, moduleInfo?.Guid ?? Guid.NewGuid(), moduleInfo?.Description ?? String.Empty) + { + } + + public PsModuleHelpInfo(string name, Guid guid, string description) + { + Name = name; + Guid = guid; + Description = description; + } + } + + internal static class HelpTypesExtensions + { + public static PsHelpInfo ToPsHelpInfo(this PSObject helpObject) => new PsHelpInfo(helpObject); + public static PsParameterHelpInfo ToPsParameterHelpInfo(this PSObject parameterHelpObject) => new PsParameterHelpInfo(parameterHelpObject); + + public static string ToDescriptionText(this IEnumerable descriptionObject) => descriptionObject != null + ? String.Join(Environment.NewLine, descriptionObject.Select(dl => dl.GetProperty("Text").EmptyIfNull())).NullIfWhiteSpace() + : null; + public static PsHelpTypeInfo ToTypeInfo(this PSObject typeObject) => new PsHelpTypeInfo(typeObject); + public static PsHelpExampleInfo ToExampleInfo(this PSObject exampleObject) => new PsHelpExampleInfo(exampleObject); + public static PsHelpLinkInfo ToLinkInfo(this PSObject linkObject) => new PsHelpLinkInfo(linkObject); + public static PsHelpSyntaxInfo ToSyntaxInfo(this PSObject syntaxObject) => new PsHelpSyntaxInfo(syntaxObject); + public static PsModuleHelpInfo ToModuleInfo(this PSModuleInfo moduleInfo) => new PsModuleHelpInfo(moduleInfo); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs new file mode 100644 index 000000000000..b8c30f34b813 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -0,0 +1,291 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class MarkdownHelpInfo + { + public string ExternalHelpFilename { get; } + public string ModuleName { get; } + public string OnlineVersion { get; } + public Version Schema { get; } + + public string CmdletName { get; } + public string[] Aliases { get; } + public string Synopsis { get; } + public string Description { get; } + + public MarkdownSyntaxHelpInfo[] SyntaxInfos { get; } + public MarkdownExampleHelpInfo[] Examples { get; } + public MarkdownParameterHelpInfo[] Parameters { get; } + + public string[] Inputs { get; } + public string[] Outputs { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + public string[] RelatedLinks { get; } + + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") + { + ExternalHelpFilename = externalHelpFilename; + ModuleName = variantGroup.ModuleName; + var helpInfo = variantGroup.HelpInfo; + var commentInfo = variantGroup.CommentInfo; + Schema = Version.Parse("2.0.0"); + + CmdletName = variantGroup.CmdletName; + Aliases = (variantGroup.Aliases.NullIfEmpty() ?? helpInfo.Aliases).Where(a => a != "None").ToArray(); + Synopsis = commentInfo.Synopsis; + Description = commentInfo.Description; + + SyntaxInfos = variantGroup.Variants + .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) + .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); + Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() + ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() + ?? DefaultExampleHelpInfos; + + Parameters = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow) + .Select(pg => new MarkdownParameterHelpInfo( + variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) + .OrderBy(phi => phi.Name).ToArray(); + + Inputs = commentInfo.Inputs; + Outputs = commentInfo.Outputs; + + ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; + OnlineVersion = commentInfo.OnlineVersion; + RelatedLinks = commentInfo.RelatedLinks; + + SupportsShouldProcess = variantGroup.SupportsShouldProcess; + SupportsPaging = variantGroup.SupportsPaging; + } + + private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) + { + var filePath = Path.Combine(examplesFolder, $"{CmdletName}.md"); + if (!Directory.Exists(examplesFolder) || !File.Exists(filePath)) return null; + + var lines = File.ReadAllLines(filePath); + var nameIndices = lines.Select((l, i) => l.StartsWith(ExampleNameHeader) ? i : -1).Where(i => i != -1).ToArray(); + //https://codereview.stackexchange.com/a/187148/68772 + var indexCountGroups = nameIndices.Skip(1).Append(lines.Length).Zip(nameIndices, (next, current) => (NameIndex: current, LineCount: next - current)); + var exampleGroups = indexCountGroups.Select(icg => lines.Skip(icg.NameIndex).Take(icg.LineCount).ToArray()); + return exampleGroups.Select(eg => + { + var name = eg.First().Replace(ExampleNameHeader, String.Empty); + var codeStartIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var codeEndIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i != codeStartIndex); + var code = codeStartIndex.HasValue && codeEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; + var descriptionEndIndex = eg.Length - 1; + descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; + var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); + return new MarkdownExampleHelpInfo(name, code, description); + }).ToArray(); + } + } + + internal class MarkdownSyntaxHelpInfo + { + public Variant Variant { get; } + public bool IsDefault { get; } + public string ParameterSetName { get; } + public Parameter[] Parameters { get; } + public string SyntaxText { get; } + + public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, bool isDefault) + { + Variant = variant; + IsDefault = isDefault; + ParameterSetName = Variant.VariantName; + Parameters = Variant.Parameters + .Where(p => !p.DontShow).OrderByDescending(p => p.IsMandatory) + //https://stackoverflow.com/a/6461526/294804 + .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) + // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. + .ThenBy(p => parameterGroups.First(pg => pg.ParameterName == p.ParameterName).OrderCategory).ThenBy(p => p.ParameterName).ToArray(); + SyntaxText = CreateSyntaxFormat(); + } + + //https://github.com/PowerShell/platyPS/blob/a607a926bfffe1e1a1e53c19e0057eddd0c07611/src/Markdown.MAML/Renderer/Markdownv2Renderer.cs#L29-L32 + private const int SyntaxLineWidth = 110; + private string CreateSyntaxFormat() + { + var parameterStrings = Parameters.Select(p => p.ToPropertySyntaxOutput().ToString()); + if (Variant.SupportsShouldProcess) + { + parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); + } + if (Variant.SupportsPaging) + { + parameterStrings = parameterStrings.Append(" [-First ]").Append(" [-IncludeTotalCount]").Append(" [-Skip ]"); + } + parameterStrings = parameterStrings.Append(" []"); + + var lines = new List(20); + return parameterStrings.Aggregate(Variant.CmdletName, (current, ps) => + { + var combined = current + ps; + if (combined.Length <= SyntaxLineWidth) return combined; + + lines.Add(current); + return ps; + }, last => + { + lines.Add(last); + return String.Join(Environment.NewLine, lines); + }); + } + } + + internal class MarkdownExampleHelpInfo + { + public string Name { get; } + public string Code { get; } + public string Description { get; } + + public MarkdownExampleHelpInfo(string name, string code, string description) + { + Name = name; + Code = code; + Description = description; + } + } + + internal class MarkdownParameterHelpInfo + { + public string Name { get; set; } + public string Description { get; set; } + public Type Type { get; set; } + public string Position { get; set; } + public string DefaultValue { get; set; } + + public bool HasAllParameterSets { get; set; } + public string[] ParameterSetNames { get; set; } + public string[] Aliases { get; set; } + + public bool IsRequired { get; set; } + public bool IsDynamic { get; set; } + public bool AcceptsPipelineByValue { get; set; } + public bool AcceptsPipelineByPropertyName { get; set; } + public bool AcceptsWildcardCharacters { get; set; } + + // For use by common parameters that have no backing data in the objects themselves. + public MarkdownParameterHelpInfo() { } + + public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, ParameterGroup parameterGroup) + { + Name = parameterGroup.ParameterName; + Description = parameterGroup.Description.NullIfEmpty() + ?? parameterHelpInfos.Select(phi => phi.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + Type = parameterGroup.ParameterType; + Position = parameterGroup.FirstPosition?.ToString() + ?? parameterHelpInfos.Select(phi => phi.PositionText).FirstOrDefault(d => !String.IsNullOrEmpty(d)).ToUpperFirstCharacter().NullIfEmpty() + ?? "Named"; + // This no longer uses firstHelpInfo.DefaultValueAsString since it seems to be broken. For example, it has a value of 0 for Int32, but no default value was declared. + DefaultValue = parameterGroup.DefaultInfo?.Script ?? "None"; + + HasAllParameterSets = parameterGroup.HasAllVariants; + ParameterSetNames = (parameterGroup.Parameters.Select(p => p.VariantName).ToArray().NullIfEmpty() + ?? parameterHelpInfos.SelectMany(phi => phi.ParameterSetNames).Distinct()) + .OrderBy(psn => psn).ToArray(); + Aliases = parameterGroup.Aliases.NullIfEmpty() ?? parameterHelpInfos.SelectMany(phi => phi.Aliases).ToArray(); + + IsRequired = parameterHelpInfos.Select(phi => phi.IsRequired).FirstOrDefault(r => r == true) ?? parameterGroup.Parameters.Any(p => p.IsMandatory); + IsDynamic = parameterHelpInfos.Select(phi => phi.IsDynamic).FirstOrDefault(d => d == true) ?? false; + AcceptsPipelineByValue = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByValue")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipeline; + AcceptsPipelineByPropertyName = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByPropertyName")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipelineByPropertyName; + AcceptsWildcardCharacters = parameterGroup.SupportsWildcards; + } + } + + internal static class MarkdownTypesExtensions + { + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + + public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = + { + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + }; + + public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = + { + new MarkdownParameterHelpInfo + { + Name = "Confirm", + Description ="Prompts you for confirmation before running the cmdlet.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "cf" } + }, + new MarkdownParameterHelpInfo + { + Name = "WhatIf", + Description ="Shows what would happen if the cmdlet runs. The cmdlet is not run.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "wi" } + } + }; + + public static MarkdownParameterHelpInfo[] SupportsPagingParameters = + { + new MarkdownParameterHelpInfo + { + Name = "First", + Description ="Gets only the first 'n' objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "IncludeTotalCount", + Description ="Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns \"Unknown total count\".", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "Skip", + Description ="Ignores the first 'n' objects and then gets the remaining objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + } + }; + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsProxyOutputs.cs new file mode 100644 index 000000000000..c77a5bc8c4d0 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -0,0 +1,513 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class OutputTypeOutput + { + public PSTypeName[] OutputTypes { get; } + + public OutputTypeOutput(IEnumerable outputTypes) + { + OutputTypes = outputTypes.ToArray(); + } + + public override string ToString() => OutputTypes != null && OutputTypes.Any() ? $"[OutputType({OutputTypes.Select(ot => $"[{ot}]").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class CmdletBindingOutput + { + public VariantGroup VariantGroup { get; } + + public CmdletBindingOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() + { + var dpsText = VariantGroup.DefaultParameterSetName.IsValidDefaultParameterSetName() ? $"DefaultParameterSetName='{VariantGroup.DefaultParameterSetName}'" : String.Empty; + var sspText = VariantGroup.SupportsShouldProcess ? $"SupportsShouldProcess{ItemSeparator}ConfirmImpact='Medium'" : String.Empty; + var pbText = $"PositionalBinding={false.ToPsBool()}"; + var propertyText = new[] { dpsText, pbText, sspText }.JoinIgnoreEmpty(ItemSeparator); + return $"[CmdletBinding({propertyText})]{Environment.NewLine}"; + } + } + + internal class ParameterOutput + { + public Parameter Parameter { get; } + public bool HasMultipleVariantsInVariantGroup { get; } + public bool HasAllVariantsInParameterGroup { get; } + + public ParameterOutput(Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) + { + Parameter = parameter; + HasMultipleVariantsInVariantGroup = hasMultipleVariantsInVariantGroup; + HasAllVariantsInParameterGroup = hasAllVariantsInParameterGroup; + } + + public override string ToString() + { + var psnText = HasMultipleVariantsInVariantGroup && !HasAllVariantsInParameterGroup ? $"ParameterSetName='{Parameter.VariantName}'" : String.Empty; + var positionText = Parameter.Position != null ? $"Position={Parameter.Position}" : String.Empty; + var mandatoryText = Parameter.IsMandatory ? "Mandatory" : String.Empty; + var dontShowText = Parameter.DontShow ? "DontShow" : String.Empty; + var vfpText = Parameter.ValueFromPipeline ? "ValueFromPipeline" : String.Empty; + var vfpbpnText = Parameter.ValueFromPipelineByPropertyName ? "ValueFromPipelineByPropertyName" : String.Empty; + var propertyText = new[] { psnText, positionText, mandatoryText, dontShowText, vfpText, vfpbpnText }.JoinIgnoreEmpty(ItemSeparator); + return $"{Indent}[Parameter({propertyText})]{Environment.NewLine}"; + } + } + + internal class AliasOutput + { + public string[] Aliases { get; } + public bool IncludeIndent { get; } + + public AliasOutput(string[] aliases, bool includeIndent = false) + { + Aliases = aliases; + IncludeIndent = includeIndent; + } + + public override string ToString() => Aliases?.Any() ?? false ? $"{(IncludeIndent ? Indent : String.Empty)}[Alias({Aliases.Select(an => $"'{an}'").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class ValidateNotNullOutput + { + public bool HasValidateNotNull { get; } + + public ValidateNotNullOutput(bool hasValidateNotNull) + { + HasValidateNotNull = hasValidateNotNull; + } + + public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; + } + + internal class ArgumentCompleterOutput + { + public CompleterInfo CompleterInfo { get; } + + public ArgumentCompleterOutput(CompleterInfo completerInfo) + { + CompleterInfo = completerInfo; + } + + public override string ToString() => CompleterInfo != null + ? $"{Indent}[ArgumentCompleter({(CompleterInfo.IsTypeCompleter ? $"[{CompleterInfo.Type.Unwrap().ToPsType()}]" : $"{{{CompleterInfo.Script.ToPsSingleLine("; ")}}}")})]{Environment.NewLine}" + : String.Empty; + } + + internal class DefaultInfoOutput + { + public bool HasDefaultInfo { get; } + public DefaultInfo DefaultInfo { get; } + + public DefaultInfoOutput(ParameterGroup parameterGroup) + { + HasDefaultInfo = parameterGroup.HasDefaultInfo; + DefaultInfo = parameterGroup.DefaultInfo; + } + + public override string ToString() + { + var nameText = !String.IsNullOrEmpty(DefaultInfo?.Name) ? $"Name='{DefaultInfo?.Name}'" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(DefaultInfo?.Description) ? $"Description='{DefaultInfo?.Description.ToPsStringLiteral()}'" : String.Empty; + var scriptText = !String.IsNullOrEmpty(DefaultInfo?.Script) ? $"Script='{DefaultInfo?.Script.ToPsSingleLine("; ")}'" : String.Empty; + var propertyText = new[] { nameText, descriptionText, scriptText }.JoinIgnoreEmpty(ItemSeparator); + return HasDefaultInfo ? $"{Indent}[{typeof(DefaultInfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class ParameterTypeOutput + { + public Type ParameterType { get; } + + public ParameterTypeOutput(Type parameterType) + { + ParameterType = parameterType; + } + + public override string ToString() => $"{Indent}[{ParameterType.ToPsType()}]{Environment.NewLine}"; + } + + internal class ParameterNameOutput + { + public string ParameterName { get; } + public bool IsLast { get; } + + public ParameterNameOutput(string parameterName, bool isLast) + { + ParameterName = parameterName; + IsLast = isLast; + } + + public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; + } + + internal class BeginOutput + { + public VariantGroup VariantGroup { get; } + + public BeginOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() => $@"begin {{ +{Indent}try {{ +{Indent}{Indent}$outBuffer = $null +{Indent}{Indent}if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {{ +{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 +{Indent}{Indent}}} +{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} +{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} +{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) +{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}{Indent}}}"); + return sb.ToString(); + } + + private string GetDefaultValuesStatements() + { + var defaultInfos = VariantGroup.ParameterGroups.Where(pg => pg.HasDefaultInfo).Select(pg => pg.DefaultInfo).ToArray(); + var sb = new StringBuilder(); + + foreach (var defaultInfo in defaultInfos) + { + var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); + var parameterName = defaultInfo.ParameterGroup.ParameterName; + sb.AppendLine(); + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + return sb.ToString(); + } + } + + internal class ProcessOutput + { + public override string ToString() => $@"process {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.Process($_) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + } + + internal class EndOutput + { + public override string ToString() => $@"end {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.End() +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} +"; + } + + internal class HelpCommentOutput + { + public VariantGroup VariantGroup { get; } + public CommentInfo CommentInfo { get; } + + public HelpCommentOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + CommentInfo = variantGroup.CommentInfo; + } + + public override string ToString() + { + var inputs = String.Join(Environment.NewLine, CommentInfo.Inputs.Select(i => $".Inputs{Environment.NewLine}{i}")); + var inputsText = !String.IsNullOrEmpty(inputs) ? $"{Environment.NewLine}{inputs}" : String.Empty; + var outputs = String.Join(Environment.NewLine, CommentInfo.Outputs.Select(o => $".Outputs{Environment.NewLine}{o}")); + var outputsText = !String.IsNullOrEmpty(outputs) ? $"{Environment.NewLine}{outputs}" : String.Empty; + var notes = String.Join($"{Environment.NewLine}{Environment.NewLine}", VariantGroup.ComplexInterfaceInfos.Select(cii => cii.ToNoteOutput())); + var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; + var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); + var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; + var examples = ""; + foreach (var example in VariantGroup.HelpInfo.Examples) + { + examples = examples + ".Example" + "\r\n" + example.Code + "\r\n"; + } + return $@"<# +.Synopsis +{CommentInfo.Synopsis.ToDescriptionFormat(false)} +.Description +{CommentInfo.Description.ToDescriptionFormat(false)} +{examples}{inputsText}{outputsText}{notesText} +.Link +{CommentInfo.OnlineVersion}{relatedLinksText} +#> +"; + } + } + + internal class ParameterDescriptionOutput + { + public string Description { get; } + + public ParameterDescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) + ? Description.ToDescriptionFormat(false).NormalizeNewLines() + .Split(new [] { Environment.NewLine }, StringSplitOptions.None) + .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") + : String.Empty; + } + + internal class ProfileOutput + { + public string ProfileName { get; } + + public ProfileOutput(string profileName) + { + ProfileName = profileName; + } + + public override string ToString() => ProfileName != NoProfiles ? $"[{typeof(ProfileAttribute).ToPsAttributeType()}('{ProfileName}')]{Environment.NewLine}" : String.Empty; + } + + internal class DescriptionOutput + { + public string Description { get; } + + public DescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) ? $"[{typeof(DescriptionAttribute).ToPsAttributeType()}('{Description.ToPsStringLiteral()}')]{Environment.NewLine}" : String.Empty; + } + + internal class ParameterCategoryOutput + { + public ParameterCategory Category { get; } + + public ParameterCategoryOutput(ParameterCategory category) + { + Category = category; + } + + public override string ToString() => $"{Indent}[{typeof(CategoryAttribute).ToPsAttributeType()}('{Category}')]{Environment.NewLine}"; + } + + internal class InfoOutput + { + public InfoAttribute Info { get; } + public Type ParameterType { get; } + + public InfoOutput(InfoAttribute info, Type parameterType) + { + Info = info; + ParameterType = parameterType; + } + + public override string ToString() + { + // Rendering of InfoAttribute members that are not used currently + /*var serializedNameText = Info.SerializedName != null ? $"SerializedName='{Info.SerializedName}'" : String.Empty; + var readOnlyText = Info.ReadOnly ? "ReadOnly" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(Info.Description) ? $"Description='{Info.Description.ToPsStringLiteral()}'" : String.Empty;*/ + + var requiredText = Info.Required ? "Required" : String.Empty; + var unwrappedType = ParameterType.Unwrap(); + var hasValidPossibleTypes = Info.PossibleTypes.Any(pt => pt != unwrappedType); + var possibleTypesText = hasValidPossibleTypes + ? $"PossibleTypes=({Info.PossibleTypes.Select(pt => $"[{pt.ToPsType()}]").JoinIgnoreEmpty(ItemSeparator)})" + : String.Empty; + var propertyText = new[] { /*serializedNameText, */requiredText,/* readOnlyText,*/ possibleTypesText/*, descriptionText*/ }.JoinIgnoreEmpty(ItemSeparator); + return hasValidPossibleTypes ? $"{Indent}[{typeof(InfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class PropertySyntaxOutput + { + public string ParameterName { get; } + public Type ParameterType { get; } + public bool IsMandatory { get; } + public int? Position { get; } + + public bool IncludeSpace { get; } + public bool IncludeDash { get; } + + public PropertySyntaxOutput(Parameter parameter) + { + ParameterName = parameter.ParameterName; + ParameterType = parameter.ParameterType; + IsMandatory = parameter.IsMandatory; + Position = parameter.Position; + IncludeSpace = true; + IncludeDash = true; + } + + public PropertySyntaxOutput(ComplexInterfaceInfo complexInterfaceInfo) + { + ParameterName = complexInterfaceInfo.Name; + ParameterType = complexInterfaceInfo.Type; + IsMandatory = complexInterfaceInfo.Required; + Position = null; + IncludeSpace = false; + IncludeDash = false; + } + + public override string ToString() + { + var leftOptional = !IsMandatory ? "[" : String.Empty; + var leftPositional = Position != null ? "[" : String.Empty; + var rightPositional = Position != null ? "]" : String.Empty; + var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty; + var rightOptional = !IsMandatory ? "]" : String.Empty; + var space = IncludeSpace ? " " : String.Empty; + var dash = IncludeDash ? "-" : String.Empty; + return $"{space}{leftOptional}{leftPositional}{dash}{ParameterName}{rightPositional}{type}{rightOptional}"; + } + } + + internal static class PsProxyOutputExtensions + { + public const string NoParameters = "__NoParameters"; + + public const string AllParameterSets = "__AllParameterSets"; + + public const string HalfIndent = " "; + + public const string Indent = HalfIndent + HalfIndent; + + public const string ItemSeparator = ", "; + + public static readonly string ComplexParameterHeader = $"COMPLEX PARAMETER PROPERTIES{Environment.NewLine}{Environment.NewLine}To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.{Environment.NewLine}{Environment.NewLine}"; + + public static string ToPsBool(this bool value) => $"${value.ToString().ToLowerInvariant()}"; + + public static string ToPsType(this Type type) + { + var regex = new Regex(@"^(.*)`{1}\d+(.*)$"); + var typeText = type.ToString(); + var match = regex.Match(typeText); + return match.Success ? $"{match.Groups[1]}{match.Groups[2]}" : typeText; + } + + public static string ToPsAttributeType(this Type type) => type.ToPsType().RemoveEnd("Attribute"); + + // https://stackoverflow.com/a/5284606/294804 + private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; + + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new []{"
", "\r\n", "\n"}); + + public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; + + public static string JoinIgnoreEmpty(this IEnumerable values, string separator) => String.Join(separator, values?.Where(v => !String.IsNullOrEmpty(v))); + + // https://stackoverflow.com/a/41961738/294804 + public static string ToSyntaxTypeName(this Type type) + { + if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) + { + return $"{type.GetGenericArguments().First().ToSyntaxTypeName()}?"; + } + + if (type.IsGenericType) + { + var genericTypes = String.Join(ItemSeparator, type.GetGenericArguments().Select(ToSyntaxTypeName)); + return $"{type.Name.Split('`').First()}<{genericTypes}>"; + } + + return type.Name; + } + + public static OutputTypeOutput ToOutputTypeOutput(this IEnumerable outputTypes) => new OutputTypeOutput(outputTypes); + + public static CmdletBindingOutput ToCmdletBindingOutput(this VariantGroup variantGroup) => new CmdletBindingOutput(variantGroup); + + public static ParameterOutput ToParameterOutput(this Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) => new ParameterOutput(parameter, hasMultipleVariantsInVariantGroup, hasAllVariantsInParameterGroup); + + public static AliasOutput ToAliasOutput(this string[] aliases, bool includeIndent = false) => new AliasOutput(aliases, includeIndent); + + public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); + + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => new ArgumentCompleterOutput(completerInfo); + + public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); + + public static ParameterTypeOutput ToParameterTypeOutput(this Type parameterType) => new ParameterTypeOutput(parameterType); + + public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); + + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + + public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); + + public static ParameterDescriptionOutput ToParameterDescriptionOutput(this string description) => new ParameterDescriptionOutput(description); + + public static ProfileOutput ToProfileOutput(this string profileName) => new ProfileOutput(profileName); + + public static DescriptionOutput ToDescriptionOutput(this string description) => new DescriptionOutput(description); + + public static ParameterCategoryOutput ToParameterCategoryOutput(this ParameterCategory category) => new ParameterCategoryOutput(category); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this Parameter parameter) => new PropertySyntaxOutput(parameter); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this ComplexInterfaceInfo complexInterfaceInfo) => new PropertySyntaxOutput(complexInterfaceInfo); + + public static InfoOutput ToInfoOutput(this InfoAttribute info, Type parameterType) => new InfoOutput(info, parameterType); + + public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) + { + string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => + $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; + + var nested = complexInterfaceInfo.NestedInfos.Select(ni => + { + var nestedIndent = $"{currentIndent}{HalfIndent}"; + return ni.IsComplexInterface + ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) + : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + return String.Join(Environment.NewLine, nested); + } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/CloudService/generated/runtime/BuildTime/Models/PsProxyTypes.cs new file mode 100644 index 000000000000..3c7e0e10acbe --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -0,0 +1,499 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal class ProfileGroup + { + public string ProfileName { get; } + public Variant[] Variants { get; } + public string ProfileFolder { get; } + + public ProfileGroup(Variant[] variants, string profileName = NoProfiles) + { + ProfileName = profileName; + Variants = variants; + ProfileFolder = ProfileName != NoProfiles ? ProfileName : String.Empty; + } + } + + internal class VariantGroup + { + public string ModuleName { get; } + public string CmdletName { get; } + public string CmdletVerb { get; } + public string CmdletNoun { get; } + public string ProfileName { get; } + public Variant[] Variants { get; } + public ParameterGroup[] ParameterGroups { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + + public string[] Aliases { get; } + public PSTypeName[] OutputTypes { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + public string DefaultParameterSetName { get; } + public bool HasMultipleVariants { get; } + public PsHelpInfo HelpInfo { get; } + public bool IsGenerated { get; } + public bool IsInternal { get; } + + public string OutputFolder { get; } + public string FileName { get; } + public string FilePath { get; } + + public CommentInfo CommentInfo { get; } + + public VariantGroup(string moduleName, string cmdletName, Variant[] variants, string outputFolder, string profileName = NoProfiles, bool isTest = false, bool isInternal = false) + { + ModuleName = moduleName; + CmdletName = cmdletName; + var cmdletNameParts = CmdletName.Split('-'); + CmdletVerb = cmdletNameParts.First(); + CmdletNoun = cmdletNameParts.Last(); + ProfileName = profileName; + Variants = variants; + ParameterGroups = Variants.ToParameterGroups().OrderBy(pg => pg.OrderCategory).ThenByDescending(pg => pg.IsMandatory).ToArray(); + var aliasDuplicates = ParameterGroups.SelectMany(pg => pg.Aliases) + //https://stackoverflow.com/a/18547390/294804 + .GroupBy(a => a).Where(g => g.Count() > 1).Select(g => g.Key).ToArray(); + if (aliasDuplicates.Any()) + { + throw new ParsingMetadataException($"The alias(es) [{String.Join(", ", aliasDuplicates)}] are defined on multiple parameters for cmdlet '{CmdletName}', which is not supported."); + } + ComplexInterfaceInfos = ParameterGroups.Where(pg => !pg.DontShow && pg.IsComplexInterface).OrderBy(pg => pg.ParameterName).Select(pg => pg.ComplexInterfaceInfo).ToArray(); + + Aliases = Variants.SelectMany(v => v.Attributes).ToAliasNames().ToArray(); + OutputTypes = Variants.SelectMany(v => v.Info.OutputType).Where(ot => ot.Type != null).GroupBy(ot => ot.Type).Select(otg => otg.First()).ToArray(); + SupportsShouldProcess = Variants.Any(v => v.SupportsShouldProcess); + SupportsPaging = Variants.Any(v => v.SupportsPaging); + DefaultParameterSetName = DetermineDefaultParameterSetName(); + HasMultipleVariants = Variants.Length > 1; + HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); + IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); + IsInternal = isInternal; + + OutputFolder = outputFolder; + FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; + FilePath = Path.Combine(OutputFolder, FileName); + + CommentInfo = new CommentInfo(this); + } + + private string DetermineDefaultParameterSetName() + { + var defaultParameterSet = Variants + .Select(v => v.Metadata.DefaultParameterSetName) + .LastOrDefault(dpsn => dpsn.IsValidDefaultParameterSetName()); + + if (String.IsNullOrEmpty(defaultParameterSet)) + { + var variantParamCountGroups = Variants + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); + var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); + defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; + } + + return defaultParameterSet; + } + } + + internal class Variant + { + public string CmdletName { get; } + public string VariantName { get; } + public CommandInfo Info { get; } + public CommandMetadata Metadata { get; } + public PsHelpInfo HelpInfo { get; } + public bool HasParameterSets { get; } + public bool IsFunction { get; } + public string PrivateModuleName { get; } + public string PrivateCmdletName { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public Attribute[] Attributes { get; } + public Parameter[] Parameters { get; } + public Parameter[] CmdletOnlyParameters { get; } + public bool IsInternal { get; } + public bool IsDoNotExport { get; } + public string[] Profiles { get; } + + public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) + { + CmdletName = cmdletName; + VariantName = variantName; + Info = info; + HelpInfo = helpInfo ?? new PsHelpInfo(); + Metadata = metadata; + HasParameterSets = hasParameterSets; + IsFunction = Info.CommandType == CommandTypes.Function; + PrivateModuleName = Info.Source; + PrivateCmdletName = Metadata.Name; + SupportsShouldProcess = Metadata.SupportsShouldProcess; + SupportsPaging = Metadata.SupportsPaging; + + Attributes = this.ToAttributes(); + Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); + IsInternal = Attributes.OfType().Any(); + IsDoNotExport = Attributes.OfType().Any(); + CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); + Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); + } + } + + internal class ParameterGroup + { + public string ParameterName { get; } + public Parameter[] Parameters { get; } + + public string[] VariantNames { get; } + public string[] AllVariantNames { get; } + public bool HasAllVariants { get; } + public Type ParameterType { get; } + public string Description { get; } + + public string[] Aliases { get; } + public bool HasValidateNotNull { get; } + public CompleterInfo CompleterInfo { get; } + public DefaultInfo DefaultInfo { get; } + public bool HasDefaultInfo { get; } + public ParameterCategory OrderCategory { get; } + public bool DontShow { get; } + public bool IsMandatory { get; } + public bool SupportsWildcards { get; } + public bool IsComplexInterface { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public InfoAttribute InfoAttribute { get; } + + public int? FirstPosition { get; } + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public bool IsInputType { get; } + + public ParameterGroup(string parameterName, Parameter[] parameters, string[] allVariantNames) + { + ParameterName = parameterName; + Parameters = parameters; + + VariantNames = Parameters.Select(p => p.VariantName).ToArray(); + AllVariantNames = allVariantNames; + HasAllVariants = VariantNames.Any(vn => vn == AllParameterSets) || !AllVariantNames.Except(VariantNames).Any(); + var types = Parameters.Select(p => p.ParameterType).Distinct().ToArray(); + if (types.Length > 1) + { + throw new ParsingMetadataException($"The parameter '{ParameterName}' has multiple parameter types [{String.Join(", ", types.Select(t => t.Name))}] defined, which is not supported."); + } + ParameterType = types.First(); + Description = Parameters.Select(p => p.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + + Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); + HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() + ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); + DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) + ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); + HasDefaultInfo = DefaultInfo != null && !String.IsNullOrEmpty(DefaultInfo.Script); + // When DefaultInfo is present, force all parameters from this group to be optional. + if (HasDefaultInfo) + { + foreach (var parameter in Parameters) + { + parameter.IsMandatory = false; + } + } + OrderCategory = Parameters.Select(p => p.OrderCategory).Distinct().DefaultIfEmpty(ParameterCategory.Body).Min(); + DontShow = Parameters.All(p => p.DontShow); + IsMandatory = HasAllVariants && Parameters.Any(p => p.IsMandatory); + SupportsWildcards = Parameters.Any(p => p.SupportsWildcards); + IsComplexInterface = Parameters.Any(p => p.IsComplexInterface); + ComplexInterfaceInfo = Parameters.Where(p => p.IsComplexInterface).Select(p => p.ComplexInterfaceInfo).FirstOrDefault(); + InfoAttribute = Parameters.Select(p => p.InfoAttribute).First(); + + FirstPosition = Parameters.Select(p => p.Position).FirstOrDefault(p => p != null); + ValueFromPipeline = Parameters.Any(p => p.ValueFromPipeline); + ValueFromPipelineByPropertyName = Parameters.Any(p => p.ValueFromPipelineByPropertyName); + IsInputType = ValueFromPipeline || ValueFromPipelineByPropertyName; + } + } + + internal class Parameter + { + public string VariantName { get; } + public string ParameterName { get; } + public ParameterMetadata Metadata { get; } + public PsParameterHelpInfo HelpInfo { get; } + public Type ParameterType { get; } + + public Attribute[] Attributes { get; } + public ParameterCategory[] Categories { get; } + public ParameterCategory OrderCategory { get; } + public PSDefaultValueAttribute DefaultValueAttribute { get; } + public DefaultInfoAttribute DefaultInfoAttribute { get; } + public ParameterAttribute ParameterAttribute { get; } + public bool SupportsWildcards { get; } + public CompleterInfoAttribute CompleterInfoAttribute { get; } + public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } + + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public int? Position { get; } + public bool DontShow { get; } + public bool IsMandatory { get; set; } + + public InfoAttribute InfoAttribute { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public bool IsComplexInterface { get; } + public string Description { get; } + + public Parameter(string variantName, string parameterName, ParameterMetadata metadata, PsParameterHelpInfo helpInfo = null) + { + VariantName = variantName; + ParameterName = parameterName; + Metadata = metadata; + HelpInfo = helpInfo ?? new PsParameterHelpInfo(); + + Attributes = Metadata.Attributes.ToArray(); + ParameterType = Attributes.OfType().FirstOrDefault()?.Type ?? Metadata.ParameterType; + Categories = Attributes.OfType().SelectMany(ca => ca.Categories).Distinct().ToArray(); + OrderCategory = Categories.DefaultIfEmpty(ParameterCategory.Body).Min(); + DefaultValueAttribute = Attributes.OfType().FirstOrDefault(); + DefaultInfoAttribute = Attributes.OfType().FirstOrDefault(); + ParameterAttribute = Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == VariantName || pa.ParameterSetName == AllParameterSets); + if (ParameterAttribute == null) + { + throw new ParsingMetadataException($"The variant '{VariantName}' has multiple parameter sets defined, which is not supported."); + } + SupportsWildcards = Attributes.OfType().Any(); + CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); + ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + + ValueFromPipeline = ParameterAttribute.ValueFromPipeline; + ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; + Position = ParameterAttribute.Position == Int32.MinValue ? (int?)null : ParameterAttribute.Position; + DontShow = ParameterAttribute.DontShow; + IsMandatory = ParameterAttribute.Mandatory; + + var complexParameterName = ParameterName.ToUpperInvariant(); + var complexMessage = $"{Environment.NewLine}To construct, see NOTES section for {complexParameterName} properties and create a hash table."; + var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; + // Remove the complex type message as it will be reinserted if this is a complex type + description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty); + // Make an InfoAttribute for processing only if one isn't provided + InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; + // Set the description if the InfoAttribute does not have one since they are exported without a description + InfoAttribute.Description = String.IsNullOrEmpty(InfoAttribute.Description) ? description : InfoAttribute.Description; + ComplexInterfaceInfo = InfoAttribute.ToComplexInterfaceInfo(complexParameterName, ParameterType, true); + IsComplexInterface = ComplexInterfaceInfo.IsComplexInterface; + Description = $"{description}{(IsComplexInterface ? complexMessage : String.Empty)}"; + } + } + + internal class ComplexInterfaceInfo + { + public InfoAttribute InfoAttribute { get; } + + public string Name { get; } + public Type Type { get; } + public bool Required { get; } + public bool ReadOnly { get; } + public string Description { get; } + + public ComplexInterfaceInfo[] NestedInfos { get; } + public bool IsComplexInterface { get; } + + public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, bool? required, List seenTypes) + { + Name = name; + Type = type; + InfoAttribute = infoAttribute; + + Required = required ?? InfoAttribute.Required; + ReadOnly = InfoAttribute.ReadOnly; + Description = InfoAttribute.Description.ToPsSingleLine(); + + var unwrappedType = Type.Unwrap(); + var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; + (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[]{} : + unwrappedType.GetInterfaces() + .Concat(InfoAttribute.PossibleTypes) + .SelectMany(pt => pt.GetProperties() + .SelectMany(pi => pi.GetCustomAttributes(true).OfType() + .Select(ia => ia.ToComplexInterfaceInfo(pi.Name, pi.PropertyType, seenTypes: seenTypes)))) + .Where(cii => !cii.ReadOnly).OrderByDescending(cii => cii.Required).ToArray(); + // https://stackoverflow.com/a/503359/294804 + var associativeArrayInnerType = Type.GetInterfaces() + .FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>)) + ?.GetTypeInfo().GetGenericArguments().First(); + if (!hasBeenSeen && associativeArrayInnerType != null) + { + var anyInfo = new InfoAttribute { Description = "This indicates any property can be added to this object." }; + NestedInfos = NestedInfos.Prepend(anyInfo.ToComplexInterfaceInfo("(Any)", associativeArrayInnerType)).ToArray(); + } + IsComplexInterface = NestedInfos.Any(); + } + } + + internal class CommentInfo + { + public string Description { get; } + public string Synopsis { get; } + + public string[] Examples { get; } + public string[] Inputs { get; } + public string[] Outputs { get; } + + public string OnlineVersion { get; } + public string[] RelatedLinks { get; } + + private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public CommentInfo(VariantGroup variantGroup) + { + var helpInfo = variantGroup.HelpInfo; + Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() + ?? helpInfo.Description.EmptyIfNull(); + // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. + var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; + Synopsis = synopsis.NullIfEmpty() ?? Description; + + Examples = helpInfo.Examples.Select(rl => rl.Code).ToArray(); + + Inputs = (variantGroup.ParameterGroups.Where(pg => pg.IsInputType).Select(pg => pg.ParameterType.FullName).ToArray().NullIfEmpty() ?? + helpInfo.InputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(it => it.Name).ToArray()) + .Where(i => i != "None").Distinct().OrderBy(i => i).ToArray(); + Outputs = (variantGroup.OutputTypes.Select(ot => ot.Type.FullName).ToArray().NullIfEmpty() ?? + helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) + .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); + + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}"; + RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); + } + } + + internal class CompleterInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public Type Type { get; } + public bool IsTypeCompleter { get; } + + public CompleterInfo(CompleterInfoAttribute infoAttribute) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + } + + public CompleterInfo(ArgumentCompleterAttribute completerAttribute) + { + Script = completerAttribute.ScriptBlock?.ToString(); + if (completerAttribute.Type != null) + { + Type = completerAttribute.Type; + IsTypeCompleter = true; + } + } + } + + internal class DefaultInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public ParameterGroup ParameterGroup { get; } + + public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + ParameterGroup = parameterGroup; + } + + public DefaultInfo(PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) + { + Description = defaultValueAttribute.Help; + ParameterGroup = parameterGroup; + if (defaultValueAttribute.Value != null) + { + Script = defaultValueAttribute.Value.ToString(); + } + } + } + + internal static class PsProxyTypeExtensions + { + public const string NoProfiles = "__NoProfiles"; + + public static bool IsValidDefaultParameterSetName(this string parameterSetName) => + !String.IsNullOrEmpty(parameterSetName) && parameterSetName != AllParameterSets; + + public static Variant[] ToVariants(this CommandInfo info, PsHelpInfo helpInfo) + { + var metadata = new CommandMetadata(info); + var privateCmdletName = metadata.Name.Split('!').First(); + var parts = privateCmdletName.Split('_'); + return parts.Length > 1 + ? new[] { new Variant(parts[0], parts[1], info, metadata, helpInfo: helpInfo) } + // Process multiple parameter sets, so we declare a variant per parameter set. + : info.ParameterSets.Select(ps => new Variant(privateCmdletName, ps.Name, info, metadata, true, helpInfo)).ToArray(); + } + + public static Variant[] ToVariants(this CmdletAndHelpInfo info) => info.CommandInfo.ToVariants(info.HelpInfo); + + public static Variant[] ToVariants(this CommandInfo info, PSObject helpInfo = null) => info.ToVariants(helpInfo?.ToPsHelpInfo()); + + public static Parameter[] ToParameters(this Variant variant) + { + var parameters = variant.Metadata.Parameters.AsEnumerable(); + var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); + if (variant.HasParameterSets) + { + parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); + parameterHelp = parameterHelp.Where(ph => !ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)); + } + return parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))).ToArray(); + } + + public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction + ? ((FunctionInfo)variant.Info).ScriptBlock.Attributes.ToArray() + : variant.Metadata.CommandType.GetCustomAttributes(false).Cast().ToArray(); + + public static IEnumerable ToParameterGroups(this Variant[] variants) + { + var allVariantNames = variants.Select(vg => vg.VariantName).ToArray(); + return variants + .SelectMany(v => v.Parameters) + .GroupBy(p => p.ParameterName, StringComparer.InvariantCultureIgnoreCase) + .Select(pg => new ParameterGroup(pg.Key, pg.Select(p => p).ToArray(), allVariantNames)); + } + + public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute infoAttribute, string name, Type type, bool? required = null, List seenTypes = null) + => new ComplexInterfaceInfo(name, type, infoAttribute, required, seenTypes); + + public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); + public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); + + public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); + public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/PsAttributes.cs b/src/CloudService/generated/runtime/BuildTime/PsAttributes.cs new file mode 100644 index 000000000000..4db38e24698f --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/PsAttributes.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService +{ + [AttributeUsage(AttributeTargets.Class)] + public class DescriptionAttribute : Attribute + { + public string Description { get; } + + public DescriptionAttribute(string description) + { + Description = description; + } + } + + [AttributeUsage(AttributeTargets.Class)] + public class DoNotExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class InternalExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class GeneratedAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class DoNotFormatAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class ProfileAttribute : Attribute + { + public string[] Profiles { get; } + + public ProfileAttribute(params string[] profiles) + { + Profiles = profiles; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class CategoryAttribute : Attribute + { + public ParameterCategory[] Categories { get; } + + public CategoryAttribute(params ParameterCategory[] categories) + { + Categories = categories; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class ExportAsAttribute : Attribute + { + public Type Type { get; set; } + + public ExportAsAttribute(Type type) + { + Type = type; + } + } + + public enum ParameterCategory + { + // Note: Order is significant + Uri = 0, + Path, + Query, + Header, + Cookie, + Body, + Azure, + Runtime + } + + [AttributeUsage(AttributeTargets.Property)] + public class OriginAttribute : Attribute + { + public PropertyOrigin Origin { get; } + + public OriginAttribute(PropertyOrigin origin) + { + Origin = origin; + } + } + + public enum PropertyOrigin + { + // Note: Order is significant + Inherited = 0, + Owned, + Inlined + } + + [AttributeUsage(AttributeTargets.Property)] + public class FormatTableAttribute : Attribute + { + public int Index { get; set; } = -1; + public bool HasIndex => Index != -1; + public string Label { get; set; } + public int Width { get; set; } = -1; + public bool HasWidth => Width != -1; + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/PsExtensions.cs b/src/CloudService/generated/runtime/BuildTime/PsExtensions.cs new file mode 100644 index 000000000000..b8d48add0fd6 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/PsExtensions.cs @@ -0,0 +1,160 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class PsExtensions + { + // https://stackoverflow.com/a/863944/294804 + // https://stackoverflow.com/a/4452598/294804 + // https://stackoverflow.com/a/28701974/294804 + // Note: This will unwrap nested collections, but we don't generate nested collections. + public static Type Unwrap(this Type type) + { + if (type.IsArray) + { + return type.GetElementType().Unwrap(); + } + + var typeInfo = type.GetTypeInfo(); + if (typeInfo.IsGenericType + && (typeInfo.GetGenericTypeDefinition() == typeof(Nullable<>) || typeof(IEnumerable<>).IsAssignableFrom(type))) + { + return typeInfo.GetGenericArguments().First().Unwrap(); + } + + return type; + } + + // https://stackoverflow.com/a/863944/294804 + private static bool IsSimple(this Type type) + { + var typeInfo = type.GetTypeInfo(); + return typeInfo.IsPrimitive + || typeInfo.IsEnum + || type == typeof(string) + || type == typeof(decimal); + } + + // https://stackoverflow.com/a/32025393/294804 + private static bool HasImplicitConversion(this Type baseType, Type targetType) => + baseType.GetMethods(BindingFlags.Public | BindingFlags.Static) + .Where(mi => mi.Name == "op_Implicit" && mi.ReturnType == targetType) + .Any(mi => mi.GetParameters().FirstOrDefault()?.ParameterType == baseType); + + public static bool IsPsSimple(this Type type) + { + var unwrappedType = type.Unwrap(); + return unwrappedType.IsSimple() + || unwrappedType == typeof(SwitchParameter) + || unwrappedType == typeof(Hashtable) + || unwrappedType == typeof(PSCredential) + || unwrappedType == typeof(ScriptBlock) + || unwrappedType == typeof(DateTime) + || unwrappedType == typeof(Uri) + || unwrappedType.HasImplicitConversion(typeof(string)); + } + + public static string ToPsList(this IEnumerable items) => String.Join(", ", items.Select(i => $"'{i}'")); + + public static IEnumerable ToAliasNames(this IEnumerable attributes) => attributes.OfType().SelectMany(aa => aa.AliasNames).Distinct(); + + public static bool IsArrayAndElementTypeIsT(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return itemType.IsArray && !tType.IsArray && tType.IsAssignableFrom(itemType.GetElementType()); + } + + public static bool IsTArrayAndElementTypeIsItem(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return !itemType.IsArray && tType.IsArray && (tType.GetElementType()?.IsAssignableFrom(itemType) ?? false); + } + + public static bool IsTypeOrArrayOfType(this object item) => item is T || item.IsArrayAndElementTypeIsT() || item.IsTArrayAndElementTypeIsItem(); + + public static T NormalizeArrayType(this object item) + { + if (item is T result) + { + return result; + } + + if (item.IsArrayAndElementTypeIsT()) + { + var array = (T[])Convert.ChangeType(item, typeof(T[])); + return array.FirstOrDefault(); + } + + if (item.IsTArrayAndElementTypeIsItem()) + { + var tType = typeof(T); + var array = Array.CreateInstance(tType.GetElementType(), 1); + array.SetValue(item, 0); + return (T)Convert.ChangeType(array, tType); + } + + return default(T); + } + + public static T GetNestedProperty(this PSObject psObject, params string[] names) => psObject.Properties.GetNestedProperty(names); + + public static T GetNestedProperty(this PSMemberInfoCollection properties, params string[] names) + { + var lastName = names.Last(); + var nestedProperties = names.Take(names.Length - 1).Aggregate(properties, (p, n) => p?.GetProperty(n)?.Properties); + return nestedProperties != null ? nestedProperties.GetProperty(lastName) : default(T); + } + + public static T GetProperty(this PSObject psObject, string name) => psObject.Properties.GetProperty(name); + + public static T GetProperty(this PSMemberInfoCollection properties, string name) + { + switch (properties[name]?.Value) + { + case PSObject psObject when psObject.BaseObject is PSCustomObject && psObject.ImmediateBaseObject.IsTypeOrArrayOfType(): + return psObject.ImmediateBaseObject.NormalizeArrayType(); + case PSObject psObject when psObject.BaseObject.IsTypeOrArrayOfType(): + return psObject.BaseObject.NormalizeArrayType(); + case object value when value.IsTypeOrArrayOfType(): + return value.NormalizeArrayType(); + default: + return default(T); + } + } + + public static IEnumerable RunScript(this PSCmdlet cmdlet, string script) + => PsHelpers.RunScript(cmdlet.InvokeCommand, script); + + public static void RunScript(this PSCmdlet cmdlet, string script) + => cmdlet.RunScript(script); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, string script) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, script); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, string script) + => engineIntrinsics.RunScript(script); + + public static IEnumerable RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => PsHelpers.RunScript(cmdlet.InvokeCommand, block.ToString()); + + public static void RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => cmdlet.RunScript(block.ToString()); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, block.ToString()); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => engineIntrinsics.RunScript(block.ToString()); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/PsHelpers.cs b/src/CloudService/generated/runtime/BuildTime/PsHelpers.cs new file mode 100644 index 000000000000..928f522ec13a --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/PsHelpers.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using Pwsh = System.Management.Automation.PowerShell; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class PsHelpers + { + public static IEnumerable RunScript(string script) + => Pwsh.Create().AddScript(script).Invoke(); + + public static void RunScript(string script) + => RunScript(script); + + public static IEnumerable RunScript(CommandInvocationIntrinsics cii, string script) + => cii.InvokeScript(script).Select(o => o?.BaseObject).Where(o => o != null).OfType(); + + public static void RunScript(CommandInvocationIntrinsics cii, string script) + => RunScript(cii, script); + + public static IEnumerable GetModuleCmdlets(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletsCommand = String.Join(" + ", modulePaths.Select(mp => $"(Get-Command -Module (Import-Module '{mp}' -PassThru))")); + return (cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand)) + .Where(ci => ci.CommandType != CommandTypes.Alias); + } + + public static IEnumerable GetModuleCmdlets(params string[] modulePaths) + => GetModuleCmdlets(null, modulePaths); + + public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) + { + // https://stackoverflow.com/a/40969712/294804 + var getCmdletsCommand = $@" +$currentFunctions = Get-ChildItem function: +Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} +"; + return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); + } + + public static IEnumerable GetScriptCmdlets(string scriptFolder) + => GetScriptCmdlets(null, scriptFolder); + + public static IEnumerable GetScriptHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var importModules = String.Join(Environment.NewLine, modulePaths.Select(mp => $"Import-Module '{mp}'")); + var getHelpCommand = $@" +$currentFunctions = Get-ChildItem function: +{importModules} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} | ForEach-Object {{ Get-Help -Name $_.Name -Full }} +"; + return cmdlet?.RunScript(getHelpCommand) ?? RunScript(getHelpCommand); + } + + public static IEnumerable GetScriptHelpInfo(params string[] modulePaths) + => GetScriptHelpInfo(null, modulePaths); + + public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => + $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" + )); + return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) + .Select(h => new CmdletAndHelpInfo { CommandInfo = (h["CommandInfo"] as PSObject)?.BaseObject as CommandInfo, HelpInfo = h["HelpInfo"] as PSObject }); + } + + public static IEnumerable GetModuleCmdletsAndHelpInfo(params string[] modulePaths) + => GetModuleCmdletsAndHelpInfo(null, modulePaths); + + public static CmdletAndHelpInfo ToCmdletAndHelpInfo(this CommandInfo commandInfo, PSObject helpInfo) => new CmdletAndHelpInfo { CommandInfo = commandInfo, HelpInfo = helpInfo }; + + public const string Psd1Indent = " "; + public const string GuidStart = Psd1Indent + "GUID"; + + public static Guid ReadGuidFromPsd1(string psd1Path) + { + var guid = Guid.NewGuid(); + if (File.Exists(psd1Path)) + { + var currentGuid = File.ReadAllLines(psd1Path) + .FirstOrDefault(l => l.StartsWith(GuidStart))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) + .LastOrDefault()?.Replace("'", String.Empty); + guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; + } + + return guid; + } + } + + internal class CmdletAndHelpInfo + { + public CommandInfo CommandInfo { get; set; } + public PSObject HelpInfo { get; set; } + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/StringExtensions.cs b/src/CloudService/generated/runtime/BuildTime/StringExtensions.cs new file mode 100644 index 000000000000..b481ce443585 --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/StringExtensions.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class StringExtensions + { + public static string NullIfEmpty(this string text) => String.IsNullOrEmpty(text) ? null : text; + public static string NullIfWhiteSpace(this string text) => String.IsNullOrWhiteSpace(text) ? null : text; + public static string EmptyIfNull(this string text) => text ?? String.Empty; + + public static bool? ToNullableBool(this string text) => String.IsNullOrEmpty(text) ? (bool?)null : Convert.ToBoolean(text.ToLowerInvariant()); + + public static string ToUpperFirstCharacter(this string text) => String.IsNullOrEmpty(text) ? text : $"{text[0].ToString().ToUpperInvariant()}{text.Remove(0, 1)}"; + + public static string ReplaceNewLines(this string value, string replacer = " ", string[] newLineSymbols = null) + => (newLineSymbols ?? new []{ "\r\n", "\n" }).Aggregate(value.EmptyIfNull(), (current, symbol) => current.Replace(symbol, replacer)); + public static string NormalizeNewLines(this string value) => value.ReplaceNewLines("\u00A0").Replace("\u00A0", Environment.NewLine); + } +} diff --git a/src/CloudService/generated/runtime/BuildTime/XmlExtensions.cs b/src/CloudService/generated/runtime/BuildTime/XmlExtensions.cs new file mode 100644 index 000000000000..048eb6e63dad --- /dev/null +++ b/src/CloudService/generated/runtime/BuildTime/XmlExtensions.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class XmlExtensions + { + public static string ToXmlString(this T inputObject, bool excludeDeclaration = false) + { + var serializer = new XmlSerializer(typeof(T)); + //https://stackoverflow.com/a/760290/294804 + //https://stackoverflow.com/a/3732234/294804 + var namespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty }); + var xmlSettings = new XmlWriterSettings { OmitXmlDeclaration = excludeDeclaration, Indent = true }; + using (var stringWriter = new StringWriter()) + using (var xmlWriter = XmlWriter.Create(stringWriter, xmlSettings)) + { + serializer.Serialize(xmlWriter, inputObject, namespaces); + return stringWriter.ToString(); + } + } + } +} diff --git a/src/CloudService/generated/runtime/CmdInfoHandler.cs b/src/CloudService/generated/runtime/CmdInfoHandler.cs new file mode 100644 index 000000000000..e7a226aeb651 --- /dev/null +++ b/src/CloudService/generated/runtime/CmdInfoHandler.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Management.Automation; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using NextDelegate = Func, Task>, Task>; + using SignalDelegate = Func, Task>; + + public class CmdInfoHandler + { + private readonly string processRecordId; + private readonly string parameterSetName; + private readonly InvocationInfo invocationInfo; + + public CmdInfoHandler(string processRecordId, InvocationInfo invocationInfo, string parameterSetName) + { + this.processRecordId = processRecordId; + this.parameterSetName = parameterSetName; + this.invocationInfo = invocationInfo; + } + + public Task SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next) + { + request.Headers.Add("x-ms-client-request-id", processRecordId); + request.Headers.Add("CommandName", invocationInfo?.InvocationName); + request.Headers.Add("FullCommandName", invocationInfo?.MyCommand?.Name); + request.Headers.Add("ParameterSetName", parameterSetName); + + // continue with pipeline. + return next(request, token, cancel, signal); + } + } +} diff --git a/src/CloudService/generated/runtime/Conversions/ConversionException.cs b/src/CloudService/generated/runtime/Conversions/ConversionException.cs new file mode 100644 index 000000000000..b8fffac9535e --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/ConversionException.cs @@ -0,0 +1,17 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class ConversionException : Exception + { + internal ConversionException(string message) + : base(message) { } + + internal ConversionException(JsonNode node, Type targetType) + : base($"Cannot convert '{node.Type}' to a {targetType.Name}") { } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/IJsonConverter.cs b/src/CloudService/generated/runtime/Conversions/IJsonConverter.cs new file mode 100644 index 000000000000..7afd4fa3637f --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/IJsonConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal interface IJsonConverter + { + JsonNode ToJson(object value); + + object FromJson(JsonNode node); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/BinaryConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/BinaryConverter.cs new file mode 100644 index 000000000000..2d3ec7a11963 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/BinaryConverter.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class BinaryConverter : JsonConverter + { + internal override JsonNode ToJson(byte[] value) => new XBinary(value); + + internal override byte[] FromJson(JsonNode node) + { + switch (node.Type) + { + case JsonType.String : return Convert.FromBase64String(node.ToString()); // Base64 Encoded + case JsonType.Binary : return ((XBinary)node).Value; + } + + throw new ConversionException(node, typeof(byte[])); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/BooleanConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/BooleanConverter.cs new file mode 100644 index 000000000000..1dd6b495beb8 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/BooleanConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class BooleanConverter : JsonConverter + { + internal override JsonNode ToJson(bool value) => new JsonBoolean(value); + + internal override bool FromJson(JsonNode node) => (bool)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/DateTimeConverter.cs new file mode 100644 index 000000000000..268d07895bda --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/DateTimeConverter.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class DateTimeConverter : JsonConverter + { + internal override JsonNode ToJson(DateTime value) + { + return new JsonDate(value); + } + + internal override DateTime FromJson(JsonNode node) => (DateTime)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs new file mode 100644 index 000000000000..bf77924a1058 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class DateTimeOffsetConverter : JsonConverter + { + internal override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value); + + internal override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/DecimalConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/DecimalConverter.cs new file mode 100644 index 000000000000..6197ff109977 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/DecimalConverter.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class DecimalConverter : JsonConverter + { + internal override JsonNode ToJson(decimal value) => new JsonNumber(value.ToString()); + + internal override decimal FromJson(JsonNode node) + { + return (decimal)node; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/DoubleConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/DoubleConverter.cs new file mode 100644 index 000000000000..a87b147139c3 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/DoubleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class DoubleConverter : JsonConverter + { + internal override JsonNode ToJson(double value) => new JsonNumber(value); + + internal override double FromJson(JsonNode node) => (double)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/EnumConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/EnumConverter.cs new file mode 100644 index 000000000000..6e0b07f6c679 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/EnumConverter.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class EnumConverter : IJsonConverter + { + private readonly Type type; + + internal EnumConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + } + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + + public object FromJson(JsonNode node) + { + if (node.Type == JsonType.Number) + { + return Enum.ToObject(type, (int)node); + } + + return Enum.Parse(type, node.ToString(), ignoreCase: true); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/GuidConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/GuidConverter.cs new file mode 100644 index 000000000000..37242ab467d6 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/GuidConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class GuidConverter : JsonConverter + { + internal override JsonNode ToJson(Guid value) => new JsonString(value.ToString()); + + internal override Guid FromJson(JsonNode node) => (Guid)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/HashSet'1Converter.cs new file mode 100644 index 000000000000..20e70090448c --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/HashSet'1Converter.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class HashSetConverter : JsonConverter> + { + internal override JsonNode ToJson(HashSet value) + { + return new XSet(value); + } + + internal override HashSet FromJson(JsonNode node) + { + var collection = node as ICollection; + + if (collection.Count == 0) return null; + + // TODO: Remove Linq depedency + return new HashSet(collection.Cast()); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/Int16Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/Int16Converter.cs new file mode 100644 index 000000000000..9f8be44e8698 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/Int16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class Int16Converter : JsonConverter + { + internal override JsonNode ToJson(short value) => new JsonNumber(value); + + internal override short FromJson(JsonNode node) => (short)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/Int32Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/Int32Converter.cs new file mode 100644 index 000000000000..bc304d85b3dc --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/Int32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class Int32Converter : JsonConverter + { + internal override JsonNode ToJson(int value) => new JsonNumber(value); + + internal override int FromJson(JsonNode node) => (int)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/Int64Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/Int64Converter.cs new file mode 100644 index 000000000000..9457094e5164 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/Int64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class Int64Converter : JsonConverter + { + internal override JsonNode ToJson(long value) => new JsonNumber(value); + + internal override long FromJson(JsonNode node) => (long)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/JsonArrayConverter.cs new file mode 100644 index 000000000000..76d6c28067d7 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/JsonArrayConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class JsonArrayConverter : JsonConverter + { + internal override JsonNode ToJson(JsonArray value) => value; + + internal override JsonArray FromJson(JsonNode node) => (JsonArray)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/JsonObjectConverter.cs new file mode 100644 index 000000000000..7053a3ed19e4 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/JsonObjectConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class JsonObjectConverter : JsonConverter + { + internal override JsonNode ToJson(JsonObject value) => value; + + internal override JsonObject FromJson(JsonNode node) => (JsonObject)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/SingleConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/SingleConverter.cs new file mode 100644 index 000000000000..714395693a64 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/SingleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class SingleConverter : JsonConverter + { + internal override JsonNode ToJson(float value) => new JsonNumber(value.ToString()); + + internal override float FromJson(JsonNode node) => (float)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/StringConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/StringConverter.cs new file mode 100644 index 000000000000..72805cf3e873 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/StringConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class StringConverter : JsonConverter + { + internal override JsonNode ToJson(string value) => new JsonString(value); + + internal override string FromJson(JsonNode node) => node.ToString(); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/TimeSpanConverter.cs new file mode 100644 index 000000000000..0421f30ca4cf --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/TimeSpanConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class TimeSpanConverter : JsonConverter + { + internal override JsonNode ToJson(TimeSpan value) => new JsonString(value.ToString()); + + internal override TimeSpan FromJson(JsonNode node) => (TimeSpan)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/UInt16Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/UInt16Converter.cs new file mode 100644 index 000000000000..6e638f6b5829 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/UInt16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class UInt16Converter : JsonConverter + { + internal override JsonNode ToJson(ushort value) => new JsonNumber(value); + + internal override ushort FromJson(JsonNode node) => (ushort)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/UInt32Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/UInt32Converter.cs new file mode 100644 index 000000000000..4d75a250b29c --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/UInt32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class UInt32Converter : JsonConverter + { + internal override JsonNode ToJson(uint value) => new JsonNumber(value); + + internal override uint FromJson(JsonNode node) => (uint)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/UInt64Converter.cs b/src/CloudService/generated/runtime/Conversions/Instances/UInt64Converter.cs new file mode 100644 index 000000000000..6f8cfe4db8be --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/UInt64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class UInt64Converter : JsonConverter + { + internal override JsonNode ToJson(ulong value) => new JsonNumber(value.ToString()); + + internal override ulong FromJson(JsonNode node) => (ulong)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/Instances/UriConverter.cs b/src/CloudService/generated/runtime/Conversions/Instances/UriConverter.cs new file mode 100644 index 000000000000..902d42ff64ac --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/Instances/UriConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class UriConverter : JsonConverter + { + internal override JsonNode ToJson(Uri value) => new JsonString(value.AbsoluteUri); + + internal override Uri FromJson(JsonNode node) => (Uri)node; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/JsonConverter.cs b/src/CloudService/generated/runtime/Conversions/JsonConverter.cs new file mode 100644 index 000000000000..d2c780427c7c --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/JsonConverter.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public abstract class JsonConverter : IJsonConverter + { + internal abstract T FromJson(JsonNode node); + + internal abstract JsonNode ToJson(T value); + + #region IConverter + + object IJsonConverter.FromJson(JsonNode node) => FromJson(node); + + JsonNode IJsonConverter.ToJson(object value) => ToJson((T)value); + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/JsonConverterAttribute.cs b/src/CloudService/generated/runtime/Conversions/JsonConverterAttribute.cs new file mode 100644 index 000000000000..bad8d4854ee3 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/JsonConverterAttribute.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class JsonConverterAttribute : Attribute + { + internal JsonConverterAttribute(Type type) + { + Converter = (IJsonConverter)Activator.CreateInstance(type); + } + + internal IJsonConverter Converter { get; } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/JsonConverterFactory.cs b/src/CloudService/generated/runtime/Conversions/JsonConverterFactory.cs new file mode 100644 index 000000000000..a3d30d6f9fe5 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/JsonConverterFactory.cs @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class JsonConverterFactory + { + private static readonly Dictionary converters = new Dictionary(); + + static JsonConverterFactory() + { + AddInternal(new BooleanConverter()); + AddInternal(new DateTimeConverter()); + AddInternal(new DateTimeOffsetConverter()); + AddInternal(new BinaryConverter()); + AddInternal(new DecimalConverter()); + AddInternal(new DoubleConverter()); + AddInternal(new GuidConverter()); + AddInternal(new Int16Converter()); + AddInternal(new Int32Converter()); + AddInternal(new Int64Converter()); + AddInternal(new SingleConverter()); + AddInternal(new StringConverter()); + AddInternal(new TimeSpanConverter()); + AddInternal(new UInt16Converter()); + AddInternal(new UInt32Converter()); + AddInternal(new UInt64Converter()); + AddInternal(new UriConverter()); + + // Hash sets + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + + // JSON + + AddInternal(new JsonObjectConverter()); + AddInternal(new JsonArrayConverter()); + } + + internal static Dictionary Instances => converters; + + internal static IJsonConverter Get(Type type) + { + var details = TypeDetails.Get(type); + + if (details.JsonConverter == null) + { + throw new ConversionException($"No converter found for '{type.Name}'."); + } + + return details.JsonConverter; + } + + internal static bool TryGet(Type type, out IJsonConverter converter) + { + var typeDetails = TypeDetails.Get(type); + + converter = typeDetails.JsonConverter; + + return converter != null; + } + + private static void AddInternal(JsonConverter converter) + => converters.Add(typeof(T), converter); + + private static void AddInternal(IJsonConverter converter) + => converters.Add(typeof(T), converter); + + internal static void Add(JsonConverter converter) + { + if (converter == null) + { + throw new ArgumentNullException(nameof(converter)); + } + + AddInternal(converter); + + var type = TypeDetails.Get(); + + type.JsonConverter = converter; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Conversions/StringLikeConverter.cs b/src/CloudService/generated/runtime/Conversions/StringLikeConverter.cs new file mode 100644 index 000000000000..bd4346f428a0 --- /dev/null +++ b/src/CloudService/generated/runtime/Conversions/StringLikeConverter.cs @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class StringLikeConverter : IJsonConverter + { + private readonly Type type; + private readonly MethodInfo parseMethod; + + internal StringLikeConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + this.parseMethod = StringLikeHelper.GetParseMethod(type); + } + + public object FromJson(JsonNode node) => + parseMethod.Invoke(null, new[] { node.ToString() }); + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + } + + internal static class StringLikeHelper + { + private static readonly Type[] parseMethodParamaterTypes = new[] { typeof(string) }; + + internal static bool IsStringLike(Type type) + { + return GetParseMethod(type) != null; + } + + internal static MethodInfo GetParseMethod(Type type) + { + MethodInfo method = type.GetMethod("Parse", parseMethodParamaterTypes); + + if (method?.IsPublic != true) return null; + + return method; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/IJsonSerializable.cs b/src/CloudService/generated/runtime/Customizations/IJsonSerializable.cs new file mode 100644 index 000000000000..6b98dc2f1c43 --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/IJsonSerializable.cs @@ -0,0 +1,249 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + public interface IJsonSerializable + { + JsonNode ToJson(JsonObject container = null, SerializationMode serializationMode = SerializationMode.None); + } + internal static class JsonSerializable + { + /// + /// Serializes an enumerable and returns a JsonNode. + /// + /// an IEnumerable collection of items + /// A JsonNode that contains the collection of items serialized. + private static JsonNode ToJsonValue(System.Collections.IEnumerable enumerable) + { + if (enumerable != null) + { + // is it a byte array of some kind? + if (enumerable is System.Collections.Generic.IEnumerable byteEnumerable) + { + return new XBinary(System.Linq.Enumerable.ToArray(byteEnumerable)); + } + + var hasValues = false; + // just create an array of value nodes. + var result = new XNodeArray(); + foreach (var each in enumerable) + { + // we had at least one value. + hasValues = true; + + // try to serialize it. + var node = ToJsonValue(each); + if (null != node) + { + result.Add(node); + } + } + + // if we were able to add values, (or it was just empty), return it. + if (result.Count > 0 || !hasValues) + { + return result; + } + } + + // we couldn't serialize the values. Sorry. + return null; + } + + /// + /// Serializes a valuetype to a JsonNode. + /// + /// a ValueType (ie, a primitive, enum or struct) to be serialized + /// a JsonNode with the serialized value + private static JsonNode ToJsonValue(ValueType vValue) + { + // numeric type + if (vValue is SByte || vValue is Int16 || vValue is Int32 || vValue is Int64 || vValue is Byte || vValue is UInt16 || vValue is UInt32 || vValue is UInt64 || vValue is decimal || vValue is float || vValue is double) + { + return new JsonNumber(vValue.ToString()); + } + + // boolean type + if (vValue is bool bValue) + { + return new JsonBoolean(bValue); + } + + // dates + if (vValue is DateTime dtValue) + { + return new JsonDate(dtValue); + } + + // sorry, no idea. + return null; + } + /// + /// Attempts to serialize an object by using ToJson() or ToJsonString() if they exist. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + private static JsonNode TryToJsonValue(dynamic oValue) + { + object jsonValue = null; + dynamic v = oValue; + try + { + jsonValue = v.ToJson().ToString(); + } + catch + { + // no harm... + try + { + jsonValue = v.ToJsonString().ToString(); + } + catch + { + // no worries here either. + } + } + + // if we got something out, let's use it. + if (null != jsonValue) + { + // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? + return new JsonNumber(jsonValue.ToString()); + } + + return null; + } + + /// + /// Serialize an object by using a variety of methods. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + internal static JsonNode ToJsonValue(object value) + { + // things that implement our interface are preferred. + if (value is Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IJsonSerializable jsonSerializable) + { + return jsonSerializable.ToJson(); + } + + // strings are easy. + if (value is string || value is char) + { + return new JsonString(value.ToString()); + } + + // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) + if (value is System.ValueType vValue) + { + return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); + } + + // dictionaries are objects that should be able to serialize + if (value is System.Collections.Generic.IDictionary dictionary) + { + return Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.JsonSerializable.ToJson(dictionary, null); + } + + // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) + if (value is System.Collections.IEnumerable enumerableValue) + { + // some kind of enumerable value + return ToJsonValue(enumerableValue) ?? TryToJsonValue(value) ?? new JsonString(value.ToString()); + } + + // at this point, we're going to fallback to a string literal here, since we really have no idea what it is. + return new JsonString(value.ToString()); + } + + internal static JsonObject ToJson(System.Collections.Generic.Dictionary dictionary, JsonObject container) => ToJson((System.Collections.Generic.IDictionary)dictionary, container); + + /// + /// Serializes a dictionary into a JsonObject container. + /// + /// The dictionary to serailize + /// the container to serialize the dictionary into + /// the container + internal static JsonObject ToJson(System.Collections.Generic.IDictionary dictionary, JsonObject container) + { + container = container ?? new JsonObject(); + if (dictionary != null && dictionary.Count > 0) + { + foreach (var key in dictionary) + { + // currently, we don't serialize null values. + if (null != key.Value) + { + container.Add(key.Key, ToJsonValue(key.Value)); + continue; + } + } + } + return container; + } + + internal static Func> DeserializeDictionary(Func> dictionaryFactory) + { + return (node) => FromJson(node, dictionaryFactory(), (object)(DeserializeDictionary(dictionaryFactory)) as Func); + } + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.Dictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) => FromJson(json, (System.Collections.Generic.IDictionary)container, objectFactory, excludes); + + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.IDictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) + { + if (null == json) + { + return container; + } + + foreach (var key in json.Keys) + { + if (true == excludes?.Contains(key)) + { + continue; + } + + var value = json[key]; + try + { + switch (value.Type) + { + case JsonType.Null: + // skip null values. + continue; + + case JsonType.Array: + case JsonType.Boolean: + case JsonType.Date: + case JsonType.Binary: + case JsonType.Number: + case JsonType.String: + container.Add(key, (V)value.ToValue()); + break; + case JsonType.Object: + if (objectFactory != null) + { + var v = objectFactory(value as JsonObject); + if (null != v) + { + container.Add(key, v); + } + } + break; + } + } + catch + { + } + } + return container; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonArray.cs b/src/CloudService/generated/runtime/Customizations/JsonArray.cs new file mode 100644 index 000000000000..a61cda3cbd7f --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonArray.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public partial class JsonArray + { + internal override object ToValue() => Count == 0 ? new object[0] : System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(this, each => each.ToValue())); + } + + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonBoolean.cs b/src/CloudService/generated/runtime/Customizations/JsonBoolean.cs new file mode 100644 index 000000000000..29635274419a --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonBoolean.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal partial class JsonBoolean + { + internal static JsonBoolean Create(bool? value) => value is bool b ? new JsonBoolean(b) : null; + internal bool ToBoolean() => Value; + + internal override object ToValue() => Value; + } + + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonNode.cs b/src/CloudService/generated/runtime/Customizations/JsonNode.cs new file mode 100644 index 000000000000..45d185f1cb61 --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonNode.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonNode + { + /// + /// Returns the content of this node as the underlying value. + /// Will default to the string representation if not overridden in child classes. + /// + /// an object with the underlying value of the node. + internal virtual object ToValue() { + return this.ToString(); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonNumber.cs b/src/CloudService/generated/runtime/Customizations/JsonNumber.cs new file mode 100644 index 000000000000..7af38b4e6639 --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonNumber.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System; + + public partial class JsonNumber + { + internal static readonly DateTime EpochDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); + private static long ToUnixTime(DateTime dateTime) + { + return (long)dateTime.Subtract(EpochDate).TotalSeconds; + } + private static DateTime FromUnixTime(long totalSeconds) + { + return EpochDate.AddSeconds(totalSeconds); + } + internal byte ToByte() => this; + internal int ToInt() => this; + internal long ToLong() => this; + internal short ToShort() => this; + internal UInt16 ToUInt16() => this; + internal UInt32 ToUInt32() => this; + internal UInt64 ToUInt64() => this; + internal decimal ToDecimal() => this; + internal double ToDouble() => this; + internal float ToFloat() => this; + + internal static JsonNumber Create(int? value) => value is int n ? new JsonNumber(n) : null; + internal static JsonNumber Create(long? value) => value is long n ? new JsonNumber(n) : null; + internal static JsonNumber Create(float? value) => value is float n ? new JsonNumber(n) : null; + internal static JsonNumber Create(double? value) => value is double n ? new JsonNumber(n) : null; + internal static JsonNumber Create(decimal? value) => value is decimal n ? new JsonNumber(n) : null; + internal static JsonNumber Create(DateTime? value) => value is DateTime date ? new JsonNumber(ToUnixTime(date)) : null; + + public static implicit operator DateTime(JsonNumber number) => FromUnixTime(number); + internal DateTime ToDateTime() => this; + + internal JsonNumber(decimal value) + { + this.value = value.ToString(); + } + internal override object ToValue() + { + if (IsInteger) + { + if (int.TryParse(this.value, out int iValue)) + { + return iValue; + } + if (long.TryParse(this.value, out long lValue)) + { + return lValue; + } + } + else + { + if (float.TryParse(this.value, out float fValue)) + { + return fValue; + } + if (double.TryParse(this.value, out double dValue)) + { + return dValue; + } + if (decimal.TryParse(this.value, out decimal dcValue)) + { + return dcValue; + } + } + return null; + } + } + + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonObject.cs b/src/CloudService/generated/runtime/Customizations/JsonObject.cs new file mode 100644 index 000000000000..34e88d8d02de --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonObject.cs @@ -0,0 +1,183 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonObject + { + internal override object ToValue() => Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.JsonSerializable.FromJson(this, new System.Collections.Generic.Dictionary(), (obj) => obj.ToValue()); + + internal void SafeAdd(string name, Func valueFn) + { + if (valueFn != null) + { + var value = valueFn(); + if (null != value) + { + items.Add(name, value); + } + } + } + + internal void SafeAdd(string name, JsonNode value) + { + if (null != value) + { + items.Add(name, value); + } + } + + internal T NullableProperty(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; + } + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + //throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal JsonObject Property(string propertyName) + { + return PropertyT(propertyName); + } + + internal T PropertyT(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; // we're going to assume that the consumer knows what to do if null is explicity returned? + } + + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + // throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal int NumberProperty(string propertyName, ref int output) => output = this.PropertyT(propertyName)?.ToInt() ?? output; + internal float NumberProperty(string propertyName, ref float output) => output = this.PropertyT(propertyName)?.ToFloat() ?? output; + internal byte NumberProperty(string propertyName, ref byte output) => output = this.PropertyT(propertyName)?.ToByte() ?? output; + internal long NumberProperty(string propertyName, ref long output) => output = this.PropertyT(propertyName)?.ToLong() ?? output; + internal double NumberProperty(string propertyName, ref double output) => output = this.PropertyT(propertyName)?.ToDouble() ?? output; + internal decimal NumberProperty(string propertyName, ref decimal output) => output = this.PropertyT(propertyName)?.ToDecimal() ?? output; + internal short NumberProperty(string propertyName, ref short output) => output = this.PropertyT(propertyName)?.ToShort() ?? output; + internal DateTime NumberProperty(string propertyName, ref DateTime output) => output = this.PropertyT(propertyName)?.ToDateTime() ?? output; + + internal int? NumberProperty(string propertyName, ref int? output) => output = this.NullableProperty(propertyName)?.ToInt() ?? null; + internal float? NumberProperty(string propertyName, ref float? output) => output = this.NullableProperty(propertyName)?.ToFloat() ?? null; + internal byte? NumberProperty(string propertyName, ref byte? output) => output = this.NullableProperty(propertyName)?.ToByte() ?? null; + internal long? NumberProperty(string propertyName, ref long? output) => output = this.NullableProperty(propertyName)?.ToLong() ?? null; + internal double? NumberProperty(string propertyName, ref double? output) => output = this.NullableProperty(propertyName)?.ToDouble() ?? null; + internal decimal? NumberProperty(string propertyName, ref decimal? output) => output = this.NullableProperty(propertyName)?.ToDecimal() ?? null; + internal short? NumberProperty(string propertyName, ref short? output) => output = this.NullableProperty(propertyName)?.ToShort() ?? null; + + internal DateTime? NumberProperty(string propertyName, ref DateTime? output) => output = this.NullableProperty(propertyName)?.ToDateTime() ?? null; + + + internal string StringProperty(string propertyName) => this.PropertyT(propertyName)?.ToString(); + internal string StringProperty(string propertyName, ref string output) => output = this.PropertyT(propertyName)?.ToString() ?? output; + internal char StringProperty(string propertyName, ref char output) => output = this.PropertyT(propertyName)?.ToChar() ?? output; + internal char? StringProperty(string propertyName, ref char? output) => output = this.PropertyT(propertyName)?.ToChar() ?? null; + + internal DateTime StringProperty(string propertyName, ref DateTime output) => DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out output) ? output : output; + internal DateTime? StringProperty(string propertyName, ref DateTime? output) => output = DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out var o) ? o : output; + + + internal bool BooleanProperty(string propertyName, ref bool output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? output; + internal bool? BooleanProperty(string propertyName, ref bool? output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? null; + + internal T[] ArrayProperty(string propertyName, ref T[] output, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + } + return output; + } + internal T[] ArrayProperty(string propertyName, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + var output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + return output; + } + return new T[0]; + } + internal void IterateArrayProperty(string propertyName, Action deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + for (var i = 0; i < array.Count; i++) + { + deserializer(array[i]); + } + } + } + + internal Dictionary DictionaryProperty(string propertyName, ref Dictionary output, Func deserializer) + { + var dictionary = this.PropertyT(propertyName); + if (output == null) + { + output = new Dictionary(); + } + else + { + output.Clear(); + } + if (dictionary != null) + { + foreach (var key in dictionary.Keys) + { + output[key] = deserializer(dictionary[key]); + } + } + return output; + } + + internal static JsonObject Create(IDictionary source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new JsonObject(); + + foreach (var key in source.Keys) + { + result.SafeAdd(key, selector(source[key])); + } + return result; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/JsonString.cs b/src/CloudService/generated/runtime/Customizations/JsonString.cs new file mode 100644 index 000000000000..5f1f25771d64 --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/JsonString.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System; + using System.Globalization; + using System.Linq; + + public partial class JsonString + { + internal static string DateFormat = "yyyy-MM-dd"; + internal static string DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; + internal static string DateTimeRfc1123Format = "R"; + + internal static JsonString Create(string value) => value == null ? null : new JsonString(value); + internal static JsonString Create(char? value) => value is char c ? new JsonString(c.ToString()) : null; + + internal static JsonString CreateDate(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTime(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTimeRfc1123(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeRfc1123Format, CultureInfo.CurrentCulture)) : null; + + internal char ToChar() => this.Value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char(JsonString value) => value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char? (JsonString value) => value?.ToString()?.FirstOrDefault(); + + public static implicit operator DateTime(JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime); + public static implicit operator DateTime? (JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime?); + + } + + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Customizations/XNodeArray.cs b/src/CloudService/generated/runtime/Customizations/XNodeArray.cs new file mode 100644 index 000000000000..c8d818485a6c --- /dev/null +++ b/src/CloudService/generated/runtime/Customizations/XNodeArray.cs @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System; + using System.Linq; + + public partial class XNodeArray + { + internal static XNodeArray Create(T[] source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new XNodeArray(); + foreach (var item in source.Select(selector)) + { + result.SafeAdd(item); + } + return result; + } + internal void SafeAdd(JsonNode item) + { + if (item != null) + { + items.Add(item); + } + } + internal void SafeAdd(Func itemFn) + { + if (itemFn != null) + { + var item = itemFn(); + if (item != null) + { + items.Add(item); + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Debugging.cs b/src/CloudService/generated/runtime/Debugging.cs new file mode 100644 index 000000000000..544fe1e1814c --- /dev/null +++ b/src/CloudService/generated/runtime/Debugging.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + internal static class AttachDebugger + { + internal static void Break() + { + while (!System.Diagnostics.Debugger.IsAttached) + { + System.Console.Error.WriteLine($"Waiting for debugger to attach to process {System.Diagnostics.Process.GetCurrentProcess().Id}"); + for (int i = 0; i < 50; i++) + { + if (System.Diagnostics.Debugger.IsAttached) + { + break; + } + System.Threading.Thread.Sleep(100); + System.Console.Error.Write("."); + } + System.Console.Error.WriteLine(); + } + System.Diagnostics.Debugger.Break(); + } + } +} diff --git a/src/CloudService/generated/runtime/DictionaryExtensions.cs b/src/CloudService/generated/runtime/DictionaryExtensions.cs new file mode 100644 index 000000000000..ff1beddf8223 --- /dev/null +++ b/src/CloudService/generated/runtime/DictionaryExtensions.cs @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + internal static class DictionaryExtensions + { + internal static void HashTableToDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) + { + foreach (var each in hashtable.Keys) + { + var key = each.ToString(); + var value = hashtable[key]; + if (null != value) + { + if (value is System.Collections.Hashtable nested) + { + HashTableToDictionary(nested, new System.Collections.Generic.Dictionary()); + } + else + { + try + { + dictionary[key] = (V)value; + } + catch + { + // Values getting dropped; not compatible with target dictionary. Not sure what to do here. + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/EventData.cs b/src/CloudService/generated/runtime/EventData.cs new file mode 100644 index 000000000000..12a8bf6f7e24 --- /dev/null +++ b/src/CloudService/generated/runtime/EventData.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + + using System; + using System.Threading; + + ///Represents the data in signaled event. + public partial class EventData + { + /// + /// The type of the event being signaled + /// + public string Id; + + /// + /// The user-ready message from the event. + /// + public string Message; + + /// + /// When the event is about a parameter, this is the parameter name. + /// Used in Validation Events + /// + public string Parameter; + + /// + /// This represents a numeric value associated with the event. + /// Use for progress-style events + /// + public double Value; + + /// + /// Any extended data for an event should be serialized and stored here. + /// + public string ExtendedData; + + /// + /// If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) + /// { + /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); + /// } + /// + /// + public object RequestMessage; + + /// + /// If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.ResponseMessage is HttpResponseMessage httpResponse){ + /// var flavor = httpResponse.Headers.GetValue("x-request-flavor"); + /// } + /// + /// + public object ResponseMessage; + + /// + /// Cancellation method for this event. + /// + /// If the event consumer wishes to cancel the request that initiated this event, call Cancel() + /// + /// + /// The original initiator of the request must provide the implementation of this. + /// + public System.Action Cancel; + } + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/EventDataExtensions.cs b/src/CloudService/generated/runtime/EventDataExtensions.cs new file mode 100644 index 000000000000..1e879552e148 --- /dev/null +++ b/src/CloudService/generated/runtime/EventDataExtensions.cs @@ -0,0 +1,94 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System; + + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] + /// + /// PowerShell-specific data on top of the llc# EventData + /// + /// + /// In PowerShell, we add on the EventDataConverter to support sending events between modules. + /// Obviously, this code would need to be duplcated on both modules. + /// This is preferable to sharing a common library, as versioning makes that problematic. + /// + public partial class EventData : EventArgs + { + } + + /// + /// A PowerShell PSTypeConverter to adapt an EventData object that has been passed. + /// Usually used between modules. + /// + public class EventDataConverter : System.Management.Automation.PSTypeConverter + { + public override bool CanConvertTo(object sourceValue, Type destinationType) => false; + public override object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => null; + public override bool CanConvertFrom(dynamic sourceValue, Type destinationType) => destinationType == typeof(EventData) && CanConvertFrom(sourceValue); + public override object ConvertFrom(dynamic sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Verifies that a given object has the required members to convert it to the target type (EventData) + /// + /// Uses a dynamic type so that it is able to use the simplest code without excessive checking. + /// + /// The instance to verify + /// True, if the object has all the required parameters. + public static bool CanConvertFrom(dynamic sourceValue) + { + try + { + // check if this has *required* parameters... + sourceValue?.Id?.GetType(); + sourceValue?.Message?.GetType(); + sourceValue?.Cancel?.GetType(); + + // remaining parameters are not *required*, + // and if they have values, it will copy them at conversion time. + } + catch + { + // if anything throws an exception (because it's null, or doesn't have that member) + return false; + } + return true; + } + + /// + /// Returns result of the delegate as the expected type, or default(T) + /// + /// This isolates any exceptions from the consumer. + /// + /// A delegate that returns a value + /// The desired output type + /// The value from the function if the type is correct + private static T To(Func srcValue) + { + try { return srcValue(); } + catch { return default(T); } + } + + /// + /// Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values. + /// + /// the incoming object + /// EventData + public static EventData ConvertFrom(dynamic sourceValue) + { + return new EventData + { + Id = To(() => sourceValue.Id), + Message = To(() => sourceValue.Message), + Parameter = To(() => sourceValue.Parameter), + Value = To(() => sourceValue.Value), + RequestMessage = To(() => sourceValue.RequestMessage), + ResponseMessage = To(() => sourceValue.ResponseMessage), + Cancel = To(() => sourceValue.Cancel) + }; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/EventListener.cs b/src/CloudService/generated/runtime/EventListener.cs new file mode 100644 index 000000000000..4f29c99851c4 --- /dev/null +++ b/src/CloudService/generated/runtime/EventListener.cs @@ -0,0 +1,247 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public interface IValidates + { + Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IEventListener listener); + } + + /// + /// The IEventListener Interface defines the communication mechanism for Signaling events during a remote call. + /// + /// + /// The interface is designed to be as minimal as possible, allow for quick peeking of the event type (id) + /// and the cancellation status and provides a delegate for retrieving the event details themselves. + /// + public interface IEventListener + { + Task Signal(string id, CancellationToken token, GetEventData createMessage); + CancellationToken Token { get; } + System.Action Cancel { get; } + } + + internal static partial class Extensions + { + public static Task Signal(this IEventListener instance, string id, CancellationToken token, Func createMessage) => instance.Signal(id, token, createMessage); + public static Task Signal(this IEventListener instance, string id, CancellationToken token) => instance.Signal(id, token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, EventData message) => instance.Signal(id, token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, Func createMessage) => instance.Signal(id, instance.Token, createMessage); + public static Task Signal(this IEventListener instance, string id) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, EventData message) => instance.Signal(id, instance.Token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, System.Uri uri) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = uri.ToString(), Cancel = instance.Cancel }); + + public static async Task AssertNotNull(this IEventListener instance, string parameterName, object value) + { + if (value == null) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' should not be null", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMinimumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length < length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is less than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMaximumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length > length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is greater than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + + public static async Task AssertRegEx(this IEventListener instance, string parameterName, string value, string regularExpression) + { + if (value != null && !System.Text.RegularExpressions.Regex.Match(value, regularExpression).Success) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' does not validate against pattern /{regularExpression}/", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertEnum(this IEventListener instance, string parameterName, string value, params string[] values) + { + if (!values.Any(each => each.Equals(value))) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' is not one of ({values.Aggregate((c, e) => $"'{e}',{c}")}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertObjectIsValid(this IEventListener instance, string parameterName, object inst) + { + await (inst as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IValidates)?.Validate(instance); + } + + public static async Task AssertIsLessThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) >= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) <= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsLessThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) > 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) < 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, Int64? value, Int64 multiple) + { + if (null != value && value % multiple != 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, double? value, double multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, decimal? value, decimal multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + } + + /// + /// An Implementation of the IEventListener that supports subscribing to events and dispatching them + /// (used for manually using the lowlevel interface) + /// + public class EventListener : CancellationTokenSource, IEnumerable>, IEventListener + { + private Dictionary calls = new Dictionary(); + public IEnumerator> GetEnumerator() => calls.GetEnumerator(); + IEnumerator IEnumerable.GetEnumerator() => calls.GetEnumerator(); + public EventListener() + { + } + + public new Action Cancel => base.Cancel; + private Event tracer; + + public EventListener(params (string name, Event callback)[] initializer) + { + foreach (var each in initializer) + { + Add(each.name, each.callback); + } + } + + public void Add(string name, SynchEvent callback) + { + Add(name, (message) => { callback(message); return Task.CompletedTask; }); + } + + public void Add(string name, Event callback) + { + if (callback != null) + { + if (string.IsNullOrEmpty(name)) + { + if (calls.ContainsKey(name)) + { + tracer += callback; + } + else + { + tracer = callback; + } + } + else + { + if (calls.ContainsKey(name)) + { + calls[name ?? System.String.Empty] += callback; + } + else + { + calls[name ?? System.String.Empty] = callback; + } + } + } + } + + + public async Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + using (NoSynchronizationContext) + { + if (!string.IsNullOrEmpty(id) && (calls.TryGetValue(id, out Event listener) || tracer != null)) + { + var message = createMessage(); + message.Id = id; + + await listener?.Invoke(message); + await tracer?.Invoke(message); + + if (token.IsCancellationRequested) + { + throw new OperationCanceledException($"Canceled by event {id} ", this.Token); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Events.cs b/src/CloudService/generated/runtime/Events.cs new file mode 100644 index 000000000000..87407acc8f2c --- /dev/null +++ b/src/CloudService/generated/runtime/Events.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + public static partial class Events + { + public const string Log = nameof(Log); + public const string Validation = nameof(Validation); + public const string ValidationWarning = nameof(ValidationWarning); + public const string AfterValidation = nameof(AfterValidation); + public const string RequestCreated = nameof(RequestCreated); + public const string ResponseCreated = nameof(ResponseCreated); + public const string URLCreated = nameof(URLCreated); + public const string Finally = nameof(Finally); + public const string HeaderParametersAdded = nameof(HeaderParametersAdded); + public const string BodyContentSet = nameof(BodyContentSet); + public const string BeforeCall = nameof(BeforeCall); + public const string BeforeResponseDispatch = nameof(BeforeResponseDispatch); + public const string FollowingNextLink = nameof(FollowingNextLink); + public const string DelayBeforePolling = nameof(DelayBeforePolling); + public const string Polling = nameof(Polling); + + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/EventsExtensions.cs b/src/CloudService/generated/runtime/EventsExtensions.cs new file mode 100644 index 000000000000..391b33907145 --- /dev/null +++ b/src/CloudService/generated/runtime/EventsExtensions.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + public static partial class Events + { + public const string CmdletProcessRecordStart = nameof(CmdletProcessRecordStart); + public const string CmdletProcessRecordAsyncStart = nameof(CmdletProcessRecordAsyncStart); + public const string CmdletException = nameof(CmdletException); + public const string CmdletGetPipeline = nameof(CmdletGetPipeline); + public const string CmdletBeforeAPICall = nameof(CmdletBeforeAPICall); + public const string CmdletBeginProcessing = nameof(CmdletBeginProcessing); + public const string CmdletEndProcessing = nameof(CmdletEndProcessing); + public const string CmdletProcessRecordEnd = nameof(CmdletProcessRecordEnd); + public const string CmdletProcessRecordAsyncEnd = nameof(CmdletProcessRecordAsyncEnd); + public const string CmdletAfterAPICall = nameof(CmdletAfterAPICall); + + public const string Verbose = nameof(Verbose); + public const string Debug = nameof(Debug); + public const string Information = nameof(Information); + public const string Error = nameof(Error); + public const string Warning = nameof(Warning); + } + +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Extensions.cs b/src/CloudService/generated/runtime/Extensions.cs new file mode 100644 index 000000000000..f72c3440a94f --- /dev/null +++ b/src/CloudService/generated/runtime/Extensions.cs @@ -0,0 +1,111 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System.Linq; + + internal static partial class Extensions + { + + public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class + { + (instance as IHeaderSerializable)?.ReadHeaders(headers); + return instance; + } + + internal static bool If(T input, out T output) + { + if (null == input) + { + output = default(T); + return false; + } + output = input; + return true; + } + + internal static void AddIf(T value, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(value); + } + } + + internal static void AddIf(T value, string serializedName, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(serializedName, value); + } + } + + /// + /// Returns the first header value as a string from an HttpReponseMessage. + /// + /// the HttpResponseMessage to fetch a header from + /// the header name + /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => headerName == each.Key).Value?.FirstOrDefault() ?? string.Empty; + + /// + /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, + /// will restore the synchonization context to the original value. + /// + /// This is used a less-invasive means to ensure that code in the library that doesn't + /// need to be continued in the original context doesn't have to have ConfigureAwait(false) + /// on every single await + /// + /// If the SynchronizationContext is null when this is used, the resulting IDisposable + /// will not do anything (this prevents excessive re-setting of the SynchronizationContext) + /// + /// Usage: + /// + /// using(NoSynchronizationContext) { + /// await SomeAsyncOperation(); + /// await SomeOtherOperation(); + /// } + /// + /// + /// + /// An IDisposable that will return the SynchronizationContext to original state + internal static System.IDisposable NoSynchronizationContext => System.Threading.SynchronizationContext.Current == null ? Dummy : new NoSyncContext(); + + /// + /// An instance of the Dummy IDispoable. + /// + /// + internal static System.IDisposable Dummy = new DummyDisposable(); + + /// + /// An IDisposable that does absolutely nothing. + /// + internal class DummyDisposable : System.IDisposable + { + public void Dispose() + { + } + } + /// + /// An IDisposable that saves the SynchronizationContext,sets it to null and + /// restores it to the original upon Dispose(). + /// + /// NOTE: This is designed to be less invasive than using .ConfigureAwait(false) + /// on every single await in library code (ie, places where we know we don't need + /// to continue in the same context as we went async) + /// + internal class NoSyncContext : System.IDisposable + { + private System.Threading.SynchronizationContext original = System.Threading.SynchronizationContext.Current; + internal NoSyncContext() + { + System.Threading.SynchronizationContext.SetSynchronizationContext(null); + } + public void Dispose() => System.Threading.SynchronizationContext.SetSynchronizationContext(original); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs b/src/CloudService/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs new file mode 100644 index 000000000000..5f82bb0bd281 --- /dev/null +++ b/src/CloudService/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal static class StringBuilderExtensions + { + /// + /// Extracts the buffered value and resets the buffer + /// + internal static string Extract(this StringBuilder builder) + { + var text = builder.ToString(); + + builder.Clear(); + + return text; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Helpers/Extensions/TypeExtensions.cs b/src/CloudService/generated/runtime/Helpers/Extensions/TypeExtensions.cs new file mode 100644 index 000000000000..aa24928851f6 --- /dev/null +++ b/src/CloudService/generated/runtime/Helpers/Extensions/TypeExtensions.cs @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal static class TypeExtensions + { + internal static bool IsNullable(this Type type) => + type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)); + + internal static Type GetOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition() == openGenericInterfaceType) + { + return candidateType; + } + + // Check if it references it's own converter.... + + foreach (Type interfaceType in candidateType.GetInterfaces()) + { + if (interfaceType.IsGenericType + && interfaceType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return interfaceType; + } + } + + return null; + } + + // Author: Sebastian Good + // http://stackoverflow.com/questions/503263/how-to-determine-if-a-type-implements-a-specific-generic-interface-type + internal static bool ImplementsOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + if (candidateType.Equals(openGenericInterfaceType)) + { + return true; + } + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return true; + } + + foreach (Type i in candidateType.GetInterfaces()) + { + if (i.IsGenericType && i.ImplementsOpenGenericInterface(openGenericInterfaceType)) + { + return true; + } + } + + return false; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Helpers/Seperator.cs b/src/CloudService/generated/runtime/Helpers/Seperator.cs new file mode 100644 index 000000000000..ea29fa5d69aa --- /dev/null +++ b/src/CloudService/generated/runtime/Helpers/Seperator.cs @@ -0,0 +1,11 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal static class Seperator + { + internal static readonly char[] Dash = { '-' }; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Helpers/TypeDetails.cs b/src/CloudService/generated/runtime/Helpers/TypeDetails.cs new file mode 100644 index 000000000000..a4026ac475bf --- /dev/null +++ b/src/CloudService/generated/runtime/Helpers/TypeDetails.cs @@ -0,0 +1,116 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + + + + internal class TypeDetails + { + private readonly Type info; + + internal TypeDetails(Type info) + { + this.info = info ?? throw new ArgumentNullException(nameof(info)); + } + + internal Type NonNullType { get; set; } + + internal object DefaultValue { get; set; } + + internal bool IsNullable { get; set; } + + internal bool IsList { get; set; } + + internal bool IsStringLike { get; set; } + + internal bool IsEnum => info.IsEnum; + + internal bool IsArray => info.IsArray; + + internal bool IsValueType => info.IsValueType; + + internal Type ElementType { get; set; } + + internal IJsonConverter JsonConverter { get; set; } + + #region Creation + + private static readonly ConcurrentDictionary cache = new ConcurrentDictionary(); + + internal static TypeDetails Get() => Get(typeof(T)); + + internal static TypeDetails Get(Type type) => cache.GetOrAdd(type, Create); + + private static TypeDetails Create(Type type) + { + var isGenericList = !type.IsPrimitive && type.ImplementsOpenGenericInterface(typeof(IList<>)); + var isList = !type.IsPrimitive && (isGenericList || typeof(IList).IsAssignableFrom(type)); + + var isNullable = type.IsNullable(); + + Type elementType; + + if (type.IsArray) + { + elementType = type.GetElementType(); + } + else if (isGenericList) + { + var iList = type.GetOpenGenericInterface(typeof(IList<>)); + + elementType = iList.GetGenericArguments()[0]; + } + else + { + elementType = null; + } + + var nonNullType = isNullable ? type.GetGenericArguments()[0] : type; + + var isStringLike = false; + + IJsonConverter converter; + + var jsonConverterAttribute = type.GetCustomAttribute(); + + if (jsonConverterAttribute != null) + { + converter = jsonConverterAttribute.Converter; + } + else if (nonNullType.IsEnum) + { + converter = new EnumConverter(nonNullType); + } + else if (JsonConverterFactory.Instances.TryGetValue(nonNullType, out converter)) + { + } + else if (StringLikeHelper.IsStringLike(nonNullType)) + { + isStringLike = true; + + converter = new StringLikeConverter(nonNullType); + } + + return new TypeDetails(nonNullType) { + NonNullType = nonNullType, + DefaultValue = type.IsValueType ? Activator.CreateInstance(type) : null, + IsNullable = isNullable, + IsList = isList, + IsStringLike = isStringLike, + ElementType = elementType, + JsonConverter = converter + }; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Helpers/XHelper.cs b/src/CloudService/generated/runtime/Helpers/XHelper.cs new file mode 100644 index 000000000000..a990dc301bfb --- /dev/null +++ b/src/CloudService/generated/runtime/Helpers/XHelper.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal static class XHelper + { + internal static JsonNode Create(JsonType type, TypeCode code, object value) + { + switch (type) + { + case JsonType.Binary : return new XBinary((byte[])value); + case JsonType.Boolean : return new JsonBoolean((bool)value); + case JsonType.Number : return new JsonNumber(value.ToString()); + case JsonType.String : return new JsonString((string)value); + } + + throw new Exception($"JsonType '{type}' does not have a fast conversion"); + } + + internal static bool TryGetElementType(TypeCode code, out JsonType type) + { + switch (code) + { + case TypeCode.Boolean : type = JsonType.Boolean; return true; + case TypeCode.Byte : type = JsonType.Number; return true; + case TypeCode.DateTime : type = JsonType.Date; return true; + case TypeCode.Decimal : type = JsonType.Number; return true; + case TypeCode.Double : type = JsonType.Number; return true; + case TypeCode.Empty : type = JsonType.Null; return true; + case TypeCode.Int16 : type = JsonType.Number; return true; + case TypeCode.Int32 : type = JsonType.Number; return true; + case TypeCode.Int64 : type = JsonType.Number; return true; + case TypeCode.SByte : type = JsonType.Number; return true; + case TypeCode.Single : type = JsonType.Number; return true; + case TypeCode.String : type = JsonType.String; return true; + case TypeCode.UInt16 : type = JsonType.Number; return true; + case TypeCode.UInt32 : type = JsonType.Number; return true; + case TypeCode.UInt64 : type = JsonType.Number; return true; + } + + type = default; + + return false; + } + + internal static JsonType GetElementType(TypeCode code) + { + switch (code) + { + case TypeCode.Boolean : return JsonType.Boolean; + case TypeCode.Byte : return JsonType.Number; + case TypeCode.DateTime : return JsonType.Date; + case TypeCode.Decimal : return JsonType.Number; + case TypeCode.Double : return JsonType.Number; + case TypeCode.Empty : return JsonType.Null; + case TypeCode.Int16 : return JsonType.Number; + case TypeCode.Int32 : return JsonType.Number; + case TypeCode.Int64 : return JsonType.Number; + case TypeCode.SByte : return JsonType.Number; + case TypeCode.Single : return JsonType.Number; + case TypeCode.String : return JsonType.String; + case TypeCode.UInt16 : return JsonType.Number; + case TypeCode.UInt32 : return JsonType.Number; + case TypeCode.UInt64 : return JsonType.Number; + default : return JsonType.Object; + } + + throw new Exception($"TypeCode '{code}' does not have a fast converter"); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/HttpPipeline.cs b/src/CloudService/generated/runtime/HttpPipeline.cs new file mode 100644 index 000000000000..4ca675352e4c --- /dev/null +++ b/src/CloudService/generated/runtime/HttpPipeline.cs @@ -0,0 +1,88 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + using GetEventData = System.Func; + using NextDelegate = System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + + using SignalDelegate = System.Func, System.Threading.Tasks.Task>; + using GetParameterDelegate = System.Func, string, object>; + using SendAsyncStepDelegate = System.Func, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + using PipelineChangeDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>; + using ModuleLoadPipelineDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = System.Action, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + +/* + public class DelegateBasedEventListener : IEventListener + { + private EventListenerDelegate _listener; + public DelegateBasedEventListener(EventListenerDelegate listener) + { + _listener = listener; + } + public CancellationToken Token => CancellationToken.None; + public System.Action Cancel => () => { }; + + + public Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + return _listener(id, token, () => createMessage()); + } + } +*/ + /// + /// This is a necessary extension to the SendAsyncFactory to support the 'generic' delegate format. + /// + public partial class SendAsyncFactory + { + /// + /// This translates a generic-defined delegate for a listener into one that fits our ISendAsync pattern. + /// (Provided to support out-of-module delegation for Azure Cmdlets) + /// + /// The Pipeline Step as a delegate + public SendAsyncFactory(SendAsyncStepDelegate step) => this.implementation = (request, listener, next) => + step( + request, + listener.Token, + listener.Cancel, + (id, token, getEventData) => listener.Signal(id, token, () => { + var data = EventDataConverter.ConvertFrom( getEventData() ) as EventData; + data.Id = id; + data.Cancel = listener.Cancel; + data.RequestMessage = request; + return data; + }), + (req, token, cancel, listenerDelegate) => next.SendAsync(req, listener)); + } + + public partial class HttpPipeline : ISendAsync + { + public HttpPipeline Append(SendAsyncStepDelegate item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStepDelegate item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + } +} diff --git a/src/CloudService/generated/runtime/HttpPipelineMocking.ps1 b/src/CloudService/generated/runtime/HttpPipelineMocking.ps1 new file mode 100644 index 000000000000..2f2a12730431 --- /dev/null +++ b/src/CloudService/generated/runtime/HttpPipelineMocking.ps1 @@ -0,0 +1,110 @@ +$ErrorActionPreference = "Stop" + +# get the recording path +if (-not $TestRecordingFile) { + $TestRecordingFile = Join-Path $PSScriptRoot 'recording.json' +} + +# create the Http Pipeline Recorder +$Mock = New-Object -Type Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PipelineMock $TestRecordingFile + +# set the recorder to the appropriate mode (default to 'live') +Write-Host -ForegroundColor Green "Running '$TestMode' mode..." +switch ($TestMode) { + 'record' { + Write-Host -ForegroundColor Green "Recording to $TestRecordingFile" + $Mock.SetRecord() + $null = erase -ea 0 $TestRecordingFile + } + 'playback' { + if (-not (Test-Path $TestRecordingFile)) { + Write-Host -fore:yellow "Recording file '$TestRecordingFile' is not present. Tests expecting recorded responses will fail" + } else { + Write-Host -ForegroundColor Green "Using recording $TestRecordingFile" + } + $Mock.SetPlayback() + $Mock.ForceResponseHeaders["Retry-After"] = "0"; + } + default: { + $Mock.SetLive() + } +} + +# overrides for Pester Describe/Context/It + +function Describe( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushDescription($Name) + try { + return pester\Describe -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopDescription() + } +} + +function Context( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushContext($Name) + try { + return pester\Context -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopContext() + } +} + +function It { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test = { }, + + [System.Collections.IDictionary[]] $TestCases, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + $Mock.PushScenario($Name) + + try { + if ($skip) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Skip + } + if ($pending) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Pending + } + return pester\It -Name $Name -Test $Test -TestCases $TestCases + } + finally { + $null = $Mock.PopScenario() + } +} + +# set the HttpPipelineAppend for all the cmdlets +$PSDefaultParameterValues["*:HttpPipelinePrepend"] = $Mock diff --git a/src/CloudService/generated/runtime/IAssociativeArray.cs b/src/CloudService/generated/runtime/IAssociativeArray.cs new file mode 100644 index 000000000000..586d7289dd9e --- /dev/null +++ b/src/CloudService/generated/runtime/IAssociativeArray.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter + public interface IAssociativeArray + { + System.Collections.Generic.IEnumerable Keys { get; } + System.Collections.Generic.IEnumerable Values { get; } + System.Collections.Generic.IDictionary AdditionalProperties { get; } + T this[string index] { get; set; } + int Count { get; } + void Add(string key, T value); + bool ContainsKey(string key); + bool Remove(string key); + bool TryGetValue(string key, out T value); + void Clear(); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/IHeaderSerializable.cs b/src/CloudService/generated/runtime/IHeaderSerializable.cs new file mode 100644 index 000000000000..f94690ac4989 --- /dev/null +++ b/src/CloudService/generated/runtime/IHeaderSerializable.cs @@ -0,0 +1,14 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + public interface IHeaderSerializable + { + void ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/ISendAsync.cs b/src/CloudService/generated/runtime/ISendAsync.cs new file mode 100644 index 000000000000..628bd64a1b04 --- /dev/null +++ b/src/CloudService/generated/runtime/ISendAsync.cs @@ -0,0 +1,296 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + /// + /// The interface for sending an HTTP request across the wire. + /// + public interface ISendAsync + { + Task SendAsync(HttpRequestMessage request, IEventListener callback); + } + + public class SendAsyncTerminalFactory : ISendAsyncTerminalFactory, ISendAsync + { + SendAsync implementation; + + public SendAsyncTerminalFactory(SendAsync implementation) => this.implementation = implementation; + public SendAsyncTerminalFactory(ISendAsync implementation) => this.implementation = implementation.SendAsync; + public ISendAsync Create() => this; + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback); + } + + public partial class SendAsyncFactory : ISendAsyncFactory + { + public class Sender : ISendAsync + { + internal ISendAsync next; + internal SendAsyncStep implementation; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback, next); + } + SendAsyncStep implementation; + + public SendAsyncFactory(SendAsyncStep implementation) => this.implementation = implementation; + public ISendAsync Create(ISendAsync next) => new Sender { next = next, implementation = implementation }; + + } + + public class HttpClientFactory : ISendAsyncTerminalFactory, ISendAsync + { + HttpClient client; + public HttpClientFactory() : this(new HttpClient()) + { + } + public HttpClientFactory(HttpClient client) => this.client = client; + public ISendAsync Create() => this; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, callback.Token); + } + + public interface ISendAsyncFactory + { + ISendAsync Create(ISendAsync next); + } + + public interface ISendAsyncTerminalFactory + { + ISendAsync Create(); + } + + public partial class HttpPipeline : ISendAsync + { + private ISendAsync pipeline; + private ISendAsyncTerminalFactory terminal; + private List steps = new List(); + + public HttpPipeline() : this(new HttpClientFactory()) + { + } + + public HttpPipeline(ISendAsyncTerminalFactory terminalStep) + { + if (terminalStep == null) + { + throw new System.ArgumentNullException(nameof(terminalStep), "Terminal Step Factory in HttpPipeline may not be null"); + } + TerminalFactory = terminalStep; + } + + /// + /// Returns an HttpPipeline with the current state of this pipeline. + /// + public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; + + public ISendAsyncTerminalFactory TerminalFactory + { + get => terminal; + set + { + if (value == null) + { + throw new System.ArgumentNullException("TerminalFactory in HttpPipeline may not be null"); + } + terminal = value; + } + } + + public ISendAsync Pipeline + { + get + { + // if the pipeline has been created and not invalidated, return it. + if (this.pipeline != null) + { + return this.pipeline; + } + + // create the pipeline from scratch. + var next = terminal.Create(); + foreach (var factory in steps) + { + // skip factories that return null. + next = factory.Create(next) ?? next; + } + return this.pipeline = next; + } + } + + public int Count => steps.Count; + + public HttpPipeline Prepend(ISendAsyncFactory item) + { + if (item != null) + { + steps.Add(item); + pipeline = null; + } + return this; + } + + public HttpPipeline Append(SendAsyncStep item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStep item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Append(ISendAsyncFactory item) + { + if (item != null) + { + steps.Insert(0, item); + pipeline = null; + } + return this; + } + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(item); + } + } + return this; + } + + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(item); + } + } + return this; + } + + // you can use this as the ISendAsync Implementation + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => Pipeline.SendAsync(request, callback); + } + + internal static partial class Extensions + { + internal static HttpRequestMessage CloneAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.Clone(requestUri, method); + } + } + + internal static Task CloneWithContentAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.CloneWithContent(requestUri, method); + } + } + + /// + /// Clones an HttpRequestMessage (without the content) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = new HttpRequestMessage + { + Method = method ?? original.Method, + RequestUri = requestUri ?? original.RequestUri, + Version = original.Version, + }; + + foreach (KeyValuePair prop in original.Properties) + { + clone.Properties.Add(prop); + } + + foreach (KeyValuePair> header in original.Headers) + { + /* + **temporarily skip cloning telemetry related headers** + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } + } + + return clone; + } + + /// + /// Clones an HttpRequestMessage (including the content stream and content headers) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = original.Clone(requestUri, method); + var stream = new System.IO.MemoryStream(); + if (original.Content != null) + { + await original.Content.CopyToAsync(stream).ConfigureAwait(false); + stream.Position = 0; + clone.Content = new StreamContent(stream); + if (original.Content.Headers != null) + { + foreach (var h in original.Content.Headers) + { + clone.Content.Headers.Add(h.Key, h.Value); + } + } + } + return clone; + } + } +} diff --git a/src/CloudService/generated/runtime/InfoAttribute.cs b/src/CloudService/generated/runtime/InfoAttribute.cs new file mode 100644 index 000000000000..cd40db51dffd --- /dev/null +++ b/src/CloudService/generated/runtime/InfoAttribute.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System; + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)] + public class InfoAttribute : Attribute + { + public bool Required { get; set; } = false; + public bool ReadOnly { get; set; } = false; + public Type[] PossibleTypes { get; set; } = new Type[0]; + public string Description { get; set; } = ""; + public string SerializedName { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class CompleterInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class DefaultInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Iso/IsoDate.cs b/src/CloudService/generated/runtime/Iso/IsoDate.cs new file mode 100644 index 000000000000..4a2a8dab5fea --- /dev/null +++ b/src/CloudService/generated/runtime/Iso/IsoDate.cs @@ -0,0 +1,214 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal struct IsoDate + { + internal int Year { get; set; } // 0-3000 + + internal int Month { get; set; } // 1-12 + + internal int Day { get; set; } // 1-31 + + internal int Hour { get; set; } // 0-24 + + internal int Minute { get; set; } // 0-60 (60 is a special case) + + internal int Second { get; set; } // 0-60 (60 is used for leap seconds) + + internal double Millisecond { get; set; } // 0-999.9... + + internal TimeSpan Offset { get; set; } + + internal DateTimeKind Kind { get; set; } + + internal TimeSpan TimeOfDay => new TimeSpan(Hour, Minute, Second); + + internal DateTime ToDateTime() + { + if (Kind == DateTimeKind.Utc || Offset == TimeSpan.Zero) + { + return new DateTime(Year, Month, Day, Hour, Minute, Second, (int)Millisecond, DateTimeKind.Utc); + } + + return ToDateTimeOffset().DateTime; + } + + internal DateTimeOffset ToDateTimeOffset() + { + return new DateTimeOffset( + Year, + Month, + Day, + Hour, + Minute, + Second, + (int)Millisecond, + Offset + ); + } + + internal DateTime ToUtcDateTime() + { + return ToDateTimeOffset().UtcDateTime; + } + + public override string ToString() + { + var sb = new StringBuilder(); + + // yyyy-MM-dd + sb.Append($"{Year}-{Month:00}-{Day:00}"); + + if (TimeOfDay > new TimeSpan(0)) + { + sb.Append($"T{Hour:00}:{Minute:00}"); + + if (TimeOfDay.Seconds > 0) + { + sb.Append($":{Second:00}"); + } + } + + if (Offset.Ticks == 0) + { + sb.Append('Z'); // UTC + } + else + { + if (Offset.Ticks >= 0) + { + sb.Append('+'); + } + + sb.Append($"{Offset.Hours:00}:{Offset.Minutes:00}"); + } + + return sb.ToString(); + } + + internal static IsoDate FromDateTimeOffset(DateTimeOffset date) + { + return new IsoDate { + Year = date.Year, + Month = date.Month, + Day = date.Day, + Hour = date.Hour, + Minute = date.Minute, + Second = date.Second, + Offset = date.Offset, + Kind = date.Offset == TimeSpan.Zero ? DateTimeKind.Utc : DateTimeKind.Unspecified + }; + } + + private static readonly char[] timeSeperators = { ':', '.' }; + + internal static IsoDate Parse(string text) + { + var tzIndex = -1; + var timeIndex = text.IndexOf('T'); + + var builder = new IsoDate { Day = 1, Month = 1 }; + + // TODO: strip the time zone offset off the end + string dateTime = text; + string timeZone = null; + + if (dateTime.IndexOf('Z') > -1) + { + tzIndex = dateTime.LastIndexOf('Z'); + + builder.Kind = DateTimeKind.Utc; + } + else if (dateTime.LastIndexOf('+') > 10) + { + tzIndex = dateTime.LastIndexOf('+'); + } + else if (dateTime.LastIndexOf('-') > 10) + { + tzIndex = dateTime.LastIndexOf('-'); + } + + if (tzIndex > -1) + { + timeZone = dateTime.Substring(tzIndex); + dateTime = dateTime.Substring(0, tzIndex); + } + + string date = (timeIndex == -1) ? dateTime : dateTime.Substring(0, timeIndex); + + var dateParts = date.Split(Seperator.Dash); // '-' + + for (int i = 0; i < dateParts.Length; i++) + { + var part = dateParts[i]; + + switch (i) + { + case 0: builder.Year = int.Parse(part); break; + case 1: builder.Month = int.Parse(part); break; + case 2: builder.Day = int.Parse(part); break; + } + } + + if (timeIndex > -1) + { + string[] timeParts = dateTime.Substring(timeIndex + 1).Split(timeSeperators); + + for (int i = 0; i < timeParts.Length; i++) + { + var part = timeParts[i]; + + switch (i) + { + case 0: builder.Hour = int.Parse(part); break; + case 1: builder.Minute = int.Parse(part); break; + case 2: builder.Second = int.Parse(part); break; + case 3: builder.Millisecond = double.Parse("0." + part) * 1000; break; + } + } + } + + if (timeZone != null && timeZone != "Z") + { + var hours = int.Parse(timeZone.Substring(1, 2)); + var minutes = int.Parse(timeZone.Substring(4, 2)); + + if (timeZone[0] == '-') + { + hours = -hours; + minutes = -minutes; + } + + builder.Offset = new TimeSpan(hours, minutes, 0); + } + + return builder; + } + } + + /* + YYYY # eg 1997 + YYYY-MM # eg 1997-07 + YYYY-MM-DD # eg 1997-07-16 + YYYY-MM-DDThh:mmTZD # eg 1997-07-16T19:20+01:00 + YYYY-MM-DDThh:mm:ssTZD # eg 1997-07-16T19:20:30+01:00 + YYYY-MM-DDThh:mm:ss.sTZD # eg 1997-07-16T19:20:30.45+01:00 + + where: + + YYYY = four-digit year + MM = two-digit month (01=January, etc.) + DD = two-digit day of month (01 through 31) + hh = two digits of hour (00 through 23) (am/pm NOT allowed) + mm = two digits of minute (00 through 59) + ss = two digits of second (00 through 59) + s = one or more digits representing a decimal fraction of a second + TZD = time zone designator (Z or +hh:mm or -hh:mm) + */ +} diff --git a/src/CloudService/generated/runtime/JsonType.cs b/src/CloudService/generated/runtime/JsonType.cs new file mode 100644 index 000000000000..ec89bec697d7 --- /dev/null +++ b/src/CloudService/generated/runtime/JsonType.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal enum JsonType + { + Null = 0, + Object = 1, + Array = 2, + Binary = 3, + Boolean = 4, + Date = 5, + Number = 6, + String = 7 + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Method.cs b/src/CloudService/generated/runtime/Method.cs new file mode 100644 index 000000000000..633d56c05a8c --- /dev/null +++ b/src/CloudService/generated/runtime/Method.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + internal static class Method + { + internal static System.Net.Http.HttpMethod Get = System.Net.Http.HttpMethod.Get; + internal static System.Net.Http.HttpMethod Put = System.Net.Http.HttpMethod.Put; + internal static System.Net.Http.HttpMethod Head = System.Net.Http.HttpMethod.Head; + internal static System.Net.Http.HttpMethod Post = System.Net.Http.HttpMethod.Post; + internal static System.Net.Http.HttpMethod Delete = System.Net.Http.HttpMethod.Delete; + internal static System.Net.Http.HttpMethod Options = System.Net.Http.HttpMethod.Options; + internal static System.Net.Http.HttpMethod Trace = System.Net.Http.HttpMethod.Trace; + internal static System.Net.Http.HttpMethod Patch = new System.Net.Http.HttpMethod("PATCH"); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Models/JsonMember.cs b/src/CloudService/generated/runtime/Models/JsonMember.cs new file mode 100644 index 000000000000..4526d6767eb9 --- /dev/null +++ b/src/CloudService/generated/runtime/Models/JsonMember.cs @@ -0,0 +1,83 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; +using System.Runtime.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + + + internal sealed class JsonMember + { + private readonly TypeDetails type; + + private readonly Func getter; + private readonly Action setter; + + internal JsonMember(PropertyInfo property, int defaultOrder) + { + getter = property.GetValue; + setter = property.SetValue; + + var dataMember = property.GetCustomAttribute(); + + Name = dataMember?.Name ?? property.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(property.PropertyType); + + CanRead = property.CanRead; + } + + internal JsonMember(FieldInfo field, int defaultOrder) + { + getter = field.GetValue; + setter = field.SetValue; + + var dataMember = field.GetCustomAttribute(); + + Name = dataMember?.Name ?? field.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(field.FieldType); + + CanRead = true; + } + + internal string Name { get; } + + internal int Order { get; } + + internal TypeDetails TypeDetails => type; + + internal Type Type => type.NonNullType; + + internal bool IsList => type.IsList; + + // Arrays, Sets, ... + internal Type ElementType => type.ElementType; + + internal IJsonConverter Converter => type.JsonConverter; + + internal bool EmitDefaultValue { get; } + + internal bool IsStringLike => type.IsStringLike; + + internal object DefaultValue => type.DefaultValue; + + internal bool CanRead { get; } + + #region Helpers + + internal object GetValue(object instance) => getter(instance); + + internal void SetValue(object instance, object value) => setter(instance, value); + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Models/JsonModel.cs b/src/CloudService/generated/runtime/Models/JsonModel.cs new file mode 100644 index 000000000000..f847d927d6da --- /dev/null +++ b/src/CloudService/generated/runtime/Models/JsonModel.cs @@ -0,0 +1,89 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class JsonModel + { + private Dictionary map; + private readonly object _sync = new object(); + + private JsonModel(Type type, List members) + { + Type = type ?? throw new ArgumentNullException(nameof(type)); + Members = members ?? throw new ArgumentNullException(nameof(members)); + } + + internal string Name => Type.Name; + + internal Type Type { get; } + + internal List Members { get; } + + internal JsonMember this[string name] + { + get + { + if (map == null) + { + lock (_sync) + { + if (map == null) + { + map = new Dictionary(); + + foreach (JsonMember m in Members) + { + map[m.Name.ToLower()] = m; + } + } + } + } + + + map.TryGetValue(name.ToLower(), out JsonMember member); + + return member; + } + } + + internal static JsonModel FromType(Type type) + { + var members = new List(); + + int i = 0; + + // BindingFlags.Instance | BindingFlags.Public + + foreach (var member in type.GetFields()) + { + if (member.IsStatic) continue; + + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + foreach (var member in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) + { + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + members.Sort((a, b) => a.Order.CompareTo(b.Order)); // inline sort + + return new JsonModel(type, members); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Models/JsonModelCache.cs b/src/CloudService/generated/runtime/Models/JsonModelCache.cs new file mode 100644 index 000000000000..f776bb8e0b91 --- /dev/null +++ b/src/CloudService/generated/runtime/Models/JsonModelCache.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Runtime.CompilerServices; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal static class JsonModelCache + { + private static readonly ConditionalWeakTable cache + = new ConditionalWeakTable(); + + internal static JsonModel Get(Type type) => cache.GetValue(type, Create); + + private static JsonModel Create(Type type) => JsonModel.FromType(type); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/Collections/JsonArray.cs b/src/CloudService/generated/runtime/Nodes/Collections/JsonArray.cs new file mode 100644 index 000000000000..cae6d4733bcb --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/Collections/JsonArray.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public abstract partial class JsonArray : JsonNode, IEnumerable + { + internal override JsonType Type => JsonType.Array; + + internal abstract JsonType? ElementType { get; } + + public abstract int Count { get; } + + internal virtual bool IsSet => false; + + internal bool IsEmpty => Count == 0; + + #region IEnumerable + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion + + #region Static Helpers + + internal static JsonArray Create(short[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(int[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(long[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(decimal[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(float[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(string[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(XBinary[] values) + => new XImmutableArray(values); + + #endregion + + internal static new JsonArray Parse(string text) + => (JsonArray)JsonNode.Parse(text); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/Collections/XImmutableArray.cs b/src/CloudService/generated/runtime/Nodes/Collections/XImmutableArray.cs new file mode 100644 index 000000000000..4f42d870dac4 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/Collections/XImmutableArray.cs @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed class XImmutableArray : JsonArray, IEnumerable + { + private readonly T[] values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XImmutableArray(T[] values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Length; + + public bool IsReadOnly => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + #region Static Constructor + + internal XImmutableArray Create(T[] items) + { + return new XImmutableArray(items); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/Collections/XList.cs b/src/CloudService/generated/runtime/Nodes/Collections/XList.cs new file mode 100644 index 000000000000..3ca69e1e826b --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/Collections/XList.cs @@ -0,0 +1,64 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed class XList : JsonArray, IEnumerable + { + private readonly IList values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XList(IList values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Count; + + public bool IsReadOnly => values.IsReadOnly; + + #region IList + + public void Add(T value) + { + values.Add(value); + } + + public bool Contains(T value) => values.Contains(value); + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/Collections/XNodeArray.cs b/src/CloudService/generated/runtime/Nodes/Collections/XNodeArray.cs new file mode 100644 index 000000000000..4821296c5749 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/Collections/XNodeArray.cs @@ -0,0 +1,68 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed partial class XNodeArray : JsonArray, ICollection + { + private readonly List items; + + internal XNodeArray() + { + items = new List(); + } + + internal XNodeArray(params JsonNode[] values) + { + items = new List(values); + } + + public override JsonNode this[int index] => items[index]; + + internal override JsonType? ElementType => null; + + public bool IsReadOnly => false; + + public override int Count => items.Count; + + #region ICollection Members + + public void Add(JsonNode item) + { + items.Add(item); + } + + void ICollection.Clear() + { + items.Clear(); + } + + public bool Contains(JsonNode item) => items.Contains(item); + + void ICollection.CopyTo(JsonNode[] array, int arrayIndex) + { + items.CopyTo(array, arrayIndex); + } + + public bool Remove(JsonNode item) + { + return items.Remove(item); + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/Collections/XSet.cs b/src/CloudService/generated/runtime/Nodes/Collections/XSet.cs new file mode 100644 index 000000000000..346bbad2f8ac --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/Collections/XSet.cs @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed class XSet : JsonArray, IEnumerable + { + private readonly HashSet values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XSet(IEnumerable values) + : this(new HashSet(values)) + { } + + internal XSet(HashSet values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + internal override JsonType Type => JsonType.Array; + + internal override JsonType? ElementType => elementType; + + public bool IsReadOnly => true; + + public override int Count => values.Count; + + internal override bool IsSet => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + internal HashSet AsHashSet() => values; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonBoolean.cs b/src/CloudService/generated/runtime/Nodes/JsonBoolean.cs new file mode 100644 index 000000000000..db1d8e6d8c17 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonBoolean.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed partial class JsonBoolean : JsonNode + { + internal static readonly JsonBoolean True = new JsonBoolean(true); + internal static readonly JsonBoolean False = new JsonBoolean(false); + + internal JsonBoolean(bool value) + { + Value = value; + } + + internal bool Value { get; } + + internal override JsonType Type => JsonType.Boolean; + + internal static new JsonBoolean Parse(string text) + { + switch (text) + { + case "false": return False; + case "true": return True; + + default: throw new ArgumentException($"Expected true or false. Was {text}."); + } + } + + #region Implicit Casts + + public static implicit operator bool(JsonBoolean data) => data.Value; + + public static implicit operator JsonBoolean(bool data) => new JsonBoolean(data); + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonDate.cs b/src/CloudService/generated/runtime/Nodes/JsonDate.cs new file mode 100644 index 000000000000..ee7bd73fc720 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonDate.cs @@ -0,0 +1,173 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + + + internal sealed partial class JsonDate : JsonNode, IEquatable, IComparable + { + internal static bool AssumeUtcWhenKindIsUnspecified = true; + + private readonly DateTimeOffset value; + + internal JsonDate(DateTime value) + { + if (value.Kind == DateTimeKind.Unspecified && AssumeUtcWhenKindIsUnspecified) + { + value = DateTime.SpecifyKind(value, DateTimeKind.Utc); + } + + this.value = value; + } + + internal JsonDate(DateTimeOffset value) + { + this.value = value; + } + + internal override JsonType Type => JsonType.Date; + + #region Helpers + + internal DateTimeOffset ToDateTimeOffset() + { + return value; + } + + internal DateTime ToDateTime() + { + if (value.Offset == TimeSpan.Zero) + { + return value.UtcDateTime; + } + + return value.DateTime; + } + + internal DateTime ToUtcDateTime() => value.UtcDateTime; + + internal int ToUnixTimeSeconds() + { + return (int)value.ToUnixTimeSeconds(); + } + + internal long ToUnixTimeMilliseconds() + { + return (int)value.ToUnixTimeMilliseconds(); + } + + internal string ToIsoString() + { + return IsoDate.FromDateTimeOffset(value).ToString(); + } + + #endregion + + public override string ToString() + { + return ToIsoString(); + } + + internal static new JsonDate Parse(string text) + { + if (text == null) throw new ArgumentNullException(nameof(text)); + + // TODO support: unixtimeseconds.partialseconds + + if (text.Length > 4 && _IsNumber(text)) // UnixTime + { + var date = DateTimeOffset.FromUnixTimeSeconds(long.Parse(text)); + + return new JsonDate(date); + } + else if (text.Length <= 4 || text[4] == '-') // ISO: 2012- + { + return new JsonDate(IsoDate.Parse(text).ToDateTimeOffset()); + } + else + { + // NOT ISO ENCODED + // "Thu, 5 Apr 2012 16:59:01 +0200", + return new JsonDate(DateTimeOffset.Parse(text)); + } + } + + private static bool _IsNumber(string text) + { + foreach (var c in text) + { + if (!char.IsDigit(c)) return false; + } + + return true; + } + + internal static JsonDate FromUnixTime(int seconds) + { + return new JsonDate(DateTimeOffset.FromUnixTimeSeconds(seconds)); + } + + internal static JsonDate FromUnixTime(double seconds) + { + var milliseconds = (long)(seconds * 1000d); + + return new JsonDate(DateTimeOffset.FromUnixTimeMilliseconds(milliseconds)); + } + + #region Implicit Casts + + public static implicit operator DateTimeOffset(JsonDate value) + => value.ToDateTimeOffset(); + + public static implicit operator DateTime(JsonDate value) + => value.ToDateTime(); + + // From Date + public static implicit operator JsonDate(DateTimeOffset value) + { + return new JsonDate(value); + } + + public static implicit operator JsonDate(DateTime value) + { + return new JsonDate(value); + } + + // From String + public static implicit operator JsonDate(string value) + { + return Parse(value); + } + + #endregion + + #region Equality + + public override bool Equals(object obj) + { + return obj is JsonDate date && date.value == this.value; + } + + public bool Equals(JsonDate other) + { + return this.value == other.value; + } + + public override int GetHashCode() => value.GetHashCode(); + + #endregion + + #region IComparable Members + + int IComparable.CompareTo(JsonDate other) + { + return value.CompareTo(other.value); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonNode.cs b/src/CloudService/generated/runtime/Nodes/JsonNode.cs new file mode 100644 index 000000000000..29669e929d52 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonNode.cs @@ -0,0 +1,250 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + + + public abstract partial class JsonNode + { + internal abstract JsonType Type { get; } + + public virtual JsonNode this[int index] => throw new NotImplementedException(); + + public virtual JsonNode this[string name] + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + #region Type Helpers + + internal bool IsArray => Type == JsonType.Array; + + internal bool IsDate => Type == JsonType.Date; + + internal bool IsObject => Type == JsonType.Object; + + internal bool IsNumber => Type == JsonType.Number; + + internal bool IsNull => Type == JsonType.Null; + + #endregion + + internal void WriteTo(TextWriter textWriter, bool pretty = true) + { + var writer = new JsonWriter(textWriter, pretty); + + writer.WriteNode(this); + } + + internal T As() + where T : new() + => new JsonSerializer().Deseralize((JsonObject)this); + + internal T[] ToArrayOf() + { + return (T[])new JsonSerializer().DeserializeArray(typeof(T[]), (JsonArray)this); + } + + #region ToString Overrides + + public override string ToString() => ToString(pretty: true); + + internal string ToString(bool pretty) + { + var sb = new StringBuilder(); + + using (var writer = new StringWriter(sb)) + { + WriteTo(writer, pretty); + + return sb.ToString(); + } + } + + #endregion + + #region Static Constructors + + internal static JsonNode Parse(string text) + { + return Parse(new SourceReader(new StringReader(text))); + } + + internal static JsonNode Parse(TextReader textReader) + => Parse(new SourceReader(textReader)); + + private static JsonNode Parse(SourceReader sourceReader) + { + using (var parser = new JsonParser(sourceReader)) + { + return parser.ReadNode(); + } + } + + internal static JsonNode FromObject(object instance) + => new JsonSerializer().Serialize(instance); + + #endregion + + #region Implict Casts + + public static implicit operator string(JsonNode node) => node.ToString(); + + #endregion + + #region Explict Casts + + public static explicit operator DateTime(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date: + return ((JsonDate)node).ToDateTime(); + + case JsonType.String: + return JsonDate.Parse(node.ToString()).ToDateTime(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num).UtcDateTime; + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)).UtcDateTime; + } + } + + throw new ConversionException(node, typeof(DateTime)); + } + + public static explicit operator DateTimeOffset(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date : return ((JsonDate)node).ToDateTimeOffset(); + case JsonType.String : return JsonDate.Parse(node.ToString()).ToDateTimeOffset(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num); + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)); + } + + } + + throw new ConversionException(node, typeof(DateTimeOffset)); + } + + public static explicit operator float(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return float.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(float)); + } + + public static explicit operator double(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return double.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(double)); + } + + public static explicit operator decimal(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return decimal.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(decimal)); + } + + public static explicit operator Guid(JsonNode node) + => new Guid(node.ToString()); + + public static explicit operator short(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return short.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(short)); + } + + public static explicit operator int(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return int.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(int)); + } + + public static explicit operator long(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return long.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(long)); + } + + public static explicit operator bool(JsonNode node) + => ((JsonBoolean)node).Value; + + public static explicit operator ushort(JsonNode node) + => (JsonNumber)node; + + public static explicit operator uint(JsonNode node) + => (JsonNumber)node; + + public static explicit operator ulong(JsonNode node) + => (JsonNumber)node; + + public static explicit operator TimeSpan(JsonNode node) + => TimeSpan.Parse(node.ToString()); + + public static explicit operator Uri(JsonNode node) + { + if (node.Type == JsonType.String) + { + return new Uri(node.ToString()); + } + + throw new ConversionException(node, typeof(Uri)); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonNumber.cs b/src/CloudService/generated/runtime/Nodes/JsonNumber.cs new file mode 100644 index 000000000000..a992ba00787d --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonNumber.cs @@ -0,0 +1,109 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed partial class JsonNumber : JsonNode + { + private readonly string value; + private readonly bool overflows = false; + + internal JsonNumber(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal JsonNumber(int value) + { + this.value = value.ToString(); + } + + internal JsonNumber(long value) + { + this.value = value.ToString(); + + if (value > 9007199254740991) + { + overflows = true; + } + } + + internal JsonNumber(float value) + { + this.value = value.ToString(); + } + + internal JsonNumber(double value) + { + this.value = value.ToString(); + } + + internal override JsonType Type => JsonType.Number; + + internal string Value => value; + + #region Helpers + + internal bool Overflows => overflows; + + internal bool IsInteger => !value.Contains("."); + + internal bool IsFloat => value.Contains("."); + + #endregion + + #region Casting + + public static implicit operator byte(JsonNumber number) + => byte.Parse(number.Value); + + public static implicit operator short(JsonNumber number) + => short.Parse(number.Value); + + public static implicit operator int(JsonNumber number) + => int.Parse(number.Value); + + public static implicit operator long(JsonNumber number) + => long.Parse(number.value); + + public static implicit operator UInt16(JsonNumber number) + => ushort.Parse(number.Value); + + public static implicit operator UInt32(JsonNumber number) + => uint.Parse(number.Value); + + public static implicit operator UInt64(JsonNumber number) + => ulong.Parse(number.Value); + + public static implicit operator decimal(JsonNumber number) + => decimal.Parse(number.Value); + + public static implicit operator Double(JsonNumber number) + => double.Parse(number.value); + + public static implicit operator float(JsonNumber number) + => float.Parse(number.value); + + public static implicit operator JsonNumber(short data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(int data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(long data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(Single data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(double data) + => new JsonNumber(data.ToString()); + + #endregion + + public override string ToString() => value; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonObject.cs b/src/CloudService/generated/runtime/Nodes/JsonObject.cs new file mode 100644 index 000000000000..ad872bd0104c --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonObject.cs @@ -0,0 +1,172 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public partial class JsonObject : JsonNode, IDictionary + { + private readonly Dictionary items; + + internal JsonObject() + { + items = new Dictionary(); + } + + internal JsonObject(IEnumerable> properties) + { + if (properties == null) throw new ArgumentNullException(nameof(properties)); + + items = new Dictionary(); + + foreach (var field in properties) + { + items.Add(field.Key, field.Value); + } + } + + #region IDictionary Constructors + + internal JsonObject(IDictionary dic) + { + items = new Dictionary(dic.Count); + + foreach (var pair in dic) + { + Add(pair.Key, pair.Value); + } + } + + #endregion + + internal override JsonType Type => JsonType.Object; + + #region Add Overloads + + public void Add(string name, JsonNode value) => + items.Add(name, value); + + public void Add(string name, byte[] value) => + items.Add(name, new XBinary(value)); + + public void Add(string name, DateTime value) => + items.Add(name, new JsonDate(value)); + + public void Add(string name, int value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, long value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, float value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, double value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, string value) => + items.Add(name, new JsonString(value)); + + public void Add(string name, bool value) => + items.Add(name, new JsonBoolean(value)); + + public void Add(string name, Uri url) => + items.Add(name, new JsonString(url.AbsoluteUri)); + + public void Add(string name, string[] values) => + items.Add(name, new XImmutableArray(values)); + + public void Add(string name, int[] values) => + items.Add(name, new XImmutableArray(values)); + + #endregion + + #region ICollection> Members + + void ICollection>.Add(KeyValuePair item) + { + items.Add(item.Key, item.Value); + } + + void ICollection>.Clear() + { + items.Clear(); + } + + bool ICollection>.Contains(KeyValuePair item) => + throw new NotImplementedException(); + + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => + throw new NotImplementedException(); + + + int ICollection>.Count => items.Count; + + bool ICollection>.IsReadOnly => false; + + bool ICollection>.Remove(KeyValuePair item) => + throw new NotImplementedException(); + + #endregion + + #region IDictionary Members + + public bool ContainsKey(string key) => items.ContainsKey(key); + + public ICollection Keys => items.Keys; + + public bool Remove(string key) => items.Remove(key); + + public bool TryGetValue(string key, out JsonNode value) => + items.TryGetValue(key, out value); + + public ICollection Values => items.Values; + + public override JsonNode this[string key] + { + get => items[key]; + set => items[key] = value; + } + + #endregion + + #region IEnumerable + + IEnumerator> IEnumerable>.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + + #region Helpers + + internal static new JsonObject FromObject(object instance) => + (JsonObject)new JsonSerializer().Serialize(instance); + + #endregion + + #region Static Constructors + + internal static JsonObject FromStream(Stream stream) + { + using (var tr = new StreamReader(stream)) + { + return (JsonObject)Parse(tr); + } + } + + internal static new JsonObject Parse(string text) + { + return (JsonObject)JsonNode.Parse(text); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/JsonString.cs b/src/CloudService/generated/runtime/Nodes/JsonString.cs new file mode 100644 index 000000000000..d6dafbc8646f --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/JsonString.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed partial class JsonString : JsonNode, IEquatable + { + private readonly string value; + + internal JsonString(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal override JsonType Type => JsonType.String; + + internal string Value => value; + + internal int Length => value.Length; + + #region #region Implicit Casts + + public static implicit operator string(JsonString data) => data.Value; + + public static implicit operator JsonString(string value) => new JsonString(value); + + #endregion + + public override int GetHashCode() => value.GetHashCode(); + + public override string ToString() => value; + + #region IEquatable + + bool IEquatable.Equals(JsonString other) => this.Value == other.Value; + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/XBinary.cs b/src/CloudService/generated/runtime/Nodes/XBinary.cs new file mode 100644 index 000000000000..507349018a57 --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/XBinary.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed class XBinary : JsonNode + { + private readonly byte[] _value; + private readonly string _base64; + + internal XBinary(byte[] value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal XBinary(string base64EncodedString) + { + _base64 = base64EncodedString ?? throw new ArgumentNullException(nameof(base64EncodedString)); + } + + internal override JsonType Type => JsonType.Binary; + + internal byte[] Value => _value ?? Convert.FromBase64String(_base64); + + #region #region Implicit Casts + + public static implicit operator byte[] (XBinary data) => data.Value; + + public static implicit operator XBinary(byte[] data) => new XBinary(data); + + #endregion + + public override int GetHashCode() => Value.GetHashCode(); + + public override string ToString() => _base64 ?? Convert.ToBase64String(_value); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Nodes/XNull.cs b/src/CloudService/generated/runtime/Nodes/XNull.cs new file mode 100644 index 000000000000..8d0f1b92e4ad --- /dev/null +++ b/src/CloudService/generated/runtime/Nodes/XNull.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal sealed class XNull : JsonNode + { + internal static readonly XNull Instance = new XNull(); + + private XNull() { } + + internal override JsonType Type => JsonType.Null; + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/Exceptions/ParseException.cs b/src/CloudService/generated/runtime/Parser/Exceptions/ParseException.cs new file mode 100644 index 000000000000..bcf0ca2fad56 --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/Exceptions/ParseException.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class ParserException : Exception + { + internal ParserException(string message) + : base(message) + { } + + internal ParserException(string message, SourceLocation location) + : base(message) + { + + Location = location; + } + + internal SourceLocation Location { get; } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/JsonParser.cs b/src/CloudService/generated/runtime/Parser/JsonParser.cs new file mode 100644 index 000000000000..08acb4e9ab63 --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/JsonParser.cs @@ -0,0 +1,180 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public class JsonParser : IDisposable + { + private readonly TokenReader reader; + + internal JsonParser(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonParser(SourceReader sourceReader) + { + if (sourceReader == null) + throw new ArgumentNullException(nameof(sourceReader)); + + this.reader = new TokenReader(new JsonTokenizer(sourceReader)); + + this.reader.Next(); // Start with the first token + } + + internal IEnumerable ReadNodes() + { + JsonNode node; + + while ((node = ReadNode()) != null) yield return node; + } + + internal JsonNode ReadNode() + { + if (reader.Current.Kind == TokenKind.Eof || reader.Current.IsTerminator) + { + return null; + } + + switch (reader.Current.Kind) + { + case TokenKind.LeftBrace : return ReadObject(); // { + case TokenKind.LeftBracket : return ReadArray(); // [ + + default: throw new ParserException($"Expected '{{' or '['. Was {reader.Current}."); + } + } + + private JsonNode ReadFieldValue() + { + // Boolean, Date, Null, Number, String, Uri + if (reader.Current.IsLiteral) + { + return ReadLiteral(); + } + else + { + switch (reader.Current.Kind) + { + case TokenKind.LeftBracket: return ReadArray(); + case TokenKind.LeftBrace : return ReadObject(); + + default: throw new ParserException($"Unexpected token reading field value. Was {reader.Current}."); + } + } + } + + private JsonNode ReadLiteral() + { + var literal = reader.Current; + + reader.Next(); // Read the literal token + + switch (literal.Kind) + { + case TokenKind.Boolean : return JsonBoolean.Parse(literal.Value); + case TokenKind.Null : return XNull.Instance; + case TokenKind.Number : return new JsonNumber(literal.Value); + case TokenKind.String : return new JsonString(literal.Value); + + default: throw new ParserException($"Unexpected token reading literal. Was {literal}."); + } + } + + internal JsonObject ReadObject() + { + reader.Ensure(TokenKind.LeftBrace, "object"); + + reader.Next(); // Read '{' (Object start) + + var jsonObject = new JsonObject(); + + // Read the object's fields until we reach the end of the object ('}') + while (reader.Current.Kind != TokenKind.RightBrace) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read ',' (Seperator) + } + + // Ensure we have a field name + reader.Ensure(TokenKind.String, "Expected field name"); + + var field = ReadField(); + + jsonObject.Add(field.Key, field.Value); + } + + reader.Next(); // Read '}' (Object end) + + return jsonObject; + } + + + // TODO: Use ValueTuple in C#7 + private KeyValuePair ReadField() + { + var fieldName = reader.Current.Value; + + reader.Next(); // Read the field name + + reader.Ensure(TokenKind.Colon, "field"); + + reader.Next(); // Read ':' (Field value indicator) + + return new KeyValuePair(fieldName, ReadFieldValue()); + } + + + internal JsonArray ReadArray() + { + reader.Ensure(TokenKind.LeftBracket, "array"); + + var array = new XNodeArray(); + + reader.Next(); // Read the '[' (Array start) + + // Read the array's items + while (reader.Current.Kind != TokenKind.RightBracket) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read the ',' (Seperator) + } + + if (reader.Current.IsLiteral) + { + array.Add(ReadLiteral()); // Boolean, Date, Number, Null, String, Uri + } + else if (reader.Current.Kind == TokenKind.LeftBracket) + { + array.Add(ReadArray()); // Array + } + else if (reader.Current.Kind == TokenKind.LeftBrace) + { + array.Add(ReadObject()); // Object + } + else + { + throw new ParserException($"Expected comma, literal, or object. Was {reader.Current}."); + } + } + + reader.Next(); // Read the ']' (Array end) + + return array; + } + + #region IDisposable + + public void Dispose() + { + reader.Dispose(); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/JsonToken.cs b/src/CloudService/generated/runtime/Parser/JsonToken.cs new file mode 100644 index 000000000000..21ca688eafaa --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/JsonToken.cs @@ -0,0 +1,66 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal enum TokenKind + { + LeftBrace, // { Object start + RightBrace, // } Object end + + LeftBracket, // [ Array start + RightBracket, // ] Array end + + Comma, // , Comma + Colon, // : Value indicator + Dot, // . Access field indicator + Terminator, // \0 Stream terminator + + Boolean = 31, // true or false + Null = 33, // null + Number = 34, // i.e. -1.93, -1, 0, 1, 1.1 + String = 35, // i.e. "text" + + Eof = 50 + } + + internal /* readonly */ struct JsonToken + { + internal static readonly JsonToken BraceOpen = new JsonToken(TokenKind.LeftBrace, "{"); + internal static readonly JsonToken BraceClose = new JsonToken(TokenKind.RightBrace, "}"); + + internal static readonly JsonToken BracketOpen = new JsonToken(TokenKind.LeftBracket, "["); + internal static readonly JsonToken BracketClose = new JsonToken(TokenKind.RightBracket, "]"); + + internal static readonly JsonToken Colon = new JsonToken(TokenKind.Colon, ":"); + internal static readonly JsonToken Comma = new JsonToken(TokenKind.Comma, ","); + internal static readonly JsonToken Terminator = new JsonToken(TokenKind.Terminator, "\0"); + + internal static readonly JsonToken True = new JsonToken(TokenKind.Boolean, "true"); + internal static readonly JsonToken False = new JsonToken(TokenKind.Boolean, "false"); + internal static readonly JsonToken Null = new JsonToken(TokenKind.Null, "null"); + + internal static readonly JsonToken Eof = new JsonToken(TokenKind.Eof, null); + + internal JsonToken(TokenKind kind, string value) + { + Kind = kind; + Value = value; + } + + internal readonly TokenKind Kind; + + internal readonly string Value; + + public override string ToString() => Kind + ": " + Value; + + #region Helpers + + internal bool IsLiteral => (byte)Kind > 30 && (byte)Kind < 40; + + internal bool IsTerminator => Kind == TokenKind.Terminator; + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/JsonTokenizer.cs b/src/CloudService/generated/runtime/Parser/JsonTokenizer.cs new file mode 100644 index 000000000000..711fac3198bd --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/JsonTokenizer.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + using System.IO; + + + public class JsonTokenizer : IDisposable + { + private readonly StringBuilder sb = new StringBuilder(); + + private readonly SourceReader reader; + + internal JsonTokenizer(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonTokenizer(SourceReader reader) + { + this.reader = reader; + + reader.Next(); // Start with the first char + } + + internal JsonToken ReadNext() + { + reader.SkipWhitespace(); + + if (reader.IsEof) return JsonToken.Eof; + + switch (reader.Current) + { + case '"': return ReadQuotedString(); + + // Symbols + case '[' : reader.Next(); return JsonToken.BracketOpen; // Array start + case ']' : reader.Next(); return JsonToken.BracketClose; // Array end + case ',' : reader.Next(); return JsonToken.Comma; // Value seperator + case ':' : reader.Next(); return JsonToken.Colon; // Field value indicator + case '{' : reader.Next(); return JsonToken.BraceOpen; // Object start + case '}' : reader.Next(); return JsonToken.BraceClose; // Object end + case '\0' : reader.Next(); return JsonToken.Terminator; // Stream terminiator + + default: return ReadLiteral(); + } + } + + private JsonToken ReadQuotedString() + { + Expect('"', "quoted string indicator"); + + reader.Next(); // Read '"' (Starting quote) + + // Read until we reach an unescaped quote char + while (reader.Current != '"') + { + EnsureNotEof("quoted string"); + + if (reader.Current == '\\') + { + char escapedCharacter = reader.ReadEscapeCode(); + + sb.Append(escapedCharacter); + + continue; + } + + StoreCurrentCharacterAndReadNext(); + } + + reader.Next(); // Read '"' (Ending quote) + + return new JsonToken(TokenKind.String, value: sb.Extract()); + } + + private JsonToken ReadLiteral() + { + if (char.IsDigit(reader.Current) || + reader.Current == '-' || + reader.Current == '+') + { + return ReadNumber(); + } + + return ReadIdentifer(); + } + + private JsonToken ReadNumber() + { + // Read until we hit a non-numeric character + // -6.247737e-06 + // E + + while (char.IsDigit(reader.Current) + || reader.Current == '.' + || reader.Current == 'e' + || reader.Current == 'E' + || reader.Current == '-' + || reader.Current == '+') + { + StoreCurrentCharacterAndReadNext(); + } + + return new JsonToken(TokenKind.Number, value: sb.Extract()); + } + + int count = 0; + + private JsonToken ReadIdentifer() + { + count++; + + if (!char.IsLetter(reader.Current)) + { + throw new ParserException( + message : $"Expected literal (number, boolean, or null). Was '{reader.Current}'.", + location : reader.Location + ); + } + + // Read letters, numbers, and underscores '_' + while (char.IsLetterOrDigit(reader.Current) || reader.Current == '_') + { + StoreCurrentCharacterAndReadNext(); + } + + string text = sb.Extract(); + + switch (text) + { + case "true": return JsonToken.True; + case "false": return JsonToken.False; + case "null": return JsonToken.Null; + + default: return new JsonToken(TokenKind.String, text); + } + } + + private void Expect(char character, string description) + { + if (reader.Current != character) + { + throw new ParserException( + message: $"Expected {description} ('{character}'). Was '{reader.Current}'.", + location: reader.Location + ); + } + } + + private void EnsureNotEof(string tokenType) + { + if (reader.IsEof) + { + throw new ParserException( + message: $"Unexpected EOF while reading {tokenType}.", + location: reader.Location + ); + } + } + + private void StoreCurrentCharacterAndReadNext() + { + sb.Append(reader.Current); + + reader.Next(); + } + + public void Dispose() + { + reader.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/Location.cs b/src/CloudService/generated/runtime/Parser/Location.cs new file mode 100644 index 000000000000..d9570efc39ee --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/Location.cs @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal struct SourceLocation + { + private int line; + private int column; + private int position; + + internal SourceLocation(int line = 0, int column = 0, int position = 0) + { + this.line = line; + this.column = column; + this.position = position; + } + + internal int Line => line; + + internal int Column => column; + + internal int Position => position; + + internal void Advance() + { + this.column++; + this.position++; + } + + internal void MarkNewLine() + { + this.line++; + this.column = 0; + } + + internal SourceLocation Clone() + { + return new SourceLocation(line, column, position); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/Readers/SourceReader.cs b/src/CloudService/generated/runtime/Parser/Readers/SourceReader.cs new file mode 100644 index 000000000000..8c8851ba2f0e --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/Readers/SourceReader.cs @@ -0,0 +1,130 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Globalization; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public sealed class SourceReader : IDisposable + { + private readonly TextReader source; + + private char current; + + private readonly SourceLocation location = new SourceLocation(); + + private bool isEof = false; + + internal SourceReader(TextReader textReader) + { + this.source = textReader ?? throw new ArgumentNullException(nameof(textReader)); + } + + /// + /// Advances to the next character + /// + internal void Next() + { + // Advance to the new line when we see a new line '\n'. + // A new line may be prefixed by a carriage return '\r'. + + if (current == '\n') + { + location.MarkNewLine(); + } + + int charCode = source.Read(); // -1 for end + + if (charCode >= 0) + { + current = (char)charCode; + } + else + { + // If we've already marked this as the EOF, throw an exception + if (isEof) + { + throw new EndOfStreamException("Cannot advance past end of stream."); + } + + isEof = true; + + current = '\0'; + } + + location.Advance(); + } + + internal void SkipWhitespace() + { + while (char.IsWhiteSpace(current)) + { + Next(); + } + } + + internal char ReadEscapeCode() + { + Next(); + + char escapedChar = current; + + Next(); // Consume escaped character + + switch (escapedChar) + { + // Special escape codes + case '"': return '"'; // " (Quotation mark) U+0022 + case '/': return '/'; // / (Solidus) U+002F + case '\\': return '\\'; // \ (Reverse solidus) U+005C + + // Control Characters + case '0': return '\0'; // Nul (0) U+0000 + case 'a': return '\a'; // Alert (7) + case 'b': return '\b'; // Backspace (8) U+0008 + case 'f': return '\f'; // Form feed (12) U+000C + case 'n': return '\n'; // Line feed (10) U+000A + case 'r': return '\r'; // Carriage return (13) U+000D + case 't': return '\t'; // Horizontal tab (9) U+0009 + case 'v': return '\v'; // Vertical tab + + // Unicode escape sequence + case 'u': return ReadUnicodeEscapeSequence(); // U+XXXX + + default: throw new Exception($"Unrecognized escape sequence '\\{escapedChar}'"); + } + } + + private readonly char[] hexCode = new char[4]; + + private char ReadUnicodeEscapeSequence() + { + hexCode[0] = current; Next(); + hexCode[1] = current; Next(); + hexCode[2] = current; Next(); + hexCode[3] = current; Next(); + + return Convert.ToChar(int.Parse( + s : new string(hexCode), + style : NumberStyles.HexNumber, + provider: NumberFormatInfo.InvariantInfo + )); + } + + internal char Current => current; + + internal bool IsEof => isEof; + + internal char Peek() => (char)source.Peek(); + + internal SourceLocation Location => location; + + public void Dispose() + { + source.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Parser/TokenReader.cs b/src/CloudService/generated/runtime/Parser/TokenReader.cs new file mode 100644 index 000000000000..b215dee42e6d --- /dev/null +++ b/src/CloudService/generated/runtime/Parser/TokenReader.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + public class TokenReader : IDisposable + { + private readonly JsonTokenizer tokenizer; + private JsonToken current; + + internal TokenReader(JsonTokenizer tokenizer) + { + this.tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); + } + + internal void Next() + { + current = tokenizer.ReadNext(); + } + + internal JsonToken Current => current; + + internal void Ensure(TokenKind kind, string readerName) + { + if (current.Kind != kind) + { + throw new ParserException($"Expected {kind} while reading {readerName}). Was {current}."); + } + } + + public void Dispose() + { + tokenizer.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/PipelineMocking.cs b/src/CloudService/generated/runtime/PipelineMocking.cs new file mode 100644 index 000000000000..4936e4eee098 --- /dev/null +++ b/src/CloudService/generated/runtime/PipelineMocking.cs @@ -0,0 +1,254 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System.Threading.Tasks; + using System.Collections.Generic; + using System.Net.Http; + using System.Linq; + using System.Net; + using Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json; + + public enum MockMode + { + Live, + Record, + Playback, + + } + + public class PipelineMock + { + + private System.Collections.Generic.Stack scenario = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack context = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack description = new System.Collections.Generic.Stack(); + + private readonly string recordingPath; + private int counter = 0; + + public static implicit operator Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.SendAsyncStep(PipelineMock instance) => instance.SendAsync; + + public MockMode Mode { get; set; } = MockMode.Live; + public PipelineMock(string recordingPath) + { + this.recordingPath = recordingPath; + } + + public void PushContext(string text) => context.Push(text); + + public void PushDescription(string text) => description.Push(text); + + + public void PushScenario(string it) + { + // reset counter too + counter = 0; + + scenario.Push(it); + } + + public void PopContext() => context.Pop(); + + public void PopDescription() => description.Pop(); + + public void PopScenario() => scenario.Pop(); + + public void SetRecord() => Mode = MockMode.Record; + + public void SetPlayback() => Mode = MockMode.Playback; + + public void SetLive() => Mode = MockMode.Live; + + public string Scenario => (scenario.Count > 0 ? scenario.Peek() : "[NoScenario]"); + public string Description => (description.Count > 0 ? description.Peek() : "[NoDescription]"); + public string Context => (context.Count > 0 ? context.Peek() : "[NoContext]"); + + /// + /// Headers that we substitute out blank values for in the recordings + /// Add additional headers as necessary + /// + public static HashSet Blacklist = new HashSet(System.StringComparer.CurrentCultureIgnoreCase) { + "Authorization", + }; + + public Dictionary ForceResponseHeaders = new Dictionary(); + + internal static XImmutableArray Removed = new XImmutableArray(new string[] { "[Filtered]" }); + + internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); + + internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + + internal static JsonNode SerializeContent(byte[] content) + { + if (null == content || content.Length == 0) + { + return XNull.Instance; + } + var first = content[0]; + var last = content[content.Length - 1]; + + // plaintext for JSON/SGML/XML/HTML/STRINGS/ARRAYS + if ((first == '{' && last == '}') || (first == '<' && last == '>') || (first == '[' && last == ']') || (first == '"' && last == '"')) + { + return new JsonString(System.Text.Encoding.UTF8.GetString(content)); + } + + // base64 for everyone else + return new JsonString(System.Convert.ToBase64String(content)); + } + + internal static byte[] DeserializeContent(string content) + { + if (string.IsNullOrWhiteSpace(content)) + { + return new byte[0]; + } + + if (content.EndsWith("==")) + { + try + { + return System.Convert.FromBase64String(content); + } + catch + { + // hmm. didn't work, return it as a string I guess. + } + } + return System.Text.Encoding.UTF8.GetBytes(content); + } + + public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) + { + var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + messages[rqKey] = new JsonObject { + { "Request",new JsonObject { + { "Method", request.Method.Method }, + { "RequestUri", request.RequestUri }, + { "Content", SerializeContent( request.Content) }, + { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, + { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} + } }, + {"Response", new JsonObject { + { "StatusCode", (int)response.StatusCode}, + { "Headers", new JsonObject(FilterHeaders(response.Headers))}, + { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, + { "Content", SerializeContent(response.Content) }, + }} + }; + System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); + } + + private JsonObject Load() + { + if (System.IO.File.Exists(this.recordingPath)) + { + try + { + return JsonObject.FromStream(System.IO.File.OpenRead(this.recordingPath)); + } + catch + { + throw new System.Exception($"Invalid recording file: '{recordingPath}'"); + } + } + + throw new System.ArgumentException($"Missing recording file: '{recordingPath}'", nameof(recordingPath)); + } + + public HttpResponseMessage LoadMessage(string rqKey) + { + var responses = Load(); + var message = responses.Property(rqKey); + + if (null == message) + { + throw new System.ArgumentException($"Missing Request '{rqKey}' in recording file", nameof(rqKey)); + } + + var sc = 0; + var reqMessage = message.Property("Request"); + var respMessage = message.Property("Response"); + + // --------------------------- deserialize response ---------------------------------------------------------------- + var response = new HttpResponseMessage + { + StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + }; + + foreach (var each in respMessage.Property("Headers")) + { + response.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + foreach (var frh in ForceResponseHeaders) + { + response.Headers.Remove(frh.Key); + response.Headers.TryAddWithoutValidation(frh.Key, frh.Value); + } + + foreach (var each in respMessage.Property("ContentHeaders")) + { + response.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + // --------------------------- deserialize request ---------------------------------------------------------------- + response.RequestMessage = new HttpRequestMessage + { + Method = new HttpMethod(reqMessage.StringProperty("Method")), + RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + }; + + foreach (var each in reqMessage.Property("Headers")) + { + response.RequestMessage.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + foreach (var each in reqMessage.Property("ContentHeaders")) + { + response.RequestMessage.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + return response; + } + + public async Task SendAsync(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + counter++; + var rqkey = $"{Description}+{Context}+{Scenario}+${request.Method.Method}+{request.RequestUri}+{counter}"; + + switch (Mode) + { + case MockMode.Record: + //Add following code since the request.Content will be released after sendAsync + var requestClone = request; + if (requestClone.Content != null) + { + requestClone = await request.CloneWithContent(request.RequestUri, request.Method); + } + // make the call + var response = await next.SendAsync(request, callback); + + // save the message to the recording file + SaveMessage(rqkey, requestClone, response); + + // return the response. + return response; + + case MockMode.Playback: + // load and return the response. + return LoadMessage(rqkey); + + default: + // pass-thru, do nothing + return await next.SendAsync(request, callback); + } + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Response.cs b/src/CloudService/generated/runtime/Response.cs new file mode 100644 index 000000000000..cd98b6268800 --- /dev/null +++ b/src/CloudService/generated/runtime/Response.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System; + using System.Threading.Tasks; + public class Response : EventData + { + public Response() : base() + { + } + } + + public class Response : Response + { + private Func> _resultDelegate; + private Task _resultValue; + + public Response(T value) : base() => _resultValue = Task.FromResult(value); + public Response(Func value) : base() => _resultDelegate = () => Task.FromResult(value()); + public Response(Func> value) : base() => _resultDelegate = value; + public Task Result => _resultValue ?? (_resultValue = this._resultDelegate()); + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Serialization/JsonSerializer.cs b/src/CloudService/generated/runtime/Serialization/JsonSerializer.cs new file mode 100644 index 000000000000..cff51a284bc1 --- /dev/null +++ b/src/CloudService/generated/runtime/Serialization/JsonSerializer.cs @@ -0,0 +1,350 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class JsonSerializer + { + private int depth = 0; + + private SerializationOptions options = new SerializationOptions(); + + #region Deserialization + + internal T Deseralize(JsonObject json) + where T : new() + { + var contract = JsonModelCache.Get(typeof(T)); + + return (T)DeserializeObject(contract, json); + } + + internal object DeserializeObject(JsonModel contract, JsonObject json) + { + var instance = Activator.CreateInstance(contract.Type); + + depth++; + + // Ensure we don't recurse forever + if (depth > 5) throw new Exception("Depth greater than 5"); + + foreach (var field in json) + { + var member = contract[field.Key]; + + if (member != null) + { + var value = DeserializeValue(member, field.Value); + + member.SetValue(instance, value); + } + } + + depth--; + + return instance; + } + + private object DeserializeValue(JsonMember member, JsonNode value) + { + if (value.Type == JsonType.Null) return null; + + var type = member.Type; + + if (member.IsStringLike && value.Type != JsonType.String) + { + // Take the long path... + return DeserializeObject(JsonModelCache.Get(type), (JsonObject)value); + } + else if (member.Converter != null) + { + return member.Converter.FromJson(value); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (member.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + private object DeserializeValue(Type type, JsonNode value) + { + if (type == null) throw new ArgumentNullException(nameof(type)); + + if (value.Type == JsonType.Null) return null; + + var typeDetails = TypeDetails.Get(type); + + if (typeDetails.JsonConverter != null) + { + return typeDetails.JsonConverter.FromJson(value); + } + else if (typeDetails.IsEnum) + { + return Enum.Parse(type, value.ToString(), ignoreCase: true); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (typeDetails.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + internal Array DeserializeArray(Type type, JsonArray elements) + { + var elementType = type.GetElementType(); + + var elementTypeDetails = TypeDetails.Get(elementType); + + var array = Array.CreateInstance(elementType, elements.Count); + + int i = 0; + + if (elementTypeDetails.JsonConverter != null) + { + foreach (var value in elements) + { + array.SetValue(elementTypeDetails.JsonConverter.FromJson(value), i); + + i++; + } + } + else + { + foreach (var value in elements) + { + array.SetValue(DeserializeValue(elementType, value), i); + + i++; + } + } + + return array; + } + + internal IList DeserializeList(Type type, JsonArray jsonArray) + { + // TODO: Handle non-generic types + if (!type.IsGenericType) + throw new ArgumentException("Must be a generic type", nameof(type)); + + var elementType = type.GetGenericArguments()[0]; + + IList list; + + if (type.IsInterface) + { + // Create a concrete generic list + list = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); + } + else + { + list = (IList)Activator.CreateInstance(type); + } + + foreach (var value in jsonArray) + { + list.Add(DeserializeValue(elementType, value)); + } + + return list; + } + + #endregion + + #region Serialization + + internal JsonNode Serialize(object instance) => + Serialize(instance, SerializationOptions.Default); + + internal JsonNode Serialize(object instance, string[] include) => + Serialize(instance, new SerializationOptions { Include = include }); + + internal JsonNode Serialize(object instance, SerializationOptions options) + { + this.options = options; + + if (instance == null) + { + return XNull.Instance; + } + + return ReadValue(instance.GetType(), instance); + } + + #region Readers + + internal JsonArray ReadArray(IEnumerable collection) + { + var array = new XNodeArray(); + + foreach (var item in collection) + { + array.Add(ReadValue(item.GetType(), item)); + } + + return array; + } + + internal IEnumerable> ReadProperties(object instance) + { + var contract = JsonModelCache.Get(instance.GetType()); + + foreach (var member in contract.Members) + { + string name = member.Name; + + if (options.PropertyNameTransformer != null) + { + name = options.PropertyNameTransformer.Invoke(name); + } + + // Skip the field if it's not included + if ((depth == 1 && !options.IsIncluded(name))) + { + continue; + } + + var value = member.GetValue(instance); + + if (!member.EmitDefaultValue && (value == null || (member.IsList && ((IList)value).Count == 0) || value.Equals(member.DefaultValue))) + { + continue; + } + else if (options.IgnoreNullValues && value == null) // Ignore null values + { + continue; + } + + // Transform the value if there is one + if (options.Transformations != null) + { + var transform = options.GetTransformation(name); + + if (transform != null) + { + value = transform.Transformer(value); + } + } + + yield return new KeyValuePair(name, ReadValue(member.TypeDetails, value)); + } + } + + private JsonObject ReadObject(object instance) + { + depth++; + + // TODO: Guard against a self referencing graph + if (depth > options.MaxDepth) + { + depth--; + + return new JsonObject(); + } + + var node = new JsonObject(ReadProperties(instance)); + + depth--; + + return node; + } + + private JsonNode ReadValue(Type type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + var member = TypeDetails.Get(type); + + return ReadValue(member, value); + } + + private JsonNode ReadValue(TypeDetails type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + if (type.JsonConverter != null) + { + return type.JsonConverter.ToJson(value); + } + else if (type.IsArray) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateArray((string[])value); + case TypeCode.UInt16: return CreateArray((ushort[])value); + case TypeCode.UInt32: return CreateArray((uint[])value); + case TypeCode.UInt64: return CreateArray((ulong[])value); + case TypeCode.Int16: return CreateArray((short[])value); + case TypeCode.Int32: return CreateArray((int[])value); + case TypeCode.Int64: return CreateArray((long[])value); + case TypeCode.Single: return CreateArray((float[])value); + case TypeCode.Double: return CreateArray((double[])value); + default: return ReadArray((IEnumerable)value); + } + } + else if (value is IEnumerable) + { + if (type.IsList && type.ElementType != null) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateList(value); + case TypeCode.UInt16: return CreateList(value); + case TypeCode.UInt32: return CreateList(value); + case TypeCode.UInt64: return CreateList(value); + case TypeCode.Int16: return CreateList(value); + case TypeCode.Int32: return CreateList(value); + case TypeCode.Int64: return CreateList(value); + case TypeCode.Single: return CreateList(value); + case TypeCode.Double: return CreateList(value); + } + } + + return ReadArray((IEnumerable)value); + } + else + { + // Complex object + return ReadObject(value); + } + } + + private XList CreateList(object value) => new XList((IList)value); + + private XImmutableArray CreateArray(T[] array) => new XImmutableArray(array); + + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Serialization/PropertyTransformation.cs b/src/CloudService/generated/runtime/Serialization/PropertyTransformation.cs new file mode 100644 index 000000000000..7e3385f38213 --- /dev/null +++ b/src/CloudService/generated/runtime/Serialization/PropertyTransformation.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class PropertyTransformation + { + internal PropertyTransformation(string name, Func transformer) + { + Name = name ?? throw new ArgumentNullException(nameof(name)); + Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); + } + + internal string Name { get; } + + internal Func Transformer { get; } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Serialization/SerializationOptions.cs b/src/CloudService/generated/runtime/Serialization/SerializationOptions.cs new file mode 100644 index 000000000000..dc702a1da988 --- /dev/null +++ b/src/CloudService/generated/runtime/Serialization/SerializationOptions.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class SerializationOptions + { + internal static readonly SerializationOptions Default = new SerializationOptions(); + + internal SerializationOptions() { } + + internal SerializationOptions( + string[] include = null, + bool ingoreNullValues = false) + { + Include = include; + IgnoreNullValues = ingoreNullValues; + } + + internal string[] Include { get; set; } + + internal string[] Exclude { get; set; } + + internal bool IgnoreNullValues { get; set; } + + internal PropertyTransformation[] Transformations { get; set; } + + internal Func PropertyNameTransformer { get; set; } + + internal int MaxDepth { get; set; } = 5; + + internal bool IsIncluded(string name) + { + if (Exclude != null) + { + return !Exclude.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + else if (Include != null) + { + return Include.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + + return true; + } + + internal PropertyTransformation GetTransformation(string propertyName) + { + if (Transformations == null) return null; + + foreach (var t in Transformations) + { + if (t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)) + { + return t; + } + } + + return null; + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/SerializationMode.cs b/src/CloudService/generated/runtime/SerializationMode.cs new file mode 100644 index 000000000000..ec084c265601 --- /dev/null +++ b/src/CloudService/generated/runtime/SerializationMode.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + [System.Flags] + public enum SerializationMode + { + None = 0, + IncludeHeaders = 1 << 0, + IncludeReadOnly = 1 << 1, + + IncludeAll = IncludeHeaders | IncludeReadOnly + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/TypeConverterExtensions.cs b/src/CloudService/generated/runtime/TypeConverterExtensions.cs new file mode 100644 index 000000000000..e2af8bc0e0e2 --- /dev/null +++ b/src/CloudService/generated/runtime/TypeConverterExtensions.cs @@ -0,0 +1,190 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Linq; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.PowerShell +{ + internal static class TypeConverterExtensions + { + internal static T[] SelectToArray(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0]; // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result.ToArray(); + } + + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Management.Automation.PSObject instance) + { + if (null != instance) + { + foreach (var each in instance.Properties) + { + yield return each; + } + } + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.Generic.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys.OfType() + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Management.Automation.PSObject instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + // new global::System.Collections.Generic.HashSet(System.StringComparer.InvariantCultureIgnoreCase) + return (null == instance || !instance.Properties.Any()) ? + Enumerable.Empty>() : + instance.Properties + .Where(property => + !(true == exclusions?.Contains(property.Name)) + && (false != inclusions?.Contains(property.Name))) + .Select(property => new System.Collections.Generic.KeyValuePair(property.Name, property.Value)); + } + + + internal static T GetValueForProperty(this System.Collections.Generic.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys, each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + internal static T GetValueForProperty(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + + internal static T GetValueForProperty(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func converter) + { + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return property == null ? defaultValue : (T)converter(property.Value); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + } +} diff --git a/src/CloudService/generated/runtime/UndeclaredResponseException.cs b/src/CloudService/generated/runtime/UndeclaredResponseException.cs new file mode 100644 index 000000000000..e8d6229aa2df --- /dev/null +++ b/src/CloudService/generated/runtime/UndeclaredResponseException.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System; + using System.Net.Http; + using System.Net.Http.Headers; + using static Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Extensions; + + public class RestException : Exception, IDisposable + { + public System.Net.HttpStatusCode StatusCode { get; set; } + public string Code { get; protected set; } + protected string message; + public HttpRequestMessage RequestMessage { get; protected set; } + public HttpResponseHeaders ResponseHeaders { get; protected set; } + + public string ResponseBody { get; protected set; } + public string ClientRequestId { get; protected set; } + public string RequestId { get; protected set; } + + public override string Message => message; + public string Action { get; protected set; } + + public RestException(System.Net.Http.HttpResponseMessage response) + { + StatusCode = response.StatusCode; + //CloneWithContent will not work here since the content is disposed after sendAsync + //Besides, it seems there is no need for the request content cloned here. + RequestMessage = response.RequestMessage.Clone(); + ResponseBody = response.Content.ReadAsStringAsync().Result; + ResponseHeaders = response.Headers; + + RequestId = response.GetFirstHeader("x-ms-request-id"); + ClientRequestId = response.GetFirstHeader("x-ms-client-request-id"); + + try + { + // try to parse the body as JSON, and see if a code and message are in there. + var json = Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonObject; + + // see if there is an error block in the body + json = json.Property("error") ?? json; + + { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } + { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } + { Action = If(json?.PropertyT("action"), out var a) ? (string)a : (string)Action; } + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // couldn't get the code/message from the body response. + // we'll create one below. + } +#endif + if (string.IsNullOrEmpty(message)) + { + if (StatusCode >= System.Net.HttpStatusCode.BadRequest && StatusCode < System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Request Error, Status: {StatusCode}"; + } + else if (StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Server Error, Status: {StatusCode}"; + } + else + { + message = $"The server responded with an unrecognized response, Status: {StatusCode}"; + } + } + } + + public void Dispose() + { + ((IDisposable)RequestMessage).Dispose(); + } + } + + public class RestException : RestException + { + public T Error { get; protected set; } + public RestException(System.Net.Http.HttpResponseMessage response, T error) : base(response) + { + Error = error; + } + } + + + public class UndeclaredResponseException : RestException + { + public UndeclaredResponseException(System.Net.Http.HttpResponseMessage response) : base(response) + { + + } + } +} \ No newline at end of file diff --git a/src/CloudService/generated/runtime/Writers/JsonWriter.cs b/src/CloudService/generated/runtime/Writers/JsonWriter.cs new file mode 100644 index 000000000000..42d9383f5337 --- /dev/null +++ b/src/CloudService/generated/runtime/Writers/JsonWriter.cs @@ -0,0 +1,223 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Web; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json +{ + internal class JsonWriter + { + const string indentation = " "; // 2 spaces + + private readonly bool pretty; + private readonly TextWriter writer; + + protected int currentLevel = 0; + + internal JsonWriter(TextWriter writer, bool pretty = true) + { + this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); + this.pretty = pretty; + } + + internal void WriteNode(JsonNode node) + { + switch (node.Type) + { + case JsonType.Array: WriteArray((IEnumerable)node); break; + case JsonType.Object: WriteObject((JsonObject)node); break; + + // Primitives + case JsonType.Binary: WriteBinary((XBinary)node); break; + case JsonType.Boolean: WriteBoolean((bool)node); break; + case JsonType.Date: WriteDate((JsonDate)node); break; + case JsonType.Null: WriteNull(); break; + case JsonType.Number: WriteNumber((JsonNumber)node); break; + case JsonType.String: WriteString(node); break; + } + } + + internal void WriteArray(IEnumerable array) + { + currentLevel++; + + writer.Write('['); + + bool doIndentation = false; + + if (pretty) + { + foreach (var node in array) + { + if (node.Type == JsonType.Object || node.Type == JsonType.Array) + { + doIndentation = true; + + break; + } + } + } + + bool isFirst = true; + + foreach (JsonNode node in array) + { + if (!isFirst) writer.Write(','); + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + WriteNode(node); + + isFirst = false; + } + + currentLevel--; + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + writer.Write(']'); + } + + internal void WriteIndent() + { + if (pretty) + { + writer.Write(Environment.NewLine); + + for (int level = 0; level < currentLevel; level++) + { + writer.Write(indentation); + } + } + } + + internal void WriteObject(JsonObject obj) + { + currentLevel++; + + writer.Write('{'); + + bool isFirst = true; + + foreach (var field in obj) + { + if (!isFirst) writer.Write(','); + + WriteIndent(); + + WriteFieldName(field.Key); + + writer.Write(':'); + + if (pretty) + { + writer.Write(' '); + } + + // Write the field value + WriteNode(field.Value); + + isFirst = false; + } + + currentLevel--; + + WriteIndent(); + + writer.Write('}'); + } + + internal void WriteFieldName(string fieldName) + { + writer.Write('"'); + writer.Write(HttpUtility.JavaScriptStringEncode(fieldName)); + writer.Write('"'); + } + + #region Primitives + + internal void WriteBinary(XBinary value) + { + writer.Write('"'); + writer.Write(value.ToString()); + writer.Write('"'); + } + + internal void WriteBoolean(bool value) + { + writer.Write(value ? "true" : "false"); + } + + internal void WriteDate(JsonDate date) + { + if (date.ToDateTime().Year == 1) + { + WriteNull(); + } + else + { + writer.Write('"'); + writer.Write(date.ToIsoString()); + writer.Write('"'); + } + } + + internal void WriteNull() + { + writer.Write("null"); + } + + internal void WriteNumber(JsonNumber number) + { + if (number.Overflows) + { + writer.Write('"'); + writer.Write(number.Value); + writer.Write('"'); + } + else + { + writer.Write(number.Value); + } + } + + internal void WriteString(string text) + { + if (text == null) + { + WriteNull(); + } + else + { + writer.Write('"'); + + writer.Write(HttpUtility.JavaScriptStringEncode(text)); + + writer.Write('"'); + } + } + + #endregion + } +} + + +// TODO: Replace with System.Text.Json when available diff --git a/src/CloudService/generated/runtime/delegates.cs b/src/CloudService/generated/runtime/delegates.cs new file mode 100644 index 000000000000..697f39c1c8f2 --- /dev/null +++ b/src/CloudService/generated/runtime/delegates.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData=System.Func; + + public delegate Task SendAsync(HttpRequestMessage request, IEventListener callback); + public delegate Task SendAsyncStep(HttpRequestMessage request, IEventListener callback, ISendAsync next); + public delegate Task SignalEvent(string id, CancellationToken token, GetEventData getEventData); + public delegate Task Event(EventData message); + public delegate void SynchEvent(EventData message); + public delegate Task OnResponse(Response message); + public delegate Task OnResponse(Response message); +} \ No newline at end of file diff --git a/src/CloudService/help/Az.CloudService.md b/src/CloudService/help/Az.CloudService.md new file mode 100644 index 000000000000..f5435ff8c04c --- /dev/null +++ b/src/CloudService/help/Az.CloudService.md @@ -0,0 +1,102 @@ +--- +Module Name: Az.CloudService +Module Guid: a41eb61d-c5a1-4e9b-81a7-b8905fff7f2c +Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.CloudService Module +## Description +Microsoft Azure PowerShell: CloudService cmdlets + +## Az.CloudService Cmdlets +### [Get-AzCloudService](Get-AzCloudService.md) +Display information about a cloud service. + +### [Get-AzCloudServiceInstanceView](Get-AzCloudServiceInstanceView.md) +Gets the status of a cloud service. + +### [Get-AzCloudServiceNetworkInterfaces](Get-AzCloudServiceNetworkInterfaces.md) +Get the network interfaces of a cloud service. + +### [Get-AzCloudServicePublicIPAddress](Get-AzCloudServicePublicIPAddress.md) +Get the public IP address of a cloud service. + +### [Get-AzCloudServiceRoleInstance](Get-AzCloudServiceRoleInstance.md) +Gets a role instance from a cloud service. + +### [Get-AzCloudServiceRoleInstanceRemoteDesktopFile](Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md) +Gets a remote desktop file for a role instance in a cloud service. + +### [Get-AzCloudServiceRoleInstanceView](Get-AzCloudServiceRoleInstanceView.md) +Retrieves information about the run-time state of a role instance in a cloud service. + +### [Invoke-AzCloudServiceRebuild](Invoke-AzCloudServiceRebuild.md) +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +### [Invoke-AzCloudServiceReimage](Invoke-AzCloudServiceReimage.md) +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +### [Invoke-AzCloudServiceRoleInstanceRebuild](Invoke-AzCloudServiceRoleInstanceRebuild.md) +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +### [Invoke-AzCloudServiceRoleInstanceReimage](Invoke-AzCloudServiceRoleInstanceReimage.md) +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +### [New-AzCloudService](New-AzCloudService.md) +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + +### [New-AzCloudServiceDiagnosticsExtension](New-AzCloudServiceDiagnosticsExtension.md) +Create a in-memory object for Diagnostics Extension + +### [New-AzCloudServiceExtensionObject](New-AzCloudServiceExtensionObject.md) +Create a in-memory object for Extension + +### [New-AzCloudServiceLoadBalancerConfigurationObject](New-AzCloudServiceLoadBalancerConfigurationObject.md) +Create a in-memory object for LoadBalancerConfiguration + +### [New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject](New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md) +Create a in-memory object for LoadBalancerFrontendIPConfiguration + +### [New-AzCloudServiceRemoteDesktopExtensionObject](New-AzCloudServiceRemoteDesktopExtensionObject.md) +Create a in-memory object for Remote Desktop Extension + +### [New-AzCloudServiceRoleProfilePropertiesObject](New-AzCloudServiceRoleProfilePropertiesObject.md) +Create a in-memory object for CloudServiceRoleProfileProperties + +### [New-AzCloudServiceVaultSecretGroupObject](New-AzCloudServiceVaultSecretGroupObject.md) +Create a in-memory object for Secret Group + +### [Remove-AzCloudService](Remove-AzCloudService.md) +Deletes a cloud service. + +### [Remove-AzCloudServiceRoleInstance](Remove-AzCloudServiceRoleInstance.md) +Deletes role instances in a cloud service. + +### [Restart-AzCloudService](Restart-AzCloudService.md) +Restarts one or more role instances in a cloud service. + +### [Restart-AzCloudServiceRoleInstance](Restart-AzCloudServiceRoleInstance.md) +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + +### [Set-AzCloudServiceUpdateDomain](Set-AzCloudServiceUpdateDomain.md) +Updates the role instances in the specified update domain. + +### [Start-AzCloudService](Start-AzCloudService.md) +Starts the cloud service. + +### [Stop-AzCloudService](Stop-AzCloudService.md) +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. + +### [Switch-AzCloudService](Switch-AzCloudService.md) +Swaps VIPs between two cloud service (extended support) load balancers. + +### [Update-AzCloudService](Update-AzCloudService.md) +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + diff --git a/src/CloudService/help/Get-AzCloudService.md b/src/CloudService/help/Get-AzCloudService.md new file mode 100644 index 000000000000..2bed38c9e3ab --- /dev/null +++ b/src/CloudService/help/Get-AzCloudService.md @@ -0,0 +1,197 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudservice +schema: 2.0.0 +--- + +# Get-AzCloudService + +## SYNOPSIS +Display information about a cloud service. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudService [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzCloudService -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzCloudService -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Display information about a cloud service. + +## EXAMPLES + +### Example 1: Get all cloud service under a resource group +```powershell +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded +ContosOrg ContosoCSTest eastus2euap Failed +``` + +This command gets all cloud services in resource group named ContosOrg + +### Example 2: Get cloud service +```powershell +PS C:\> Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +ResourceGroupName Name Location ProvisioningState +----------------- ---- -------- ----------------- +ContosOrg ContosoCS eastus2euap Succeeded + +PS C:\> $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +PS C:\> $cloudService | Format-List +ResourceGroupName : ContosOrg +Configuration : xxxxxxxx +ConfigurationUrl : +ExtensionProfile : xxxxxxxx +Id : xxxxxxxx +Location : East US +Name : ContosoCS +NetworkProfile : xxxxxxxx +OSProfile : xxxxxxxx +PackageUrl : xxxxxxxx +ProvisioningState : Succeeded +RoleProfile : xxxxxxxx +StartCloudService : +Tag : { + "Owner": "Contos" + } +Type : Microsoft.Compute/cloudServices +UniqueId : xxxxxxxx +UpgradeMode : Auto + +``` + +This command gets cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceInstanceView.md b/src/CloudService/help/Get-AzCloudServiceInstanceView.md new file mode 100644 index 000000000000..7a0d730ece0e --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceInstanceView.md @@ -0,0 +1,154 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceinstanceview +schema: 2.0.0 +--- + +# Get-AzCloudServiceInstanceView + +## SYNOPSIS +Gets the status of a cloud service. + +## SYNTAX + +``` +Get-AzCloudServiceInstanceView -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets the status of a cloud service. + +## EXAMPLES + +### Example 1: Get cloud service instance view +```powershell +PS C:\>$cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +PS C:\>$cloudServiceInstanceView +RoleInstanceStatusesSummary Statuses +--------------------------- -------- +{{ProvisioningState/succeeded : 4}, {PowerState/started : 4}} {Provisioning succeeded, Started, Current Upgrade Domain of cloud service is -1., Max Upgrade Domain of cloud service is 1.} + +PS C:\>$cloudServiceInstanceView.ToJsonString() +{ + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + } + ] + }, + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "displayStatus": "Provisioning succeeded", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "PowerState/started", + "displayStatus": "Started", + "level": "Info", + "time": "2020-10-28T13:26:48.8109686Z" + }, + { + "code": "CurrentUpgradeDomain/-1", + "displayStatus": "Current Upgrade Domain of cloud service is -1.", + "level": "Info" + }, + { + "code": "MaxUpgradeDomain/1", + "displayStatus": "Max Upgrade Domain of cloud service is 1.", + "level": "Info" + } + ] +} +``` + +This cmdlet gets the instance view of the cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceInstanceView + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md b/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md new file mode 100644 index 000000000000..ca5ea4983fd9 --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceNetworkInterfaces.md @@ -0,0 +1,196 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServiceNetworkInterfaces +schema: 2.0.0 +--- + +# Get-AzCloudServiceNetworkInterfaces + +## SYNOPSIS +Get the network interfaces of a cloud service. + +## SYNTAX + +### CloudServiceName (Default) +``` +Get-AzCloudServiceNetworkInterfaces -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [-RoleInstanceName ] [] +``` + +### CloudService +``` +Get-AzCloudServiceNetworkInterfaces -CloudService [-SubscriptionId ] + [-RoleInstanceName ] [] +``` + +## DESCRIPTION +Get the network interfaces of a cloud service. + +## EXAMPLES + +### Example 1: Get network interfaces by a cloud service name +```powershell +PS C:\> Get-AzCloudServiceNetworkInterfaces -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Gets all the network interfaces for a given cloud service name. + +### Example 2: Get network interfaces by a cloud service object +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs + +``` + +Gets all the network interfaces for a given cloud service object. + +### Example 3: Get network interfaces by a cloud service object and role instance name. +```powershell +PS C:\> Get-AzCloudServiceNetworkInterfaces -CloudService $cs -RoleInstanceName WebRole1_IN_0 + +``` + +Gets all the network interfaces for a given cloud service object and role instance name. + +## PARAMETERS + +### -CloudService +CloudService instance. +To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Parameter Sets: CloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +CloudServiceName. + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +ResourceGroupName. + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +RoleInstanceName. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +CLOUDSERVICE : CloudService instance. + - `Location `: Resource location. + - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. + - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[ExtensionProfile ]`: Describes a cloud service extension profile. + - `[Extension ]`: List of extensions for the cloud service. + - `[AutoUpgradeMinorVersion ]`: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + - `[ForceUpdateTag ]`: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + - `[Name ]`: The name of the extension. + - `[ProtectedSetting ]`: Protected settings for the extension which are encrypted before sent to the role instance. + - `[ProtectedSettingFromKeyVaultSecretUrl ]`: + - `[Publisher ]`: The name of the extension handler publisher. + - `[RolesAppliedTo ]`: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + - `[Setting ]`: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + - `[SourceVaultId ]`: Resource Id + - `[Type ]`: Specifies the type of the extension. + - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + - `[NetworkProfile ]`: Network Profile for the cloud service. + - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. + - `[FrontendIPConfiguration ]`: List of IP + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + - `[Name ]`: Resource Name + - `[SwappableCloudService ]`: + - `[Id ]`: Resource Id + - `[OSProfile ]`: Describes the OS profile for the cloud service. + - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. + - `[SourceVaultId ]`: Resource Id + - `[VaultCertificate ]`: The list of key vault references in SourceVault which contain certificates. + - `[CertificateUrl ]`: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + - `[PackageUrl ]`: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[RoleProfile ]`: Describes the role profile for the cloud service. + - `[Role ]`: List of roles for the cloud service. + - `[Name ]`: Resource name. + - `[SkuCapacity ]`: Specifies the number of role instances in the cloud service. + - `[SkuName ]`: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + - `[SkuTier ]`: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + - `[StartCloudService ]`: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[UpgradeMode ]`: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md new file mode 100644 index 000000000000..50e3125d872a --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServicePublicIPAddress.md @@ -0,0 +1,172 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-AzCloudServicePublicIPAddress +schema: 2.0.0 +--- + +# Get-AzCloudServicePublicIPAddress + +## SYNOPSIS +Get the public IP address of a cloud service. + +## SYNTAX + +### CloudServiceName (Default) +``` +Get-AzCloudServicePublicIPAddress -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [] +``` + +### CloudService +``` +Get-AzCloudServicePublicIPAddress -CloudService [-SubscriptionId ] [] +``` + +## DESCRIPTION +Get the public IP address of a cloud service. + +## EXAMPLES + +### Example 1: Get instance level public IP addresses for a given cloud service name. +```powershell +PS C:\> Get-AzCloudServicePublicIPAddress -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Gets the instance level public IP addresses for a given cloud service name. + +### Example 2: Get instance level public IP addresses for a given cloud service object. +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Get-AzCloudServicePublicIPAddress -CloudService $cs + +``` + +Gets the instance level public IP addresses for a given cloud service object. + +## PARAMETERS + +### -CloudService +CloudService instance. +To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Parameter Sets: CloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +CloudServiceName. + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +ResourceGroupName. + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +CLOUDSERVICE : CloudService instance. + - `Location `: Resource location. + - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. + - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[ExtensionProfile ]`: Describes a cloud service extension profile. + - `[Extension ]`: List of extensions for the cloud service. + - `[AutoUpgradeMinorVersion ]`: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + - `[ForceUpdateTag ]`: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + - `[Name ]`: The name of the extension. + - `[ProtectedSetting ]`: Protected settings for the extension which are encrypted before sent to the role instance. + - `[ProtectedSettingFromKeyVaultSecretUrl ]`: + - `[Publisher ]`: The name of the extension handler publisher. + - `[RolesAppliedTo ]`: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + - `[Setting ]`: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + - `[SourceVaultId ]`: Resource Id + - `[Type ]`: Specifies the type of the extension. + - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + - `[NetworkProfile ]`: Network Profile for the cloud service. + - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. + - `[FrontendIPConfiguration ]`: List of IP + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + - `[Name ]`: Resource Name + - `[SwappableCloudService ]`: + - `[Id ]`: Resource Id + - `[OSProfile ]`: Describes the OS profile for the cloud service. + - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. + - `[SourceVaultId ]`: Resource Id + - `[VaultCertificate ]`: The list of key vault references in SourceVault which contain certificates. + - `[CertificateUrl ]`: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + - `[PackageUrl ]`: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[RoleProfile ]`: Describes the role profile for the cloud service. + - `[Role ]`: List of roles for the cloud service. + - `[Name ]`: Resource name. + - `[SkuCapacity ]`: Specifies the number of role instances in the cloud service. + - `[SkuName ]`: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + - `[SkuTier ]`: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + - `[StartCloudService ]`: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[UpgradeMode ]`: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceRoleInstance.md b/src/CloudService/help/Get-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..14e33884f1d0 --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceRoleInstance.md @@ -0,0 +1,205 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstance +schema: 2.0.0 +--- + +# Get-AzCloudServiceRoleInstance + +## SYNOPSIS +Gets a role instance from a cloud service. + +## SYNTAX + +### List (Default) +``` +Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + [-SubscriptionId ] [-Expand ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-Expand ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzCloudServiceRoleInstance -InputObject [-Expand ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a role instance from a cloud service. + +## EXAMPLES + +### Example 1: Get all role instances +```powershell +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard +ContosoFrontEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard +ContosoBackEnd_IN_1 eastus2euap Standard_D1_v2 Standard + +``` + +This command gets the properties of all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Get properties for single role instance +```powershell +PS C:\> Get-AzCloudServiceRoleInstance -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Name Location SkuName SkuTier +---- -------- ------- ------- +ContosoFrontEnd_IN_0 eastus2euap Standard_D1_v2 Standard + +``` + +This command gets the properties of the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expand +The expand expression to apply to the operation. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.InstanceViewTypes +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstance + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md b/src/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md new file mode 100644 index 000000000000..6cbe940a0a5e --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.md @@ -0,0 +1,155 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceremotedesktopfile +schema: 2.0.0 +--- + +# Get-AzCloudServiceRoleInstanceRemoteDesktopFile + +## SYNOPSIS +Gets a remote desktop file for a role instance in a cloud service. + +## SYNTAX + +``` +Get-AzCloudServiceRoleInstanceRemoteDesktopFile -CloudServiceName -ResourceGroupName + -RoleInstanceName -OutFile [-SubscriptionId ] [-DefaultProfile ] + [-PassThru] [] +``` + +## DESCRIPTION +Gets a remote desktop file for a role instance in a cloud service. + +## EXAMPLES + +### Example 1: Get an RDP file +```powershell +PS C:\> Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" -OutFile "C:\temp\ContosoFrontEnd_IN_0.rdp" +``` + +This command gets an RDP file for the role instance named ContosoFrontEnd\_IN\_0 of cloud Service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OutFile +Path to write output file to + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md b/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md new file mode 100644 index 000000000000..1b34f2f446e4 --- /dev/null +++ b/src/CloudService/help/Get-AzCloudServiceRoleInstanceView.md @@ -0,0 +1,129 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/get-azcloudserviceroleinstanceview +schema: 2.0.0 +--- + +# Get-AzCloudServiceRoleInstanceView + +## SYNOPSIS +Retrieves information about the run-time state of a role instance in a cloud service. + +## SYNTAX + +``` +Get-AzCloudServiceRoleInstanceView -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Retrieves information about the run-time state of a role instance in a cloud service. + +## EXAMPLES + +### Example 1: Get instance view details for cloud service role instance +```powershell +PS C:\> Get-AzCloudServiceRoleInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" + +Statuses PlatformFaultDomain PlatformUpdateDomain +-------- ------------------- -------------------- +{RoleStateStarted} 0 0 + +``` + +This cmdlet gets the instance view of the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.IRoleInstanceView + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/Invoke-AzCloudServiceRebuild.md b/src/CloudService/help/Invoke-AzCloudServiceRebuild.md new file mode 100644 index 000000000000..38666895f837 --- /dev/null +++ b/src/CloudService/help/Invoke-AzCloudServiceRebuild.md @@ -0,0 +1,251 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicerebuild +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRebuild + +## SYNOPSIS +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## SYNTAX + +### RebuildExpanded (Default) +``` +Invoke-AzCloudServiceRebuild -CloudServiceName -ResourceGroupName -RoleInstance + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RebuildViaIdentityExpanded +``` +Invoke-AzCloudServiceRebuild -InputObject -RoleInstance + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instances. + +## EXAMPLES + +### Example 1: Rebuild role instances of cloud service +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command rebuilds 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Rebuild all roles of cloud service +```powershell +PS C:\> Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command rebuilds all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: RebuildExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RebuildViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: RebuildExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstance +List of cloud service role instance names. +Value of '*' will signify all role instances of the cloud service. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: RebuildExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Invoke-AzCloudServiceReimage.md b/src/CloudService/help/Invoke-AzCloudServiceReimage.md new file mode 100644 index 000000000000..adacebb9e843 --- /dev/null +++ b/src/CloudService/help/Invoke-AzCloudServiceReimage.md @@ -0,0 +1,249 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudservicereimage +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceReimage + +## SYNOPSIS +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## SYNTAX + +### ReimageExpanded (Default) +``` +Invoke-AzCloudServiceReimage -Name -ResourceGroupName -RoleInstance + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### ReimageViaIdentityExpanded +``` +Invoke-AzCloudServiceReimage -InputObject -RoleInstance + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## EXAMPLES + +### Example 1: Reimage role instances of cloud service +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command reimages 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Reimage all roles of cloud service +```powershell +PS C:\> Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command reimages all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: ReimageViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: ReimageExpanded +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: ReimageExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstance +List of cloud service role instance names. +Value of '*' will signify all role instances of the cloud service. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: ReimageExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md new file mode 100644 index 000000000000..23277bb1e579 --- /dev/null +++ b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceRebuild.md @@ -0,0 +1,242 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancerebuild +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRoleInstanceRebuild + +## SYNOPSIS +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## SYNTAX + +### Rebuild (Default) +``` +Invoke-AzCloudServiceRoleInstanceRebuild -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RebuildViaIdentity +``` +Invoke-AzCloudServiceRoleInstanceRebuild -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. +If you do not want to initialize storage resources, you can use Reimage Role Instance. + +## EXAMPLES + +### Example 1: Rebuild role instance of a cloud service +```powershell +PS C:\> Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: Rebuild +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RebuildViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: Rebuild +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: Rebuild +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Rebuild +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md new file mode 100644 index 000000000000..9f483d4a2fc3 --- /dev/null +++ b/src/CloudService/help/Invoke-AzCloudServiceRoleInstanceReimage.md @@ -0,0 +1,240 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/invoke-azcloudserviceroleinstancereimage +schema: 2.0.0 +--- + +# Invoke-AzCloudServiceRoleInstanceReimage + +## SYNOPSIS +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## SYNTAX + +### Reimage (Default) +``` +Invoke-AzCloudServiceRoleInstanceReimage -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ReimageViaIdentity +``` +Invoke-AzCloudServiceRoleInstanceReimage -InputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. + +## EXAMPLES + +### Example 1: Reimage role instance of a cloud service +```powershell +PS C:\> Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command reimages role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: Reimage +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: ReimageViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: Reimage +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: Reimage +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Reimage +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudService.md b/src/CloudService/help/New-AzCloudService.md new file mode 100644 index 000000000000..6081825f707c --- /dev/null +++ b/src/CloudService/help/New-AzCloudService.md @@ -0,0 +1,539 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/new-azcloudservice +schema: 2.0.0 +--- + +# New-AzCloudService + +## SYNOPSIS +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + +## SYNTAX + +``` +New-AzCloudService -Name -ResourceGroupName -Location [-SubscriptionId ] + [-Configuration ] [-ConfigurationUrl ] [-ExtensionProfile ] + [-NetworkProfile ] [-OSProfile ] [-PackageUrl ] + [-RoleProfile ] [-StartCloudService] [-Tag ] + [-UpgradeMode ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + +## EXAMPLES + +### Example 1: Create new cloud service with single role +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile +``` + +Above set of commands creates a cloud service with single role + +### Example 2: Create new cloud service with single role and RDP extension +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosoOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +PS C:\> $extensionProfile = @{extension = @($extension)} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile +``` + +Above set of commands creates a cloud service with single role and RDP extension + +### Example 3: Create new cloud service with single role and certificate from key vault +```powershell +# Create role profile object +PS C:\> $role = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role)} + +# Create OS profile object +$keyVault = Get-AzKeyVault -ResourceGroupName ContosOrg -VaultName ContosKeyVault +$certificate=Get-AzKeyVaultCertificate -VaultName ContosKeyVault -Name ContosCert +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +$osProfile = @{secret = @($secretGroup)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -OSProfile $osProfile +``` + +Above set of commands creates a cloud service with single role and certificate from key vault. + +### Example 4: Create new cloud service with multiple roles and extensions +```powershell +# Create role profile object +PS C:\> $role1 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoFrontend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $role2 = New-AzCloudServiceCloudServiceRoleProfilePropertiesObject -Name 'ContosoBackend' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +PS C:\> $roleProfile = @{role = @($role1, $role2)} + +# Create network profile object +PS C:\> $publicIp = Get-AzPublicIpAddress -ResourceGroupName ContosOrg -Name ContosIp +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +PS C:\> $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + +# Create RDP extension object +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' + +# Create Geneva extension object +PS C:\> $genevaExtension = New-AzCloudServiceExtensionObject -Name GenevaExtension -Publisher Microsoft.Azure.Geneva -Type GenevaMonitoringPaaS -TypeHandlerVersion "2.14.0.2" +PS C:\> $extensionProfile = @{extension = @($rdpExtension, $genevaExtension)} + +# Add tags +$tag=@{"Owner" = "Contoso"} + +# Read Configuration File +$cscfgFile = "" +$cscfgContent = Get-Content $cscfgFile | Out-String + +# Create cloud service +$cloudService = New-AzCloudService ` + -Name ContosoCS ` + -ResourceGroupName ContosOrg ` + -Location EastUS ` + -PackageUrl "https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ` + -Configuration $cscfgContent ` + -UpgradeMode 'Auto' ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile ` + -Tag $tag +``` + +Above set of commands creates a cloud service with single role and certificate from key vault. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Configuration +Specifies the XML service configuration (.cscfg) for the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationUrl +Specifies a URL that refers to the location of the service configuration in the Blob service. +The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExtensionProfile +Describes a cloud service extension profile. +To construct, see NOTES section for EXTENSIONPROFILE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceExtensionProfile +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkProfile +Network Profile for the cloud service. +To construct, see NOTES section for NETWORKPROFILE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceNetworkProfile +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OSProfile +Describes the OS profile for the cloud service. +To construct, see NOTES section for OSPROFILE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceOSProfile +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PackageUrl +Specifies a URL that refers to the location of the service package in the Blob service. +The service package URL can be Shared Access Signature (SAS) URI from any storage account.This is a write-only property and is not returned in GET calls. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleProfile +Describes the role profile for the cloud service. +To construct, see NOTES section for ROLEPROFILE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudServiceRoleProfile +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartCloudService +(Optional) Indicates whether to start the cloud service immediately after it is created. +The default value is `true`.If false, the service model is still deployed, but the code is not run immediately. +Instead, the service is PoweredOff until you call Start, at which time the service will be started. +A deployed service still incurs charges, even if it is poweredoff. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpgradeMode +Update mode for the cloud service. +Role instances are allocated to update domains when the service is deployed. +Updates can be initiated manually in each update domain or initiated automatically in all update domains.Possible Values are \
\
**Auto**\
\
**Manual** \
\
**Simultaneous**\
\
If not specified, the default value is Auto. +If set to Manual, PUT UpdateDomain must be called to apply the update. +If set to Auto, the update is automatically applied to each update domain in sequence. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Support.CloudServiceUpgradeMode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +EXTENSIONPROFILE : Describes a cloud service extension profile. + - `[Extension ]`: List of extensions for the cloud service. + - `[AutoUpgradeMinorVersion ]`: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + - `[ForceUpdateTag ]`: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + - `[Name ]`: The name of the extension. + - `[ProtectedSetting ]`: Protected settings for the extension which are encrypted before sent to the role instance. + - `[ProtectedSettingFromKeyVaultSecretUrl ]`: + - `[Publisher ]`: The name of the extension handler publisher. + - `[RolesAppliedTo ]`: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + - `[Setting ]`: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + - `[SourceVaultId ]`: Resource Id + - `[Type ]`: Specifies the type of the extension. + - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + +NETWORKPROFILE : Network Profile for the cloud service. + - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. + - `[FrontendIPConfiguration ]`: List of IP + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + - `[Name ]`: Resource Name + - `[SwappableCloudService ]`: + - `[Id ]`: Resource Id + +OSPROFILE : Describes the OS profile for the cloud service. + - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. + - `[SourceVaultId ]`: Resource Id + - `[VaultCertificate ]`: The list of key vault references in SourceVault which contain certificates. + - `[CertificateUrl ]`: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + +ROLEPROFILE : Describes the role profile for the cloud service. + - `[Role ]`: List of roles for the cloud service. + - `[Name ]`: Resource name. + - `[SkuCapacity ]`: Specifies the number of role instances in the cloud service. + - `[SkuName ]`: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + - `[SkuTier ]`: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md b/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md new file mode 100644 index 000000000000..c2f6e3c0b89e --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceDiagnosticsExtension.md @@ -0,0 +1,204 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/new-azcloudservicediagnosticsextension +schema: 2.0.0 +--- + +# New-AzCloudServiceDiagnosticsExtension + +## SYNOPSIS +Create a in-memory object for Diagnostics Extension + +## SYNTAX + +``` +New-AzCloudServiceDiagnosticsExtension [-Name] [-ResourceGroupName] + [-CloudServiceName] [-DiagnosticsConfigurationPath] [-StorageAccountName] + [-StorageAccountKey] [[-Subscription] ] [[-TypeHandlerVersion] ] + [[-RolesAppliedTo] ] [[-AutoUpgradeMinorVersion] ] [] +``` + +## DESCRIPTION +Create a in-memory object for Diagnostics Extension + +## EXAMPLES + +### Example 1: Create diagnostics extension object +```powershell +PS C:\> $storageAccountKey = Get-AzStorageAccountKey -ResourceGroupName "ContosOrg" -Name "ContosSA" +PS C:\> $configFile = "" +PS C:\> $extension = New-AzCloudServiceDiagnosticsExtension -Name "WADExtension" -ResourceGroupName "ContosOrg" -CloudServiceName "ContosCS" -StorageAccountName "ContosSA" -StorageAccountKey $storageAccountKey[0].Value -DiagnosticsConfigurationPath $configFile -TypeHandlerVersion "1.5" -AutoUpgradeMinorVersion $true +``` + +This command creates diagnostics extension object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -AutoUpgradeMinorVersion +Auto upgrade minor version. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of Cloud Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DiagnosticsConfigurationPath +Specifies the configuration for Azure Diagnostics. +You can download the schema by using the following command: (Get-AzureServiceAvailableExtension -ExtensionName 'PaaSDiagnostics' -ProviderNamespace 'Microsoft.Azure.Diagnostics').PublicConfigurationSchema | Out-File -Encoding utf8 -FilePath 'WadConfig.xsd' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of Diagnostics Extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group name of Cloud Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RolesAppliedTo +Roles applied to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountKey +Storage Account Key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountName +Name of the Storage Account. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Subscription +Subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TypeHandlerVersion +Specifies the version of the extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceExtensionObject.md b/src/CloudService/help/New-AzCloudServiceExtensionObject.md new file mode 100644 index 000000000000..7799f8a70f48 --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceExtensionObject.md @@ -0,0 +1,170 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceExtensionObject +schema: 2.0.0 +--- + +# New-AzCloudServiceExtensionObject + +## SYNOPSIS +Create a in-memory object for Extension + +## SYNTAX + +``` +New-AzCloudServiceExtensionObject [-AutoUpgradeMinorVersion ] [-Name ] + [-ProtectedSetting ] [-Publisher ] [-RolesAppliedTo ] [-Setting ] + [-Type ] [-TypeHandlerVersion ] [] +``` + +## DESCRIPTION +Create a in-memory object for Extension + +## EXAMPLES + +### Example 1: Create Geneva extension object +```powershell +PS C:\> $extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2" +``` + +This command creates Geneva extension object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -AutoUpgradeMinorVersion +Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtectedSetting +Protected settings for the extension which are encrypted before sent to the VM. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Publisher +Publisher. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RolesAppliedTo +RolesAppliedTo. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Setting +Public settings for the extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TypeHandlerVersion +TypeHandlerVersion. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md b/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md new file mode 100644 index 000000000000..f352e12f4d6b --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceLoadBalancerConfigurationObject.md @@ -0,0 +1,93 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerConfigurationObject +schema: 2.0.0 +--- + +# New-AzCloudServiceLoadBalancerConfigurationObject + +## SYNOPSIS +Create a in-memory object for LoadBalancerConfiguration + +## SYNTAX + +``` +New-AzCloudServiceLoadBalancerConfigurationObject + [-FrontendIPConfiguration ] [-Name ] [] +``` + +## DESCRIPTION +Create a in-memory object for LoadBalancerConfiguration + +## EXAMPLES + +### Example 1: Create load balancer configuration object +```powershell +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIP.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +``` + +This command creates load balancer configuration object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -FrontendIPConfiguration +FrontendIPConfiguration. +To construct, see NOTES section for FRONTENDIPCONFIGURATION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of LoadBalancerConfiguration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerConfiguration + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +FRONTENDIPCONFIGURATION : FrontendIPConfiguration. + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md b/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md new file mode 100644 index 000000000000..36ea9a4d2546 --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.md @@ -0,0 +1,81 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceLoadBalancerFrontendIPConfigurationObject +schema: 2.0.0 +--- + +# New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject + +## SYNOPSIS +Create a in-memory object for LoadBalancerFrontendIPConfiguration + +## SYNTAX + +``` +New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject [-Name ] [-PublicIPAddressId ] + [] +``` + +## DESCRIPTION +Create a in-memory object for LoadBalancerFrontendIPConfiguration + +## EXAMPLES + +### Example 1: Create load balancer frontend IP configuration object +```powershell +PS C:\> $publicIP = Get-AzPublicIpAddress -ResourceGroupName 'ContosoOrg' -Name 'ContosoPublicIP' +PS C:\> $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name 'ContosoFe' -PublicIPAddressId $publicIp.Id +PS C:\> $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name 'ContosoLB' -FrontendIPConfiguration $feIpConfig +``` + +This command creates load balancer frontend IP configuration object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -Name +Name of FrontendIpConfigration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicIPAddressId +Resource Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md b/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md new file mode 100644 index 000000000000..3f4777a12733 --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceRemoteDesktopExtensionObject.md @@ -0,0 +1,142 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-azcloudserviceremotedesktopextensionobject +schema: 2.0.0 +--- + +# New-AzCloudServiceRemoteDesktopExtensionObject + +## SYNOPSIS +Create a in-memory object for Remote Desktop Extension + +## SYNTAX + +``` +New-AzCloudServiceRemoteDesktopExtensionObject [-Name] [-Credential] + [[-Expiration] ] [[-TypeHandlerVersion] ] [[-RolesAppliedTo] ] + [[-AutoUpgradeMinorVersion] ] [] +``` + +## DESCRIPTION +Create a in-memory object for Remote Desktop Extension + +## EXAMPLES + +### Example 1: Create remote desktop extension object +```powershell +PS C:\> $credential = Get-Credential +PS C:\> $expiration = (Get-Date).AddYears(1) +PS C:\> $extension = New-AzCloudServiceRemoteDesktopExtensionObject -Name 'RDPExtension' -Credential $credential -Expiration $expiration -TypeHandlerVersion '1.2.1' +``` + +This command creates remote desktop extension object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -AutoUpgradeMinorVersion +Auto upgrade minor version. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Credential +Credential for Remote Desktop Extension. + +```yaml +Type: System.Management.Automation.PSCredential +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expiration +Expiration for Remote Desktop Extension. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of Remote Desktop Extension. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RolesAppliedTo +Roles applied to. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TypeHandlerVersion +Remote Desktop Extension version. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.Extension + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md b/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md new file mode 100644 index 000000000000..212ca9fec2fd --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceRoleProfilePropertiesObject.md @@ -0,0 +1,109 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceRoleProfilePropertiesObject +schema: 2.0.0 +--- + +# New-AzCloudServiceRoleProfilePropertiesObject + +## SYNOPSIS +Create a in-memory object for CloudServiceRoleProfileProperties + +## SYNTAX + +``` +New-AzCloudServiceRoleProfilePropertiesObject [-Name ] [-SkuCapacity ] [-SkuName ] + [-SkuTier ] [] +``` + +## DESCRIPTION +Create a in-memory object for CloudServiceRoleProfileProperties + +## EXAMPLES + +### Example 1: Create role profile properties object +```powershell +$role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2 +``` + +This command creates role profile properties object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -Name +Name of role profile. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuCapacity +Specifies the number of role instances in the cloud service. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +The sku name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +SkuTier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceRoleProfileProperties + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md b/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md new file mode 100644 index 000000000000..cab937806dd2 --- /dev/null +++ b/src/CloudService/help/New-AzCloudServiceVaultSecretGroupObject.md @@ -0,0 +1,80 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.CloudService/new-AzCloudServiceVaultSecretGroupObject +schema: 2.0.0 +--- + +# New-AzCloudServiceVaultSecretGroupObject + +## SYNOPSIS +Create a in-memory object for Vault Secret Group + +## SYNTAX + +``` +New-AzCloudServiceVaultSecretGroupObject [-CertificateUrl ] [-Id ] [] +``` + +## DESCRIPTION +Create a in-memory object for Secret Group + +## EXAMPLES + +### Example 1: Create vault secret group object +```powershell +$keyVault = Get-AzKeyVault -VaultName 'ContosoKeyVault' +$certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert' +$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId +``` + +This command creates vault secret group object which is used for creating or updating a cloud service. +For more details see New-AzCloudService. + +## PARAMETERS + +### -CertificateUrl +This is the URL of a certificate that has been uploaded to Key Vault as a secret. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Key Vault Resource Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudServiceVaultSecretGroup + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/Remove-AzCloudService.md b/src/CloudService/help/Remove-AzCloudService.md new file mode 100644 index 000000000000..f853edeac29a --- /dev/null +++ b/src/CloudService/help/Remove-AzCloudService.md @@ -0,0 +1,224 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudservice +schema: 2.0.0 +--- + +# Remove-AzCloudService + +## SYNOPSIS +Deletes a cloud service. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzCloudService -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a cloud service. + +## EXAMPLES + +### Example 1: Remove a cloud service +```powershell +PS C:\> Remove-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command removes the cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md b/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..19de66a05e0d --- /dev/null +++ b/src/CloudService/help/Remove-AzCloudServiceRoleInstance.md @@ -0,0 +1,241 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/remove-azcloudserviceroleinstance +schema: 2.0.0 +--- + +# Remove-AzCloudServiceRoleInstance + +## SYNOPSIS +Deletes role instances in a cloud service. + +## SYNTAX + +### DeleteExpanded (Default) +``` +Remove-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + -RoleInstance [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityExpanded +``` +Remove-AzCloudServiceRoleInstance -InputObject -RoleInstance + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes role instances in a cloud service. + +## EXAMPLES + +### Example 1: Remove a cloud service role instance +```powershell +PS C:\> Remove-AzCloudServiceInstance -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "ContosoFrontEnd_IN_0" +``` + +This command removes the role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: DeleteExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: DeleteViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: DeleteExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstance +List of cloud service role instance names. +Value of '*' will signify all role instances of the cloud service. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: DeleteExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Restart-AzCloudService.md b/src/CloudService/help/Restart-AzCloudService.md new file mode 100644 index 000000000000..014d02009e38 --- /dev/null +++ b/src/CloudService/help/Restart-AzCloudService.md @@ -0,0 +1,249 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudservice +schema: 2.0.0 +--- + +# Restart-AzCloudService + +## SYNOPSIS +Restarts one or more role instances in a cloud service. + +## SYNTAX + +### RestartExpanded (Default) +``` +Restart-AzCloudService -Name -ResourceGroupName -RoleInstance + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RestartViaIdentityExpanded +``` +Restart-AzCloudService -InputObject -RoleInstance + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Restarts one or more role instances in a cloud service. + +## EXAMPLES + +### Example 1: Restart role instances of cloud service +```powershell +PS C:\> $roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1") +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances +``` + +This command restarts 2 role instances ContosoFrontEnd_IN_0 and ContosoBackEnd_IN_1 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Restart all roles of cloud service +```powershell +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*" +``` + +This command restarts all role instances of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RestartViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: RestartExpanded +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: RestartExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstance +List of cloud service role instance names. +Value of '*' will signify all role instances of the cloud service. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: RestartExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md b/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md new file mode 100644 index 000000000000..6275e3afc3fc --- /dev/null +++ b/src/CloudService/help/Restart-AzCloudServiceRoleInstance.md @@ -0,0 +1,240 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/restart-azcloudserviceroleinstance +schema: 2.0.0 +--- + +# Restart-AzCloudServiceRoleInstance + +## SYNOPSIS +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + +## SYNTAX + +### Restart (Default) +``` +Restart-AzCloudServiceRoleInstance -CloudServiceName -ResourceGroupName + -RoleInstanceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RestartViaIdentity +``` +Restart-AzCloudServiceRoleInstance -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. + +## EXAMPLES + +### Example 1: Restart role instance of a cloud service +```powershell +PS C:\> Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0" +``` + +This command restarts role instance named ContosoFrontEnd_IN_0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: RestartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RoleInstanceName +Name of the role instance. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Set-AzCloudServiceUpdateDomain.md b/src/CloudService/help/Set-AzCloudServiceUpdateDomain.md new file mode 100644 index 000000000000..c242b1a5dd2a --- /dev/null +++ b/src/CloudService/help/Set-AzCloudServiceUpdateDomain.md @@ -0,0 +1,202 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/set-azcloudserviceupdatedomain +schema: 2.0.0 +--- + +# Set-AzCloudServiceUpdateDomain + +## SYNOPSIS +Updates the role instances in the specified update domain. + +## SYNTAX + +``` +Set-AzCloudServiceUpdateDomain -CloudServiceName -ResourceGroupName -UpdateDomain + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates the role instances in the specified update domain. + +## EXAMPLES + +### Example 1: Update role instance in update domain +```powershell +PS C:\> Set-AzCloudServiceUpdateDomain -CloudServiceName "ContosoCS" -ResourceGroupName "ContosOrg" -UpdateDomain 0 +``` + +This command updates role instances in update domain 0 of cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UpdateDomain +Specifies an integer value that identifies the update domain. +Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CloudService/help/Start-AzCloudService.md b/src/CloudService/help/Start-AzCloudService.md new file mode 100644 index 000000000000..f6f747124fd9 --- /dev/null +++ b/src/CloudService/help/Start-AzCloudService.md @@ -0,0 +1,224 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/start-azcloudservice +schema: 2.0.0 +--- + +# Start-AzCloudService + +## SYNOPSIS +Starts the cloud service. + +## SYNTAX + +### Start (Default) +``` +Start-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StartViaIdentity +``` +Start-AzCloudService -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Starts the cloud service. + +## EXAMPLES + +### Example 1: Start cloud service +```powershell +PS C:\> Start-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command starts all the role instances that belong to the the cloud service named ContosoCS. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: StartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Stop-AzCloudService.md b/src/CloudService/help/Stop-AzCloudService.md new file mode 100644 index 000000000000..5991607b67fb --- /dev/null +++ b/src/CloudService/help/Stop-AzCloudService.md @@ -0,0 +1,226 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/stop-azcloudservice +schema: 2.0.0 +--- + +# Stop-AzCloudService + +## SYNOPSIS +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. + +## SYNTAX + +### PowerOff (Default) +``` +Stop-AzCloudService -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### PowerOffViaIdentity +``` +Stop-AzCloudService -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Power off the cloud service. +Note that resources are still attached and you are getting charged for the resources. + +## EXAMPLES + +### Example 1: Stop cloud service +```powershell +PS C:\> Stop-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" +``` + +This command stops all the role instances that belong to the the cloud service named ContosoCS. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: PowerOffViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the cloud service. + +```yaml +Type: System.String +Parameter Sets: PowerOff +Aliases: CloudServiceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of the resource group. + +```yaml +Type: System.String +Parameter Sets: PowerOff +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: PowerOff +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +## RELATED LINKS + diff --git a/src/CloudService/help/Switch-AzCloudService.md b/src/CloudService/help/Switch-AzCloudService.md new file mode 100644 index 000000000000..123c1ac72b92 --- /dev/null +++ b/src/CloudService/help/Switch-AzCloudService.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/Switch-AzCloudService +schema: 2.0.0 +--- + +# Switch-AzCloudService + +## SYNOPSIS +Swaps VIPs between two cloud service (extended support) load balancers. + +## SYNTAX + +### CloudServiceName (Default) +``` +Switch-AzCloudService -CloudServiceName -ResourceGroupName [-SubscriptionId ] + [-Async] [-DefaultProfile ] [-AsJob] [-Confirm] [-WhatIf] [] +``` + +### CloudService +``` +Switch-AzCloudService -CloudService [-SubscriptionId ] [-Async] + [-DefaultProfile ] [-AsJob] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Swaps VIPs between two cloud service (extended support) load balancers. + +## EXAMPLES + +### Example 1: Switch cloud service using name +```powershell +PS C:\> Switch-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca + +``` + +Above command invokes the vipswap operation on the Cloud service with name 'BService' and will perform the operation once the user confirms the action on the confirmation prompt. +'BService' with be swapped with its swappable cloud service. + +### Example 2: Switch cloud service using cloud service object +```powershell +PS C:\> $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca +PS C:\> Switch-AzCloudService -CloudService $cs + +``` + +Above command invokes the vipswap operation on the Cloud service with name 'BService' and will perform the operation once the user confirms the action on the confirmation prompt. +'BService' with be swapped with its swappable cloud service. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Async + + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudService +To construct, see NOTES section for CLOUDSERVICE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.CloudService +Parameter Sets: CloudService +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CloudServiceName + + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName + + +```yaml +Type: System.String +Parameter Sets: CloudServiceName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription credentials which uniquely identify Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +CLOUDSERVICE : + - `Location `: Resource location. + - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. + - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[ExtensionProfile ]`: Describes a cloud service extension profile. + - `[Extension ]`: List of extensions for the cloud service. + - `[AutoUpgradeMinorVersion ]`: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + - `[ForceUpdateTag ]`: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + - `[Name ]`: The name of the extension. + - `[ProtectedSetting ]`: Protected settings for the extension which are encrypted before sent to the role instance. + - `[ProtectedSettingFromKeyVaultSecretUrl ]`: + - `[Publisher ]`: The name of the extension handler publisher. + - `[RolesAppliedTo ]`: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + - `[Setting ]`: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + - `[SourceVaultId ]`: Resource Id + - `[Type ]`: Specifies the type of the extension. + - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + - `[NetworkProfile ]`: Network Profile for the cloud service. + - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. + - `[FrontendIPConfiguration ]`: List of IP + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + - `[Name ]`: Resource Name + - `[SwappableCloudService ]`: + - `[Id ]`: Resource Id + - `[OSProfile ]`: Describes the OS profile for the cloud service. + - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. + - `[SourceVaultId ]`: Resource Id + - `[VaultCertificate ]`: The list of key vault references in SourceVault which contain certificates. + - `[CertificateUrl ]`: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + - `[PackageUrl ]`: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[RoleProfile ]`: Describes the role profile for the cloud service. + - `[Role ]`: List of roles for the cloud service. + - `[Name ]`: Resource name. + - `[SkuCapacity ]`: Specifies the number of role instances in the cloud service. + - `[SkuName ]`: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + - `[SkuTier ]`: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + - `[StartCloudService ]`: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[UpgradeMode ]`: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + +## RELATED LINKS + diff --git a/src/CloudService/help/Update-AzCloudService.md b/src/CloudService/help/Update-AzCloudService.md new file mode 100644 index 000000000000..8a370445ce12 --- /dev/null +++ b/src/CloudService/help/Update-AzCloudService.md @@ -0,0 +1,272 @@ +--- +external help file: +Module Name: Az.CloudService +online version: https://docs.microsoft.com/en-us/powershell/module/az.cloudservice/update-azcloudservice +schema: 2.0.0 +--- + +# Update-AzCloudService + +## SYNOPSIS +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + +## SYNTAX + +``` +Update-AzCloudService -InputObject -Parameter + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create or update a cloud service. +Please note some properties can be set only during cloud service creation. + +## EXAMPLES + +### Example 1: Add RDP extension to existing cloud service +```powershell +# Create RDP extension object +PS C:\> $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPExtension" -Credential $credential -Expiration $expiration -TypeHandlerVersion "1.2.1" +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Add RDP extension to existing cloud service extension object +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension + $rdpExtension +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands adds a RDP extension to already existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 2: Remove all extensions from cloud service +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Set extension to empty list +PS C:\> $cloudService.ExtensionProfile.Extension = @() +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands removes all extensions from existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 3: Remove RDP extension from cloud service +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" +# Remove extension by name RDPExtension +PS C:\> $cloudService.ExtensionProfile.Extension = $cloudService.ExtensionProfile.Extension | Where-Object { $_.Name -ne "RDPExtension" } +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands removes RDP extension from existing cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +### Example 4: Scale-Out / Scale-In role instances +```powershell +# Get existing cloud service +PS C:\> $cloudService = Get-AzCloudService -ResourceGroup "ContosOrg" -CloudServiceName "ContosoCS" + +# Scale-out all role instance count by 1 +PS C:\> $cloudService.RoleProfile.Role | ForEach-Object {$_.SkuCapacity += 1} + +# Scale-in ContosoFrontend role instance count by 1 +PS C:\> $role = $cloudService.RoleProfile.Role | Where-Object {$_.Name -eq "ContosoFrontend"} +PS C:\> $role.SkuCapacity -= 1 + +# Update cloud service configuration as per the new role instance count +PS C:\> $cloudService.Configuration = $configuration + +# Update cloud service +PS C:\> $cloudService | Update-AzCloudService +``` + +Above set of commands shows how to scale-out and scale-in role instance count for cloud service named ContosoCS that belongs to the resource group named ContosOrg. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Describes the cloud service. +To construct, see NOTES section for PARAMETER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.ICloudServiceIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ICloudService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[CloudServiceName ]`: + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: + - `[RoleInstanceName ]`: Name of the role instance. + - `[RoleName ]`: Name of the role. + - `[SubscriptionId ]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + - `[UpdateDomain ]`: Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on. + +PARAMETER : Describes the cloud service. + - `Location `: Resource location. + - `[Configuration ]`: Specifies the XML service configuration (.cscfg) for the cloud service. + - `[ConfigurationUrl ]`: Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[ExtensionProfile ]`: Describes a cloud service extension profile. + - `[Extension ]`: List of extensions for the cloud service. + - `[AutoUpgradeMinorVersion ]`: Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + - `[ForceUpdateTag ]`: Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not + - `[Name ]`: The name of the extension. + - `[ProtectedSetting ]`: Protected settings for the extension which are encrypted before sent to the role instance. + - `[ProtectedSettingFromKeyVaultSecretUrl ]`: + - `[Publisher ]`: The name of the extension handler publisher. + - `[RolesAppliedTo ]`: Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + - `[Setting ]`: Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + - `[SourceVaultId ]`: Resource Id + - `[Type ]`: Specifies the type of the extension. + - `[TypeHandlerVersion ]`: Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + - `[NetworkProfile ]`: Network Profile for the cloud service. + - `[LoadBalancerConfiguration ]`: The list of load balancer configurations for the cloud service. + - `[FrontendIPConfiguration ]`: List of IP + - `[Name ]`: + - `[PrivateIPAddress ]`: The private IP address referenced by the cloud service. + - `[PublicIPAddressId ]`: Resource Id + - `[SubnetId ]`: Resource Id + - `[Name ]`: Resource Name + - `[SwappableCloudService ]`: + - `[Id ]`: Resource Id + - `[OSProfile ]`: Describes the OS profile for the cloud service. + - `[Secret ]`: Specifies set of certificates that should be installed onto the role instances. + - `[SourceVaultId ]`: Resource Id + - `[VaultCertificate ]`: The list of key vault references in SourceVault which contain certificates. + - `[CertificateUrl ]`: This is the URL of a certificate that has been uploaded to Key Vault as a secret. + - `[PackageUrl ]`: Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls. + - `[RoleProfile ]`: Describes the role profile for the cloud service. + - `[Role ]`: List of roles for the cloud service. + - `[Name ]`: Resource name. + - `[SkuCapacity ]`: Specifies the number of role instances in the cloud service. + - `[SkuName ]`: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku. + - `[SkuTier ]`: Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic** + - `[StartCloudService ]`: (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[UpgradeMode ]`: Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are

**Auto**

**Manual**

**Simultaneous**

If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + +## RELATED LINKS + diff --git a/src/CloudService/how-to.md b/src/CloudService/how-to.md new file mode 100644 index 000000000000..55bb2d72a375 --- /dev/null +++ b/src/CloudService/how-to.md @@ -0,0 +1,58 @@ +# How-To +This document describes how to develop for `Az.CloudService`. + +## Building `Az.CloudService` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [readme.md](exports/readme.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [readme.md](custom/readme.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. + +## Testing `Az.CloudService` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. + +## Packing `Az.CloudService` +To pack `Az.CloudService` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.CloudService`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.CloudService.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.CloudService.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.CloudService`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.CloudService` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/CloudService/internal/Az.CloudService.internal.psm1 b/src/CloudService/internal/Az.CloudService.internal.psm1 new file mode 100644 index 000000000000..a65c510ae4df --- /dev/null +++ b/src/CloudService/internal/Az.CloudService.internal.psm1 @@ -0,0 +1,38 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.CloudService.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.CloudService.Module]::Instance + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = $PSScriptRoot + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } +# endregion diff --git a/src/CloudService/internal/readme.md b/src/CloudService/internal/readme.md new file mode 100644 index 000000000000..5657c03a23ae --- /dev/null +++ b/src/CloudService/internal/readme.md @@ -0,0 +1,14 @@ +# Internal +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The `Az.CloudService.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.CloudService`. Instead, this sub-module is imported by the `..\custom\Az.CloudService.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.CloudService.internal\Get-Example` would call an internal cmdlet named `Get-Example`. + +## Purpose +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.CloudService`. \ No newline at end of file diff --git a/src/CloudService/pack-module.ps1 b/src/CloudService/pack-module.ps1 new file mode 100644 index 000000000000..c22fad33d87b --- /dev/null +++ b/src/CloudService/pack-module.ps1 @@ -0,0 +1,16 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +Write-Host -ForegroundColor Green 'Packing module...' +dotnet pack $PSScriptRoot --no-build /nologo +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CloudService/readme.md b/src/CloudService/readme.md new file mode 100644 index 000000000000..edf1d14640d5 --- /dev/null +++ b/src/CloudService/readme.md @@ -0,0 +1,238 @@ + +# Az.CloudService +This directory contains the PowerShell module for the CloudService service. + +--- +## Status +[![Az.CloudService](https://img.shields.io/powershellgallery/v/Az.CloudService.svg?style=flat-square&label=Az.CloudService "Az.CloudService")](https://www.powershellgallery.com/packages/Az.CloudService/) + +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.CloudService`, see [how-to.md](how-to.md). + + +--- +## Generation Requirements +Use of the beta version of `autorest.powershell` generator requires the following: +- [NodeJS LTS](https://nodejs.org) (10.15.x LTS preferred) + - **Note**: It *will not work* with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes. +> If you want an easy way to install and update Node, [NVS - Node Version Switcher](../nodejs/installing-via-nvs.md) or [NVM - Node Version Manager](../nodejs/installing-via-nvm.md) is recommended. +- [AutoRest](https://aka.ms/autorest) v3 beta
`npm install -g autorest@beta`
  +- PowerShell 6.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g pwsh`
  +- .NET Core SDK 2.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g dotnet-sdk-2.2`
  + +## Run Generation +In this directory, run AutoRest: +> `autorest` + +--- +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +branch: 88fa0d128fbcf2d1ff3b330add6b4425c84f4149 +require: + - $(this-folder)/../readme.azure.noprofile.md +input-file: + # - $(this-folder)/resources/CloudService.json + - $(repo)/specification/compute/resource-manager/Microsoft.Compute/preview/2020-10-01-preview/cloudService.json + +title: CloudService +module-version: 0.1.0 + +identity-correction-for-post: true + +directive: + - where: + variant: ^Restart$|^RestartViaIdentity$|^Reimage$|^ReimageViaIdentity$|^Rebuild$|^RebuildViaIdentity$ + subject: ^CloudService$|^RebuildCloudService$ + remove: true + + - where: + subject: ^CloudService$ + variant: ^ReimageExpanded$|^ReimageViaIdentityExpanded$ + set: + subject: CloudServiceReimage + verb: Invoke + - where: + subject: ^CloudServiceRoleInstance$ + variant: ^Reimage$|^ReimageViaIdentity$ + set: + subject: CloudServiceRoleInstanceReimage + verb: Invoke + + - where: + subject: ^RebuildCloudService$ + variant: ^RebuildExpanded$|^RebuildViaIdentityExpanded$ + set: + subject: Rebuild + - where: + subject: ^RebuildCloudServiceRoleInstance$ + variant: ^Rebuild$|^RebuildViaIdentity$ + set: + subject: RoleInstanceRebuild + + - where: + subject: ^CloudServiceUpdateDomain$ + verb: Get + remove: true + - where: + subject: ^WalkCloudServiceUpdateDomain$ + variant: ^Walk$ + remove: true + - where: + subject: ^WalkCloudServiceUpdateDomain$ + set: + subject: UpdateDomain + verb: Set + + - where: + subject: ^CloudServiceRole$ + verb: Get + remove: true + - where: + subject: ^CloudServiceRoleInstance$ + verb: Remove + remove: true + - where: + variant: ^Delete$|^DeleteViaIdentity$ + subject: CloudServiceInstance + verb: Remove + remove: true + - where: + subject: ^CloudServiceInstance$ + verb: Remove + set: + subject: CloudServiceRoleInstance + + - where: + subject: ^CloudService$ + verb: Update|Set + remove: true + + - where: + variant: ^Create$|^CreateViaIdentityExpanded$ + verb: New + remove: true + + - where: + variant: ^CreateViaIdentity$ + verb: New + set: + verb: Update + + - where: + variant: ^GetViaIdentity$ + subject: ^CloudServiceRoleInstanceRemoteDesktopFile$|^CloudServiceInstanceView$|^CloudServiceRoleInstanceView$ + verb: Get + remove: true + + - where: + subject: ^CloudService$ + parameter-name: Name + set: + parameter-name: Name + alias-name: CloudServiceName + + - where: + subject: ^LoadBalancerProbe$|^LoadBalancerNetworkInterface$|^LoadBalancerOutboundRule$|^LoadBalancerLoadBalancingRule$|^LoadBalancerInboundNatRule$|^LoadBalancerFrontendIPConfiguration$|^LoadBalancerBackendAddressPool$|^InboundNatRule$|^LoadBalancer$|^LoadBalancerTag$ + remove: true + - no-inline: # choose ONE of these models to disable inlining + - PublicIPAddressPropertiesFormat + - IPConfiguration + - IPConfigurationPropertiesFormat + - PublicIPAddress + - CloudServiceRoleProfile + - CloudServiceOsProfile + - CloudServiceNetworkProfile + - CloudServiceExtensionProfile + - where: + subject: ^LoadBalancerPublicIPAddress$ + verb: Switch + hide: true + + - from: source-file-csharp + where: $ + transform: $ = $.replace('{_frontendIPConfiguration = If( json?.PropertyT("frontendIPConfigurations"), out var __jsonFrontendIPConfigurations) ? If( __jsonFrontendIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.CloudService.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.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration.FromJson(__u) )) ))() :' + ' null' + ' :' + ' FrontendIPConfiguration;}', 'var frontendIpConfigurationJsonArray = json?.PropertyT("frontendIpConfigurations") as Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.Json.JsonArray;\n\t\t\t_frontendIPConfiguration = global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(frontendIpConfigurationJsonArray, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.ILoadBalancerFrontendIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20201001Preview.LoadBalancerFrontendIPConfiguration.FromJson(__u) )));'); + + - where: + model-name: CloudService + set: + format-table: + properties: + - ResourceGroupName + - Name + - Location + - ProvisioningState + - where: + model-name: Extension + set: + format-table: + properties: + - Name + - Publisher + - Type + - TypeHandlerVersion + - ProvisioningState + - where: + model-name: CloudServiceRoleProfileProperties + set: + format-table: + properties: + - Name + - SkuName + - SkuTier + - SkuCapacity + - where: + model-name: LoadBalancerConfiguration + set: + format-table: + properties: + - Name + - FrontendIPConfiguration + + - where: + model-name: RoleInstanceView + set: + format-table: + properties: + - Statuses + - PlatformFaultDomain + - PlatformUpdateDomain + + - where: + model-name: RoleInstance + set: + format-table: + properties: + - Name + - Location + - SkuName + - SkuTier + + - where: + model-name: CloudServiceInstanceView + set: + format-table: + properties: + - Statuses + - RoleInstanceStatusesSummary + +``` diff --git a/src/CloudService/run-module.ps1 b/src/CloudService/run-module.ps1 new file mode 100644 index 000000000000..89db14259380 --- /dev/null +++ b/src/CloudService/run-module.ps1 @@ -0,0 +1,59 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Code) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$isAzure = $true +if($isAzure) { + . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CloudService.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +function Prompt { + Write-Host -NoNewline -ForegroundColor Green "PS $(Get-Location)" + Write-Host -NoNewline -ForegroundColor Gray ' [' + Write-Host -NoNewline -ForegroundColor White -BackgroundColor DarkCyan $moduleName + ']> ' +} + +# where we would find the launch.json file +$vscodeDirectory = New-Item -ItemType Directory -Force -Path (Join-Path $PSScriptRoot '.vscode') +$launchJson = Join-Path $vscodeDirectory 'launch.json' + +# if there is a launch.json file, let's just assume -Code, and update the file +if(($Code) -or (test-Path $launchJson) ) { + $launchContent = '{ "version": "0.2.0", "configurations":[{ "name":"Attach to PowerShell", "type":"coreclr", "request":"attach", "processId":"' + ([System.Diagnostics.Process]::GetCurrentProcess().Id) + '", "justMyCode":false }] }' + Set-Content -Path $launchJson -Value $launchContent + if($Code) { + # only launch vscode if they say -code + code $PSScriptRoot + } +} + +Import-Module -Name $modulePath \ No newline at end of file diff --git a/src/CloudService/test-module.ps1 b/src/CloudService/test-module.ps1 new file mode 100644 index 000000000000..02efac19f6cb --- /dev/null +++ b/src/CloudService/test-module.ps1 @@ -0,0 +1,68 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$ProgressPreference = 'SilentlyContinue' +$baseName = $PSScriptRoot.BaseName +$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule +. ("$PSScriptRoot\test\utils.ps1") + +if ($requireResourceModule) { + $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') + Import-Module -Name $resourceModulePSD.FullName +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CloudService.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +Import-Module -Name Pester +Import-Module -Name $modulePath + +$TestMode = 'playback' +if($Live) { + $TestMode = 'live' +} +if($Record) { + $TestMode = 'record' +} +try { + if ($TestMode -ne 'playback') { + setupEnv + } + $testFolder = Join-Path $PSScriptRoot 'test' + Invoke-Pester -Script @{ Path = $testFolder } -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") +} +Finally +{ + if ($TestMode -ne 'playback') { + cleanupEnv + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CloudService/test/Az.CloudService-TestResults.xml b/src/CloudService/test/Az.CloudService-TestResults.xml new file mode 100644 index 000000000000..b389ddcc7a91 --- /dev/null +++ b/src/CloudService/test/Az.CloudService-TestResults.xml @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudService.Recording.json b/src/CloudService/test/Get-AzCloudService.Recording.json new file mode 100644 index 000000000000..d983b9b99f90 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudService.Recording.json @@ -0,0 +1,197 @@ +{ + "Get-AzCloudService+[NoContext]+List cloud service in subscription+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "c39350d6-7429-47dd-a428-4c15b6506f07" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "6e640eaf-2276-4816-aa9a-b2c3838699a8", "51821289-722d-4bc5-a192-4f7366b5b84f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-request-id": [ "e5b71a97-158a-4c2a-8ae8-8cf38b969c8d" ], + "x-ms-correlation-request-id": [ "e5b71a97-158a-4c2a-8ae8-8cf38b969c8d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063227Z:e5b71a97-158a-4c2a-8ae8-8cf38b969c8d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:26 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "124505" ] + }, + "Content": "{\"value\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-09BF67A6-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"MigrateCloudService\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\\r\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6-Migrated/providers/Microsoft.Network/virtualNetworks/DefaultRdfeVNet_e15dca83-8d22-4e60-bd8a-a74e9a7f8d19\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"DefaultVNetSubnet\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigrati4xq05fqt\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigrati4xq05fqt.vault.azure.net/secrets/1FD7B7C62517AE4352C78EB11D9BD1E26858B148/2e39b440afdf498a9ee2c22d302b56db\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-09bf67a6-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"0bbde44e-5677-4a9c-849c-2582139ce217\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-42FD46F8-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-52dea2d8\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigratir0k0wero\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigratir0k0wero.vault.azure.net/secrets/7059236AF5D23F08058B40ED8D1E2548BAF20B5E/fea279a54f9b466db6163cfb672c57ce\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-42fd46f8-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"008796ba-4956-4876-a4e8-3e554369259b\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-4B56C65D-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-ce0dcec7\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigratir11ir227\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigratir11ir227.vault.azure.net/secrets/91777924DEAC3A1F63E29E0679F04F5F4C870156/280e0db7cf314fa3bfa1a7d698426913\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-4b56c65d-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"ccf30584-9376-416d-8db9-ee3790750892\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-6D5C9919-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-a8ab7b63\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003cAccessControls\u003e\\n \u003cAccessControl name=\\\"migrationTestAcls\\\"\u003e\\n \u003cRule order=\\\"100\\\" action=\\\"deny\\\" remoteSubnet=\\\"100.64.169.0/24\\\" description=\\\"CS-test-endpoint\\\" /\u003e\\n \u003c/AccessControl\u003e\\n \u003c/AccessControls\u003e\\n \u003cEndpointAcls\u003e\\n \u003cEndpointAcl role=\\\"MigrateCloudService_WorkerRole\\\" endPoint=\\\"StandardWeb\\\" accessControl=\\\"migrationTestAcls\\\" /\u003e\\n \u003c/EndpointAcls\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigratiq6njvzyt\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigratiq6njvzyt.vault.azure.net/secrets/EA2EB96244EB7B45CDE253534E152C83157FD6B5/78d1ad1e10f84e55815892b85e15657f\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-6d5c9919-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"cd773b82-cc82-43c4-b67f-71b36a197a92\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-9F3264E4-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCSAcceleratedNetworking\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCSAcceleratedNetworking_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-5e032386\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCSAcceleratedNetworking_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n\\t \u003cAcceleratedNetworking\u003etrue\u003c/AcceleratedNetworking\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigratiioo59p0u\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigratiioo59p0u.vault.azure.net/secrets/F306B365E8D66B7545C012BB4A8FA4A7EEA4D59D/d5fd49506d584c16bcf500300f99fb36\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-9f3264e4-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"187afecf-803b-43da-a2d1-928bc440f62e\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-D357F54D-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-b9088a6a\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigrati4r3g3da2\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigrati4r3g3da2.vault.azure.net/secrets/CD901B712FFFC6134FBCC92CE6A4AA4231CD9344/ab109d0c97a14747a906f413bc86af56\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-d357f54d-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"a59ec61e-1549-493f-bbef-daeb333a600c\"}},{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/AJ-NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-DE889C0F-MIGRATED/providers/Microsoft.Compute/cloudServices/aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"aj-nrpE2EMigrationTest-VnetRG-useast2euap-df81bc10\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003cAccessControls\u003e\\n \u003cAccessControl name=\\\"migrationTestAcls\\\"\u003e\\n \u003cRule order=\\\"100\\\" action=\\\"deny\\\" remoteSubnet=\\\"100.64.169.0/24\\\" description=\\\"CS-test-endpoint\\\" /\u003e\\n \u003c/AccessControl\u003e\\n \u003c/AccessControls\u003e\\n \u003cEndpointAcls\u003e\\n \u003cEndpointAcl role=\\\"MigrateCloudService_WorkerRole\\\" endPoint=\\\"StandardWeb\\\" accessControl=\\\"migrationTestAcls\\\" /\u003e\\n \u003c/EndpointAcls\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f-Migrated/providers/Microsoft.KeyVault/vaults/aj-nrpE2EMigraticlhgb0hf\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://aj-nrpe2emigraticlhgb0hf.vault.azure.net/secrets/D228983A380BD6A42B9FF44CCE9D6AA99044B8F0/f07124e5cb724a41b730764d66d55f9b\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-aj-nrpE2EMigrationTest-CSRG-useast2euap-de889c0f-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Creating\",\"uniqueId\":\"ab7d2592-512e-467a-a490-0e1267855de8\"}},{\"name\":\"cses1visualstudio\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ALTAMBAWVS/providers/Microsoft.Compute/cloudServices/cses1visualstudio\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"CSESVStudio1\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\u003cRole name=\\\"WebRole1\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"145311b2-0e5a-4b26-a910-1b4e7b7c49df\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"1\\\" /\u003e\u003c/Role\u003e\u003cRole name=\\\"WorkerRole1\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"145311b2-0e5a-4b26-a910-1b4e7b7c49df\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"1\\\" /\u003e\u003c/Role\u003e\u003cNetworkConfiguration\u003e\u003cVirtualNetworkSite name=\\\"cses1visualstudioVNet\\\" /\u003e\u003cAddressAssignments\u003e\u003cInstanceAddress roleName=\\\"WebRole1\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003c/AddressAssignments\u003e\u003c/NetworkConfiguration\u003e\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancerConfigurations\":[{\"name\":\"cses1visualstudioLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cses1visualstudioLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/altambawVS/providers/Microsoft.Network/publicIPAddresses/cses1visualstudioIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"Microsoft.Insights.VMDiagnosticsSettings_WebRole1\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"WebRole1\"],\"publisher\":\"Microsoft.Azure.Diagnostics\",\"type\":\"PaaSDiagnostics\",\"typeHandlerVersion\":\"1.5\",\"settings\":{\"PublicConfig\":{\"@xmlns\":\"http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration\",\"WadCfg\":{\"DiagnosticMonitorConfiguration\":{\"@overallQuotaInMB\":\"4096\",\"@sinks\":\"applicationInsights.errors\",\"DiagnosticInfrastructureLogs\":{\"@scheduledTransferLogLevelFilter\":\"Error\"},\"Directories\":{\"@scheduledTransferPeriod\":\"PT1M\",\"IISLogs\":{\"@containerName\":\"wad-iis-logfiles\"},\"FailedRequestLogs\":{\"@containerName\":\"wad-failedrequestlogs\"}},\"PerformanceCounters\":{\"@scheduledTransferPeriod\":\"PT1M\",\"PerformanceCounterConfiguration\":[{\"@counterSpecifier\":\"\\\\Memory\\\\Available MBytes\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Web Service(_Total)\\\\ISAPI Extension Requests/sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Web Service(_Total)\\\\Bytes Total/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET Applications(__Total__)\\\\Requests/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET Applications(__Total__)\\\\Errors Total/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET\\\\Requests Queued\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET\\\\Requests Rejected\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Processor(_Total)\\\\% Processor Time\",\"@sampleRate\":\"PT3M\"}]},\"WindowsEventLog\":{\"@scheduledTransferPeriod\":\"PT1M\",\"DataSource\":[{\"@name\":\"Application!*[System[(Level=1 or Level=2 or Level=3)]]\"},{\"@name\":\"Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]\"}]},\"CrashDumps\":{\"CrashDumpConfiguration\":[{\"@processName\":\"WaIISHost.exe\"},{\"@processName\":\"WaWorkerHost.exe\"},{\"@processName\":\"w3wp.exe\"}]},\"Logs\":{\"@scheduledTransferPeriod\":\"PT1M\",\"@scheduledTransferLogLevelFilter\":\"Error\"},\"Metrics\":{\"@resourceId\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ALTAMBAWVS/providers/Microsoft.Compute/cloudServices/cses1visualstudio\"}},\"SinksConfig\":{\"Sink\":{\"@name\":\"applicationInsights\",\"ApplicationInsights\":\"145311b2-0e5a-4b26-a910-1b4e7b7c49df\",\"Channels\":{\"Channel\":{\"@logLevel\":\"Error\",\"@name\":\"errors\"}}}}},\"StorageAccount\":\"devstoreaccount1\",\"StorageType\":\"TableAndBlob\"}}}},{\"name\":\"Microsoft.Insights.VMDiagnosticsSettings_WorkerRole1\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"WorkerRole1\"],\"publisher\":\"Microsoft.Azure.Diagnostics\",\"type\":\"PaaSDiagnostics\",\"typeHandlerVersion\":\"1.5\",\"settings\":{\"PublicConfig\":{\"@xmlns\":\"http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration\",\"WadCfg\":{\"DiagnosticMonitorConfiguration\":{\"@overallQuotaInMB\":\"4096\",\"@sinks\":\"applicationInsights.errors\",\"DiagnosticInfrastructureLogs\":{\"@scheduledTransferLogLevelFilter\":\"Error\"},\"Directories\":{\"@scheduledTransferPeriod\":\"PT1M\",\"IISLogs\":{\"@containerName\":\"wad-iis-logfiles\"},\"FailedRequestLogs\":{\"@containerName\":\"wad-failedrequestlogs\"}},\"PerformanceCounters\":{\"@scheduledTransferPeriod\":\"PT1M\",\"PerformanceCounterConfiguration\":[{\"@counterSpecifier\":\"\\\\Memory\\\\Available MBytes\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Web Service(_Total)\\\\ISAPI Extension Requests/sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Web Service(_Total)\\\\Bytes Total/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET Applications(__Total__)\\\\Requests/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET Applications(__Total__)\\\\Errors Total/Sec\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET\\\\Requests Queued\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\ASP.NET\\\\Requests Rejected\",\"@sampleRate\":\"PT3M\"},{\"@counterSpecifier\":\"\\\\Processor(_Total)\\\\% Processor Time\",\"@sampleRate\":\"PT3M\"}]},\"WindowsEventLog\":{\"@scheduledTransferPeriod\":\"PT1M\",\"DataSource\":[{\"@name\":\"Application!*[System[(Level=1 or Level=2 or Level=3)]]\"},{\"@name\":\"Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]\"}]},\"CrashDumps\":{\"CrashDumpConfiguration\":[{\"@processName\":\"WaIISHost.exe\"},{\"@processName\":\"WaWorkerHost.exe\"},{\"@processName\":\"w3wp.exe\"}]},\"Logs\":{\"@scheduledTransferPeriod\":\"PT1M\",\"@scheduledTransferLogLevelFilter\":\"Error\"},\"Metrics\":{\"@resourceId\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ALTAMBAWVS/providers/Microsoft.Compute/cloudServices/cses1visualstudio\"}},\"SinksConfig\":{\"Sink\":{\"@name\":\"applicationInsights\",\"ApplicationInsights\":\"145311b2-0e5a-4b26-a910-1b4e7b7c49df\",\"Channels\":{\"Channel\":{\"@logLevel\":\"Error\",\"@name\":\"errors\"}}}}},\"StorageAccount\":\"devstoreaccount1\",\"StorageType\":\"TableAndBlob\"}}}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"b9c4a31a-4e80-4f51-9d2e-399c69c7a8ad\"}},{\"name\":\"BBService1\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BIBERERARGONE/providers/Microsoft.Compute/cloudServices/BBService1\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxTZXJ2aWNlQ29uZmlndXJhdGlvbiB4bWxuczp4c2Q9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiBzZXJ2aWNlTmFtZT0iQXp1cmVDbG91ZFNlcnZpY2UyIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIj4NCiAgPFJvbGUgbmFtZT0iV2ViUm9sZTEiPg0KICAgIDxJbnN0YW5jZXMgY291bnQ9IjEiIC8+DQogIDwvUm9sZT4NCiAgPE5ldHdvcmtDb25maWd1cmF0aW9uPg0KICAgIDxWaXJ0dWFsTmV0d29ya1NpdGUgbmFtZT0ibmV0TmV3VGVzdFZuZXQiIC8+DQogICAgPEFkZHJlc3NBc3NpZ25tZW50cz4NCiAgICAgIDxWaXJ0dWFsSVBzIC8+DQogICAgICA8SW5zdGFuY2VBZGRyZXNzIHJvbGVOYW1lPSJXZWJSb2xlMSI+DQogICAgICAgIDxTdWJuZXRzPg0KICAgICAgICAgIDxTdWJuZXQgbmFtZT0iZGVmYXVsdCIgLz4NCiAgICAgICAgPC9TdWJuZXRzPg0KICAgICAgICA8QWNjZWxlcmF0ZWROZXR3b3JraW5nPmZhbHNlPC9BY2NlbGVyYXRlZE5ldHdvcmtpbmc+DQogICAgICAgIDxQdWJsaWNJUHMgLz4NCiAgICAgIDwvSW5zdGFuY2VBZGRyZXNzPg0KICAgICAgPFJlc2VydmVkSVBzPg0KICAgICAgICA8UmVzZXJ2ZWRJUCBuYW1lPSJjc09uVm1zc0UyRVRlc3RfUmVzZXJ2ZWRJUCIgLz4NCiAgICAgIDwvUmVzZXJ2ZWRJUHM+DQogICAgPC9BZGRyZXNzQXNzaWdubWVudHM+DQogICAgPEFjY2Vzc0NvbnRyb2xzIC8+DQogICAgPEVuZHBvaW50QWNscyAvPg0KICAgIDxTZXJ2aWNlVHVubmVsaW5nQ29uZmlndXJhdGlvbnMgLz4NCiAgICA8TmV0d29ya1NlY3VyaXR5R3JvdXBSZWZzIC8+DQogICAgPExvYWRCYWxhbmNlcnMgLz4NCiAgPC9OZXR3b3JrQ29uZmlndXJhdGlvbj4NCjwvU2VydmljZUNvbmZpZ3VyYXRpb24+\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_D2_v3\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancers\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BiBereraRGOne/providers/Microsoft.Network/loadBalancers/BBService1LB1\"}],\"loadBalancerConfigurations\":[{\"name\":\"BBService1LB1\",\"etag\":\"W/\\\"16ada55a-bdc0-41f9-9e59-eee25b6fbe41\\\"\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"BBService1LBFE1\",\"etag\":\"W/\\\"16ada55a-bdc0-41f9-9e59-eee25b6fbe41\\\"\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BiBereraRGTwo/providers/Microsoft.Network/publicIPAddresses/csOnVmssE2ETest_ReservedIP\"}}}]}}],\"swappableCloudService\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BIBERERARGTWO/providers/Microsoft.Compute/cloudServices/BBService2\"}},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"69a11b04-60f7-4ef3-9da2-486a4d80ed6a\"}},{\"name\":\"BBService2\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BIBERERARGTWO/providers/Microsoft.Compute/cloudServices/BBService2\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxTZXJ2aWNlQ29uZmlndXJhdGlvbiB4bWxuczp4c2Q9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiBzZXJ2aWNlTmFtZT0iQXp1cmVDbG91ZFNlcnZpY2UyIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIj4NCiAgPFJvbGUgbmFtZT0iV2ViUm9sZTEiPg0KICAgIDxJbnN0YW5jZXMgY291bnQ9IjEiIC8+DQogIDwvUm9sZT4NCiAgPE5ldHdvcmtDb25maWd1cmF0aW9uPg0KICAgIDxWaXJ0dWFsTmV0d29ya1NpdGUgbmFtZT0ibmV0TmV3VGVzdFZuZXQiIC8+DQogICAgPEFkZHJlc3NBc3NpZ25tZW50cz4NCiAgICAgIDxWaXJ0dWFsSVBzIC8+DQogICAgICA8SW5zdGFuY2VBZGRyZXNzIHJvbGVOYW1lPSJXZWJSb2xlMSI+DQogICAgICAgIDxTdWJuZXRzPg0KICAgICAgICAgIDxTdWJuZXQgbmFtZT0iZGVmYXVsdCIgLz4NCiAgICAgICAgPC9TdWJuZXRzPg0KICAgICAgICA8QWNjZWxlcmF0ZWROZXR3b3JraW5nPmZhbHNlPC9BY2NlbGVyYXRlZE5ldHdvcmtpbmc+DQogICAgICAgIDxQdWJsaWNJUHMgLz4NCiAgICAgIDwvSW5zdGFuY2VBZGRyZXNzPg0KICAgICAgPFJlc2VydmVkSVBzPg0KICAgICAgICA8UmVzZXJ2ZWRJUCBuYW1lPSJjc09uVm1zc0UyRVRlc3RfUmVzZXJ2ZWRJUCIgLz4NCiAgICAgIDwvUmVzZXJ2ZWRJUHM+DQogICAgPC9BZGRyZXNzQXNzaWdubWVudHM+DQogICAgPEFjY2Vzc0NvbnRyb2xzIC8+DQogICAgPEVuZHBvaW50QWNscyAvPg0KICAgIDxTZXJ2aWNlVHVubmVsaW5nQ29uZmlndXJhdGlvbnMgLz4NCiAgICA8TmV0d29ya1NlY3VyaXR5R3JvdXBSZWZzIC8+DQogICAgPExvYWRCYWxhbmNlcnMgLz4NCiAgPC9OZXR3b3JrQ29uZmlndXJhdGlvbj4NCjwvU2VydmljZUNvbmZpZ3VyYXRpb24+\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_D2_v3\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancers\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BiBereraRGTwo/providers/Microsoft.Network/loadBalancers/BBService2LB1\"}],\"loadBalancerConfigurations\":[{\"name\":\"BBService2LB1\",\"etag\":\"W/\\\"81657794-79d7-44b7-8c4d-4a7f07ff9fea\\\"\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"BBService2LBFE1\",\"etag\":\"W/\\\"81657794-79d7-44b7-8c4d-4a7f07ff9fea\\\"\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BiBereraRGOne/providers/Microsoft.Network/publicIPAddresses/csOnVmssE2ETest_ReservedIP\"}}}]}}],\"swappableCloudService\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BiBereraRGOne/providers/Microsoft.Compute/cloudServices/BBService1\"}},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"b6c5d335-066e-4b8e-bc63-6616e1c024d2\"}},{\"name\":\"csesvichhaje1\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BUGBASHVICHHAJEIPM/providers/Microsoft.Compute/cloudServices/csesvichhaje1\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\\r\\n\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"AzureCloudService3\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\\r\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"FailureMode\\\" value=\\\"NoCrash\\\" /\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"DefaultEndpointsProtocol=https;AccountName=impvichhaje2;AccountKey=$(_impvichhaje2.key_)\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"DefaultEndpointsProtocol=https;AccountName=impvichhaje2;AccountKey=$(_impvichhaje2.key_)\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cCertificates /\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole3\\\"\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"DefaultEndpointsProtocol=https;AccountName=impvichhaje2;AccountKey=$(_impvichhaje2.key_)\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cCertificates /\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"csesvichhaje1VNet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole3\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":2}},{\"name\":\"WorkerRole2\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole3\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"csesvichhaje1LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"csesvichhaje1LBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbashvichhajeipm/providers/Microsoft.Network/publicIPAddresses/csesvichhaje1-ip\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"436577a3-c6fd-45d6-bf82-cb41c2ce2553\"}},{\"name\":\"cscmdlettestank38pzb\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Manual\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":2}},{\"name\":\"WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":2}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"}},{\"name\":\"JitProdTesting\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/JIT/providers/Microsoft.Compute/cloudServices/JitProdTesting\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"ashverma\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\\n\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"TestCloudServiceMultiRole\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\n \u003cInstances count=\\\"2\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"Testvnet\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancerConfigurations\":[{\"name\":\"JitProdTestingLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"JitProdTestingLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/jit/providers/Microsoft.Network/publicIPAddresses/JitProdTestingIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"32d95dec-b1e8-4a32-8c77-881361aef5dc\"}},{\"name\":\"nrpE2EMigrationTest-CSRG-useast2euap-27419f82\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/NRPE2EMIGRATIONTEST-CSRG-USEAST2EUAP-27419F82-MIGRATED/providers/Microsoft.Compute/cloudServices/nrpE2EMigrationTest-CSRG-useast2euap-27419f82\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"MigrateCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"nrpE2EMigrationTest-VnetRG-useast2euap-e9e9fc09\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"MigrateCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"MigrateCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/nrpE2EMigrationTest-CSRG-useast2euap-27419f82-Migrated/providers/Microsoft.KeyVault/vaults/nrpE2EMigrationTb0wut3kx\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://nrpe2emigrationtb0wut3kx.vault.azure.net/secrets/70F24414B7A8497F9EA7DDF8EDDA4FDB8132F561/2ca71e5fe46d4e7d88c854d2a5c8e331\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"nrpE2EMigrationTest-CSRG-useast2euap-27419f82-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/nrpE2EMigrationTest-CSRG-useast2euap-27419f82-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-nrpE2EMigrationTest-CSRG-useast2euap-27419f82-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Creating\",\"uniqueId\":\"ad2b60d0-d67c-495b-8ca5-8b746a5dd017\"}},{\"name\":\"nrpE2ETestCS-435761c0-2e94-4eab-a797-5f7592271c67\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/NRPE2ETESTRG-8A506AF0-2F00-4747-88A5-DBC4DBFC1A1D-11-23-2020/providers/Microsoft.Compute/cloudServices/nrpE2ETestCS-435761c0-2e94-4eab-a797-5f7592271c67\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"CloudServiceWithMultiRoles\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WebRole1\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole2\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"nrpE2ETestCS-435761c0-2e94-4eab-a797-5f7592271c67LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"nrpE2ETestCS-435761c0-2e94-4eab-a797-5f7592271c67LBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/nrpE2ETestRg-8a506af0-2f00-4747-88a5-dbc4dbfc1a1d-11-23-2020/providers/Microsoft.Network/publicIPAddresses/nrpE2ETestCS-435761c0-2e94-4eab-a797-5f7592271c67IP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"aeabf3e2-9a91-4480-8f19-eb984577ad3b\"}},{\"name\":\"nrpE2ETestCS-3aecbd77-b79b-442a-9a77-b1b5699f4e40\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/NRPE2ETESTRG-E47B3DAD-9688-46E9-8354-1E2036749133-11-05-2020/providers/Microsoft.Compute/cloudServices/nrpE2ETestCS-3aecbd77-b79b-442a-9a77-b1b5699f4e40\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"nrpE2ETestCS-3aecbd77-b79b-442a-9a77-b1b5699f4e40LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"nrpE2ETestCS-3aecbd77-b79b-442a-9a77-b1b5699f4e40LBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/nrpE2ETestRg-e47b3dad-9688-46e9-8354-1e2036749133-11-05-2020/providers/Microsoft.Network/publicIPAddresses/nrpE2ETestCS-3aecbd77-b79b-442a-9a77-b1b5699f4e40IP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"cbab919b-6c76-4e48-9b44-9893916638d3\"}},{\"name\":\"shikhaonerole\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/NRPSHIKHARG/providers/Microsoft.Compute/cloudServices/shikhaonerole\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"Unknown\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"CloudServiceWithReservedIP\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"default\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003cReservedIPs\u003e\\n \u003cReservedIP name=\\\"csOnVmssE2ETest_ReservedIP\\\" /\u003e\\n \u003c/ReservedIPs\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c!--\\n Service Tunneling is not required for ReservedIP testing.\\n It is added here to test both features (ReservedIP and ServiceTunneling) using same package.\\n --\u003e\\n \u003c!--\\n https://stackoverflow.microsoft.com/questions/70131\\n Visual Studio/Plugins are not updated with the latest service model, hence cloud service can not be build with ServiceTunnelingConfigurations.\\n As a workaround, first generate the package and then later add this configuration prior to deployment.\\n Thus, ServiceConfigurationWithST.Cloud.cscfg will be used for deployment.\\n\\n \u003cServiceTunnelingConfigurations\u003e\\n \u003cServiceTunnelingConfiguration name=\\\"STTest\\\" role=\\\"SimpleCloudService_WorkerRole\\\" endpoint=\\\"StandardWeb\\\" /\u003e\\n \u003c/ServiceTunnelingConfigurations\u003e\\n --\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancerConfigurations\":[{\"name\":\"shikhaoneroleLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"shikhaoneroleLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/nrpshikharg/providers/Microsoft.Network/publicIPAddresses/csOnVmssE2ETest_ReservedIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"SimpleCloudService_WorkerRole\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":{\"PublicConfig\":{\"UserName\":\"shikhaTestOne\",\"Expiration\":\"2021-10-27T23:59:59\"}}}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"cabdd64a-7f42-454c-89be-cfb66e9e1180\"}},{\"name\":\"ecd56eab6ca943959c5c3c198db5bebb\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST01J-MIGRATED/providers/Microsoft.Compute/cloudServices/ecd56eab6ca943959c5c3c198db5bebb\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"HelloWorldTest_WorkerRoleWithEndpoint\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Application.WelcomeString\\\" value=\\\"Hello world from PaaS VMSS!\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet01\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_A1\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest01j-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest01ng6l5xx0erq\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest01ng6l5xx0erq.vault.azure.net/secrets/D1FC463F3A996FE4C40D274EEF5A87510F6288CB/dd8d38cddfd945f88c02ca69d3d7d556\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"ecd56eab6ca943959c5c3c198db5bebb-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest01j-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-ecd56eab6ca943959c5c3c198db5bebb-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"dd0351bb-4b6a-4fa0-b67e-f26ab527ad8c\"}},{\"name\":\"29377efd5f294e278d1b7f6f8f5003f4\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST01SINGLEROLE-MIGRATED/providers/Microsoft.Compute/cloudServices/29377efd5f294e278d1b7f6f8f5003f4\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"HelloWorldTest_WorkerRoleWithEndpoint\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Application.WelcomeString\\\" value=\\\"Hello world from PaaS VMSS!\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet01\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_A1\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest01singlerole-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest01singlerole\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest01singlerole.vault.azure.net/secrets/CDE41F22FB9A45E0874A0FD32FF6A24869929F6E/2291bac7d96941b9b26d5766429214f1\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"29377efd5f294e278d1b7f6f8f5003f4-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest01singlerole-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-29377efd5f294e278d1b7f6f8f5003f4-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"c84b976b-27be-403f-86c8-7cc99f9e2d14\"}},{\"name\":\"44230b19ead64b96947d366e66ce36e9\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST02-MIGRATED/providers/Microsoft.Compute/cloudServices/44230b19ead64b96947d366e66ce36e9\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003c!--\\n **********************************************************************************************\\n\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\n\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\n\\n **********************************************************************************************\\n--\u003e\\n\u003cServiceConfiguration serviceName=\\\"HelloWorldTest_WorkerRoleWithEndpoint\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Application.WelcomeString\\\" value=\\\"Hello world from PaaS VMSS!\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet02\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest02-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest02\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest02.vault.azure.net/secrets/E59A1E3572DB5E1C5B38462CABA24E060C8C917D/d8dac8254a714e688b6f5913eee882ad\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"44230b19ead64b96947d366e66ce36e9-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest02-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-44230b19ead64b96947d366e66ce36e9-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"c8f49a70-bcc6-44a4-be5a-7cb6eb7f51a6\"}},{\"name\":\"f81ac634ac254060b5c7c936ce51a959\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST02MULTIROLE-MIGRATED/providers/Microsoft.Compute/cloudServices/f81ac634ac254060b5c7c936ce51a959\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003cServiceConfiguration serviceName=\\\"MultiRoleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WebRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cRole name=\\\"WorkerRoleWithSBQueue1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.ServiceBus.ConnectionString\\\" value=\\\"Endpoint=sb://prabkumtest02multirole.servicebus.windows.net;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=u/sVZR8fNbByFZsgANVZmlRmFuWq3kXWo1wnBvqVxZo=\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet04\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WebRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRoleWithSBQueue1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRoleWithSBQueue1\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest02multirole-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest02multirole\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest02multirole.vault.azure.net/secrets/BC030C9811B3EC6B000AD3D4327C26665A69BB73/f2cc4473fc4343c48a812f1853af8110\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"f81ac634ac254060b5c7c936ce51a959-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest02multirole-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-f81ac634ac254060b5c7c936ce51a959-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"189b5cdd-a7eb-410d-a13d-932cea4dac18\"}},{\"name\":\"db8d0b7bac2144dea986efa8e250a845\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST03DEP1SAMEVNET-MIGRATED/providers/Microsoft.Compute/cloudServices/db8d0b7bac2144dea986efa8e250a845\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003cServiceConfiguration serviceName=\\\"HelloWorldTest_WorkerRoleWithEndpoint\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Application.WelcomeString\\\" value=\\\"Hello world from PaaS VMSS!\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet03\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_A1\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest03dep1samevnet-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest03dep04gvhc4b\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest03dep04gvhc4b.vault.azure.net/secrets/204F68FAF172A5932D0F3B5815DED4E91BCE3F7B/ed0e13a26b844c759cc664109fdb0ad7\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"db8d0b7bac2144dea986efa8e250a845-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest03dep1samevnet-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-db8d0b7bac2144dea986efa8e250a845-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"116a90b5-0016-4605-b9c6-1613c309e20d\"}},{\"name\":\"67fb19702e9c4a76b6fa4bd3ad1c8046\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/PRABKUMTEST04DEP2SAMEVNET-MIGRATED/providers/Microsoft.Compute/cloudServices/67fb19702e9c4a76b6fa4bd3ad1c8046\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\n\u003cServiceConfiguration serviceName=\\\"HelloWorldTest_WorkerRoleWithEndpoint\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Application.WelcomeString\\\" value=\\\"Hello world from PaaS VMSS!\\\" /\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"prabkumvnet03\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_A1\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest04dep2samevnet-Migrated/providers/Microsoft.KeyVault/vaults/prabkumtest04dep2samevne\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://prabkumtest04dep2samevne.vault.azure.net/secrets/2311A95F4193E5A428DA516231729C0E263DC0C2/59f02359e62249abbbfb1af92cc69680\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"67fb19702e9c4a76b6fa4bd3ad1c8046-lb\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"ipconfig1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/prabkumtest04dep2samevnet-Migrated/providers/Microsoft.Network/publicIPAddresses/ip-67fb19702e9c4a76b6fa4bd3ad1c8046-PrimaryVirtualIP\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"3dc83bd7-dc47-4284-9236-087c6ba87591\"}},{\"name\":\"cseswithouttemplate\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/RICJAINTEST/providers/Microsoft.Compute/cloudServices/cseswithouttemplate\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnetChanged\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cseswithouttemplateLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cseswithouttemplateLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ricjaintest/providers/Microsoft.Network/publicIPAddresses/cseswithouttemplate-ip\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"612afd23-dd06-4dba-93a9-c6cead738137\"}},{\"name\":\"cslbsettingsnew\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/RICJAINTEST/providers/Microsoft.Compute/cloudServices/cslbsettingsnew\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n\u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cInstances count=\\\"1\\\" /\u003e\\r\\n\u003cConfigurationSettings\u003e\\r\\n\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n\u003c/ConfigurationSettings\u003e\\r\\n\u003c/Role\u003e\\r\\n\u003cNetworkConfiguration\u003e\\r\\n\u003cVirtualNetworkSite name=\\\"netNewTestVnetChanged\\\" /\u003e\\r\\n\u003cAddressAssignments\u003e\\r\\n\u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cSubnets\u003e\\r\\n\u003cSubnet name=\\\"default\\\" /\u003e\\r\\n\u003c/Subnets\u003e\\r\\n\u003c/InstanceAddress\u003e\\r\\n\u003c/AddressAssignments\u003e\\r\\n\u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cslbsettingsnewLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cslbsettingsnewLBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ricjaintest/providers/Microsoft.Network/publicIPAddresses/cslbsettingsnewIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":false,\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003eadminRdpTest\u003c/UserName\u003e\u003cExpiration\u003e2021-10-27T23:59:59\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"824ae9ed-6f7c-4667-88e3-6e722315ff48\"}},{\"name\":\"cspiptest\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/RICJAINTEST/providers/Microsoft.Compute/cloudServices/cspiptest\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n\u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cInstances count=\\\"1\\\" /\u003e\\r\\n\u003cConfigurationSettings\u003e\\r\\n\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n\u003c/ConfigurationSettings\u003e\\r\\n\u003c/Role\u003e\\r\\n\u003cNetworkConfiguration\u003e\\r\\n\u003cVirtualNetworkSite name=\\\"netNewTestVnetChanged\\\" /\u003e\\r\\n\u003cAddressAssignments\u003e\\r\\n\u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cSubnets\u003e\\r\\n\u003cSubnet name=\\\"default\\\" /\u003e\\r\\n\u003c/Subnets\u003e\\r\\n\u003c/InstanceAddress\u003e\\r\\n\u003c/AddressAssignments\u003e\\r\\n\u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cspiptestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cspiptestLBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ricjaintest/providers/Microsoft.Network/publicIPAddresses/cspiptestIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"e3735bd7-a58a-489b-bd08-b336c9b3f481\"}},{\"name\":\"cspipupdate\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/RICJAINTEST/providers/Microsoft.Compute/cloudServices/cspipupdate\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n\u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cInstances count=\\\"1\\\" /\u003e\\r\\n\u003cConfigurationSettings\u003e\\r\\n\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n\u003c/ConfigurationSettings\u003e\\r\\n\u003c/Role\u003e\\r\\n\u003cNetworkConfiguration\u003e\\r\\n\u003cVirtualNetworkSite name=\\\"netNewTestVnetChanged\\\" /\u003e\\r\\n\u003cAddressAssignments\u003e\\r\\n\u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n\u003cSubnets\u003e\\r\\n\u003cSubnet name=\\\"default\\\" /\u003e\\r\\n\u003c/Subnets\u003e\\r\\n\u003c/InstanceAddress\u003e\\r\\n\u003c/AddressAssignments\u003e\\r\\n\u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cspipupdateLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cspipupdateLBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/ricjaintest/providers/Microsoft.Network/publicIPAddresses/cspipupdateIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":false,\"rolesAppliedTo\":[\"SimpleCloudService_WorkerRole\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003eadminRdpTest\u003c/UserName\u003e\u003cExpiration\u003eWed, 10 Nov 2021 08:00:00 GMT\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"05a55cb4-33d6-4cce-a3ee-9c62352d40dc\"}},{\"name\":\"AutoScale\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/TESTAUTOSCALERG/providers/Microsoft.Compute/cloudServices/AutoScale\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"ashverma\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"TestCloudServiceMultiRole\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\u003cRole name=\\\"WorkerRole1\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"3\\\" /\u003e\u003c/Role\u003e\u003cRole name=\\\"WorkerRole2\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"2\\\" /\u003e\u003c/Role\u003e\u003cNetworkConfiguration\u003e\u003cVirtualNetworkSite name=\\\"Testvnet\\\" /\u003e\u003cAddressAssignments\u003e\u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003c/AddressAssignments\u003e\u003c/NetworkConfiguration\u003e\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_D2_v2\",\"tier\":\"Standard\",\"capacity\":3}},{\"name\":\"WorkerRole2\",\"sku\":{\"name\":\"Standard_D2_v2\",\"tier\":\"Standard\",\"capacity\":2}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"AutoScaleLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"AutoScaleLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/testautoscalerg/providers/Microsoft.Network/publicIPAddresses/AutoScaleIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"508e2abc-c23d-4393-8ea2-8230e56d4212\"}},{\"name\":\"Jit2Roles\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/TESTKVSAVJAI/providers/Microsoft.Compute/cloudServices/Jit2Roles\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"ashverma\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\\n\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"TestCloudServiceMultiRole\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\n \u003cInstances count=\\\"1\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\n \u003cInstances count=\\\"2\\\" /\u003e\\n \u003cConfigurationSettings\u003e\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\n \u003c/ConfigurationSettings\u003e\\n \u003c/Role\u003e\\n \u003cNetworkConfiguration\u003e\\n \u003cVirtualNetworkSite name=\\\"Testvnet\\\" /\u003e\\n \u003cAddressAssignments\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\n \u003cSubnets\u003e\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\n \u003c/Subnets\u003e\\n \u003c/InstanceAddress\u003e\\n \u003c/AddressAssignments\u003e\\n \u003c/NetworkConfiguration\u003e\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancerConfigurations\":[{\"name\":\"Jit2RolesLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"Jit2RolesLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/testkvsavjai/providers/Microsoft.Network/publicIPAddresses/Jit2RolesIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"cc294480-428b-412a-9f54-e09c0dd7c306\"}},{\"name\":\"cs-bugbash-siz\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/VIJADHAVRG/providers/Microsoft.Compute/cloudServices/cs-bugbash-siz\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"crossSubvNet2\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cs-bugbash-sizLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cs-bugbash-sizLBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/vijadhavRG/providers/Microsoft.Network/publicIPAddresses/cs-bugbash-sizIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":false,\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003eadminRdpTest\u003c/UserName\u003e\u003cExpiration\u003e2021-10-27T23:59:59\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"4dff2e32-e739-407a-9a57-76bb7818c3fc\"}},{\"name\":\"vinayakcs2020\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/VIJADHAVRG/providers/Microsoft.Compute/cloudServices/vinayakcs2020\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"vinayakcs2020LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"vinayakcs2020LBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/vijadhavRG/providers/Microsoft.Network/publicIPAddresses/vinayakcs2020IP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":false,\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003eadminRdpTest\u003c/UserName\u003e\u003cExpiration\u003e2021-10-27T23:59:59\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"57904917-0e55-4569-8b15-88f46075b6d9\"}},{\"name\":\"vinayakcs2021\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/VIJADHAVRG/providers/Microsoft.Compute/cloudServices/vinayakcs2021\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"eastus2euap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"vinayakcs2021LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"vinayakcs2021LBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/vijadhavRG/providers/Microsoft.Network/publicIPAddresses/vinayakcs2021IP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Succeeded\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}},{\"name\":\"RDPExtension\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Succeeded\",\"enableAutomaticUpgrade\":false,\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003eadminRdpTest\u003c/UserName\u003e\u003cExpiration\u003e2021-10-27T23:59:59\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"d1efe0b5-7ab3-4278-98be-8b5e26c41728\"}},{\"name\":\"vsmtesto8404tf\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/VSMTESTRG6TTH2GP2IIY/providers/Microsoft.Compute/cloudServices/vsmtesto8404tf\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"TestCloudServiceMultiRole\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\u003cRole name=\\\"WorkerRole1\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"1\\\" /\u003e\u003c/Role\u003e\u003cRole name=\\\"WorkerRole2\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"2\\\" /\u003e\u003c/Role\u003e\u003cRole name=\\\"WebRole1\\\"\u003e\u003cConfigurationSettings\u003e\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\u003c/ConfigurationSettings\u003e\u003cInstances count=\\\"1\\\" /\u003e\u003c/Role\u003e\u003cNetworkConfiguration\u003e\u003cVirtualNetworkSite name=\\\"vsmtestvnetsizf\\\" /\u003e\u003cAddressAssignments\u003e\u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003cInstanceAddress roleName=\\\"WebRole1\\\"\u003e\u003cSubnets\u003e\u003cSubnet name=\\\"WebTier\\\" /\u003e\u003c/Subnets\u003e\u003c/InstanceAddress\u003e\u003c/AddressAssignments\u003e\u003c/NetworkConfiguration\u003e\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"WebRole1\",\"sku\":{\"name\":\"Standard_A2_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole1\",\"sku\":{\"name\":\"Standard_D2_v2\",\"tier\":\"Standard\",\"capacity\":1}},{\"name\":\"WorkerRole2\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":2}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"vsmtest0bb24ou6\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"vsmtestk5k1e8z2\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/vsmtestrg6tth2gp2iiy/providers/Microsoft.Network/publicIPAddresses/vsmtestazcj0q6\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"b2a9f745-bf98-4fdb-a70a-05c02827dec5\"}},{\"name\":\"vsmtestvbq5gph\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/VSMTESTRGXLOT054CH6QQ/providers/Microsoft.Compute/cloudServices/vsmtestvbq5gph\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"east us 2 euap\",\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?\u003e\\r\\n\u003cServiceConfiguration xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" serviceName=\\\"TestCloudServiceMultiRole\\\" osFamily=\\\"5\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\"\u003e\\r\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WebRole1\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"vsmtestvnetpgd3\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancerConfigurations\":[{\"name\":\"vsmtestfksscy7d\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"vsmtesth8mz2w4t\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/vsmtestrgxlot054ch6qq/providers/Microsoft.Network/publicIPAddresses/vsmtestxx6grjm\"}}}]}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"bb5cc0ed-2d3a-4293-834b-2900807b828d\"}},{\"name\":\"reprovichhaje\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BUGBASHVICHHAJEOCT/providers/Microsoft.Compute/cloudServices/reprovichhaje\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"centraluseuap\",\"tags\":{\"DeploymentLabel\":\"AzureCloudService3_2020-10-29T184530\",\"DeployFromVisualStudio\":\"true\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudService3\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"FailureMode\\\" value=\\\"NoCrash\\\" /\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cCertificates\u003e\u003c/Certificates\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole3\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"APPINSIGHTS_INSTRUMENTATIONKEY\\\" value=\\\"2948baa2-94cd-4178-a91b-52485eb9739a\\\" /\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003cCertificates\u003e\u003c/Certificates\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"reprovichhajeVNet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole1\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole2\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole3\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[{\"sourceVault\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbashvichhajeoct/providers/Microsoft.KeyVault/vaults/reprovichhajekv\"},\"vaultCertificates\":[{\"certificateUrl\":\"https://reprovichhajekv.vault.azure.net/secrets/14C38ABC5C602B0AF897CF8865FEA898C85C29E0/2f3b411983824a89b5e8f6358668197e\"},{\"certificateUrl\":\"https://reprovichhajekv.vault.azure.net/secrets/EABB11D353710090A2221944C23A9F6158293E3B/60b8e9caea534f2bb55456eb150d01bd\"}]}]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"reprovichhajeLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"reprovichhajeLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/201911260001vs/providers/Microsoft.Network/publicIPAddresses/vmss1IP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"Microsoft.Insights.VMDiagnosticsSettings_WorkerRole1\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"WorkerRole1\"],\"publisher\":\"Microsoft.Azure.Diagnostics\",\"type\":\"PaaSDiagnostics\",\"typeHandlerVersion\":\"1.5\",\"settings\":\"\u003cPublicConfig xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration\\\"\u003e\\r\\n \u003cWadCfg\u003e\\r\\n \u003cDiagnosticMonitorConfiguration overallQuotaInMB=\\\"4096\\\" sinks=\\\"applicationInsights.errors\\\"\u003e\\r\\n \u003cDiagnosticInfrastructureLogs scheduledTransferLogLevelFilter=\\\"Verbose\\\" /\u003e\\r\\n \u003cDirectories scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cIISLogs containerName=\\\"wad-iis-logfiles\\\" /\u003e\\r\\n \u003cFailedRequestLogs containerName=\\\"wad-failedrequestlogs\\\" /\u003e\\r\\n \u003c/Directories\u003e\\r\\n \u003cPerformanceCounters scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Memory\\\\Available MBytes\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\ISAPI Extension Requests/sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\Bytes Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Requests/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Errors Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Queued\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Rejected\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Processor(_Total)\\\\% Processor Time\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003c/PerformanceCounters\u003e\\r\\n \u003cWindowsEventLog scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cDataSource name=\\\"Application!*[System[(Level=1 or Level=2 or Level=3)]]\\\" /\u003e\\r\\n \u003cDataSource name=\\\"Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]\\\" /\u003e\\r\\n \u003c/WindowsEventLog\u003e\\r\\n \u003cCrashDumps dumpType=\\\"Full\\\"\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaAppAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaIISHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WindowsAzureGuestAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaWorkerHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"DiagnosticsAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"w3wp.exe\\\" /\u003e\\r\\n \u003c/CrashDumps\u003e\\r\\n \u003cLogs scheduledTransferPeriod=\\\"PT1M\\\" scheduledTransferLogLevelFilter=\\\"Verbose\\\" /\u003e\\r\\n \u003cMetrics resourceId=\\\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbashvichhajeoct/providers/Microsoft.Compute/cloudServices/reprovichhaje\\\" /\u003e\\r\\n \u003c/DiagnosticMonitorConfiguration\u003e\\r\\n \u003cSinksConfig\u003e\\r\\n \u003cSink name=\\\"applicationInsights\\\"\u003e\\r\\n \u003cApplicationInsights\u003e2948baa2-94cd-4178-a91b-52485eb9739a\u003c/ApplicationInsights\u003e\\r\\n \u003cChannels\u003e\\r\\n \u003cChannel logLevel=\\\"Error\\\" name=\\\"errors\\\" /\u003e\\r\\n \u003c/Channels\u003e\\r\\n \u003c/Sink\u003e\\r\\n \u003c/SinksConfig\u003e\\r\\n \u003c/WadCfg\u003e\\r\\n \u003cStorageAccount\u003edevstoreaccount1\u003c/StorageAccount\u003e\\r\\n \u003cStorageType\u003eTableAndBlob\u003c/StorageType\u003e\\r\\n\u003c/PublicConfig\u003e\"}},{\"name\":\"Microsoft.Insights.VMDiagnosticsSettings_WorkerRole2\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"WorkerRole2\"],\"publisher\":\"Microsoft.Azure.Diagnostics\",\"type\":\"PaaSDiagnostics\",\"typeHandlerVersion\":\"1.5\",\"settings\":\"\u003cPublicConfig xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration\\\"\u003e\\r\\n \u003cWadCfg\u003e\\r\\n \u003cDiagnosticMonitorConfiguration overallQuotaInMB=\\\"4096\\\" sinks=\\\"applicationInsights.errors\\\"\u003e\\r\\n \u003cDiagnosticInfrastructureLogs scheduledTransferLogLevelFilter=\\\"Verbose\\\" /\u003e\\r\\n \u003cDirectories scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cIISLogs containerName=\\\"wad-iis-logfiles\\\" /\u003e\\r\\n \u003cFailedRequestLogs containerName=\\\"wad-failedrequestlogs\\\" /\u003e\\r\\n \u003c/Directories\u003e\\r\\n \u003cPerformanceCounters scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Memory\\\\Available MBytes\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\ISAPI Extension Requests/sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\Bytes Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Requests/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Errors Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Queued\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Rejected\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Processor(_Total)\\\\% Processor Time\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003c/PerformanceCounters\u003e\\r\\n \u003cWindowsEventLog scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cDataSource name=\\\"Application!*[System[(Level=1 or Level=2 or Level=3)]]\\\" /\u003e\\r\\n \u003cDataSource name=\\\"Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]\\\" /\u003e\\r\\n \u003c/WindowsEventLog\u003e\\r\\n \u003cCrashDumps dumpType=\\\"Full\\\"\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaAppAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaIISHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WindowsAzureGuestAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaWorkerHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"DiagnosticsAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"w3wp.exe\\\" /\u003e\\r\\n \u003c/CrashDumps\u003e\\r\\n \u003cLogs scheduledTransferPeriod=\\\"PT1M\\\" /\u003e\\r\\n \u003cMetrics resourceId=\\\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbashvichhajeoct/providers/Microsoft.Compute/cloudServices/reprovichhaje\\\" /\u003e\\r\\n \u003c/DiagnosticMonitorConfiguration\u003e\\r\\n \u003cSinksConfig\u003e\\r\\n \u003cSink name=\\\"applicationInsights\\\"\u003e\\r\\n \u003cApplicationInsights\u003e2948baa2-94cd-4178-a91b-52485eb9739a\u003c/ApplicationInsights\u003e\\r\\n \u003cChannels\u003e\\r\\n \u003cChannel logLevel=\\\"Error\\\" name=\\\"errors\\\" /\u003e\\r\\n \u003c/Channels\u003e\\r\\n \u003c/Sink\u003e\\r\\n \u003c/SinksConfig\u003e\\r\\n \u003c/WadCfg\u003e\\r\\n \u003cStorageAccount\u003edevstoreaccount1\u003c/StorageAccount\u003e\\r\\n \u003cStorageType\u003eTableAndBlob\u003c/StorageType\u003e\\r\\n\u003c/PublicConfig\u003e\"}},{\"name\":\"Microsoft.Insights.VMDiagnosticsSettings_WorkerRole3\",\"properties\":{\"autoUpgradeMinorVersion\":true,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"WorkerRole3\"],\"publisher\":\"Microsoft.Azure.Diagnostics\",\"type\":\"PaaSDiagnostics\",\"typeHandlerVersion\":\"1.5\",\"settings\":\"\u003cPublicConfig xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration\\\"\u003e\\r\\n \u003cWadCfg\u003e\\r\\n \u003cDiagnosticMonitorConfiguration overallQuotaInMB=\\\"4096\\\" sinks=\\\"applicationInsights.errors\\\"\u003e\\r\\n \u003cDiagnosticInfrastructureLogs scheduledTransferLogLevelFilter=\\\"Verbose\\\" /\u003e\\r\\n \u003cDirectories scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cIISLogs containerName=\\\"wad-iis-logfiles\\\" /\u003e\\r\\n \u003cFailedRequestLogs containerName=\\\"wad-failedrequestlogs\\\" /\u003e\\r\\n \u003c/Directories\u003e\\r\\n \u003cPerformanceCounters scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Memory\\\\Available MBytes\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\ISAPI Extension Requests/sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Web Service(_Total)\\\\Bytes Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Requests/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET Applications(__Total__)\\\\Errors Total/Sec\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Queued\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\ASP.NET\\\\Requests Rejected\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003cPerformanceCounterConfiguration counterSpecifier=\\\"\\\\Processor(_Total)\\\\% Processor Time\\\" sampleRate=\\\"PT3M\\\" /\u003e\\r\\n \u003c/PerformanceCounters\u003e\\r\\n \u003cWindowsEventLog scheduledTransferPeriod=\\\"PT1M\\\"\u003e\\r\\n \u003cDataSource name=\\\"Application!*[System[(Level=1 or Level=2 or Level=3)]]\\\" /\u003e\\r\\n \u003cDataSource name=\\\"Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]\\\" /\u003e\\r\\n \u003c/WindowsEventLog\u003e\\r\\n \u003cCrashDumps dumpType=\\\"Full\\\"\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaAppAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaIISHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WindowsAzureGuestAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"WaWorkerHost.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"DiagnosticsAgent.exe\\\" /\u003e\\r\\n \u003cCrashDumpConfiguration processName=\\\"w3wp.exe\\\" /\u003e\\r\\n \u003c/CrashDumps\u003e\\r\\n \u003cLogs scheduledTransferPeriod=\\\"PT1M\\\" scheduledTransferLogLevelFilter=\\\"Verbose\\\" /\u003e\\r\\n \u003cMetrics resourceId=\\\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbashvichhajeoct/providers/Microsoft.Compute/cloudServices/reprovichhaje\\\" /\u003e\\r\\n \u003c/DiagnosticMonitorConfiguration\u003e\\r\\n \u003cSinksConfig\u003e\\r\\n \u003cSink name=\\\"applicationInsights\\\"\u003e\\r\\n \u003cApplicationInsights\u003e2948baa2-94cd-4178-a91b-52485eb9739a\u003c/ApplicationInsights\u003e\\r\\n \u003cChannels\u003e\\r\\n \u003cChannel logLevel=\\\"Error\\\" name=\\\"errors\\\" /\u003e\\r\\n \u003c/Channels\u003e\\r\\n \u003c/Sink\u003e\\r\\n \u003c/SinksConfig\u003e\\r\\n \u003c/WadCfg\u003e\\r\\n \u003cStorageAccount\u003edevstoreaccount1\u003c/StorageAccount\u003e\\r\\n \u003cStorageType\u003eTableAndBlob\u003c/StorageType\u003e\\r\\n\u003c/PublicConfig\u003e\"}},{\"name\":\"rdpvinu\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":true,\"rolesAppliedTo\":[\"WorkerRole1\",\"WorkerRole2\",\"WorkerRole3\"],\"publisher\":\"Microsoft.Windows.Azure.Extensions\",\"type\":\"RDP\",\"typeHandlerVersion\":\"1.2.1\",\"settings\":\"\u003cPublicConfig\u003e\u003cUserName\u003evichhaje\u003c/UserName\u003e\u003cExpiration\u003eFri, 30 Oct 2020 18:30:00 GMT\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"}},{\"name\":\"vinuantimalware\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"enableAutomaticUpgrade\":true,\"rolesAppliedTo\":[\"WorkerRole1\",\"WorkerRole2\",\"WorkerRole3\"],\"publisher\":\"Microsoft.Azure.Security\",\"type\":\"PaaSAntimalware\",\"typeHandlerVersion\":\"1.3\",\"settings\":\"\u003cAntimalwareConfig\u003e\u003cAntimalwareEnabled\u003etrue\u003c/AntimalwareEnabled\u003e\u003cRealtimeProtectionEnabled\u003efalse\u003c/RealtimeProtectionEnabled\u003e\u003cScheduledScanSettings isEnabled=\\\"true\\\" day=\\\"0\\\" time=\\\"0\\\" scanType=\\\"Quick\\\"\u003e\u003c/ScheduledScanSettings\u003e\u003cExclusions\u003e\u003c/Exclusions\u003e\u003c/AntimalwareConfig\u003e\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"80e27111-369c-4c9a-a090-8472de4abbeb\"}},{\"name\":\"cs-bugbash-ningth\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/BUGBASH_AJ_CENTRALUS/providers/Microsoft.Compute/cloudServices/cs-bugbash-ningth\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"centraluseuap\",\"tags\":{\"BugBashType\":\"New-Resource\",\"Developer\":\"csonarm\"},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"crossSubvNet2\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cs-bugbash-ningthLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cs-bugbash-ningthLBFE1\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/bugbash_aj_centralus/providers/Microsoft.Network/publicIPAddresses/cs-bugbash-ningthIP\"}}}]}}]},\"extensionProfile\":{\"extensions\":[{\"name\":\"GenevaMonitoringExtension\",\"properties\":{\"autoUpgradeMinorVersion\":false,\"provisioningState\":\"Failed\",\"rolesAppliedTo\":[\"*\"],\"publisher\":\"Microsoft.Azure.Geneva\",\"type\":\"GenevaMonitoringPaaS\",\"typeHandlerVersion\":\"2.14.0.2\"}}]},\"provisioningState\":\"Failed\",\"uniqueId\":\"c2770bed-1ad1-4c99-b01a-5b0b686f9ae8\"}},{\"name\":\"cctest\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CCTEST/providers/Microsoft.Compute/cloudServices/cctest\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"centraluseuap\",\"tags\":{},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"SimpleCloudService\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"1\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003cLoadBalancers\u003e\\r\\n \u003cLoadBalancer name=\\\"csOnVmssE2ETest_InternalLB\\\"\u003e\\r\\n \u003cFrontendIPConfiguration type=\\\"private\\\" subnet=\\\"default\\\" staticVirtualNetworkIPAddress=\\\"10.0.1.6\\\"/\u003e\\r\\n \u003c/LoadBalancer\u003e\\r\\n \u003c/LoadBalancers\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D3_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"cctestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cctestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cctest/providers/Microsoft.Network/publicIPAddresses/cctest-ip\"}}}]}},{\"name\":\"csOnVmssE2ETest_InternalLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"csOnVmssE2ETest_InternalLBFE\",\"properties\":{\"privateIPAddress\":\"10.0.1.6\",\"subnet\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cctest/providers/Microsoft.Network/virtualNetworks/netNewTestVnet/subnets/default\"}}}]}}]},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"e52aa55c-cf6b-4571-9afc-035a912f891e\"}},{\"name\":\"adrainswap1\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/SWAPPING/providers/Microsoft.Compute/cloudServices/adrainswap1\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"centraluseuap\",\"tags\":{},\"properties\":{\"configuration\":\"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCg0KICBUaGlzIGZpbGUgd2FzIGdlbmVyYXRlZCBieSBhIHRvb2wgZnJvbSB0aGUgcHJvamVjdCBmaWxlOiBTZXJ2aWNlQ29uZmlndXJhdGlvbi5DbG91ZC5jc2NmZw0KDQogIENoYW5nZXMgdG8gdGhpcyBmaWxlIG1heSBjYXVzZSBpbmNvcnJlY3QgYmVoYXZpb3IgYW5kIHdpbGwgYmUgbG9zdCBpZiB0aGUgZmlsZSBpcyByZWdlbmVyYXRlZC4NCg0KICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqDQotLT48U2VydmljZUNvbmZpZ3VyYXRpb24gc2VydmljZU5hbWU9IkNsb3VkU2VydmljZVdpdGhSZXNlcnZlZElQIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iNiIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDE1LTA0LjIuNiI+PFJvbGUgbmFtZT0iU2ltcGxlQ2xvdWRTZXJ2aWNlX1dvcmtlclJvbGUiPjxJbnN0YW5jZXMgY291bnQ9IjEiIC8+PENvbmZpZ3VyYXRpb25TZXR0aW5ncz48U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IlVzZURldmVsb3BtZW50U3RvcmFnZT10cnVlIiAvPjwvQ29uZmlndXJhdGlvblNldHRpbmdzPjwvUm9sZT48TmV0d29ya0NvbmZpZ3VyYXRpb24+PFZpcnR1YWxOZXR3b3JrU2l0ZSBuYW1lPSJuZXROZXdUZXN0Vm5ldCIgLz48QWRkcmVzc0Fzc2lnbm1lbnRzPjxJbnN0YW5jZUFkZHJlc3Mgcm9sZU5hbWU9IlNpbXBsZUNsb3VkU2VydmljZV9Xb3JrZXJSb2xlIj48U3VibmV0cz48U3VibmV0IG5hbWU9ImRlZmF1bHQiIC8+PC9TdWJuZXRzPjwvSW5zdGFuY2VBZGRyZXNzPjxSZXNlcnZlZElQcz48UmVzZXJ2ZWRJUCBuYW1lPSJjc09uVm1zc0UyRVRlc3RfUmVzZXJ2ZWRJUCIgLz48L1Jlc2VydmVkSVBzPjwvQWRkcmVzc0Fzc2lnbm1lbnRzPjwhLS0NCiAgICBTZXJ2aWNlIFR1bm5lbGluZyBpcyBub3QgcmVxdWlyZWQgZm9yIFJlc2VydmVkSVAgdGVzdGluZy4NCiAgICBJdCBpcyBhZGRlZCBoZXJlIHRvIHRlc3QgYm90aCBmZWF0dXJlcyAoUmVzZXJ2ZWRJUCBhbmQgU2VydmljZVR1bm5lbGluZykgdXNpbmcgc2FtZSBwYWNrYWdlLg0KICAgIC0tPjwhLS0NCiAgICBodHRwczovL3N0YWNrb3ZlcmZsb3cubWljcm9zb2Z0LmNvbS9xdWVzdGlvbnMvNzAxMzENCiAgICBWaXN1YWwgU3R1ZGlvL1BsdWdpbnMgYXJlIG5vdCB1cGRhdGVkIHdpdGggdGhlIGxhdGVzdCBzZXJ2aWNlIG1vZGVsLCBoZW5jZSBjbG91ZCBzZXJ2aWNlIGNhbiBub3QgYmUgYnVpbGQgd2l0aCBTZXJ2aWNlVHVubmVsaW5nQ29uZmlndXJhdGlvbnMuDQogICAgQXMgYSB3b3JrYXJvdW5kLCBmaXJzdCBnZW5lcmF0ZSB0aGUgcGFja2FnZSBhbmQgdGhlbiBsYXRlciBhZGQgdGhpcyBjb25maWd1cmF0aW9uIHByaW9yIHRvIGRlcGxveW1lbnQuDQogICAgVGh1cywgU2VydmljZUNvbmZpZ3VyYXRpb25XaXRoU1QuQ2xvdWQuY3NjZmcgd2lsbCBiZSB1c2VkIGZvciBkZXBsb3ltZW50Lg0KDQogICAgPFNlcnZpY2VUdW5uZWxpbmdDb25maWd1cmF0aW9ucz4NCiAgICAgIDxTZXJ2aWNlVHVubmVsaW5nQ29uZmlndXJhdGlvbiBuYW1lPSJTVFRlc3QiIHJvbGU9IlNpbXBsZUNsb3VkU2VydmljZV9Xb3JrZXJSb2xlIiBlbmRwb2ludD0iU3RhbmRhcmRXZWIiIC8+DQogICAgPC9TZXJ2aWNlVHVubmVsaW5nQ29uZmlndXJhdGlvbnM+DQogICAgLS0+PC9OZXR3b3JrQ29uZmlndXJhdGlvbj48L1NlcnZpY2VDb25maWd1cmF0aW9uPg==\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":1}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"networkInterfaceConfigurations\":[],\"loadBalancers\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/swapping/providers/Microsoft.Network/loadBalancers/adrainswap1LB\"}],\"loadBalancerConfigurations\":[{\"name\":\"adrainswap1LB\",\"etag\":\"W/\\\"2f2f355f-d1ff-4664-b98e-3bed1895c4ba\\\"\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"adrainswap1LBFE\",\"etag\":\"W/\\\"2f2f355f-d1ff-4664-b98e-3bed1895c4ba\\\"\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/swapping/providers/Microsoft.Network/publicIPAddresses/csOnVmssE2ETest_ReservedIP\"}}}]}}],\"swappableCloudService\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/SWAPPING2/providers/Microsoft.Compute/cloudServices/adrianswap2\"}},\"provisioningState\":\"Succeeded\",\"uniqueId\":\"bae1d8f0-2f53-4f9c-9938-72ac63477d7e\"}},{\"name\":\"adrianswap2\",\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/SWAPPING2/providers/Microsoft.Compute/cloudServices/adrianswap2\",\"type\":\"Microsoft.Compute/cloudServices\",\"location\":\"centraluseuap\",\"tags\":{},\"properties\":{\"configuration\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"CloudServiceWithReservedIP\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"netNewTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"SimpleCloudService_WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"default\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c!--\\r\\n Service Tunneling is not required for ReservedIP testing.\\r\\n It is added here to test both features (ReservedIP and ServiceTunneling) using same package.\\r\\n --\u003e\\r\\n \u003c!--\\r\\n https://stackoverflow.microsoft.com/questions/70131\\r\\n Visual Studio/Plugins are not updated with the latest service model, hence cloud service can not be build with ServiceTunnelingConfigurations.\\r\\n As a workaround, first generate the package and then later add this configuration prior to deployment.\\r\\n Thus, ServiceConfigurationWithST.Cloud.cscfg will be used for deployment.\\r\\n\\r\\n \u003cServiceTunnelingConfigurations\u003e\\r\\n \u003cServiceTunnelingConfiguration name=\\\"STTest\\\" role=\\\"SimpleCloudService_WorkerRole\\\" endpoint=\\\"StandardWeb\\\" /\u003e\\r\\n \u003c/ServiceTunnelingConfigurations\u003e\\r\\n --\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\"upgradeMode\":\"Auto\",\"roleProfile\":{\"roles\":[{\"name\":\"SimpleCloudService_WorkerRole\",\"sku\":{\"name\":\"Standard_D1_v2\",\"tier\":\"Standard\",\"capacity\":2}}]},\"osProfile\":{\"secrets\":[]},\"networkProfile\":{\"loadBalancerConfigurations\":[{\"name\":\"adrianswap2LB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"adrianswap2LBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/karthikaliastest/providers/Microsoft.Network/publicIPAddresses/pip\"}}}]}}],\"swappableCloudService\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/swapping/providers/Microsoft.Compute/cloudServices/adrainswap1\"}},\"provisioningState\":\"Failed\",\"uniqueId\":\"9acf8931-c39a-4bd9-94cb-f8d15cb34c22\"}}]}" + } + }, + "Get-AzCloudService+[NoContext]+List cloud service in ResourceGroup+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "3eebdcb5-85b1-46d5-832d-435fcb2d4a2e" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "14b81864-5448-43a9-8b9e-448a416754a4" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "2e3df478-d50b-482d-b86c-779c94b40ece" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063228Z:2e3df478-d50b-482d-b86c-779c94b40ece" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3852" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Get-AzCloudService+[NoContext]+Get cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "c4bfc622-7166-4503-85d3-bf81dd59d0a1" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "57aecf26-61ec-4794-8e7e-08e012206288" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "8a668dd4-cc33-478f-a1d3-479acf85e561" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063228Z:8a668dd4-cc33-478f-a1d3-479acf85e561" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3611" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "abe33eff-08a4-4997-b9d2-a4eff20fc9fc" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c99ae3c5-bc85-4bc9-b273-9a88e3648727" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "8a303ca5-5e0f-43d3-b9f3-8800e5330042" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063229Z:8a303ca5-5e0f-43d3-b9f3-8800e5330042" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3611" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Get-AzCloudService+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "830d03f3-c191-4fa1-b419-e7ee969d3e9b" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f5c1076e-ae21-4488-a657-62fcdaae3e6d" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "ac02a1f7-3c06-4750-8dcb-4c454dd9ba86" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063229Z:ac02a1f7-3c06-4750-8dcb-4c454dd9ba86" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3611" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudService.Tests.ps1 b/src/CloudService/test/Get-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..ec086adc4605 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudService.Tests.ps1 @@ -0,0 +1,35 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudService' { + It 'List cloud service in subscription' { + $cloudServices = Get-AzCloudService + $cloudServices.Count | Should BeGreaterThan 0 + } + + It 'List cloud service in ResourceGroup' { + $cloudServices = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName + $cloudServices.Count | Should BeGreaterThan 0 + } + + It 'Get cloud service' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudService.RoleProfile.Role.Count | Should Be 2 + } + + It 'GetViaIdentity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cs2 = Get-AzCloudService -InputObject $cloudService.Id + $cs2.RoleProfile.Role.Count | Should Be 2 + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json b/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json new file mode 100644 index 000000000000..9f5ad925691f --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceInstanceView.Recording.json @@ -0,0 +1,41 @@ +{ + "Get-AzCloudServiceInstanceView+[NoContext]+Get cloud service InstanceView+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/instanceView?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/instanceView?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "95630f1c-58d1-4195-b864-b6d32983221d" ], + "CommandName": [ "Get-AzCloudServiceInstanceView" ], + "FullCommandName": [ "Get-AzCloudServiceInstanceView_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "20ed9df9-ddf2-4c5c-8fb5-78d920238529" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "75307c12-c4ef-4799-abf2-57d1db0be284" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063230Z:75307c12-c4ef-4799-abf2-57d1db0be284" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1012" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"roleInstance\": {\r\n \"statusesSummary\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"count\": 4\r\n },\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"count\": 4\r\n }\r\n ]\r\n },\r\n \"sdkVersion\": \"2.9.6496.3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2020-11-24T06:31:54.6239714+00:00\"\r\n },\r\n {\r\n \"code\": \"PowerState/started\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Started\",\r\n \"time\": \"2020-11-24T06:31:54.6239714+00:00\"\r\n },\r\n {\r\n \"code\": \"CurrentUpgradeDomain/-1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Current Upgrade Domain of cloud service is -1.\"\r\n },\r\n {\r\n \"code\": \"MaxUpgradeDomain/1\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Max Upgrade Domain of cloud service is 1.\"\r\n }\r\n ]\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 new file mode 100644 index 000000000000..8f54de765629 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceInstanceView.Tests.ps1 @@ -0,0 +1,19 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceInstanceView.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceInstanceView' { + It 'Get cloud service InstanceView' { + $cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudServiceInstanceView.RoleInstanceStatusesSummary.Count | Should -Not -Be 0 + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceNetworkInterfaces.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceNetworkInterfaces.Tests.ps1 new file mode 100644 index 000000000000..667eef9c8630 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceNetworkInterfaces.Tests.ps1 @@ -0,0 +1,22 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceNetworkInterfaces.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceNetworkInterfaces' { + It 'CloudServiceName' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Get-AzCloudServicePublicIPAddress.Tests.ps1 b/src/CloudService/test/Get-AzCloudServicePublicIPAddress.Tests.ps1 new file mode 100644 index 000000000000..93184e9f1bf5 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServicePublicIPAddress.Tests.ps1 @@ -0,0 +1,22 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServicePublicIPAddress.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServicePublicIPAddress' { + It 'CloudServiceName' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json new file mode 100644 index 000000000000..5f78b2debfe2 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Recording.json @@ -0,0 +1,314 @@ +{ + "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "5d2587ac-e635-4a52-aaf8-3e4f9727c435" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "1901b1de-407d-4ca2-9992-263863b2fab0" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "0cd79801-3fa0-4184-aba9-51fb0f9420a0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063232Z:0cd79801-3fa0-4184-aba9-51fb0f9420a0" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+List cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview\u0026$expand=instanceView+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview\u0026$expand=instanceView", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "cbbb017d-42e3-4d3a-af12-98bf75108a6e" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8353c0e4-85d6-4118-9971-ef20f1f765e2" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "f0c21875-0420-4b59-839b-9c4d538af773" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063233Z:f0c21875-0420-4b59-839b-9c4d538af773" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4568" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "4718090a-8ffb-424c-8ca3-1b84ef134647" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "922e42a4-8ed9-4c5c-9036-71a79f54a628" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "833a2095-fad8-4660-953d-0bcc2a9719de" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063233Z:833a2095-fad8-4660-953d-0bcc2a9719de" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "665" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via Expand+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "d6cef419-0256-4de2-82f0-05259ad3c165" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "4afa0bcf-0234-43c2-9d96-942c8ce3039b" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "b99e51f8-21d8-479d-8c60-511887e48eea" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063233Z:b99e51f8-21d8-479d-8c60-511887e48eea" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1025" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "d3a1cd72-8caa-4807-bc2f-921c4bcadd81" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "272e8328-fa8d-452d-bda6-c2fec2c86dc8" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "b93d87b8-87b4-4bf8-9d14-f7340048bc83" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063234Z:b93d87b8-87b4-4bf8-9d14-f7340048bc83" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "cb2b0be0-428e-4763-9a67-d2abb09cae74" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "0b712409-cd10-4ca1-b0e5-556e98838b44" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "0005a52b-94d6-4b63-917f-2bcf4386166e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063234Z:0005a52b-94d6-4b63-917f-2bcf4386166e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "665" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "e82cc1cd-ca90-4b3a-90c1-c00d14e3e76f" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "d8750720-f6ae-4fe2-af3f-e75dcf39120a" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "a1043156-9dee-4dbb-be9a-a8e5d7305254" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063235Z:a1043156-9dee-4dbb-be9a-a8e5d7305254" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Get-AzCloudServiceRoleInstance+[NoContext]+Get cloud service role instance InstanceView via identity and Expand+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview\u0026$expand=instanceView", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "af1af87f-1c8b-4b63-a096-f7194f1964fa" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "0e171652-784a-4eee-aea0-c2ea95a1ba08" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "a3078730-9cf6-48cd-84c9-33d86d1d6d61" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063235Z:a3078730-9cf6-48cd-84c9-33d86d1d6d61" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1025" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]},\r\n \"instanceView\": {\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n }\r\n }\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Tests.ps1 new file mode 100644 index 000000000000..faa22840b711 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstance.Tests.ps1 @@ -0,0 +1,46 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceRoleInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceRoleInstance' { + It 'List cloud service role instance' { + $cloudServiceRoleInstances = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudServiceRoleInstances.Count | Should Be 4 + } + + It 'List cloud service role instance InstanceView via Expand' { + $cloudServiceRoleInstanceInstanceViews = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -Expand instanceView + $cloudServiceRoleInstanceInstanceViews.Count | Should Be 4 + } + + It 'Get cloud service role instance' { + $cloudServiceRoleInstance = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName + $cloudServiceRoleInstance.Name | Should Be $env.RoleInstanceName + } + + It 'Get cloud service role instance InstanceView via Expand' { + $cloudServiceRoleInstanceInstanceView = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName -Expand instanceView + $cloudServiceRoleInstanceInstanceView.InstanceViewPlatformFaultDomain | Should Be 0 + } + + It 'Get cloud service role instance via identity' { + $cloudServiceRoleInstances = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudServiceRoleInstance = Get-AzCloudServiceRoleInstance -InputObject $cloudServiceRoleInstances[0].Id + $cloudServiceRoleInstance.Name | Should Be $cloudServiceRoleInstances[0].Name + } + + It 'Get cloud service role instance InstanceView via identity and Expand' { + $cloudServiceRoleInstances = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudServiceRoleInstanceInstanceView = Get-AzCloudServiceRoleInstance -InputObject $cloudServiceRoleInstances[0].Id -Expand instanceView + $cloudServiceRoleInstanceInstanceView.InstanceViewPlatformFaultDomain | Should Be 0 + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json new file mode 100644 index 000000000000..04ad67c183b6 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json @@ -0,0 +1,42 @@ +{ + "Get-AzCloudServiceRoleInstanceRemoteDesktopFile+[NoContext]+Get remote desktop file+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/remoteDesktopFile?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "fda22afa-df18-4901-ba09-e8f914353b02" ], + "CommandName": [ "Get-AzCloudServiceRoleInstanceRemoteDesktopFile" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstanceRemoteDesktopFile_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "dd9d56c2-ce3c-4bfe-b707-22da8874a496" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "135065e2-12e4-4cda-97fb-bab599aababb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063236Z:135065e2-12e4-4cda-97fb-bab599aababb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "109" ], + "Content-Type": [ "application/x-rdp" ], + "Expires": [ "-1" ], + "Content-Disposition": [ "attachment; filename=cscmdlettestank38pzb-WebRole_IN_0.rdp" ] + }, + "Content": "ZnVsbCBhZGRyZXNzOnM6NTIuMjI1LjE3Ni4yMw0KdXNlcm5hbWU6czp1c2VyYXp1cmUNCkxvYWRCYWxhbmNlSW5mbzpzOkNvb2tpZTogbXN0c2hhc2g9V2ViUm9sZSNXZWJSb2xlX0lOXzANCg==" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 new file mode 100644 index 000000000000..56a48e768295 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Tests.ps1 @@ -0,0 +1,23 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceRoleInstanceRemoteDesktopFile' { + + It 'Get remote desktop file' -skip { + RemoveFile $env.RDPOutputFile + $x = Get-AzCloudServiceRoleInstanceRemoteDesktopFile -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName -OutFile $env.RDPOutputFile + Test-Path $env.RDPOutputFile | Should be $true + $content = Get-Content $env.RDPOutputFile + $content[2].contains($env.RoleInstanceName) | Should be $true + } +} diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json new file mode 100644 index 000000000000..a4179d019ca1 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Recording.json @@ -0,0 +1,41 @@ +{ + "Get-AzCloudServiceRoleInstanceView+[NoContext]+Get cloud service role instance InstanceView+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/instanceView?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/instanceView?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "9f96ed76-5c3c-489e-acc7-762b7e0d85ad" ], + "CommandName": [ "Get-AzCloudServiceRoleInstanceView" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstanceView_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "9b747604-c393-45fa-9ea6-02200c5648bb" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "297dc052-165b-4ea1-b420-8ca73e7dc4ff" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063237Z:297dc052-165b-4ea1-b420-8ca73e7dc4ff" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "289" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"privateId\": \"673e1755-d730-4036-b348-588acf699fb3\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"RoleState/RoleStateStarted\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"RoleStateStarted\",\r\n \"message\": \"\"\r\n }\r\n ]\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Tests.ps1 b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Tests.ps1 new file mode 100644 index 000000000000..74c9c64ead56 --- /dev/null +++ b/src/CloudService/test/Get-AzCloudServiceRoleInstanceView.Tests.ps1 @@ -0,0 +1,20 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCloudServiceRoleInstanceView.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCloudServiceRoleInstanceView' { + + It 'Get cloud service role instance InstanceView' { + $cloudServiceRoleInstanceInstanceView = Get-AzCloudServiceRoleInstanceView -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName + $cloudServiceRoleInstanceInstanceView.PlatformFaultDomain | Should Be 0 + } +} diff --git a/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json new file mode 100644 index 000000000000..c9161c13efee --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Recording.json @@ -0,0 +1,269 @@ +{ + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/rebuild?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/rebuild?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "4852c6d7-e8b3-4b2e-8444-c91187965d22" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063238Z:4852c6d7-e8b3-4b2e-8444-c91187965d22" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:32:37 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "bdebf181-72ce-431a-92fb-57bee69bb92e" ], + "CommandName": [ "Invoke-AzCloudServiceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "f2ab0a30-7c4f-4f88-9d84-f9662d3f0197" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "00f90dd0-1471-4a88-9822-e02706989096" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063308Z:00f90dd0-1471-4a88-9822-e02706989096" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:32:38.2312011+00:00\",\r\n \"endTime\": \"2020-11-24T06:32:53.704858+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2\"\r\n}" + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/2a16f40c-5ffe-4e45-b0f4-0a8eb8172af2?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "bdebf181-72ce-431a-92fb-57bee69bb92e" ], + "CommandName": [ "Invoke-AzCloudServiceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "194397ef-cdbf-407a-b8aa-b4d112a00f8a" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "123003ce-e38f-425f-bd7d-0b5b876f1906" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063309Z:123003ce-e38f-425f-bd7d-0b5b876f1906" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:09 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "e548d392-0387-4fda-82a0-1343e8558392" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "aebfeffa-43d1-4cd7-91c8-7963f93427c0" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "0a568f35-402c-48a9-adb7-b0fe1445d59b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063310Z:0a568f35-402c-48a9-adb7-b0fe1445d59b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3611" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/rebuild?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/rebuild?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "242a3e39-4d6b-4e5d-8565-96d9819a4150" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "67599d04-92c7-405f-8c2a-d0f26e1ce577" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063310Z:67599d04-92c7-405f-8c2a-d0f26e1ce577" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:10 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "029d8a64-3866-482b-9353-a7d114e5b741" ], + "CommandName": [ "Invoke-AzCloudServiceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "9f54f492-ce29-4ae4-80cc-8727b01dddac" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "c04741db-61a4-41b0-b8d7-78cbc80b7f70" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063341Z:c04741db-61a4-41b0-b8d7-78cbc80b7f70" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:33:10.7630263+00:00\",\r\n \"endTime\": \"2020-11-24T06:33:26.1084543+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"242a3e39-4d6b-4e5d-8565-96d9819a4150\"\r\n}" + } + }, + "Invoke-AzCloudServiceRebuild+[NoContext]+Rebuild cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/242a3e39-4d6b-4e5d-8565-96d9819a4150?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "029d8a64-3866-482b-9353-a7d114e5b741" ], + "CommandName": [ "Invoke-AzCloudServiceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuild_RebuildViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "5c3b47bd-7d3f-425c-afea-babe47d15730" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "223c7b2c-4994-4c46-b2ef-7126017884a9" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063341Z:223c7b2c-4994-4c46-b2ef-7126017884a9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:41 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRebuild.Tests.ps1 b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Tests.ps1 new file mode 100644 index 000000000000..d22f3977ca1e --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRebuild.Tests.ps1 @@ -0,0 +1,23 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRebuild.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCloudServiceRebuild' { + It 'Rebuild cloud service' { + Invoke-AzCloudServiceRebuild -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName + } + + It 'Rebuild cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Invoke-AzCloudServiceRebuild -InputObject $cloudService.Id -RoleInstance $env.RoleInstanceName + } +} diff --git a/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json new file mode 100644 index 000000000000..4535ee780da3 --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceReimage.Recording.json @@ -0,0 +1,589 @@ +{ + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/reimage?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/reimage?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "22274963-a07a-43aa-90f1-199960f79d83" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "9d193d63-fa67-48fe-b553-5252d596eb60" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063342Z:9d193d63-fa67-48fe-b553-5252d596eb60" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:33:42 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "f9d2e3bc-6e85-4124-8511-aac700ec9f80" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "af04edcb-b03f-4ac0-bc02-1154aab31581" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "4261fafd-1a6f-4c0d-84d2-e214dfa80931" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063413Z:4261fafd-1a6f-4c0d-84d2-e214dfa80931" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:34:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:33:42.5799459+00:00\",\r\n \"endTime\": \"2020-11-24T06:33:57.891758+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"22274963-a07a-43aa-90f1-199960f79d83\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/22274963-a07a-43aa-90f1-199960f79d83?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "f9d2e3bc-6e85-4124-8511-aac700ec9f80" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "99e51efe-c1c8-4d2e-9629-8c51509183ba" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-correlation-request-id": [ "73418e95-fa17-49ba-aea9-91f87d365d57" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063413Z:73418e95-fa17-49ba-aea9-91f87d365d57" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:34:13 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "25a5cd1b-ad67-4205-885e-4ad65521e8b4" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "38979178-057a-4f95-a741-b41c03ccc082" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "fd5aeadc-eb9c-41f6-ba90-6e761726fe8f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063413Z:fd5aeadc-eb9c-41f6-ba90-6e761726fe8f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:34:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3611" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Manual\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"RDPExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Windows.Azure.Extensions\",\r\n \"type\": \"RDP\",\r\n \"typeHandlerVersion\": \"1.2.1\",\r\n \"settings\": \"\u003cPublicConfig\u003e\u003cUserName\u003euserazure\u003c/UserName\u003e\u003cExpiration\u003e11/24/2021 14:26:08\u003c/Expiration\u003e\u003c/PublicConfig\u003e\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/reimage?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/reimage?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8d3f7ea1-75cf-4b33-934b-10ca808dd75b" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "a126b5c1-90de-4c03-8d97-a909a819da99" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063414Z:a126b5c1-90de-4c03-8d97-a909a819da99" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:34:13 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "17de1414-34f3-4f0f-abc1-aad8bed8c563" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "bb1d2ec0-a7a8-41d9-9357-1902fbfbd7be" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063444Z:bb1d2ec0-a7a8-41d9-9357-1902fbfbd7be" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:34:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "9cf198a6-d6e7-4390-8f1a-cc8761a407bd" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "1053173c-f20a-400d-a2d6-f31ccb81a9bb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063515Z:1053173c-f20a-400d-a2d6-f31ccb81a9bb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:35:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "9eea5843-df9f-4c01-93ef-99db54f3956d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "038ed02e-3597-417b-8bf8-7116785bb8c8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063545Z:038ed02e-3597-417b-8bf8-7116785bb8c8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:35:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "c37a1ad8-87a5-405b-b627-fffd8959ae34" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "8df5ee76-85aa-4f95-a99c-3d881e11ee04" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063616Z:8df5ee76-85aa-4f95-a99c-3d881e11ee04" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:36:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "f8e1feb6-d2ec-4875-8bf0-1bfc99e165c2" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "35366c17-0d53-498d-8eeb-009f3b135c79" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063646Z:35366c17-0d53-498d-8eeb-009f3b135c79" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:36:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "81ffc302-9674-4c62-afd8-48fda8d7bbaf" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "6d1053de-eb7c-4c06-ac24-335adbff632a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063716Z:6d1053de-eb7c-4c06-ac24-335adbff632a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:37:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "f4ca8e35-dd2b-4c00-bcb0-812687032b54" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "7aa7489d-a09b-464a-b689-09424da3af3b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063747Z:7aa7489d-a09b-464a-b689-09424da3af3b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:37:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "66aebd80-c15e-45ab-a6ac-f5059f1c367f" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "79afc284-974b-4c59-8a8c-1e15dfd72a60" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063817Z:79afc284-974b-4c59-8a8c-1e15dfd72a60" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:38:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "eef0e3d1-adf9-45bd-97c5-d62e2fd10a87" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "01175da3-e9fb-4482-a620-aef75ef044c5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063848Z:01175da3-e9fb-4482-a620-aef75ef044c5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:38:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "182" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:34:14.28781+00:00\",\r\n \"endTime\": \"2020-11-24T06:38:27.3451463+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"8d3f7ea1-75cf-4b33-934b-10ca808dd75b\"\r\n}" + } + }, + "Invoke-AzCloudServiceReimage+[NoContext]+Reimage cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8d3f7ea1-75cf-4b33-934b-10ca808dd75b?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "3621c46a-765e-45d2-ac59-9d6d8c6154c6" ], + "CommandName": [ "Invoke-AzCloudServiceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceReimage_ReimageViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "cf7b8b70-3e9d-4aa2-98d5-0882b403c034" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "68c8b37c-4394-4239-bc7b-f91832505a05" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063848Z:68c8b37c-4394-4239-bc7b-f91832505a05" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:38:47 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceReimage.Tests.ps1 b/src/CloudService/test/Invoke-AzCloudServiceReimage.Tests.ps1 new file mode 100644 index 000000000000..ffd3ad06b62e --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceReimage.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceReimage.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCloudServiceReimage' { + + It 'Reimage cloud service' { + Invoke-AzCloudServiceReimage -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName + } + + It 'Reimage cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Invoke-AzCloudServiceReimage -InputObject $cloudService.Id -RoleInstance $env.RoleInstanceName + } +} diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json new file mode 100644 index 000000000000..a1bbef81fe6e --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json @@ -0,0 +1,599 @@ +{ + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "d2dd5b35-b869-4412-a4e3-ec3f7a67a428" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "25bca9ca-e46e-4909-a458-a3d990fb418c" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "d73e9798-9cbf-4163-9306-1221999c7182" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063849Z:d73e9798-9cbf-4163-9306-1221999c7182" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:38:48 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "d2dd5b35-b869-4412-a4e3-ec3f7a67a428" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "eb8c86f2-e0df-4a00-a3e8-a26b6f846a07" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "3b439b0c-f80b-4dbf-b4b6-a61b1fcab8b9" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063920Z:3b439b0c-f80b-4dbf-b4b6-a61b1fcab8b9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:39:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:38:49.4040477+00:00\",\r\n \"endTime\": \"2020-11-24T06:39:04.6949861+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"25bca9ca-e46e-4909-a458-a3d990fb418c\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/25bca9ca-e46e-4909-a458-a3d990fb418c?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "d2dd5b35-b869-4412-a4e3-ec3f7a67a428" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "924b67f1-7caf-4d1f-89c3-0c7eb93770fd" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-correlation-request-id": [ "260932f3-062b-4957-a622-11902ec111d1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063921Z:260932f3-062b-4957-a622-11902ec111d1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:39:21 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "742fd99a-bd72-4bd9-991b-960364c53491" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "e70b1d9f-a550-4d6c-aad5-e90666e4d75c" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "x-ms-correlation-request-id": [ "5b33b792-993b-42b1-8b16-397e8e2e5f66" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063921Z:5b33b792-993b-42b1-8b16-397e8e2e5f66" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:39:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c25e6b31-c4a5-4776-8021-72051b0d53bc" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "add55e40-13b8-4be6-ba07-de638abc8c3f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063922Z:add55e40-13b8-4be6-ba07-de638abc8c3f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:39:21 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "413c6c08-bcc6-4608-ae59-9cdb18950a88" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], + "x-ms-correlation-request-id": [ "62ee7925-eac6-457a-8b57-e131e7df7033" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T063952Z:62ee7925-eac6-457a-8b57-e131e7df7033" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:39:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "a8660d32-ece6-4df5-be65-bf0e4ceae754" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "x-ms-correlation-request-id": [ "388d1115-d2e7-42e1-80fe-8b1011b00e17" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064022Z:388d1115-d2e7-42e1-80fe-8b1011b00e17" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:40:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "ef36800a-1095-4869-854b-a3c74f4b2780" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "x-ms-correlation-request-id": [ "e14bed8b-1651-49a9-a811-1321fdeb0d49" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064053Z:e14bed8b-1651-49a9-a811-1321fdeb0d49" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:40:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "9096420c-a68a-4f14-9298-049d979b7169" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-correlation-request-id": [ "005482d1-a573-4f90-a7c1-df25a40fb1c7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064123Z:005482d1-a573-4f90-a7c1-df25a40fb1c7" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:41:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "1055503c-5f03-4541-b123-5e11b0b09eea" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "x-ms-correlation-request-id": [ "5f4765c8-a193-4186-8c22-639c5c0904ce" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064154Z:5f4765c8-a193-4186-8c22-639c5c0904ce" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:41:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "80552612-33d6-49b0-ad89-e8a9d023497c" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-correlation-request-id": [ "1bd9886e-23b5-4700-bede-c7e3fe1eaafb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064224Z:1bd9886e-23b5-4700-bede-c7e3fe1eaafb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:42:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "c8148fa3-bba1-406d-b22a-7726c479de55" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "8694c0ca-8a9f-44e5-80eb-7ba1d95ec57c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064255Z:8694c0ca-8a9f-44e5-80eb-7ba1d95ec57c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:42:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "40a86bd4-50a9-4f8e-ba19-794bca970b78" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "3ed05ddc-1483-4cbd-a481-2bab67570589" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064325Z:3ed05ddc-1483-4cbd-a481-2bab67570589" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:43:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "db5271cf-343f-407e-b9ed-1ad6645efccb" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-correlation-request-id": [ "a56408a0-eb45-4754-83f0-06279e44107a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064355Z:a56408a0-eb45-4754-83f0-06279e44107a" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:43:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:39:21.9550084+00:00\",\r\n \"endTime\": \"2020-11-24T06:43:50.2069653+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"c25e6b31-c4a5-4776-8021-72051b0d53bc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceRebuild+[NoContext]+Rebuild cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/c25e6b31-c4a5-4776-8021-72051b0d53bc?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "b2835aee-fbd0-4887-a9fc-3644f1ae5091" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceRebuild_RebuildViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "ea33abe0-d136-4dc9-a462-904f78c7e727" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], + "x-ms-correlation-request-id": [ "6fc71439-3717-4b00-adb0-5401752974f6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064356Z:6fc71439-3717-4b00-adb0-5401752974f6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:43:55 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Tests.ps1 b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Tests.ps1 new file mode 100644 index 000000000000..cc1342b21bbe --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceRebuild.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRoleInstanceRebuild.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCloudServiceRoleInstanceRebuild' { + + It 'Rebuild cloud service role instance' { + Invoke-AzCloudServiceRoleInstanceRebuild -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName + } + + It 'Rebuild cloud service role instance via identity' { + $cloudServiceRoleInstance = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Invoke-AzCloudServiceRoleInstanceRebuild -InputObject $cloudServiceRoleInstance[0] + } +} diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json new file mode 100644 index 000000000000..453699077491 --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Recording.json @@ -0,0 +1,279 @@ +{ + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "2a4691d0-cef2-4380-9861-ae8a760acab2" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8da0ec7c-6b1c-488e-9546-cc2faf4378dc" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "c81ad1d1-9cb9-4977-bd1c-738b780963cd" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064357Z:c81ad1d1-9cb9-4977-bd1c-738b780963cd" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:43:56 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "2a4691d0-cef2-4380-9861-ae8a760acab2" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "605119cc-f5f0-4326-be3e-51cf953d4e1e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], + "x-ms-correlation-request-id": [ "abd7cbb9-ab73-482b-919a-bcbf5bed2f61" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064427Z:abd7cbb9-ab73-482b-919a-bcbf5bed2f61" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:43:57.0952222+00:00\",\r\n \"endTime\": \"2020-11-24T06:44:12.4482217+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"8da0ec7c-6b1c-488e-9546-cc2faf4378dc\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8da0ec7c-6b1c-488e-9546-cc2faf4378dc?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "2a4691d0-cef2-4380-9861-ae8a760acab2" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_Reimage" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "bdd462b1-a6ff-4d04-9e3b-95986b52419f" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], + "x-ms-correlation-request-id": [ "20b83f78-7c16-41e2-af8b-1ab9ec51ef9d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064428Z:20b83f78-7c16-41e2-af8b-1ab9ec51ef9d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:27 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "7fb1d768-21e0-4885-9c1f-be3e4b13c3e6" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8979b5d2-24da-4e48-96fd-8de764fee828" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], + "x-ms-correlation-request-id": [ "544c4613-c96e-4534-a0fc-69a143abfa84" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064428Z:544c4613-c96e-4534-a0fc-69a143abfa84" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "44087328-eb08-40db-94ab-d736253a0eff" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8e247f42-412b-47b4-8aca-1d051761ed6e" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "6171ea44-8033-4be8-b78e-e39e5b450012" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064429Z:6171ea44-8033-4be8-b78e-e39e5b450012" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:28 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "44087328-eb08-40db-94ab-d736253a0eff" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "27864279-7386-455f-a8e0-a31a8c9a8589" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], + "x-ms-correlation-request-id": [ "36a2bef5-a7bf-4ca7-b0c9-5e34292e4f6b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064459Z:36a2bef5-a7bf-4ca7-b0c9-5e34292e4f6b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:44:28.8519704+00:00\",\r\n \"endTime\": \"2020-11-24T06:44:44.2499393+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"8e247f42-412b-47b4-8aca-1d051761ed6e\"\r\n}" + } + }, + "Invoke-AzCloudServiceRoleInstanceReimage+[NoContext]+Reimage cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8e247f42-412b-47b4-8aca-1d051761ed6e?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "44087328-eb08-40db-94ab-d736253a0eff" ], + "CommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage" ], + "FullCommandName": [ "Invoke-AzCloudServiceRoleInstanceReimage_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "f8b62694-167d-4f03-bd5c-f0afab1957c4" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], + "x-ms-correlation-request-id": [ "0dab09f4-0509-4a6e-9382-1aaeb5c807aa" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064459Z:0dab09f4-0509-4a6e-9382-1aaeb5c807aa" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:44:59 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Tests.ps1 b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Tests.ps1 new file mode 100644 index 000000000000..d86bdf75b63c --- /dev/null +++ b/src/CloudService/test/Invoke-AzCloudServiceRoleInstanceReimage.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCloudServiceRoleInstanceReimage.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCloudServiceRoleInstanceReimage' { + + It 'Reimage cloud service role instance' { + Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName + } + + It 'Reimage cloud service role instance via identity' { + $cloudServiceRoleInstance = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Invoke-AzCloudServiceRoleInstanceReimage -InputObject $cloudServiceRoleInstance[0] + } +} diff --git a/src/CloudService/test/New-AzCloudService.Recording.json b/src/CloudService/test/New-AzCloudService.Recording.json new file mode 100644 index 000000000000..3327ffb6c711 --- /dev/null +++ b/src/CloudService/test/New-AzCloudService.Recording.json @@ -0,0 +1,37 @@ +{ + "New-AzCloudService+[NoContext]+UpdateExpanded: Create new cloud service+$PUT+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"properties\": {\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"autoUpgradeMinorVersion\": false,\r\n \"protectedSettings\": \"\",\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"settings\": \"\",\r\n \"typeHandlerVersion\": \"2.14.0.2\"\r\n },\r\n \"name\": \"GenevaExtension\"\r\n }\r\n ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"packageUrl\": \"https://cscmdlettestdmqk3j58.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07\\u0026sr=b\\u0026sig=PheSOk0knMWoEoN19ktzg7Zhu4gomgtZDcrDEXHdhus%3D\\u0026st=2020-11-24T06%3A25%3A28Z\\u0026se=2021-11-24T06%3A25%3A28Z\\u0026sp=rwd\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"capacity\": 2,\r\n \"tier\": \"Standard\"\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"capacity\": 2,\r\n \"tier\": \"Standard\"\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n }\r\n },\r\n \"location\": \"EastUS2EUAP\"\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3872" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/ae9bcf74-08f4-4005-98c5-c7ba6f18edfe?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "ae9bcf74-08f4-4005-98c5-c7ba6f18edfe" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "1fef538a-ab70-4202-aa55-5f54239044ea" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064501Z:1fef538a-ab70-4202-aa55-5f54239044ea" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:45:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3520" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Updating\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/New-AzCloudService.Tests.ps1 b/src/CloudService/test/New-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..6a91d6b36ffa --- /dev/null +++ b/src/CloudService/test/New-AzCloudService.Tests.ps1 @@ -0,0 +1,46 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudService' -skip { + It 'UpdateExpanded: Create new cloud service' { + # Create Network Profile + $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name "cscmdlettestLBFE" -PublicIPAddressId $env.NewCSPublicIPId + $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name "cscmdlettestLB" -FrontendIPConfiguration $feIpConfig + $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + + # Create Role Profile + $role1 = New-AzCloudServiceRoleProfilePropertiesObject -Name "WebRole" -SkuName "Standard_D1_v2" -SkuTier "Standard" -SkuCapacity 2 + $role2 = New-AzCloudServiceRoleProfilePropertiesObject -Name "WorkerRole" -SkuName "Standard_D1_v2" -SkuTier "Standard" -SkuCapacity 2 + $roleProfile = @{role = @($role1, $role2)} + + # Create Extension Profile + $genevaExtension = New-AzCloudServiceExtensionObject -Name GenevaExtension -Publisher Microsoft.Azure.Geneva -Type GenevaMonitoringPaaS -TypeHandlerVersion "2.14.0.2" + $extensionProfile = @{extension = @($genevaExtension)} + + # Read Configuration File + $cscfgFilePath = Join-Path $PSScriptRoot $env.CscfgFile + $cscfgText = [IO.File]::ReadAllText($cscfgFilePath) + + # Create Cloud Service + $cloudService = New-AzCloudService ` + -Name $env.CloudServiceName ` + -ResourceGroupName $env.ResourceGroupName ` + -Location $env.Location ` + -PackageUrl $env.CspkgUrl ` + -Configuration $cscfgText ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile + $cloudService.ResourceGroupName -eq $env.ResourceGroupName | Should be $true + } +} diff --git a/src/CloudService/test/New-AzCloudServiceDiagnosticsExtension.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceDiagnosticsExtension.Tests.ps1 new file mode 100644 index 000000000000..7ba05b1cdd3d --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceDiagnosticsExtension.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceDiagnosticsExtension.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceDiagnosticsExtension' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceExtensionObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceExtensionObject.Tests.ps1 new file mode 100644 index 000000000000..b5e29eab13c7 --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceExtensionObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceExtensionObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceExtensionObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceLoadBalancerConfigurationObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceLoadBalancerConfigurationObject.Tests.ps1 new file mode 100644 index 000000000000..4c825f986a75 --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceLoadBalancerConfigurationObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceLoadBalancerConfigurationObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceLoadBalancerConfigurationObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.Tests.ps1 new file mode 100644 index 000000000000..197d60ee55df --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceRemoteDesktopExtensionObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceRemoteDesktopExtensionObject.Tests.ps1 new file mode 100644 index 000000000000..60340fe113d9 --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceRemoteDesktopExtensionObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceRemoteDesktopExtensionObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceRemoteDesktopExtensionObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceRoleProfilePropertiesObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceRoleProfilePropertiesObject.Tests.ps1 new file mode 100644 index 000000000000..a7dcf14d754f --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceRoleProfilePropertiesObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceRoleProfilePropertiesObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceRoleProfilePropertiesObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/New-AzCloudServiceVaultSecretGroupObject.Tests.ps1 b/src/CloudService/test/New-AzCloudServiceVaultSecretGroupObject.Tests.ps1 new file mode 100644 index 000000000000..ed12ad7c73ef --- /dev/null +++ b/src/CloudService/test/New-AzCloudServiceVaultSecretGroupObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCloudServiceVaultSecretGroupObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCloudServiceVaultSecretGroupObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Remove-AzCloudService.Tests.ps1 b/src/CloudService/test/Remove-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..b6bf4f4ac6fa --- /dev/null +++ b/src/CloudService/test/Remove-AzCloudService.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzCloudService' { + It 'Delete cloud service' -skip { + $publicIpName = "removecstestip" + $cloudServiceName = "cscmdlettest" + (RandomString $false 8) + CreateCloudService $publicIpName $cloudServiceName + Remove-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $cloudServiceName + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Remove-AzCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/test/Remove-AzCloudServiceRoleInstance.Tests.ps1 new file mode 100644 index 000000000000..949bcf9ee0fb --- /dev/null +++ b/src/CloudService/test/Remove-AzCloudServiceRoleInstance.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzCloudServiceRoleInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzCloudServiceRoleInstance' { + + It 'Delete role instance' -skip { + Remove-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName + } + + It 'Delete role instance via identity' -skip { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Remove-AzCloudServiceRoleInstance -InputObject $cloudService -RoleInstance $env.RoleInstanceName + } +} diff --git a/src/CloudService/test/Reset-AzCloudService.Recording.json b/src/CloudService/test/Reset-AzCloudService.Recording.json new file mode 100644 index 000000000000..71de59ad9322 --- /dev/null +++ b/src/CloudService/test/Reset-AzCloudService.Recording.json @@ -0,0 +1,704 @@ +{ + "Reset-AzCloudService+[NoContext]+Reimage cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/reimage?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/reimage?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "0d3e9566-6850-4b65-ba62-bc8f27b1676f" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "ac77e607-98e2-42e9-a8c1-b333eee4bacc" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081052Z:ac77e607-98e2-42e9-a8c1-b333eee4bacc" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:10:51 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudService+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "375" ], + "x-ms-client-request-id": [ "7ec41065-5160-42f3-826f-217e695c4806" ], + "CommandName": [ "Az.CloudService.internal\\Update-AzCloudService" ], + "FullCommandName": [ "Update-AzCloudService_ReimageExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "71aaf209-10df-4417-b081-010de5c36774" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "ceab538a-9c20-44a7-b07f-907ee9f7b13c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081122Z:ceab538a-9c20-44a7-b07f-907ee9f7b13c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:10:52.3016991+00:00\",\r\n \"endTime\": \"2020-10-27T08:11:07.6429181+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"0d3e9566-6850-4b65-ba62-bc8f27b1676f\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Reimage cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/0d3e9566-6850-4b65-ba62-bc8f27b1676f?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "376" ], + "x-ms-client-request-id": [ "7ec41065-5160-42f3-826f-217e695c4806" ], + "CommandName": [ "Az.CloudService.internal\\Update-AzCloudService" ], + "FullCommandName": [ "Update-AzCloudService_ReimageExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "c3f42272-2de1-4513-895c-feff7bb3aa1c" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "14f92ac9-887f-44bc-ba7b-249c5ba51e42" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081123Z:14f92ac9-887f-44bc-ba7b-249c5ba51e42" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudService+[NoContext]+Rebuild cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/rebuild?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/rebuild?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "361a5d10-5719-42e5-82a2-1a9f879f1119" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "99a9e17d-709f-44ea-b17c-08825eb47c1c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081123Z:99a9e17d-709f-44ea-b17c-08825eb47c1c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudService+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "378" ], + "x-ms-client-request-id": [ "03fa9364-0b76-4b9b-9d26-280d703aa727" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudService" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudService_RebuildExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "d20493e1-4742-4eab-9838-043f145940c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "5d8c6842-c81d-4666-808b-ac88aac400f3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081153Z:5d8c6842-c81d-4666-808b-ac88aac400f3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:23.4239672+00:00\",\r\n \"endTime\": \"2020-10-27T08:11:38.7226854+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"361a5d10-5719-42e5-82a2-1a9f879f1119\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Rebuild cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/361a5d10-5719-42e5-82a2-1a9f879f1119?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "379" ], + "x-ms-client-request-id": [ "03fa9364-0b76-4b9b-9d26-280d703aa727" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudService" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudService_RebuildExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "05ba6ff7-09ee-46a8-8c4d-95621011e18e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-correlation-request-id": [ "21515642-3a5c-4487-915d-066a4e349c60" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081154Z:21515642-3a5c-4487-915d-066a4e349c60" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:54 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/restart?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/restart?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "6a4806a2-fac6-44b9-93ac-1a2bdb06d612" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "b2dadb62-d260-42ab-ac79-ffbdcc75fe67" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081154Z:b2dadb62-d260-42ab-ac79-ffbdcc75fe67" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:11:54 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "381" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "55b9fc56-5d6b-482a-a8b2-657fc4328759" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "1d4e2d42-03bf-4a3c-8024-2ef1e550c4eb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081225Z:1d4e2d42-03bf-4a3c-8024-2ef1e550c4eb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:12:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "382" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "b4bd5762-da0e-44a7-b2bf-e6b6f5b8c0db" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "c6bd8ce9-47d4-4eab-b3cc-85b823cfef91" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081255Z:c6bd8ce9-47d4-4eab-b3cc-85b823cfef91" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:12:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "383" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "76600f2d-d16d-4253-b03e-671991cd1a14" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "ed1fee00-48b8-4dc9-a0c5-866e66ebd198" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081325Z:ed1fee00-48b8-4dc9-a0c5-866e66ebd198" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:13:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "384" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "93f51fc4-2aaf-4cc2-a4a8-9d400b80a75b" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-correlation-request-id": [ "b2cfa8fc-99b2-4d31-9700-c33f53676c8c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081356Z:b2cfa8fc-99b2-4d31-9700-c33f53676c8c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:13:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "385" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "7607b96c-923e-4e65-bc19-1ea18a6a1b2b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "0f4e8045-e5a4-4eeb-ab25-06f7a0cb54d3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081426Z:0f4e8045-e5a4-4eeb-ab25-06f7a0cb54d3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:14:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "386" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "1e67ebbc-5353-4cbb-a3ff-8f14b88f6835" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-correlation-request-id": [ "a6f84447-eaa4-42fc-bc53-351fd0fcecab" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081457Z:a6f84447-eaa4-42fc-bc53-351fd0fcecab" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:14:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "387" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "a13c3c6a-f7a4-4727-9ec1-03a927899cf7" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-correlation-request-id": [ "f62a2493-07c3-41a4-98c0-26e2fcf0d65d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081527Z:f62a2493-07c3-41a4-98c0-26e2fcf0d65d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:15:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "388" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "acd54eb3-589b-4fac-972d-773b90b32e12" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-correlation-request-id": [ "998b0ab0-08b1-4a00-ae6e-863da946be98" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081557Z:998b0ab0-08b1-4a00-ae6e-863da946be98" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:15:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "389" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "4b865754-1785-44fa-b90f-19ce48f30c11" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-correlation-request-id": [ "7df50dc1-1888-4ce6-a814-6cd8ae259ee3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081628Z:7df50dc1-1888-4ce6-a814-6cd8ae259ee3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:16:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "390" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "0f910b68-32f3-440a-a79e-f6e59cd007eb" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "1aeffd90-1fcd-4251-a954-33d5a6ba87c7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081658Z:1aeffd90-1fcd-4251-a954-33d5a6ba87c7" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:16:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:11:54.5543606+00:00\",\r\n \"endTime\": \"2020-10-27T08:16:42.4439419+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"6a4806a2-fac6-44b9-93ac-1a2bdb06d612\"\r\n}" + } + }, + "Reset-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6a4806a2-fac6-44b9-93ac-1a2bdb06d612?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "391" ], + "x-ms-client-request-id": [ "9055db65-f128-4949-a03d-0ec69fc7d406" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "0ca08569-d02a-4d7f-82e7-280140447a93" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-correlation-request-id": [ "0930799f-e7e6-43a1-a3ed-fbe59ba6f4d6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081658Z:0930799f-e7e6-43a1-a3ed-fbe59ba6f4d6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:16:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Reset-AzCloudServiceRoleInstance.Recording.json b/src/CloudService/test/Reset-AzCloudServiceRoleInstance.Recording.json new file mode 100644 index 000000000000..7f11aa1b7fee --- /dev/null +++ b/src/CloudService/test/Reset-AzCloudServiceRoleInstance.Recording.json @@ -0,0 +1,758 @@ +{ + "Reset-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "392" ], + "x-ms-client-request-id": [ "0e48c1fa-08c5-4c65-a6ee-cd0f25840241" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7ddfdc18-67e7-42d9-bd57-c758b42f64ab" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "278970c1-78d8-404a-86e0-1bff85d7e1ca" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081700Z:278970c1-78d8-404a-86e0-1bff85d7e1ca" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:16:59 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "393" ], + "x-ms-client-request-id": [ "0e48c1fa-08c5-4c65-a6ee-cd0f25840241" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "ca948edd-65d9-4109-970f-c7daaac0d738" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-correlation-request-id": [ "c2015125-d28c-4e33-a362-217bb62155d9" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081730Z:c2015125-d28c-4e33-a362-217bb62155d9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:17:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:16:59.9237273+00:00\",\r\n \"endTime\": \"2020-10-27T08:17:15.1648889+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"7ddfdc18-67e7-42d9-bd57-c758b42f64ab\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/7ddfdc18-67e7-42d9-bd57-c758b42f64ab?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "394" ], + "x-ms-client-request-id": [ "0e48c1fa-08c5-4c65-a6ee-cd0f25840241" ], + "CommandName": [ "Az.CloudService.internal\\Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "6ce03041-613d-4431-b5f6-7cff84b31f08" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "c944f90f-b1fc-4568-b968-cd241d3e4005" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081730Z:c944f90f-b1fc-4568-b968-cd241d3e4005" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:17:30 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/rebuild?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "395" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "25e86c36-74b5-45f9-aa6f-711b467dd77e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081731Z:25e86c36-74b5-45f9-aa6f-711b467dd77e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:17:30 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "396" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "6c2da19c-f5f9-45e1-809b-2b187f12d94c" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "da8b8c5c-fc86-4542-933b-c7b8d6fb302f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081801Z:da8b8c5c-fc86-4542-933b-c7b8d6fb302f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:18:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "397" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "7580340d-b4b1-44a6-a591-c6280f1e26d1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "0139c9cb-e0a4-4d9a-8eba-ff79bfd89483" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081831Z:0139c9cb-e0a4-4d9a-8eba-ff79bfd89483" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:18:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "398" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "16afac8d-0ce7-4176-b439-a1e995ae29b1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-correlation-request-id": [ "9e8aa7e8-00cb-4555-8ce4-1fb9852b2f8e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081902Z:9e8aa7e8-00cb-4555-8ce4-1fb9852b2f8e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:19:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "399" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "d29aa6b4-cb6b-4f7a-8f21-cc7d7d12424e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "ac7f8026-56b5-4b4f-b2e8-10a8ed63f2dc" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T081932Z:ac7f8026-56b5-4b4f-b2e8-10a8ed63f2dc" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:19:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "400" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "f668760f-eda8-41f8-a821-76815a11b5bc" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-correlation-request-id": [ "2872056a-d60b-434f-be78-0dac0a41c00c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082003Z:2872056a-d60b-434f-be78-0dac0a41c00c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:20:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "401" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "dcbeef27-e139-4424-b72b-253f06284400" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "x-ms-correlation-request-id": [ "f702662e-9d8b-46cd-9502-9796d4ca2f49" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082033Z:f702662e-9d8b-46cd-9502-9796d4ca2f49" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:20:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "402" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "545d8c22-572b-4d31-b3b6-f9cd08ecc12f" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], + "x-ms-correlation-request-id": [ "e657b8ec-105e-430e-aa78-fa0964fd60f5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082104Z:e657b8ec-105e-430e-aa78-fa0964fd60f5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:21:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "403" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "664582c9-afe6-4726-9ae3-61f7f95e6f5e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "x-ms-correlation-request-id": [ "a7966b2a-c126-4c42-8a70-ae2ec910bfd6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082134Z:a7966b2a-c126-4c42-8a70-ae2ec910bfd6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:21:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "404" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "2d0758f0-52c9-4b49-8240-31a724202208" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "x-ms-correlation-request-id": [ "3986325c-8063-4ccb-8fe1-6275ff8139d8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082204Z:3986325c-8063-4ccb-8fe1-6275ff8139d8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:22:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "405" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "96b7cffd-0650-4493-9c8f-813ec656de0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-correlation-request-id": [ "a40efe1c-fa5e-4802-897d-3191cbffe8f5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082235Z:a40efe1c-fa5e-4802-897d-3191cbffe8f5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:22:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:17:31.0118812+00:00\",\r\n \"endTime\": \"2020-10-27T08:22:13.819872+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Rebuild cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/eb9cfb86-5be8-46c7-8c2a-bd9ce8a58d88?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "406" ], + "x-ms-client-request-id": [ "76ba1b0b-b87b-4719-a4c4-0bea287148fa" ], + "CommandName": [ "Az.CloudService.internal\\Invoke-AzCloudServiceRebuildCloudServiceRoleInstance" ], + "FullCommandName": [ "Invoke-AzCloudServiceRebuildCloudServiceRoleInstance_Rebuild" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "18b563a3-87d8-4be4-87f1-099b9d819ce3" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "x-ms-correlation-request-id": [ "5ab57a2c-938b-4cf4-8e70-422da94a1b86" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082235Z:5ab57a2c-938b-4cf4-8e70-422da94a1b86" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:22:35 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestutwbz690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "407" ], + "x-ms-client-request-id": [ "cf327f20-f70d-434a-8e01-ae4326eb92c6" ], + "CommandName": [ "Az.CloudService.internal\\Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "082fbc4d-6aac-44d3-b58b-92054259c877" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-correlation-request-id": [ "0983edcd-9fcb-4e7b-82e7-f5df0c93b5eb" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082235Z:0983edcd-9fcb-4e7b-82e7-f5df0c93b5eb" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:22:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "665" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTUTWBZ690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTUTWBZ690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Reimage cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTUTWBZ690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTUTWBZ690/providers/Microsoft.Compute/cloudServices/cscmdlettesta5inls8t/roleInstances/WebRole_IN_0/reimage?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "408" ], + "x-ms-client-request-id": [ "a29db5e1-96a2-4ceb-8b62-85e7f87a865a" ], + "CommandName": [ "Az.CloudService.internal\\Update-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Update-AzCloudServiceRoleInstance_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "8c03ff98-5a2d-47e8-92d8-3f29ade2c41b" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "cf5d22f6-1ce4-4731-8f71-6a4e10995df7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082236Z:cf5d22f6-1ce4-4731-8f71-6a4e10995df7" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:22:35 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "409" ], + "x-ms-client-request-id": [ "a29db5e1-96a2-4ceb-8b62-85e7f87a865a" ], + "CommandName": [ "Az.CloudService.internal\\Update-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Update-AzCloudServiceRoleInstance_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "99a5ff57-f02a-40ec-a46a-b6931447d264" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "c9708eef-7e81-42ba-9deb-4b3fc9ab9649" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082306Z:c9708eef-7e81-42ba-9deb-4b3fc9ab9649" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:23:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-10-27T08:22:36.2345242+00:00\",\r\n \"endTime\": \"2020-10-27T08:22:51.5642645+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"8c03ff98-5a2d-47e8-92d8-3f29ade2c41b\"\r\n}" + } + }, + "Reset-AzCloudServiceRoleInstance+[NoContext]+Reimage cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/8c03ff98-5a2d-47e8-92d8-3f29ade2c41b?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "410" ], + "x-ms-client-request-id": [ "a29db5e1-96a2-4ceb-8b62-85e7f87a865a" ], + "CommandName": [ "Az.CloudService.internal\\Update-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Update-AzCloudServiceRoleInstance_ReimageViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132477351199522606" ], + "x-ms-request-id": [ "f343179a-f232-4d8f-84ab-30c290d0036d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "c5fe456d-cbf0-4aee-a179-7a57a30b7c28" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201027T082307Z:c5fe456d-cbf0-4aee-a179-7a57a30b7c28" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 27 Oct 2020 08:23:06 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Restart-AzCloudService.Recording.json b/src/CloudService/test/Restart-AzCloudService.Recording.json new file mode 100644 index 000000000000..91b1ba857fd2 --- /dev/null +++ b/src/CloudService/test/Restart-AzCloudService.Recording.json @@ -0,0 +1,869 @@ +{ + "Restart-AzCloudService+[NoContext]+Restart cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/restart?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/restart?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "6da3bd99-67e5-4dcf-8afc-a931e145b5b3" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "0c38f953-5a92-411b-9e26-05d6ab4c946c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064506Z:0c38f953-5a92-411b-9e26-05d6ab4c946c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:45:06 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "91a02906-886d-4db5-b687-6dbc5f4d0cfa" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "695680b1-f997-409b-907b-8b18839b168f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064537Z:695680b1-f997-409b-907b-8b18839b168f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:45:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "611e859d-0772-44a3-b164-d8bd574542d0" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], + "x-ms-correlation-request-id": [ "36c17e4b-082b-47a0-83f8-d7c816bba973" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064608Z:36c17e4b-082b-47a0-83f8-d7c816bba973" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:46:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "924a71c9-8034-4d70-ab21-175493725ebc" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], + "x-ms-correlation-request-id": [ "5ac859d0-ae79-497d-aa55-4fb0a5e4da89" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064638Z:5ac859d0-ae79-497d-aa55-4fb0a5e4da89" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:46:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "d6f25bc4-877d-43c5-99ce-5033fdb37dea" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], + "x-ms-correlation-request-id": [ "548d0701-4f1e-4717-a12b-35be2c89fb0c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064709Z:548d0701-4f1e-4717-a12b-35be2c89fb0c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:47:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "26ad73d9-31f8-4016-a8f1-14c88cb1d94f" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-correlation-request-id": [ "369e5f84-bc05-4052-94b3-b0f90af5cf3c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064739Z:369e5f84-bc05-4052-94b3-b0f90af5cf3c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:47:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "51ce196d-69c7-48d4-8192-3ced0de54b0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-correlation-request-id": [ "df6cfcf7-ec74-495f-9ad6-917b0d60dfa9" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064809Z:df6cfcf7-ec74-495f-9ad6-917b0d60dfa9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:48:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "51993645-c7b4-49ca-b831-0e1d9b506d92" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-correlation-request-id": [ "ac2e00d6-6369-4c9d-a9b9-7afc34b8cab5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064840Z:ac2e00d6-6369-4c9d-a9b9-7afc34b8cab5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:48:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "95b50266-fe5c-4246-b736-c8abfa27f0dd" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], + "x-ms-correlation-request-id": [ "106d9b26-2896-41c3-b125-b4a27cf341f5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064910Z:106d9b26-2896-41c3-b125-b4a27cf341f5" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:49:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "e812c5fc-f4d1-40e7-84e2-f804fed8a3f6" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], + "x-ms-correlation-request-id": [ "57567f9c-a01e-43df-b0ae-45153b1ddda3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T064941Z:57567f9c-a01e-43df-b0ae-45153b1ddda3" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:49:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "040f2c95-220a-4233-a205-30969a3b0759" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], + "x-ms-correlation-request-id": [ "657ca6f3-016f-45b1-8b8c-08111705e419" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065011Z:657ca6f3-016f-45b1-8b8c-08111705e419" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:50:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "eaf90311-78ce-44dd-81b4-abe88f6b9339" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], + "x-ms-correlation-request-id": [ "d8ecd48c-3cfa-4c4c-b012-efdb9ca22b0f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065042Z:d8ecd48c-3cfa-4c4c-b012-efdb9ca22b0f" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:50:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "21e36f08-a0b3-4322-acb4-bce2c7c5d4a1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], + "x-ms-correlation-request-id": [ "986e1f38-8e9a-4be6-97d1-5dd5e8c0e491" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065112Z:986e1f38-8e9a-4be6-97d1-5dd5e8c0e491" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:51:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "58f28048-7e93-45fb-bef0-9eb4a4915fe9" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], + "x-ms-correlation-request-id": [ "647644ba-4fe0-4a88-ae9c-31192f25d84d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065142Z:647644ba-4fe0-4a88-ae9c-31192f25d84d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:51:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "fc7b657f-8cbf-4aa1-8013-012aadc56170" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "721e337e-3618-47b3-b937-48622d393309" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065213Z:721e337e-3618-47b3-b937-48622d393309" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:52:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "fc4e3a86-74b1-4440-9ff1-2e5145957c5b" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], + "x-ms-correlation-request-id": [ "d3697975-926b-41f0-a580-b2fd1f4c72a1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065244Z:d3697975-926b-41f0-a580-b2fd1f4c72a1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:52:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "fd279ce1-1b62-4206-85c7-a27782294002" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "05670808-07eb-4576-a22a-5ed1140e2bc1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065314Z:05670808-07eb-4576-a22a-5ed1140e2bc1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:45:06.5730886+00:00\",\r\n \"endTime\": \"2020-11-24T06:53:13.7814041+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"6da3bd99-67e5-4dcf-8afc-a931e145b5b3\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?monitor=true\u0026api-version=2020-10-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/6da3bd99-67e5-4dcf-8afc-a931e145b5b3?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "9df0a2cb-28ab-417e-b9ef-c9bdf3da3088" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "cb0dd643-38bf-4cde-baac-905d2e1d61bc" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], + "x-ms-correlation-request-id": [ "8fd2bad3-91c4-4170-8213-850ea3d64c1b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065315Z:8fd2bad3-91c4-4170-8213-850ea3d64c1b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "c88d01c0-92ac-4991-b907-612989f25959" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "bbe0813b-8644-40c6-843c-fb69921b5c46" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], + "x-ms-correlation-request-id": [ "82dbedb8-c4b7-40cc-a0b8-9459fdf23c9d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065315Z:82dbedb8-c4b7-40cc-a0b8-9459fdf23c9d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/restart?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/restart?api-version=2020-10-01-preview", + "Content": "{\r\n \"roleInstances\": [ \"WebRole_IN_0\" ]\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "43" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "85cb9bcc-0a61-42b0-b59e-91afdde91e94" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-correlation-request-id": [ "e9e0a1af-3675-437c-ad94-ed28f57f4d9b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065316Z:e9e0a1af-3675-437c-ad94-ed28f57f4d9b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "7b3ccf18-d064-457c-87c4-f85602c42910" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "92d202b5-74f4-411b-ab61-c4cfe453fac7" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], + "x-ms-correlation-request-id": [ "8c8617ba-c7f0-4c22-b26f-d816176dc07e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065346Z:8c8617ba-c7f0-4c22-b26f-d816176dc07e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:53:16.0398817+00:00\",\r\n \"endTime\": \"2020-11-24T06:53:31.412268+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"85cb9bcc-0a61-42b0-b59e-91afdde91e94\"\r\n}" + } + }, + "Restart-AzCloudService+[NoContext]+Restart cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/85cb9bcc-0a61-42b0-b59e-91afdde91e94?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "7b3ccf18-d064-457c-87c4-f85602c42910" ], + "CommandName": [ "Restart-AzCloudService" ], + "FullCommandName": [ "Restart-AzCloudService_RestartViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "2f522972-f647-4946-b439-35cfb70f1594" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], + "x-ms-correlation-request-id": [ "0c0874d9-00b7-4885-9e63-513c235f0738" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065346Z:0c0874d9-00b7-4885-9e63-513c235f0738" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:46 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Restart-AzCloudService.Tests.ps1 b/src/CloudService/test/Restart-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..45a7b796bf0c --- /dev/null +++ b/src/CloudService/test/Restart-AzCloudService.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restart-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restart-AzCloudService' { + + It 'Restart cloud service' { + Restart-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstance $env.RoleInstanceName + } + + It 'Restart cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Restart-AzCloudService -InputObject $cloudService -RoleInstance $env.RoleInstanceName + } +} diff --git a/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json new file mode 100644 index 000000000000..1eb5b23eda47 --- /dev/null +++ b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Recording.json @@ -0,0 +1,599 @@ +{ + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "58e79112-02b8-4e41-8ee4-2b16f5ecbde8" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "3f966391-f586-4590-893b-62a482f1e2ef" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "x-ms-correlation-request-id": [ "ac038034-10fc-40e1-9c78-b0de3c0cf8d4" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065347Z:ac038034-10fc-40e1-9c78-b0de3c0cf8d4" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:53:47 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "58e79112-02b8-4e41-8ee4-2b16f5ecbde8" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "a9f19b91-85bb-4af2-8bc2-7dcf092776d5" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], + "x-ms-correlation-request-id": [ "e4c854eb-855d-4805-b995-ea05e47e9aa9" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065418Z:e4c854eb-855d-4805-b995-ea05e47e9aa9" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:54:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:53:47.7921871+00:00\",\r\n \"endTime\": \"2020-11-24T06:54:03.2176353+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"3f966391-f586-4590-893b-62a482f1e2ef\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f966391-f586-4590-893b-62a482f1e2ef?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "58e79112-02b8-4e41-8ee4-2b16f5ecbde8" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "06753c45-50d5-4fbe-83ca-6d5058737a11" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], + "x-ms-correlation-request-id": [ "e3b7b8db-f3fc-496e-bc5d-e8b58fb39e43" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065418Z:e3b7b8db-f3fc-496e-bc5d-e8b58fb39e43" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:54:18 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "57465d88-64d1-4035-942d-d6fe790e121a" ], + "CommandName": [ "Get-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Get-AzCloudServiceRoleInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "ff388e2c-2f6e-47c9-910a-74c061ed8e89" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], + "x-ms-correlation-request-id": [ "f2670f78-af3f-414c-8663-723fe5cbe888" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065419Z:f2670f78-af3f-414c-8663-723fe5cbe888" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:54:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2920" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"WebRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WebRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_0\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_0/networkInterfaces/nic1\"}]}\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole_IN_1\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1\",\r\n \"type\": \"Microsoft.Compute/cloudServices/roleInstances\",\r\n \"location\": \"eastus2euap\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WorkerRole_IN_1/networkInterfaces/nic1\"}]}\r\n }\r\n }\r\n ]\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/roleInstances/WebRole_IN_0/restart?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "e2bd6acb-3de2-4e78-9682-8911c675ab3b" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "x-ms-correlation-request-id": [ "9f8233e2-18ea-4d60-80b5-2fe0c2139dab" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065419Z:9f8233e2-18ea-4d60-80b5-2fe0c2139dab" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:54:19 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "b7940a99-d58f-4479-85ac-8866e5e4a031" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], + "x-ms-correlation-request-id": [ "6876045a-392d-4cd9-9066-0b767978d25d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065450Z:6876045a-392d-4cd9-9066-0b767978d25d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:54:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "96fefb2f-b3cd-418c-9a5a-cd2c1fef8b21" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], + "x-ms-correlation-request-id": [ "3362c4a1-d3fc-49d6-a4ae-018c626570d6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065520Z:3362c4a1-d3fc-49d6-a4ae-018c626570d6" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:55:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "511d8d7e-790e-45c3-8501-de7848c7a919" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], + "x-ms-correlation-request-id": [ "e056b52e-70d2-43ca-b56b-fe88cf00710d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065550Z:e056b52e-70d2-43ca-b56b-fe88cf00710d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:55:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "107" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "aeb46f93-26f3-428d-9da1-070ae7e83feb" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], + "x-ms-correlation-request-id": [ "11d1542a-8cdc-4335-8e39-76a7e6a5b87e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065621Z:11d1542a-8cdc-4335-8e39-76a7e6a5b87e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:56:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "d0f5877b-9e7c-4c58-8b35-0537a1e61e5d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], + "x-ms-correlation-request-id": [ "3f32acb8-4ecb-4fda-9910-6b7f711b782c" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065651Z:3f32acb8-4ecb-4fda-9910-6b7f711b782c" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:56:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "5870bf90-4bfb-4db7-98d2-aedbafe5d92e" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], + "x-ms-correlation-request-id": [ "ec6f0915-6db6-44d3-936d-9ee7ff279840" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065722Z:ec6f0915-6db6-44d3-936d-9ee7ff279840" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:57:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "97b81758-ad00-4105-a26e-81bfbf9a0ede" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], + "x-ms-correlation-request-id": [ "54895c86-aae4-4149-9d45-3a2f347ccde0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065752Z:54895c86-aae4-4149-9d45-3a2f347ccde0" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:57:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "8a95fe4d-c324-4b3a-9da1-9777ab3bf7a6" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], + "x-ms-correlation-request-id": [ "3941bf13-4317-4d68-ba98-3bf274a7c861" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065822Z:3941bf13-4317-4d68-ba98-3bf274a7c861" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:58:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "13e3ef1b-ab63-41c3-9df6-19b773ad8452" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-correlation-request-id": [ "aa4298df-0a93-4f9f-bcfd-49d66d9ce9fd" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065853Z:aa4298df-0a93-4f9f-bcfd-49d66d9ce9fd" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:58:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:54:19.4460092+00:00\",\r\n \"endTime\": \"2020-11-24T06:58:47.9094578+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"e2bd6acb-3de2-4e78-9682-8911c675ab3b\"\r\n}" + } + }, + "Restart-AzCloudServiceRoleInstance+[NoContext]+Restart cloud service role instance via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?monitor=true\u0026api-version=2020-10-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/e2bd6acb-3de2-4e78-9682-8911c675ab3b?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "53740bf1-2ce2-45c2-9206-f11bda7cd723" ], + "CommandName": [ "Restart-AzCloudServiceRoleInstance" ], + "FullCommandName": [ "Restart-AzCloudServiceRoleInstance_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "1260370f-8cc9-49db-96a5-efcbbe1176a1" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], + "x-ms-correlation-request-id": [ "704d8a2a-2855-41c6-8032-d4d1cc36172e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065854Z:704d8a2a-2855-41c6-8032-d4d1cc36172e" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:58:53 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Tests.ps1 b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Tests.ps1 new file mode 100644 index 000000000000..c734f40cde16 --- /dev/null +++ b/src/CloudService/test/Restart-AzCloudServiceRoleInstance.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restart-AzCloudServiceRoleInstance.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restart-AzCloudServiceRoleInstance' { + + It 'Restart cloud service role instance' { + Restart-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName -RoleInstanceName $env.RoleInstanceName + } + + It 'Restart cloud service role instance via identity' { + $cloudServiceRoleInstance = Get-AzCloudServiceRoleInstance -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Restart-AzCloudServiceRoleInstance -InputObject $cloudServiceRoleInstance[0] + } +} diff --git a/src/CloudService/test/Set-AzCloudServiceUpdateDomain.Tests.ps1 b/src/CloudService/test/Set-AzCloudServiceUpdateDomain.Tests.ps1 new file mode 100644 index 000000000000..c92238c1a766 --- /dev/null +++ b/src/CloudService/test/Set-AzCloudServiceUpdateDomain.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzCloudServiceUpdateDomain.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Set-AzCloudServiceUpdateDomain' { + It 'Update role instances for update domain 0' -skip { + Set-AzCloudServiceUpdateDomain -CloudServiceName $env.CloudServiceName -ResourceGroupName $env.ResourceGroupName -UpdateDomain 0 + } +} diff --git a/src/CloudService/test/Start-AzCloudService.Recording.json b/src/CloudService/test/Start-AzCloudService.Recording.json new file mode 100644 index 000000000000..065bd708e955 --- /dev/null +++ b/src/CloudService/test/Start-AzCloudService.Recording.json @@ -0,0 +1,279 @@ +{ + "Start-AzCloudService+[NoContext]+Start cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/start?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/start?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "b7cf6181-a20d-49a6-81fd-9451bc973e30" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "x-ms-correlation-request-id": [ "ced16f8b-72e8-4196-8d32-39fdd2e6f60d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065855Z:ced16f8b-72e8-4196-8d32-39fdd2e6f60d" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:58:55 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "b7cf6181-a20d-49a6-81fd-9451bc973e30" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "1b6b809c-d565-4fcf-9c6f-d332e57a031c" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], + "x-ms-correlation-request-id": [ "541c9316-066b-4698-9247-4f6bc79ed627" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065926Z:541c9316-066b-4698-9247-4f6bc79ed627" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "183" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:58:55.6143438+00:00\",\r\n \"endTime\": \"2020-11-24T06:59:11.002864+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db\"\r\n}" + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?monitor=true\u0026api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/a9ba16f3-cfe9-4d38-83fd-f5c33aa8a8db?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "b7cf6181-a20d-49a6-81fd-9451bc973e30" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "45cfc358-a736-4780-bf21-137921327f8d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11896" ], + "x-ms-correlation-request-id": [ "0c8a6ae9-b7f7-4b72-a62c-0fb9eac7821b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065926Z:0c8a6ae9-b7f7-4b72-a62c-0fb9eac7821b" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:25 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "b7a82883-6814-47a7-be85-66c8cceeddb9" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "b685a959-57b9-44c1-a99d-7d9a1b069c4b" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11895" ], + "x-ms-correlation-request-id": [ "7bb6a3bd-7b0b-4d74-bfa3-ce2ca9169028" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065927Z:7bb6a3bd-7b0b-4d74-bfa3-ce2ca9169028" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/start?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/start?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "5ecc286f-24be-4e0d-b4f5-711d1a6e5dcf" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "3f41a3ba-e89a-486c-a81a-3f676bbd3ef4" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-correlation-request-id": [ "735474d2-1d0e-4d24-a11c-9ecb90d83ed8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065927Z:735474d2-1d0e-4d24-a11c-9ecb90d83ed8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:26 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "5ecc286f-24be-4e0d-b4f5-711d1a6e5dcf" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "2a115eec-bc50-45d1-9270-be0e2a40d8e8" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "x-ms-correlation-request-id": [ "b96a65bd-5940-42b7-8afc-6336b8c25bb2" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065958Z:b96a65bd-5940-42b7-8afc-6336b8c25bb2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:59:27.4337368+00:00\",\r\n \"endTime\": \"2020-11-24T06:59:42.8955192+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"3f41a3ba-e89a-486c-a81a-3f676bbd3ef4\"\r\n}" + } + }, + "Start-AzCloudService+[NoContext]+Start cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/3f41a3ba-e89a-486c-a81a-3f676bbd3ef4?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "5ecc286f-24be-4e0d-b4f5-711d1a6e5dcf" ], + "CommandName": [ "Start-AzCloudService" ], + "FullCommandName": [ "Start-AzCloudService_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "5afc9581-1ee0-46c7-95d8-11217923d0cb" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11893" ], + "x-ms-correlation-request-id": [ "7419837d-4dca-4831-a21a-1ae5d7447298" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065958Z:7419837d-4dca-4831-a21a-1ae5d7447298" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:57 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Start-AzCloudService.Tests.ps1 b/src/CloudService/test/Start-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..5e2fb23151b5 --- /dev/null +++ b/src/CloudService/test/Start-AzCloudService.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Start-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Start-AzCloudService' { + + It 'Start cloud service' { + Start-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + } + + It 'Start cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Start-AzCloudService -InputObject $cloudService + } +} diff --git a/src/CloudService/test/Stop-AzCloudService.Recording.json b/src/CloudService/test/Stop-AzCloudService.Recording.json new file mode 100644 index 000000000000..beab44d4b548 --- /dev/null +++ b/src/CloudService/test/Stop-AzCloudService.Recording.json @@ -0,0 +1,319 @@ +{ + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/poweroff?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/poweroff?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "b5577304-a7d8-411c-84e1-b369a0290460" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "9730c58c-5e67-49d6-af67-623b4aebbd17" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-correlation-request-id": [ "b7ccda6a-ea60-418e-b12f-a34d297534d0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T065959Z:b7ccda6a-ea60-418e-b12f-a34d297534d0" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 06:59:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "b5577304-a7d8-411c-84e1-b369a0290460" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "0d3591b3-8f1f-475a-b507-1c590e147af0" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11892" ], + "x-ms-correlation-request-id": [ "c63174c2-f0d1-4d63-ac05-769263e6b7a8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070029Z:c63174c2-f0d1-4d63-ac05-769263e6b7a8" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:00:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "134" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:59:59.1797971+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9730c58c-5e67-49d6-af67-623b4aebbd17\"\r\n}" + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "b5577304-a7d8-411c-84e1-b369a0290460" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "f14f6d5a-c1b9-4a27-8588-7fb7f80cc9dd" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11891" ], + "x-ms-correlation-request-id": [ "317ef546-9471-4489-a9ee-a8132176cea1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070100Z:317ef546-9471-4489-a9ee-a8132176cea1" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:00:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T06:59:59.1797971+00:00\",\r\n \"endTime\": \"2020-11-24T07:00:54.9604174+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9730c58c-5e67-49d6-af67-623b4aebbd17\"\r\n}" + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/9730c58c-5e67-49d6-af67-623b4aebbd17?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "b5577304-a7d8-411c-84e1-b369a0290460" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOff" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "29e99fb4-6cb7-4e65-8487-47d2be58eace" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11890" ], + "x-ms-correlation-request-id": [ "be139399-f898-4bf3-878b-1e65682a5894" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070100Z:be139399-f898-4bf3-878b-1e65682a5894" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:00 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "ffd97285-cf54-4665-96fc-b06cf453bf71" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "90cd95b7-7f1a-4104-81f9-3b1bbe6a7eba" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11889" ], + "x-ms-correlation-request-id": [ "cb707770-1ad1-45ad-ac81-752413d47e79" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070100Z:cb707770-1ad1-45ad-ac81-752413d47e79" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$POST+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/poweroff?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb/poweroff?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "53022ea5-534c-4456-86cd-9b786a400e0a" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?monitor=true\u0026api-version=2020-10-01-preview" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "68b10716-93c9-492c-8ee4-9bbca52e1b50" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-correlation-request-id": [ "b60f5604-3dac-43c4-bf50-e9ab31071200" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070101Z:b60f5604-3dac-43c4-bf50-e9ab31071200" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:01 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "53022ea5-534c-4456-86cd-9b786a400e0a" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "2bc7f24d-f9a6-48ed-b0ed-6feaada6c81d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11888" ], + "x-ms-correlation-request-id": [ "9fd15dcc-8513-4783-a75f-7e93ccd84124" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070131Z:9fd15dcc-8513-4783-a75f-7e93ccd84124" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "184" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"startTime\": \"2020-11-24T07:01:01.3319436+00:00\",\r\n \"endTime\": \"2020-11-24T07:01:16.7432001+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"68b10716-93c9-492c-8ee4-9bbca52e1b50\"\r\n}" + } + }, + "Stop-AzCloudService+[NoContext]+PowerOff/Stop cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?monitor=true\u0026api-version=2020-10-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/68b10716-93c9-492c-8ee4-9bbca52e1b50?monitor=true\u0026api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "53022ea5-534c-4456-86cd-9b786a400e0a" ], + "CommandName": [ "Stop-AzCloudService" ], + "FullCommandName": [ "Stop-AzCloudService_PowerOffViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-served-by": [ "098921c7-dcff-4e3e-92ca-e5ee8428f28f_132490945230866604" ], + "x-ms-request-id": [ "3b663e30-3522-4808-bf56-43419e69722d" ], + "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11887" ], + "x-ms-correlation-request-id": [ "74b935c8-e876-4265-8431-23ff961ee618" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070132Z:74b935c8-e876-4265-8431-23ff961ee618" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:31 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Stop-AzCloudService.Tests.ps1 b/src/CloudService/test/Stop-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..6cb2ac632d43 --- /dev/null +++ b/src/CloudService/test/Stop-AzCloudService.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Stop-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Stop-AzCloudService' { + + It 'PowerOff/Stop cloud service' { + Stop-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + } + + It 'PowerOff/Stop cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + Stop-AzCloudService -InputObject $cloudService + } +} diff --git a/src/CloudService/test/Switch-AzCloudService.Tests.ps1 b/src/CloudService/test/Switch-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..dcb99bd12a4a --- /dev/null +++ b/src/CloudService/test/Switch-AzCloudService.Tests.ps1 @@ -0,0 +1,22 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Switch-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Switch-AzCloudService' { + It 'CloudServiceName' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CloudService' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/CloudService/test/Update-AzCloudService.Recording.json b/src/CloudService/test/Update-AzCloudService.Recording.json new file mode 100644 index 000000000000..e8b23b94bb1c --- /dev/null +++ b/src/CloudService/test/Update-AzCloudService.Recording.json @@ -0,0 +1,115 @@ +{ + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "cf7dd840-a65e-43c0-a003-bd23dda76bb2" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "c22c7598-abd7-4e8d-96ce-b58f17e19265" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11886" ], + "x-ms-correlation-request-id": [ "40dae743-d040-4311-b28f-c4d801ea1355" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070133Z:40dae743-d040-4311-b28f-c4d801ea1355" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n \"name\": \"GenevaExtension\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"provisioningState\": \"Succeeded\",\r\n \"rolesAppliedTo\": [\r\n \"*\"\r\n ],\r\n \"publisher\": \"Microsoft.Azure.Geneva\",\r\n \"type\": \"GenevaMonitoringPaaS\",\r\n \"typeHandlerVersion\": \"2.14.0.2\",\r\n \"settings\": \"\"\r\n }\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$PUT+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"configuration\": \"\\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\\u003e\\r\\n\\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\\u003e\\r\\n\\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\\u003e\\r\\n \\u003cRole name=\\\"WebRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cRole name=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cInstances count=\\\"2\\\" /\\u003e\\r\\n \\u003cConfigurationSettings\\u003e\\r\\n \\u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\\u003e\\r\\n \\u003c/ConfigurationSettings\\u003e\\r\\n \\u003c/Role\\u003e\\r\\n \\u003cNetworkConfiguration\\u003e\\r\\n \\u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\\u003e\\r\\n \\u003cAddressAssignments\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WebRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003cInstanceAddress roleName=\\\"WorkerRole\\\"\\u003e\\r\\n \\u003cSubnets\\u003e\\r\\n \\u003cSubnet name=\\\"WebTier\\\" /\\u003e\\r\\n \\u003c/Subnets\\u003e\\r\\n \\u003c/InstanceAddress\\u003e\\r\\n \\u003c/AddressAssignments\\u003e\\r\\n \\u003c/NetworkConfiguration\\u003e\\r\\n\\u003c/ServiceConfiguration\\u003e\",\r\n \"extensionProfile\": {\r\n \"extensions\": [ ]\r\n },\r\n \"networkProfile\": {\r\n \"loadBalancerConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"frontendIPConfigurations\": [\r\n {\r\n \"properties\": {\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"\r\n }\r\n },\r\n \"name\": \"cscmdlettestLBFE\"\r\n }\r\n ]\r\n },\r\n \"name\": \"cscmdlettestLB\"\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": [ ]\r\n },\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"capacity\": 2,\r\n \"tier\": \"Standard\"\r\n },\r\n \"name\": \"WebRole\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"capacity\": 2,\r\n \"tier\": \"Standard\"\r\n },\r\n \"name\": \"WorkerRole\"\r\n }\r\n ]\r\n },\r\n \"upgradeMode\": \"Auto\"\r\n },\r\n \"location\": \"eastus2euap\"\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "3314" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/providers/Microsoft.Compute/locations/eastus2euap/CsOperations/31fcdc74-43b8-4a0f-af35-c4778ba7b2e1?api-version=2020-10-01-preview" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "31fcdc74-43b8-4a0f-af35-c4778ba7b2e1" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "aa9dde80-5768-4fe3-b632-3a36fd681626" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070135Z:aa9dde80-5768-4fe3-b632-3a36fd681626" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3079" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": []\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + }, + "Update-AzCloudService+[NoContext]+Update cloud service via identity+$GET+https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb?api-version=2020-10-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "5e38c457-2f43-4aa9-b24e-c7dfc2f576c3" ], + "CommandName": [ "Get-AzCloudService" ], + "FullCommandName": [ "Get-AzCloudService_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "f1f334c5-5fb5-4801-bc50-d561151b1796" ], + "Server": [ "Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11885" ], + "x-ms-correlation-request-id": [ "63aca456-03df-48db-8de7-24b334b3db68" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201124T070135Z:63aca456-03df-48db-8de7-24b334b3db68" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 24 Nov 2020 07:01:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "3079" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"name\": \"cscmdlettestank38pzb\",\r\n \"id\": \"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/CSCMDLETTESTDK2FGATB/providers/Microsoft.Compute/cloudServices/cscmdlettestank38pzb\",\r\n \"type\": \"Microsoft.Compute/cloudServices\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"configuration\": \"\u003c?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?\u003e\\r\\n\u003c!--\\r\\n **********************************************************************************************\\r\\n\\r\\n This file was generated by a tool from the project file: ServiceConfiguration.Cloud.cscfg\\r\\n\\r\\n Changes to this file may cause incorrect behavior and will be lost if the file is regenerated.\\r\\n\\r\\n **********************************************************************************************\\r\\n--\u003e\\r\\n\u003cServiceConfiguration serviceName=\\\"AzureCloudServicePowerShellCmdletTest\\\" xmlns=\\\"http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration\\\" osFamily=\\\"6\\\" osVersion=\\\"*\\\" schemaVersion=\\\"2015-04.2.6\\\"\u003e\\r\\n \u003cRole name=\\\"WebRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cRole name=\\\"WorkerRole\\\"\u003e\\r\\n \u003cInstances count=\\\"2\\\" /\u003e\\r\\n \u003cConfigurationSettings\u003e\\r\\n \u003cSetting name=\\\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\\\" value=\\\"UseDevelopmentStorage=true\\\" /\u003e\\r\\n \u003c/ConfigurationSettings\u003e\\r\\n \u003c/Role\u003e\\r\\n \u003cNetworkConfiguration\u003e\\r\\n \u003cVirtualNetworkSite name=\\\"CsCmdletTestVnet\\\" /\u003e\\r\\n \u003cAddressAssignments\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WebRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003cInstanceAddress roleName=\\\"WorkerRole\\\"\u003e\\r\\n \u003cSubnets\u003e\\r\\n \u003cSubnet name=\\\"WebTier\\\" /\u003e\\r\\n \u003c/Subnets\u003e\\r\\n \u003c/InstanceAddress\u003e\\r\\n \u003c/AddressAssignments\u003e\\r\\n \u003c/NetworkConfiguration\u003e\\r\\n\u003c/ServiceConfiguration\u003e\",\r\n \"upgradeMode\": \"Auto\",\r\n \"roleProfile\": {\r\n \"roles\": [\r\n {\r\n \"name\": \"WebRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n },\r\n {\r\n \"name\": \"WorkerRole\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n }\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"secrets\": []\r\n },\r\n \"networkProfile\": {\"loadBalancerConfigurations\":[{\"name\":\"cscmdlettestLB\",\"properties\":{\"frontendIpConfigurations\":[{\"name\":\"cscmdlettestLBFE\",\"properties\":{\"publicIPAddress\":{\"id\":\"/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip\"}}}]}}]},\r\n \"extensionProfile\": {\r\n \"extensions\": []\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"uniqueId\": \"8eeab8c3-d2fd-40f2-8ab5-73f279681e3e\"\r\n }\r\n}" + } + } +} \ No newline at end of file diff --git a/src/CloudService/test/Update-AzCloudService.Tests.ps1 b/src/CloudService/test/Update-AzCloudService.Tests.ps1 new file mode 100644 index 000000000000..570bd39422a8 --- /dev/null +++ b/src/CloudService/test/Update-AzCloudService.Tests.ps1 @@ -0,0 +1,23 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCloudService.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzCloudService' { + + It 'Update cloud service via identity' { + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudService.ExtensionProfile.Extension = @() + Update-AzCloudService -InputObject $cloudService -Parameter $cloudService + $cloudService = Get-AzCloudService -ResourceGroupName $env.ResourceGroupName -CloudServiceName $env.CloudServiceName + $cloudService.ExtensionProfile.Extension.Count | Should be 0 + } +} diff --git a/src/CloudService/test/env.json b/src/CloudService/test/env.json new file mode 100644 index 000000000000..d690d304bffc --- /dev/null +++ b/src/CloudService/test/env.json @@ -0,0 +1,12 @@ +{ + "CspkgFile": "test-artifacts\\CSCmdletTest.cspkg", + "RoleInstanceName": "WebRole_IN_0", + "NewCSPublicIPId": "/subscriptions/5833e0eb-b53c-4156-b478-2eac8f04aec6/resourceGroups/cscmdlettestdk2fgatb/providers/Microsoft.Network/publicIPAddresses/cscmdlettestnewcsip", + "ResourceGroupName": "cscmdlettestdk2fgatb", + "CscfgFile": "test-artifacts\\CSCmdletTest.cscfg", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "CspkgUrl": "https://cscmdlettestdmqk3j58.blob.core.windows.net/cscmdlettestcontainer/CSCmdletTest.cspkg?sv=2019-07-07&sr=b&sig=PheSOk0knMWoEoN19ktzg7Zhu4gomgtZDcrDEXHdhus%3D&st=2020-11-24T06%3A25%3A28Z&se=2021-11-24T06%3A25%3A28Z&sp=rwd", + "SubscriptionId": "5833e0eb-b53c-4156-b478-2eac8f04aec6", + "CloudServiceName": "cscmdlettestank38pzb", + "Location": "EastUS2EUAP" +} diff --git a/src/CloudService/test/loadEnv.ps1 b/src/CloudService/test/loadEnv.ps1 new file mode 100644 index 000000000000..c4ebf2e8310c --- /dev/null +++ b/src/CloudService/test/loadEnv.ps1 @@ -0,0 +1,28 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/CloudService/test/readme.md b/src/CloudService/test/readme.md new file mode 100644 index 000000000000..7c752b4c8c43 --- /dev/null +++ b/src/CloudService/test/readme.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/CloudService/test/utils.ps1 b/src/CloudService/test/utils.ps1 new file mode 100644 index 000000000000..46b7735c5e1a --- /dev/null +++ b/src/CloudService/test/utils.ps1 @@ -0,0 +1,116 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} + +function RemoveFile([string]$fileName) { + if (Test-Path $fileName) { + Remove-Item $fileName + } +} + +function CreateCloudService([string]$publicIpName, [string]$cloudServiceName) { + # Create Public IP + Write-Host -ForegroundColor Yellow "Creating Public IP" $publicIpName + $publicIp = New-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $env.ResourceGroupName -Location $env.Location -AllocationMethod "Dynamic" -IpAddressVersion "IPv4" -DomainNameLabel ("cscmdlettest" + (RandomString $false 8)) -Sku "Basic" + + # Create Network Profile + $feIpConfig = New-AzCloudServiceLoadBalancerFrontendIPConfigurationObject -Name "cscmdlettestLBFE" -PublicIPAddressId $publicIp.Id + $loadBalancerConfig = New-AzCloudServiceLoadBalancerConfigurationObject -Name "cscmdlettestLB" -FrontendIPConfiguration $feIpConfig + $networkProfile = @{loadBalancerConfiguration = $loadBalancerConfig} + + # Create Role Profile + $role1 = New-AzCloudServiceRoleProfilePropertiesObject -Name "WebRole" -SkuName "Standard_D1_v2" -SkuTier "Standard" -SkuCapacity 2 + $role2 = New-AzCloudServiceRoleProfilePropertiesObject -Name "WorkerRole" -SkuName "Standard_D1_v2" -SkuTier "Standard" -SkuCapacity 2 + $roleProfile = @{role = @($role1, $role2)} + + # Create RDP Extension Profile + [SecureString]$securePassword = ConvertTo-SecureString (RandomString $false 8) -AsPlainText -Force + [PSCredential]$credential = New-Object System.Management.Automation.PSCredential ("userazure", $securePassword) + $rdpExpiration = (Get-Date).AddYears(1) + $rdpExtension = New-AzCloudServiceRemoteDesktopExtensionObject -Name "RDPExtension" -Credential $credential -Expiration $rdpExpiration -TypeHandlerVersion "1.2.1" + $extensionProfile = @{extension = @($rdpExtension)} + + # Read Configuration File + $cscfgFilePath = Join-Path $PSScriptRoot $env.CscfgFile + $cscfgText = [IO.File]::ReadAllText($cscfgFilePath) + + # Create Cloud Service + Write-Host -ForegroundColor Yellow "Creating Cloud Service" $cloudServiceName + $cloudService = New-AzCloudService ` + -Name $CloudServiceName ` + -ResourceGroupName $env.ResourceGroupName ` + -Location $env.Location ` + -PackageUrl $env.CspkgUrl ` + -Configuration $cscfgText ` + -UpgradeMode "Manual" ` + -RoleProfile $roleProfile ` + -NetworkProfile $networkProfile ` + -ExtensionProfile $extensionProfile +} + +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + + $env.ResourceGroupName = "cscmdlettest" + (RandomString $false 8) + $env.Location = "EastUS2EUAP" + $env.CloudServiceName = "cscmdlettest" + (RandomString $false 8) + + $env.CscfgFile = "test-artifacts\CSCmdletTest.cscfg" + $env.CspkgFile = "test-artifacts\CSCmdletTest.cspkg" + $env.RoleInstanceName = "WebRole_IN_0" + + $env.RDPOutputFile = Join-Path $PSScriptRoot ((RandomString $false 8) + ".rdp") + + $cspkgFilePath = Join-Path $PSScriptRoot $env.CspkgFile + + # Create ResourceGroup + Write-Host -ForegroundColor Yellow "Creating ResourceGroup" $env.ResourceGroupName + New-AzResourceGroup -ResourceGroupName $env.ResourceGroupName -Location $env.Location + + # Create Storage Account and upload package + $storageName = "cscmdlettest" + (RandomString $false 8) + $containerName = "cscmdlettestcontainer" + Write-Host -ForegroundColor Yellow "Creating Storage Account" $storageName + $storageAccount = New-AzStorageAccount -ResourceGroupName $env.ResourceGroupName -Name $storageName -Location $env.Location -SkuName "Standard_RAGRS" -Kind "StorageV2" + $container = New-AzStorageContainer -Name $containerName -Context $storageAccount.Context -Permission blob + $blob = Set-AzStorageBlobContent -File $cspkgFilePath -Container $containerName -Blob "CSCmdletTest.cspkg" -Context $storageAccount.Context + $tokenStartTime = Get-Date + $tokenEndTime = $tokenStartTime.AddYears(1) + $token = New-AzStorageBlobSASToken -Container $containerName -Blob $blob.Name -Permission rwd -StartTime $tokenStartTime -ExpiryTime $tokenEndTime -Context $storageAccount.Context + $env.CspkgUrl = $blob.ICloudBlob.Uri.AbsoluteUri + $token + + # Create Virtual Network + Write-Host -ForegroundColor Yellow "Creating Virtual Network CSCmdletTestVnet" + $subnet = New-AzVirtualNetworkSubnetConfig -Name "WebTier" -AddressPrefix "10.0.0.0/24" -WarningAction SilentlyContinue + $virtualNetwork = New-AzVirtualNetwork -Name "CSCmdletTestVnet" -Location $env.Location -ResourceGroupName $env.ResourceGroupName -AddressPrefix "10.0.0.0/24" -Subnet $subnet + + $publicIpName = "cscmdlettestnewcsip" + Write-Host -ForegroundColor Yellow "Creating Public IP" $publicIpName + $publicIp = New-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $env.ResourceGroupName -Location $env.Location -AllocationMethod "Dynamic" -IpAddressVersion "IPv4" -DomainNameLabel ("cscmdlettest" + (RandomString $false 8)) -Sku "Basic" + $env.NewCSPublicIPId = $publicIp.Id + + CreateCloudService "cscmdlettestip" $env.CloudServiceName + + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} + +function cleanupEnv() { + # Clean resources you create for testing + Write-Host -ForegroundColor Yellow "Removing ResourceGroup" $env.ResourceGroupName + Remove-AzResourceGroup -ResourceGroupName $env.ResourceGroupName + RemoveFile $env.RDPOutputFile +} + diff --git a/src/CognitiveServices/CognitiveServices/Az.CognitiveServices.psd1 b/src/CognitiveServices/CognitiveServices/Az.CognitiveServices.psd1 index fbf06c140ca2..f22ea911df61 100644 --- a/src/CognitiveServices/CognitiveServices/Az.CognitiveServices.psd1 +++ b/src/CognitiveServices/CognitiveServices/Az.CognitiveServices.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.CognitiveServices.dll' diff --git a/src/Compute/Compute/Az.Compute.psd1 b/src/Compute/Compute/Az.Compute.psd1 index 4e41a23194a6..03473341aadc 100644 --- a/src/Compute/Compute/Az.Compute.psd1 +++ b/src/Compute/Compute/Az.Compute.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/23/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '4.6.0' +ModuleVersion = '4.7.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Compute.dll', @@ -171,7 +171,8 @@ CmdletsToExport = 'Remove-AzAvailabilitySet', 'Get-AzAvailabilitySet', 'Set-AzVmssOrchestrationServiceState', 'New-AzDiskAccess', 'Remove-AzDiskAccess', 'Get-AzDiskAccess', 'Invoke-AzVmPatchAssessment', - 'Get-AzDiskEncryptionSetAssociatedResource', 'Start-AzVmssRollingExtensionUpgrade' + 'Get-AzDiskEncryptionSetAssociatedResource', + 'Start-AzVmssRollingExtensionUpgrade' # Variables to export from this module # VariablesToExport = @() @@ -208,11 +209,8 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added ''-VmssId'' parameter to ''New-AzVm'' -* Added ''PlatformFaultDomainCount'' parameter to the ''New-AzVmss'' cmdlet. -* New cmdlet ''Get-AzDiskEncryptionSetAssociatedResource'' -* Added ''Tier'' and ''LogicalSectorSize'' optional parameters to the New-AzDiskConfig cmdlet. -* Added ''Tier'', ''MaxSharesCount'', ''DiskIOPSReadOnly'', and ''DiskMBpsReadOnly'' optional parameters to the ''New-AzDiskUpdateConfig'' cmdlet. ' + ReleaseNotes = '* Edited Get-AzVm to filter by ''-Name'' prior to checking for throttling due to too many resources. +* New cmdlet ''Start-AzVmssRollingExtensionUpgrade''.' # Prerelease string of this module # Prerelease = '' diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index e82966f466cb..d872bd87f29a 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -20,6 +20,8 @@ --> ## Upcoming Release + +## Version 4.7.0 * Edited Get-AzVm to filter by `-Name` prior to checking for throttling due to too many resources. * New cmdlet `Start-AzVmssRollingExtensionUpgrade`. * Edited `New-AzSnapshot` cmdlet to check for existing snapshot with the same name in the same resource group. diff --git a/src/Compute/Compute/Properties/AssemblyInfo.cs b/src/Compute/Compute/Properties/AssemblyInfo.cs index f190ec7ffb39..aec300e86562 100644 --- a/src/Compute/Compute/Properties/AssemblyInfo.cs +++ b/src/Compute/Compute/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("91792853-487B-4DC2-BE6C-DD09A0A1BC10")] -[assembly: AssemblyVersion("4.6.0")] -[assembly: AssemblyFileVersion("4.6.0")] +[assembly: AssemblyVersion("4.7.0")] +[assembly: AssemblyFileVersion("4.7.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Compute.Test")] #endif diff --git a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 index 418f74bd74c8..dcc3cf3c0995 100644 --- a/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 +++ b/src/ConnectedKubernetes/Az.ConnectedKubernetes.psd1 @@ -10,7 +10,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.ConnectedKubernetes.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) FormatsToProcess = './Az.ConnectedKubernetes.format.ps1xml' FunctionsToExport = 'Get-AzConnectedKubernetes', 'New-AzConnectedKubernetes', 'Remove-AzConnectedKubernetes', 'Update-AzConnectedKubernetes' AliasesToExport = '*' diff --git a/src/ConnectedMachine/Az.ConnectedMachine.psd1 b/src/ConnectedMachine/Az.ConnectedMachine.psd1 index af721100ef40..738c38e55730 100644 --- a/src/ConnectedMachine/Az.ConnectedMachine.psd1 +++ b/src/ConnectedMachine/Az.ConnectedMachine.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'bin\Az.ConnectedMachine.private.dll' diff --git a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 index 980a3a0e7a0f..7930b1fe3a27 100644 --- a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 +++ b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', diff --git a/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1 b/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1 index 382cbd4ae031..3b143b503bc0 100644 --- a/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1 +++ b/src/ContainerRegistry/ContainerRegistry/Az.ContainerRegistry.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/23/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.0.0' +ModuleVersion = '2.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ContainerRegistry.dll', @@ -125,10 +125,8 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* [Breaking Change] Updates API version to 2020-05-01 -* [Breaking Change] Removed SKU ''Classic'' and parameter ''StorageAccountName'' from ''New-AzContainerRegistry'' -* Added New cmdlets: ''Connect-AzContainerRegistry'', ''Import-AzContainerRegistry'', ''Get-AzContainerRegistryUsage'', ''New-AzContainerRegistryNetworkRule'', ''Set-AzContainerRegistryNetworkRule'' -* Added new parameter ''NetworkRuleSet'' to ''Update-AzContainerRegistry''' + ReleaseNotes = '* Supported parameter ''Name'' for and value from pipeline input for ''Get-AzContainerRegistryUsage'' [#13605] +* Polished exceptions for ''Connect-AzContainerRegistry''' # Prerelease string of this module # Prerelease = '' diff --git a/src/ContainerRegistry/ContainerRegistry/ChangeLog.md b/src/ContainerRegistry/ContainerRegistry/ChangeLog.md index 235ad43ef4de..cf238796e9ad 100644 --- a/src/ContainerRegistry/ContainerRegistry/ChangeLog.md +++ b/src/ContainerRegistry/ContainerRegistry/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.1.0 * Supported parameter `Name` for and value from pipeline input for `Get-AzContainerRegistryUsage` [#13605] * Polished exceptions for `Connect-AzContainerRegistry` diff --git a/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs b/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs index 52bff13f000d..cf87c5d71654 100644 --- a/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs +++ b/src/ContainerRegistry/ContainerRegistry/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("FE330703-623A-4C08-9DA7-1C63B4058034")] -[assembly: AssemblyVersion("2.0.0")] -[assembly: AssemblyFileVersion("2.0.0")] +[assembly: AssemblyVersion("2.1.0")] +[assembly: AssemblyFileVersion("2.1.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Test")] #endif diff --git a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 index cc59c8d86309..6f96c8acd052 100644 --- a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 +++ b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.CosmosDB.dll' diff --git a/src/CostManagement/Az.CostManagement.csproj b/src/CostManagement/Az.CostManagement.csproj new file mode 100644 index 000000000000..59a96f4ec517 --- /dev/null +++ b/src/CostManagement/Az.CostManagement.csproj @@ -0,0 +1,7 @@ + + + CostManagement + + + + diff --git a/src/CostManagement/Az.CostManagement.format.ps1xml b/src/CostManagement/Az.CostManagement.format.ps1xml new file mode 100644 index 000000000000..afb1615de2cc --- /dev/null +++ b/src/CostManagement/Az.CostManagement.format.ps1xml @@ -0,0 +1,1817 @@ + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.CostManagementIdentity + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.CostManagementIdentity + + + + + + + + + + + + + + + + + + + + + + + + + + + AlertId + + + ExportName + + + ExternalCloudProviderId + + + ExternalCloudProviderType + + + Scope + + + ViewName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Alert + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Alert + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CloseTime + + + CostEntityId + + + CreationTime + + + Description + + + ModificationTime + + + Source + + + Status + + + StatusModificationTime + + + StatusModificationUserName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinition + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinition + + + + + + + + + + + + + + + + + + Category + + + Criterion + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetails + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetails + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Amount + + + ContactEmail + + + ContactGroup + + + ContactRole + + + CurrentSpend + + + MeterFilter + + + Operator + + + OverridingAlert + + + PeriodStartDate + + + ResourceFilter + + + ResourceGroupFilter + + + Threshold + + + TimeGrainType + + + TriggeredBy + + + Unit + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertsResult + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertsResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties + + + + + + + + + + + + + + + Format + + + NextRunTimeEstimate + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Dimension + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Dimension + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category + + + Data + + + Description + + + FilterEnabled + + + GroupingEnabled + + + NextLink + + + Total + + + UsageEnd + + + UsageStart + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails + + + + + + + + + + + + + + + Code + + + Message + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export + + + + + + + + + + + + + + + + + + ETag + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDataset + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDataset + + + + + + + + + + + + Granularity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfiguration + + + + + + + + + + + + Column + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinition + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinition + + + + + + + + + + + + + + + Timeframe + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestination + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestination + + + + + + + + + + + + + + + + + + Container + + + ResourceId + + + RootFolderPath + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecution + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecution + + + + + + + + + + + + + + + + + + + + + + + + ExecutionType + + + ProcessingStartTime + + + ProcessingEndTime + + + Status + + + FileName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ExecutionType + + + FileName + + + ProcessingEndTime + + + ProcessingStartTime + + + Status + + + SubmittedBy + + + SubmittedTime + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ConfigurationColumn + + + DataSetGranularity + + + DefinitionTimeframe + + + DefinitionType + + + DestinationContainer + + + DestinationResourceId + + + DestinationRootFolderPath + + + Format + + + NextRunTimeEstimate + + + TimePeriodFrom + + + TimePeriodTo + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriod + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriod + + + + + + + + + + + + + + + From + + + To + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportSchedule + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportSchedule + + + + + + + + + + + + + + + Recurrence + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriod + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriod + + + + + + + + + + + + + + + From + + + To + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDataset + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDataset + + + + + + + + + + + + Granularity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDefinition + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDefinition + + + + + + + + + + + + + + + + + + + + + IncludeActualCost + + + IncludeFreshPartialCost + + + Timeframe + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiProperties + + + + + + + + + + + + + + + Enabled + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Operation + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Operation + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplay + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplay + + + + + + + + + + + + + + + + + + Operation + + + Provider + + + Resource + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationListResult + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotProperties + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource + + + + + + + + + + + + + + + + + + ETag + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryAggregation + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryAggregation + + + + + + + + + + + + + + + Function + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumn + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumn + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression + + + + + + + + + + + + + + + + + + Name + + + Operator + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDataset + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDataset + + + + + + + + + + + + Granularity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration + + + + + + + + + + + + Column + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDefinition + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDefinition + + + + + + + + + + + + + + + Timeframe + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGrouping + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGrouping + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryProperties + + + + + + + + + + + + + + + NextLink + + + Row + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult + + + + + + + + + + + + + + + Column + + + Row + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod + + + + + + + + + + + + + + + From + + + To + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigAggregation + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigAggregation + + + + + + + + + + + + + + + Function + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression + + + + + + + + + + + + + + + + + + Name + + + Operator + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset + + + + + + + + + + + + Granularity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1 + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1 + + + + + + + + + + + + Granularity + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration + + + + + + + + + + + + Column + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition + + + + + + + + + + + + + + + Timeframe + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition1 + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition1 + + + + + + + + + + + + + + + Timeframe + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGrouping + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGrouping + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSorting + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSorting + + + + + + + + + + + + + + + Direction + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod + + + + + + + + + + + + + + + From + + + To + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View + + + + + + + + + + + + + + + + + + ETag + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewListResult + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewProperties + + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Accumulated + + + Chart + + + CreatedOn + + + DisplayName + + + Metric + + + ModifiedOn + + + Scope + + + + + + + + \ No newline at end of file diff --git a/src/CostManagement/Az.CostManagement.psd1 b/src/CostManagement/Az.CostManagement.psd1 new file mode 100644 index 000000000000..cf81843f4c74 --- /dev/null +++ b/src/CostManagement/Az.CostManagement.psd1 @@ -0,0 +1,138 @@ +# +# Module manifest for module 'Az.CostManagement' +# +# Generated by: Microsoft Corporation +# +# Generated on: 2020-12-02 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = './Az.CostManagement.psm1' + +# Version number of this module. +ModuleVersion = '0.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = '4cd9af10-559e-4fb9-8dcd-d3e8eb9e03b7' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell: Cost cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Az.CostManagement.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Az.CostManagement.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'Get-AzCostManagementExport', + 'Get-AzCostManagementExportExecutionHistory', + 'Invoke-AzCostManagementExecuteExport', + 'Invoke-AzCostManagementQuery', 'New-AzCostManagementExport', + 'New-AzCostManagementQueryComparisonExpressionObject', + 'New-AzCostManagementQueryFilterObject', + 'Remove-AzCostManagementExport', 'Update-AzCostManagementExport' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','PSModule','Cost' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + ReleaseNotes = '* First preview release for module Az.CostManagement.' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/src/CostManagement/Az.CostManagement.psm1 b/src/CostManagement/Az.CostManagement.psm1 new file mode 100644 index 000000000000..7465a93bfd8f --- /dev/null +++ b/src/CostManagement/Az.CostManagement.psm1 @@ -0,0 +1,109 @@ +# region Generated + # ---------------------------------------------------------------------------------- + # + # Copyright Microsoft Corporation + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # http://www.apache.org/licenses/LICENSE-2.0 + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # ---------------------------------------------------------------------------------- + # Load required Az.Accounts module + $accountsName = 'Az.Accounts' + $accountsModule = Get-Module -Name $accountsName + if(-not $accountsModule) { + $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' + if(Test-Path -Path $localAccountsPath) { + $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 + if($localAccounts) { + $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru + } + } + if(-not $accountsModule) { + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0 + if($hasAdequateVersion) { + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru + } + } + } + + if(-not $accountsModule) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + } + Write-Information "Loaded Module '$($accountsModule.Name)'" + + # Load the private module dll + $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.CostManagement.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module]::Instance + + # Ask for the shared functionality table + $VTable = Register-AzModule + + # Tweaks the pipeline on module load + $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Tweaks the pipeline per call + $instance.OnNewRequest = $VTable.OnNewRequest + + # Gets shared parameter values + $instance.GetParameterValue = $VTable.GetParameterValue + + # Allows shared module to listen to events from this module + $instance.EventListener = $VTable.EventListener + + # Gets shared argument completers + $instance.ArgumentCompleter = $VTable.ArgumentCompleter + + # The name of the currently selected Azure profile + $instance.ProfileName = $VTable.ProfileName + + + # Load the custom module + $customModulePath = Join-Path $PSScriptRoot './custom/Az.CostManagement.custom.psm1' + if(Test-Path $customModulePath) { + $null = Import-Module -Name $customModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = Join-Path $PSScriptRoot './exports' + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } + + # Finalize initialization of this module + $instance.Init(); + Write-Information "Loaded Module '$($instance.Name)'" +# endregion diff --git a/src/CostManagement/Changelog.md b/src/CostManagement/Changelog.md new file mode 100644 index 000000000000..a8a29db2e3de --- /dev/null +++ b/src/CostManagement/Changelog.md @@ -0,0 +1,24 @@ + +## Upcoming Release + +## Version 0.1.0 +* First preview release for module Az.CostManagement + diff --git a/src/CostManagement/CostManagement.sln b/src/CostManagement/CostManagement.sln new file mode 100644 index 000000000000..e489f2fdd651 --- /dev/null +++ b/src/CostManagement/CostManagement.sln @@ -0,0 +1,48 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.CostManagement", "Az.CostManagement.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030} + EndGlobalSection +EndGlobal diff --git a/src/CostManagement/Properties/AssemblyInfo.cs b/src/CostManagement/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..799c67664473 --- /dev/null +++ b/src/CostManagement/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - CostManagement")] +[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("7be1c102-af7d-4855-8609-ce6f2b3fddc6")] +[assembly: AssemblyVersion("0.1.0")] +[assembly: AssemblyFileVersion("0.1.0")] diff --git a/src/CostManagement/build-module.ps1 b/src/CostManagement/build-module.ps1 new file mode 100644 index 000000000000..0efab39d18f9 --- /dev/null +++ b/src/CostManagement/build-module.ps1 @@ -0,0 +1,153 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +$ErrorActionPreference = 'Stop' + +if($PSEdition -ne 'Core') { + Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.' +} + +if(-not $Isolated -and -not $Debugger) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + + if($LastExitCode -ne 0) { + # Build failed. Don't attempt to run the module. + return + } + + if($Test) { + . (Join-Path $PSScriptRoot 'test-module.ps1') + if($LastExitCode -ne 0) { + # Tests failed. Don't attempt to run the module. + return + } + } + + if($Docs) { + . (Join-Path $PSScriptRoot 'generate-help.ps1') + if($LastExitCode -ne 0) { + # Docs generation failed. Don't attempt to run the module. + return + } + } + + if($Pack) { + . (Join-Path $PSScriptRoot 'pack-module.ps1') + if($LastExitCode -ne 0) { + # Packing failed. Don't attempt to run the module. + return + } + } + + $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1' + if($Code) { + . $runModulePath -Code + } elseif($Run) { + . $runModulePath + } else { + Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script." + } + return +} + +$binFolder = Join-Path $PSScriptRoot 'bin' +$objFolder = Join-Path $PSScriptRoot 'obj' + +if(-not $Debugger) { + Write-Host -ForegroundColor Green 'Cleaning build folders...' + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder + + if((Test-Path $binFolder) -or (Test-Path $objFolder)) { + Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?' + Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.' + } + + Write-Host -ForegroundColor Green 'Compiling module...' + $buildConfig = 'Debug' + if($Release) { + $buildConfig = 'Release' + } + dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo + if($LastExitCode -ne 0) { + Write-Error 'Compilation failed.' + } + + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release') +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.CostManagement.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} + +# Load DLL to use build-time cmdlets +$null = Import-Module -Name $dll + +$modulePaths = $dll +$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.CostManagement.custom.psm1' +if(Test-Path $customPsm1) { + $modulePaths = @($dll, $customPsm1) +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(Test-Path $exportsFolder) { + $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $exportsFolder + +$internalFolder = Join-Path $PSScriptRoot 'internal' +if(Test-Path $internalFolder) { + $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $internalFolder + +$psd1 = Join-Path $PSScriptRoot './Az.CostManagement.psd1' +$guid = Get-ModuleGuid -Psd1Path $psd1 +$moduleName = 'Az.CostManagement' +$examplesFolder = Join-Path $PSScriptRoot 'examples' +$null = New-Item -ItemType Directory -Force -Path $examplesFolder + +if($NoDocs) { + Write-Host -ForegroundColor Green 'Creating exports...' + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs +} else { + Write-Host -ForegroundColor Green 'Creating exports and docs...' + $moduleDescription = 'Microsoft Azure PowerShell: Cost cmdlets' + $docsFolder = Join-Path $PSScriptRoot 'docs' + if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + } + $null = New-Item -ItemType Directory -Force -Path $docsFolder + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid +} + +Write-Host -ForegroundColor Green 'Creating format.ps1xml...' +$formatPs1xml = Join-Path $PSScriptRoot './Az.CostManagement.format.ps1xml' +Export-FormatPs1xml -FilePath $formatPs1xml + +Write-Host -ForegroundColor Green 'Creating psd1...' +$customFolder = Join-Path $PSScriptRoot 'custom' +Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid + +Write-Host -ForegroundColor Green 'Creating test stubs...' +$testFolder = Join-Path $PSScriptRoot 'test' +$null = New-Item -ItemType Directory -Force -Path $testFolder +Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder + +Write-Host -ForegroundColor Green 'Creating example stubs...' +Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder + +Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/CostManagement/check-dependencies.ps1 b/src/CostManagement/check-dependencies.ps1 new file mode 100644 index 000000000000..513c52ca2fb5 --- /dev/null +++ b/src/CostManagement/check-dependencies.ps1 @@ -0,0 +1,64 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { + if($predicate) { + $module = Get-Module -ListAvailable -Name $moduleName + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + $null = New-Item -ItemType Directory -Force -Path $path + Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { + Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path + } else { + Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path + } + } + } +} + +$ProgressPreference = 'SilentlyContinue' +$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1 + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' + +$tools = Join-Path $PSScriptRoot 'tools' +$resourceDir = Join-Path $tools 'Resources' +$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' + +if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { + Write-Host -ForegroundColor Green "Building local Resource module used for test..." + Set-Location $resourceDir + $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources + $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ + Set-Location $HOME/.PSSharedModules/Resources + $null = .\build-module.ps1 + Set-Location $PSScriptRoot +} diff --git a/src/CostManagement/custom/Az.CostManagement.custom.psm1 b/src/CostManagement/custom/Az.CostManagement.custom.psm1 new file mode 100644 index 000000000000..663c86abe4c6 --- /dev/null +++ b/src/CostManagement/custom/Az.CostManagement.custom.psm1 @@ -0,0 +1,17 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.CostManagement.private.dll') + + # Load the internal module + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.CostManagement.internal.psm1' + if(Test-Path $internalModulePath) { + $null = Import-Module -Name $internalModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export script cmdlets + Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) +# endregion diff --git a/src/CostManagement/custom/Invoke-AzCostManagementQuery.ps1 b/src/CostManagement/custom/Invoke-AzCostManagementQuery.ps1 new file mode 100644 index 000000000000..f3dd057cfe6a --- /dev/null +++ b/src/CostManagement/custom/Invoke-AzCostManagementQuery.ps1 @@ -0,0 +1,276 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Query the usage data for scope defined. +.Description +Query the usage data for scope defined. +#> +function Invoke-AzCostManagementQuery { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult])] +[CmdletBinding(DefaultParameterSetName='UsageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="This includes 'subscriptions/{subscriptionId}/' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # The scope associated with query and export operations. + # This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + ${Scope}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + ${ExternalCloudProviderId}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The external cloud provider type associated with dimension/query operations.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType] + # The external cloud provider type associated with dimension/query operations. + # This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + ${ExternalCloudProviderType}, + + [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="The time frame for pulling data for the query.")] + [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The time frame for pulling data for the query.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the query. + # If custom, then a specific time period must be provided. + ${Timeframe}, + + [Parameter(ParameterSetName='UsageExpanded', Mandatory, HelpMessage="The type of the query.")] + [Parameter(ParameterSetName='UsageExpanded1', Mandatory, HelpMessage="The type of the query.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the query. + ${Type}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="Array of column names to be included in the query.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Array of column names to be included in the query.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the query. + # Any valid query column name is allowed. + # If not provided, then query includes all columns. + ${ConfigurationColumn}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="Dictionary of aggregation expression to use in the query.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Dictionary of aggregation expression to use in the query.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation]))] + [System.Collections.Hashtable] + # Dictionary of aggregation expression to use in the query. + # The key of each item in the dictionary is the alias for the aggregated column. + # Query can have up to 2 aggregation clauses. + ${DatasetAggregation}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="Has filter expression to use in the query.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Has filter expression to use in the query.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + # Has filter expression to use in the query. + # To construct, see NOTES section for DATASETFILTER properties and create a hash table. + ${DatasetFilter}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="The granularity of rows in the query.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="The granularity of rows in the query.")] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the query. + ${DatasetGranularity}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage='Array of group by expression to use in the query.')] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="Array of group by expression to use in the query.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]] + # Array of group by expression to use in the query. + # Query can have up to 2 group by clauses. + # To construct, see NOTES section for DATASETGROUPING properties and create a hash table. + ${DatasetGrouping}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="The start date to pull data from.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="The start date to pull data from.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date to pull data from. + ${TimePeriodFrom}, + + [Parameter(ParameterSetName='UsageExpanded', HelpMessage="The end date to pull data to.")] + [Parameter(ParameterSetName='UsageExpanded1', HelpMessage="The end date to pull data to.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date to pull data to. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + $ApiVersion = '2019-11-01' + $URL = '' + if ($PSBoundParameters.ContainsKey('ExternalCloudProviderType')) { + $URL = [System.Text.RegularExpressions.Regex]::Replace( + "providers/Microsoft.CostManagement/$ExternalCloudProviderType/$ExternalCloudProviderId/query?api-version=$ApiVersion" ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2") + } else { + $URL = [System.Text.RegularExpressions.Regex]::Replace( + "$Scope/providers/Microsoft.CostManagement/query?api-version=$ApiVersion", "\\?&*$|&*$|(\\?)&+|(&)&+","$1$2") + } + + $Request = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDefinition]::New() + if ($PSBoundParameters.ContainsKey('ConfigurationColumn')) { + $Request.ConfigurationColumn = $ConfigurationColumn + } + if ($PSBoundParameters.ContainsKey('DatasetAggregation')) { + $Request.DatasetAggregation = $DatasetAggregation + } + if ($PSBoundParameters.ContainsKey('DatasetFilter')) { + $Request.DatasetFilter = $DatasetFilter + } + if ($PSBoundParameters.ContainsKey('DatasetGranularity')) { + $Request.DatasetGranularity = $DatasetGranularity + } + if ($PSBoundParameters.ContainsKey('DatasetGrouping')) { + $Request.DatasetGrouping = $DatasetGrouping + } + if ($PSBoundParameters.ContainsKey('TimePeriodFrom')) { + $Request.TimePeriodFrom = $TimePeriodFrom + } + if ($PSBoundParameters.ContainsKey('TimePeriodTo')) { + $Request.TimePeriodTo = $TimePeriodTo + } + if ($PSBoundParameters.ContainsKey('Timeframe')) { + $Request.Timeframe = $Timeframe + } + if ($PSBoundParameters.ContainsKey('Type')) { + $Request.Type = $Type + } + $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult]::New() + $SkipToken = $null + $RowList = New-Object System.Collections.Generic.List[System.Collections.Generic.List[string]] + while ($true) { + $Response = Invoke-AzCostManagementUsageQueryInternal -URL $URL -SkipToken $SkipToken -Payload $Request.ToJsonString() -Scope $Scope + $Result.Column = $Response.Column + foreach ($Row in $Response.Row) { + $RowList.Add($Row) + } + if ($null -ne $Response.NextLink -and '' -ne $Response.nextlink) + { + $SkipToken = $Response.nextLink + } else { + break + } + } + $Result.Row = $RowList + return $Result + } +} + +function Invoke-AzCostManagementUsageQueryInternal { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult])] + param( + [System.String] + ${URL}, + [System.String] + ${SkipToken}, + [System.String] + ${Payload}, + [System.String] + ${Scope} + ) + process { + if ($null -ne $SkipToken -and $SkipToken -ne '') { + $URL = "$URL&$SkipToken" + } + $ResponseContent = (Invoke-AzRest -Path $URL -Payload $Payload -Method POST).Content | ConvertFrom-Json + + $Result = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult]::New() + if ($null -ne $ResponseContent.Properties.NextLink) + { + $Result.NextLink = $ResponseContent.Properties.NextLink.split('&')[1] + } + + $ColumnList = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn] + foreach ($Column in $ResponseContent.Properties.Columns) { + Write-Host $Column.ToString() + $QueryColumn = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumn]::New() + $QueryColumn.Name = $Column.Name + $QueryColumn.Type = $Column.Type + $ColumnList.Add($QueryColumn) + } + $Result.Column = $ColumnList + + $RowList = New-Object System.Collections.Generic.List[System.Collections.Generic.List[string]] + foreach ($Row in $ResponseContent.Properties.Rows) { + $QueryRow = New-Object System.Collections.Generic.List[string] + foreach ($Item in $Row) { + $QueryRow.Add($Item.ToString()) + } + $RowList.Add($QueryRow) + } + $Result.Row = $RowList + + return $Result + } +} diff --git a/src/CostManagement/custom/New-AzCostManagementExport.ps1 b/src/CostManagement/custom/New-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..fa6166f87426 --- /dev/null +++ b/src/CostManagement/custom/New-AzCostManagementExport.ps1 @@ -0,0 +1,231 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +#> +function New-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + # [Parameter()] + # [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + # [System.String] + # # eTag of the resource. + # # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + # ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CostManagement.private\New-AzCostManagementExport_CreateExpanded'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 b/src/CostManagement/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 new file mode 100644 index 000000000000..ea1030077d7f --- /dev/null +++ b/src/CostManagement/custom/New-AzCostManagementQueryComparisonExpressionObject.ps1 @@ -0,0 +1,52 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryComparisonExpression +.Description +Create a in-memory object for QueryComparisonExpression + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +#> +function New-AzCostManagementQueryComparisonExpressionObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="The name of the column to use in comparison.")] + [string] + $Name, + [Parameter(Mandatory, HelpMessage="The operator to use for comparison.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType] + $Operator, + [Parameter(Mandatory, HelpMessage="Array of values to use for comparison.")] + [string[]] + $Value + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression]::New() + + $Object.Name = $Name + $Object.Operator = $Operator + $Object.Value = $Value + return $Object + } +} + diff --git a/src/CostManagement/custom/New-AzCostManagementQueryFilterObject.ps1 b/src/CostManagement/custom/New-AzCostManagementQueryFilterObject.ps1 new file mode 100644 index 000000000000..946aedfa598c --- /dev/null +++ b/src/CostManagement/custom/New-AzCostManagementQueryFilterObject.ps1 @@ -0,0 +1,60 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the \"License\"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an \"AS IS\" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryFilter +.Description +Create a in-memory object for QueryFilter + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +#> +function New-AzCostManagementQueryFilterObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The logical `"AND`" expression. Must have at least 2 items.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + $And, + [Parameter(HelpMessage="Has comparison expression for a dimensions.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + $Dimensions, + [Parameter(HelpMessage="The logical `"NOT`" expression.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + $Not, + [Parameter(HelpMessage="The logical `"OR`" expression. Must have at least 2 items.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + $Or, + [Parameter(HelpMessage="Has comparison expression for a tag.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + $Tag + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter]::New() + + $Object.And = $And + $Object.Dimensions = $Dimensions + $Object.Not = $Not + $Object.Or = $Or + $Object.Tag = $Tag + return $Object + } +} + diff --git a/src/CostManagement/custom/Update-AzCostManagementExport.ps1 b/src/CostManagement/custom/Update-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..3ecf17df8afb --- /dev/null +++ b/src/CostManagement/custom/Update-AzCostManagementExport.ps1 @@ -0,0 +1,294 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +#> +function Update-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + try { + $getExport + if($PSBoundParameters['InputObject'] -ne $null) + { + $InputExportObject = $PSBoundParameters['InputObject'] + $getExport = Get-AzCostManagementExport -InputObject $InputExportObject + }else{ + $InputExportScope = $PSBoundParameters['Scope'] + $InputExportName = $PSBoundParameters['Name'] + $getExport = Get-AzCostManagementExport -Scope $InputExportScope -Name $InputExportName + } + $null = $PSBoundParameters.Add("ETag",$getExport.Etag) + if($PSBoundParameters['DataSetGranularity'] -eq $null) + { + $null = $PSBoundParameters.Add("DataSetGranularity",$getExport.DataSetGranularity) + } + if($PSBoundParameters['DefinitionTimeframe'] -eq $null) + { + $null = $PSBoundParameters.Add("DefinitionTimeframe",$getExport.DefinitionTimeframe) + } + if($PSBoundParameters['DefinitionType'] -eq $null) + { + $null = $PSBoundParameters.Add("DefinitionType",$getExport.DefinitionType) + } + if($PSBoundParameters['DestinationContainer'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationContainer",$getExport.DestinationContainer) + } + if($PSBoundParameters['DestinationResourceId'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationResourceId",$getExport.DestinationResourceId) + } + if($PSBoundParameters['DestinationRootFolderPath'] -eq $null) + { + $null = $PSBoundParameters.Add("DestinationRootFolderPath",$getExport.DestinationRootFolderPath) + } + if($PSBoundParameters['Format'] -eq $null) + { + $null = $PSBoundParameters.Add("Format",$getExport.Format) + } + if($PSBoundParameters['RecurrencePeriodFrom'] -eq $null) + { + $null = $PSBoundParameters.Add("RecurrencePeriodFrom",$getExport.RecurrencePeriodFrom) + } + if($PSBoundParameters['RecurrencePeriodTo'] -eq $null) + { + $null = $PSBoundParameters.Add("RecurrencePeriodTo",$getExport.RecurrencePeriodTo) + } + if($PSBoundParameters['ScheduleStatus'] -eq $null) + { + $null = $PSBoundParameters.Add("ScheduleStatus",$getExport.ScheduleStatus) + } + if($PSBoundParameters['ScheduleRecurrence'] -eq $null) + { + $null = $PSBoundParameters.Add("ScheduleRecurrence",$getExport.ScheduleRecurrence) + } + Az.CostManagement.internal\Update-AzCostManagementExport @PSBoundParameters + } catch { + throw + } + } +} \ No newline at end of file diff --git a/src/CostManagement/custom/readme.md b/src/CostManagement/custom/readme.md new file mode 100644 index 000000000000..f488fa1a08b0 --- /dev/null +++ b/src/CostManagement/custom/readme.md @@ -0,0 +1,41 @@ +# Custom +This directory contains custom implementation for non-generated cmdlets for the `Az.CostManagement` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.CostManagement.custom.psm1`. This file should not be modified. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: yes + +## Details +For `Az.CostManagement` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. + +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.CostManagement.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. + +For script cmdlets, these are loaded via the `Az.CostManagement.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. + +## Purpose +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. + +## Usage +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +- Break +- DefaultProfile +- HttpPipelineAppend +- HttpPipelinePrepend +- Proxy +- ProxyCredential +- ProxyUseDefaultCredentials + +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.CostManagement`. For C#, follow the usage seen in the `ProcessRecordAsync` method. + +### Attributes +For processing the cmdlets, we've created some additional attributes: +- `Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.DescriptionAttribute` + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. +- `Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.CostManagement`. +- `Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.CostManagement`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ProfileAttribute` + - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/CostManagement/examples/Get-AzCostManagementExport.md b/src/CostManagement/examples/Get-AzCostManagementExport.md new file mode 100644 index 000000000000..fbe3ad3dac03 --- /dev/null +++ b/src/CostManagement/examples/Get-AzCostManagementExport.md @@ -0,0 +1,24 @@ +### Example 1: Get all AzCostManagementExports by scope +```powershell +PS C:\> Get-AzCostManagementExport -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +"************" TestExport1 Microsoft.CostManagement/exports +"************" TestExport2 Microsoft.CostManagement/exports +``` + +Get all AzCostManagementExports by Scope + +### Example 2: Get AzCostManagementExport by Name and scope +```powershell +PS C:\> Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +``` + +Get AzCostManagementExport by Name and scope + diff --git a/src/CostManagement/examples/Get-AzCostManagementExportExecutionHistory.md b/src/CostManagement/examples/Get-AzCostManagementExportExecutionHistory.md new file mode 100644 index 000000000000..10a16ea48382 --- /dev/null +++ b/src/CostManagement/examples/Get-AzCostManagementExportExecutionHistory.md @@ -0,0 +1,25 @@ +### Example 1: Get AzCostManagementExportExecutionHistory +```powershell +PS C:\> Get-AzCostManagementExportExecutionHistory -ExportName 'TestExport' -Scope 'subscriptions/**********' + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +``` + +Get AzCostManagementExportExecutionHistory By ExportName and Scope + +### Example 2: Get AzCostManagementExportExecutionHistory by InputObject +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Get-AzCostManagementExportExecutionHistory -InputObject $getExport + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/ +``` + +Get AzCostManagementExportExecutionHistory By InputObject + diff --git a/src/CostManagement/examples/Invoke-AzCostManagementExecuteExport.md b/src/CostManagement/examples/Invoke-AzCostManagementExecuteExport.md new file mode 100644 index 000000000000..cc22ce003f0a --- /dev/null +++ b/src/CostManagement/examples/Invoke-AzCostManagementExecuteExport.md @@ -0,0 +1,17 @@ +### Example 1: Invoke Export by ExportName and Scope +```powershell +PS C:\> Invoke-AzCostManagementExecuteExport -ExportName 'TestExport' -Scope 'subscriptions/**********' + +``` + +Invoke Export by ExportName and Scope + +### Example 2: Invoke Export by InputObject +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Invoke-AzCostManagementExecuteExport -InputObject $getExport + +``` + +Invoke Export by InputObject + diff --git a/src/CostManagement/examples/Invoke-AzCostManagementQuery.md b/src/CostManagement/examples/Invoke-AzCostManagementQuery.md new file mode 100644 index 000000000000..ae4cf712e1b0 --- /dev/null +++ b/src/CostManagement/examples/Invoke-AzCostManagementQuery.md @@ -0,0 +1,24 @@ +### Example 1: Invoke AzCostManagementQuery by Scope +```powershell +PS C:\> Invoke-AzCostManagementQuery -Scope "/subscriptions/***********" -Timeframe MonthToDate -Type Usage -DatasetGranularity 'Daily' + +Column Row +------ --- +{UsageDate, Currency} {20201101 USD, 20201102 USD, 20201103 USD, 20201104 USD…} +``` + +Invoke AzCostManagementQuery by Scope + +### Example 2: Invoke AzCostManagementQuery by Scope with Dimensions +```powershell +PS C:\> $dimensions = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator 'In' -Value 'API' +$filter = New-AzCostManagementQueryFilterObject -Dimensions $dimensions +Invoke-AzCostManagementQuery -Type Usage -Scope "subscriptions/***********" -DatasetGranularity 'Monthly' -DatasetFilter $filter -Timeframe MonthToDate -Debug + + +Column Row +------ --- +{BillingMonth, Currency} {} +``` + +Invoke AzCostManagementQuery by Scope with Dimensions \ No newline at end of file diff --git a/src/CostManagement/examples/New-AzCostManagementExport.md b/src/CostManagement/examples/New-AzCostManagementExport.md new file mode 100644 index 000000000000..b93092c35902 --- /dev/null +++ b/src/CostManagement/examples/New-AzCostManagementExport.md @@ -0,0 +1,11 @@ +### Example 1: Create an AzCostManagementExport +```powershell +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports +``` + +Create an AzCostManagementExport + diff --git a/src/CostManagement/examples/New-AzCostManagementQueryComparisonExpressionObject.md b/src/CostManagement/examples/New-AzCostManagementQueryComparisonExpressionObject.md new file mode 100644 index 000000000000..89f150db32d7 --- /dev/null +++ b/src/CostManagement/examples/New-AzCostManagementQueryComparisonExpressionObject.md @@ -0,0 +1,11 @@ +### Example 1: Create a comparison expression object of query for cost management export +```powershell +PS C:\> New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + +Name Operator Value +---- -------- ----- +ResourceLocation In {East US, West Europe} +``` + +This command creates a comparison expression object of query for cost management export. + diff --git a/src/CostManagement/examples/New-AzCostManagementQueryFilterObject.md b/src/CostManagement/examples/New-AzCostManagementQueryFilterObject.md new file mode 100644 index 000000000000..08f45c24370c --- /dev/null +++ b/src/CostManagement/examples/New-AzCostManagementQueryFilterObject.md @@ -0,0 +1,15 @@ +### Example 1: Create a filter object of query for cost management export +```powershell +PS C:\> $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') +PS C:\> $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') +PS C:\> New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + +And : +Dimension : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +Not : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter +Or : {Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter, Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter} +Tag : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +``` + +this command creates a filter object of query for cost management export. + diff --git a/src/CostManagement/examples/Remove-AzCostManagementExport.md b/src/CostManagement/examples/Remove-AzCostManagementExport.md new file mode 100644 index 000000000000..b913c3e4c876 --- /dev/null +++ b/src/CostManagement/examples/Remove-AzCostManagementExport.md @@ -0,0 +1,19 @@ +### Example 1: Delete the AzCostManagementExport by Scope and Name +```powershell +PS C:\> Remove-AzCostManagementExport -Scope 'subscriptions/********' -name 'TestExportDatasetAggregationInfoYouri' + + +``` + +Delete the AzCostManagementExport By Scope and ExportName + +### Example 2: Delete the AzCostManagementExport by Export Object +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Scope 'subscriptions/*********' -name 'TestExportDatasetAggregationYouori' +Remove-AzCostManagementExport -InputObject $getExport + + +``` + +Delete the AzCostManagementExport By InputObject + diff --git a/src/CostManagement/examples/Update-AzCostManagementExport.md b/src/CostManagement/examples/Update-AzCostManagementExport.md new file mode 100644 index 000000000000..48744b80912b --- /dev/null +++ b/src/CostManagement/examples/Update-AzCostManagementExport.md @@ -0,0 +1,23 @@ +### Example 1: Update AzCostManagementExport by scope and name +```powershell +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +``` + +Update AzCostManagementExport by Scope and name + +### Example 2: Update AzCostManagementExport by InputObject +```powershell +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +``` + +Update AzCostManagementExport by InputObject + diff --git a/src/CostManagement/export-surface.ps1 b/src/CostManagement/export-surface.ps1 new file mode 100644 index 000000000000..b3916fce9e94 --- /dev/null +++ b/src/CostManagement/export-surface.ps1 @@ -0,0 +1,40 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.CostManagement.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} +$null = Import-Module -Name $dll + +$moduleName = 'Az.CostManagement' +$exportsFolder = Join-Path $PSScriptRoot 'exports' +$resourcesFolder = Join-Path $PSScriptRoot 'resources' + +Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'" + +Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'" + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CostManagement/exports/Get-AzCostManagementExport.ps1 b/src/CostManagement/exports/Get-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..4562ccbb118f --- /dev/null +++ b/src/CostManagement/exports/Get-AzCostManagementExport.ps1 @@ -0,0 +1,172 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to get the export for the defined scope by export name. +.Description +The operation to get the export for the defined scope by export name. +.Example +PS C:\> Get-AzCostManagementExport -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +"************" TestExport1 Microsoft.CostManagement/exports +"************" TestExport2 Microsoft.CostManagement/exports +.Example +PS C:\> Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexport +#> +function Get-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Query')] + [System.String] + # May be used to expand the properties within an export. + # Currently only 'runHistory' is supported and will return information for the last 10 executions of the export. + ${Expand}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CostManagement.private\Get-AzCostManagementExport_Get'; + GetViaIdentity = 'Az.CostManagement.private\Get-AzCostManagementExport_GetViaIdentity'; + List = 'Az.CostManagement.private\Get-AzCostManagementExport_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/Get-AzCostManagementExportExecutionHistory.ps1 b/src/CostManagement/exports/Get-AzCostManagementExportExecutionHistory.ps1 new file mode 100644 index 000000000000..9e12eaf98337 --- /dev/null +++ b/src/CostManagement/exports/Get-AzCostManagementExportExecutionHistory.ps1 @@ -0,0 +1,163 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to get the execution history of an export for the defined scope and export name. +.Description +The operation to get the execution history of an export for the defined scope and export name. +.Example +PS C:\> Get-AzCostManagementExportExecutionHistory -ExportName 'TestExport' -Scope 'subscriptions/**********' + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Get-AzCostManagementExportExecutionHistory -InputObject $getExport + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/ + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexportexecutionhistory +#> +function Get-AzCostManagementExportExecutionHistory { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${ExportName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CostManagement.private\Get-AzCostManagementExportExecutionHistory_Get'; + GetViaIdentity = 'Az.CostManagement.private\Get-AzCostManagementExportExecutionHistory_GetViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/Invoke-AzCostManagementExecuteExport.ps1 b/src/CostManagement/exports/Invoke-AzCostManagementExecuteExport.ps1 new file mode 100644 index 000000000000..a05512fe782d --- /dev/null +++ b/src/CostManagement/exports/Invoke-AzCostManagementExecuteExport.ps1 @@ -0,0 +1,161 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to execute an export. +.Description +The operation to execute an export. +.Example +PS C:\> Invoke-AzCostManagementExecuteExport -ExportName 'TestExport' -Scope 'subscriptions/**********' + +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Invoke-AzCostManagementExecuteExport -InputObject $getExport + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementexecuteexport +#> +function Invoke-AzCostManagementExecuteExport { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Execute', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Execute', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${ExportName}, + + [Parameter(ParameterSetName='Execute', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Execute = 'Az.CostManagement.private\Invoke-AzCostManagementExecuteExport_Execute'; + ExecuteViaIdentity = 'Az.CostManagement.private\Invoke-AzCostManagementExecuteExport_ExecuteViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/Invoke-AzCostManagementQuery.ps1 b/src/CostManagement/exports/Invoke-AzCostManagementQuery.ps1 new file mode 100644 index 000000000000..132efb3dbe01 --- /dev/null +++ b/src/CostManagement/exports/Invoke-AzCostManagementQuery.ps1 @@ -0,0 +1,226 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Query the usage data for scope defined. +.Description +Query the usage data for scope defined. +.Example +PS C:\> Invoke-AzCostManagementQuery -Scope "/subscriptions/***********" -Timeframe MonthToDate -Type Usage -DatasetGranularity 'Daily' + +Column Row +------ --- +{UsageDate, Currency} {20201101 USD, 20201102 USD, 20201103 USD, 20201104 USD…} +.Example +PS C:\> $dimensions = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator 'In' -Value 'API' +$filter = New-AzCostManagementQueryFilterObject -Dimensions $dimensions +Invoke-AzCostManagementQuery -Type Usage -Scope "subscriptions/***********" -DatasetGranularity 'Monthly' -DatasetFilter $filter -Timeframe MonthToDate -Debug + + +Column Row +------ --- +{BillingMonth, Currency} {} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DATASETFILTER : Has filter expression to use in the query. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +DATASETGROUPING : Array of group by expression to use in the query. + Name : The name of the column to group. + Type : Has type of the column to group. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementquery +#> +function Invoke-AzCostManagementQuery { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult])] +[CmdletBinding(DefaultParameterSetName='UsageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UsageExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This includes 'subscriptions/{subscriptionId}/' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + ${Scope}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + ${ExternalCloudProviderId}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType] + # The external cloud provider type associated with dimension/query operations. + ${ExternalCloudProviderType}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the query. + ${Timeframe}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the query. + ${Type}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the query. + ${ConfigurationColumn}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation]))] + [System.Collections.Hashtable] + # Dictionary of aggregation expression to use in the query. + ${DatasetAggregation}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + # Has filter expression to use in the query. + # To construct, see NOTES section for DATASETFILTER properties and create a hash table. + ${DatasetFilter}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the query. + ${DatasetGranularity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]] + # Array of group by expression to use in the query. + # To construct, see NOTES section for DATASETGROUPING properties and create a hash table. + ${DatasetGrouping}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date to pull data from. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date to pull data to. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UsageExpanded = 'Az.CostManagement.custom\Invoke-AzCostManagementQuery'; + UsageExpanded1 = 'Az.CostManagement.custom\Invoke-AzCostManagementQuery'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/New-AzCostManagementExport.ps1 b/src/CostManagement/exports/New-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..09831083be90 --- /dev/null +++ b/src/CostManagement/exports/New-AzCostManagementExport.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport +#> +function New-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # [Parameter()] + # [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + # [System.String] + # # eTag of the resource. + # # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + # ${ETag}, + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CostManagement.custom\New-AzCostManagementExport'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/New-AzCostManagementQueryComparisonExpressionObject.ps1 b/src/CostManagement/exports/New-AzCostManagementQueryComparisonExpressionObject.ps1 new file mode 100644 index 000000000000..195ef91a0c40 --- /dev/null +++ b/src/CostManagement/exports/New-AzCostManagementQueryComparisonExpressionObject.ps1 @@ -0,0 +1,90 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryComparisonExpression +.Description +Create a in-memory object for QueryComparisonExpression +.Example +PS C:\> New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + +Name Operator Value +---- -------- ----- +ResourceLocation In {East US, West Europe} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +#> +function New-AzCostManagementQueryComparisonExpressionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the column to use in comparison. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType] + # The operator to use for comparison. + ${Operator}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of values to use for comparison. + ${Value} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CostManagement.custom\New-AzCostManagementQueryComparisonExpressionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/New-AzCostManagementQueryFilterObject.ps1 b/src/CostManagement/exports/New-AzCostManagementQueryFilterObject.ps1 new file mode 100644 index 000000000000..1325caa84c00 --- /dev/null +++ b/src/CostManagement/exports/New-AzCostManagementQueryFilterObject.ps1 @@ -0,0 +1,157 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryFilter +.Description +Create a in-memory object for QueryFilter +.Example +PS C:\> $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') +PS C:\> $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') +PS C:\> New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + +And : +Dimension : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +Not : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter +Or : {Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter, Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter} +Tag : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +AND : The logical "AND" expression. Must have at least 2 items. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +DIMENSIONS : Has comparison expression for a dimensions. + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + +NOT : The logical "NOT" expression. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +OR : The logical "OR" expression. Must have at least 2 items. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +TAG : Has comparison expression for a tag. + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +#> +function New-AzCostManagementQueryFilterObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + # The logical "AND" expression. + # Must have at least 2 items. + # To construct, see NOTES section for AND properties and create a hash table. + ${And}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + # Has comparison expression for a dimensions. + # To construct, see NOTES section for DIMENSIONS properties and create a hash table. + ${Dimensions}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + # The logical "NOT" expression. + # To construct, see NOTES section for NOT properties and create a hash table. + ${Not}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + # The logical "OR" expression. + # Must have at least 2 items. + # To construct, see NOTES section for OR properties and create a hash table. + ${Or}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + # Has comparison expression for a tag. + # To construct, see NOTES section for TAG properties and create a hash table. + ${Tag} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CostManagement.custom\New-AzCostManagementQueryFilterObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/ProxyCmdletDefinitions.ps1 b/src/CostManagement/exports/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..6608e60d4f57 --- /dev/null +++ b/src/CostManagement/exports/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,1646 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to get the execution history of an export for the defined scope and export name. +.Description +The operation to get the execution history of an export for the defined scope and export name. +.Example +PS C:\> Get-AzCostManagementExportExecutionHistory -ExportName 'TestExport' -Scope 'subscriptions/**********' + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Get-AzCostManagementExportExecutionHistory -InputObject $getExport + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/ + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexportexecutionhistory +#> +function Get-AzCostManagementExportExecutionHistory { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${ExportName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CostManagement.private\Get-AzCostManagementExportExecutionHistory_Get'; + GetViaIdentity = 'Az.CostManagement.private\Get-AzCostManagementExportExecutionHistory_GetViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to get the export for the defined scope by export name. +.Description +The operation to get the export for the defined scope by export name. +.Example +PS C:\> Get-AzCostManagementExport -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +"************" TestExport1 Microsoft.CostManagement/exports +"************" TestExport2 Microsoft.CostManagement/exports +.Example +PS C:\> Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexport +#> +function Get-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Query')] + [System.String] + # May be used to expand the properties within an export. + # Currently only 'runHistory' is supported and will return information for the last 10 executions of the export. + ${Expand}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.CostManagement.private\Get-AzCostManagementExport_Get'; + GetViaIdentity = 'Az.CostManagement.private\Get-AzCostManagementExport_GetViaIdentity'; + List = 'Az.CostManagement.private\Get-AzCostManagementExport_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to execute an export. +.Description +The operation to execute an export. +.Example +PS C:\> Invoke-AzCostManagementExecuteExport -ExportName 'TestExport' -Scope 'subscriptions/**********' + +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Invoke-AzCostManagementExecuteExport -InputObject $getExport + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementexecuteexport +#> +function Invoke-AzCostManagementExecuteExport { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Execute', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Execute', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${ExportName}, + + [Parameter(ParameterSetName='Execute', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Execute = 'Az.CostManagement.private\Invoke-AzCostManagementExecuteExport_Execute'; + ExecuteViaIdentity = 'Az.CostManagement.private\Invoke-AzCostManagementExecuteExport_ExecuteViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to delete a export. +.Description +The operation to delete a export. +.Example +PS C:\> Remove-AzCostManagementExport -Scope 'subscriptions/********' -name 'TestExportDatasetAggregationInfoYouri' + + +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Scope 'subscriptions/*********' -name 'TestExportDatasetAggregationYouori' +Remove-AzCostManagementExport -InputObject $getExport + + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/remove-azcostmanagementexport +#> +function Remove-AzCostManagementExport { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.CostManagement.private\Remove-AzCostManagementExport_Delete'; + DeleteViaIdentity = 'Az.CostManagement.private\Remove-AzCostManagementExport_DeleteViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Query the usage data for scope defined. +.Description +Query the usage data for scope defined. +.Example +PS C:\> Invoke-AzCostManagementQuery -Scope "/subscriptions/***********" -Timeframe MonthToDate -Type Usage -DatasetGranularity 'Daily' + +Column Row +------ --- +{UsageDate, Currency} {20201101 USD, 20201102 USD, 20201103 USD, 20201104 USD…} +.Example +PS C:\> $dimensions = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator 'In' -Value 'API' +$filter = New-AzCostManagementQueryFilterObject -Dimensions $dimensions +Invoke-AzCostManagementQuery -Type Usage -Scope "subscriptions/***********" -DatasetGranularity 'Monthly' -DatasetFilter $filter -Timeframe MonthToDate -Debug + + +Column Row +------ --- +{BillingMonth, Currency} {} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DATASETFILTER : Has filter expression to use in the query. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +DATASETGROUPING : Array of group by expression to use in the query. + Name : The name of the column to group. + Type : Has type of the column to group. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementquery +#> +function Invoke-AzCostManagementQuery { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult])] +[CmdletBinding(DefaultParameterSetName='UsageExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UsageExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This includes 'subscriptions/{subscriptionId}/' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + ${Scope}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + ${ExternalCloudProviderId}, + + [Parameter(ParameterSetName='UsageExpanded1', Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType] + # The external cloud provider type associated with dimension/query operations. + ${ExternalCloudProviderType}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the query. + ${Timeframe}, + + [Parameter(Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the query. + ${Type}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the query. + ${ConfigurationColumn}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation]))] + [System.Collections.Hashtable] + # Dictionary of aggregation expression to use in the query. + ${DatasetAggregation}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + # Has filter expression to use in the query. + # To construct, see NOTES section for DATASETFILTER properties and create a hash table. + ${DatasetFilter}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the query. + ${DatasetGranularity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]] + # Array of group by expression to use in the query. + # To construct, see NOTES section for DATASETGROUPING properties and create a hash table. + ${DatasetGrouping}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date to pull data from. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date to pull data to. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UsageExpanded = 'Az.CostManagement.custom\Invoke-AzCostManagementQuery'; + UsageExpanded1 = 'Az.CostManagement.custom\Invoke-AzCostManagementQuery'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport +#> +function New-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # [Parameter()] + # [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + # [System.String] + # # eTag of the resource. + # # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + # ${ETag}, + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CostManagement.custom\New-AzCostManagementExport'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryComparisonExpression +.Description +Create a in-memory object for QueryComparisonExpression +.Example +PS C:\> New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + +Name Operator Value +---- -------- ----- +ResourceLocation In {East US, West Europe} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +#> +function New-AzCostManagementQueryComparisonExpressionObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the column to use in comparison. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType] + # The operator to use for comparison. + ${Operator}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of values to use for comparison. + ${Value} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CostManagement.custom\New-AzCostManagementQueryComparisonExpressionObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a in-memory object for QueryFilter +.Description +Create a in-memory object for QueryFilter +.Example +PS C:\> $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') +PS C:\> $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') +PS C:\> New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + +And : +Dimension : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +Not : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter +Or : {Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter, Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter} +Tag : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +AND : The logical "AND" expression. Must have at least 2 items. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +DIMENSIONS : Has comparison expression for a dimensions. + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + +NOT : The logical "NOT" expression. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +OR : The logical "OR" expression. Must have at least 2 items. + [And ]: The logical "AND" expression. Must have at least 2 items. + [Dimensions ]: Has comparison expression for a dimension + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison + [Not ]: The logical "NOT" expression. + [Or ]: The logical "OR" expression. Must have at least 2 items. + [Tag ]: Has comparison expression for a tag + +TAG : Has comparison expression for a tag. + Name : The name of the column to use in comparison. + Operator : The operator to use for comparison. + Value : Array of values to use for comparison +.Link +https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +#> +function New-AzCostManagementQueryFilterObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + # The logical "AND" expression. + # Must have at least 2 items. + # To construct, see NOTES section for AND properties and create a hash table. + ${And}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + # Has comparison expression for a dimensions. + # To construct, see NOTES section for DIMENSIONS properties and create a hash table. + ${Dimensions}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter] + # The logical "NOT" expression. + # To construct, see NOTES section for NOT properties and create a hash table. + ${Not}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]] + # The logical "OR" expression. + # Must have at least 2 items. + # To construct, see NOTES section for OR properties and create a hash table. + ${Or}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression] + # Has comparison expression for a tag. + # To construct, see NOTES section for TAG properties and create a hash table. + ${Tag} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + __AllParameterSets = 'Az.CostManagement.custom\New-AzCostManagementQueryFilterObject'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +.Example +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +#> +function Update-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.CostManagement.custom\Update-AzCostManagementExport'; + UpdateViaIdentityExpanded = 'Az.CostManagement.custom\Update-AzCostManagementExport'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/Remove-AzCostManagementExport.ps1 b/src/CostManagement/exports/Remove-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..e865b21bd3fb --- /dev/null +++ b/src/CostManagement/exports/Remove-AzCostManagementExport.ps1 @@ -0,0 +1,164 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to delete a export. +.Description +The operation to delete a export. +.Example +PS C:\> Remove-AzCostManagementExport -Scope 'subscriptions/********' -name 'TestExportDatasetAggregationInfoYouri' + + +.Example +PS C:\> $getExport = Get-AzCostManagementExport -Scope 'subscriptions/*********' -name 'TestExportDatasetAggregationYouori' +Remove-AzCostManagementExport -InputObject $getExport + + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/remove-azcostmanagementexport +#> +function Remove-AzCostManagementExport { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.CostManagement.private\Remove-AzCostManagementExport_Delete'; + DeleteViaIdentity = 'Az.CostManagement.private\Remove-AzCostManagementExport_DeleteViaIdentity'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/Update-AzCostManagementExport.ps1 b/src/CostManagement/exports/Update-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..9e898644c76a --- /dev/null +++ b/src/CostManagement/exports/Update-AzCostManagementExport.ps1 @@ -0,0 +1,272 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +.Example +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +#> +function Update-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.CostManagement.custom\Update-AzCostManagementExport'; + UpdateViaIdentityExpanded = 'Az.CostManagement.custom\Update-AzCostManagementExport'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/exports/readme.md b/src/CostManagement/exports/readme.md new file mode 100644 index 000000000000..f9461d382772 --- /dev/null +++ b/src/CostManagement/exports/readme.md @@ -0,0 +1,20 @@ +# Exports +This directory contains the cmdlets *exported by* `Az.CostManagement`. No other cmdlets in this repository are directly exported. What that means is the `Az.CostManagement` module will run [Export-ModuleMember](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.CostManagement.private.dll`) and from the `..\custom\Az.CostManagement.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [readme.md](..\internal/readme.md) in the `..\internal` folder. + +## Purpose +We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. + +## Structure +The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile. + +## Usage +When `./Az.CostManagement.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message. \ No newline at end of file diff --git a/src/CostManagement/generate-help.ps1 b/src/CostManagement/generate-help.ps1 new file mode 100644 index 000000000000..c9f419de7c66 --- /dev/null +++ b/src/CostManagement/generate-help.ps1 @@ -0,0 +1,73 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(-not (Test-Path $exportsFolder)) { + Write-Error "Exports folder '$exportsFolder' was not found." +} + +$directories = Get-ChildItem -Directory -Path $exportsFolder +$hasProfiles = ($directories | Measure-Object).Count -gt 0 +if(-not $hasProfiles) { + $directories = Get-Item -Path $exportsFolder +} + +$docsFolder = Join-Path $PSScriptRoot 'docs' +if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue +$examplesFolder = Join-Path $PSScriptRoot 'examples' + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CostManagement.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.CostManagement.private.dll') +$instance = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName + +foreach($directory in $directories) +{ + if($hasProfiles) { + Select-AzProfile -Name $directory.Name + } + # Reload module per profile + Import-Module -Name $modulePath -Force + + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $directory.FullName + $cmdletHelpInfo = $cmdletNames | ForEach-Object { Get-Help -Name $_ -Full } + $cmdletFunctionInfo = Get-ScriptCmdlet -ScriptFolder $directory.FullName -AsFunctionInfo + + $docsPath = Join-Path $docsFolder $directory.Name + $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue + $examplesPath = Join-Path $examplesFolder $directory.Name + + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CostManagement/generate-info.json b/src/CostManagement/generate-info.json new file mode 100644 index 000000000000..517daf06ab11 --- /dev/null +++ b/src/CostManagement/generate-info.json @@ -0,0 +1,8 @@ +{ + "autorest_core": "3.0.6320", + "autorest_powershell": "2.1.401", + "autorest_remodeler": "2.1.27", + "autorest": "3.0.6149", + "swagger_commit": "f02941a88045ddd076a6cc3a103a7ee82ed61cb9", + "node": "v10.16.3" +} diff --git a/src/CostManagement/generated/Module.cs b/src/CostManagement/generated/Module.cs new file mode 100644 index 000000000000..7b685934e703 --- /dev/null +++ b/src/CostManagement/generated/Module.cs @@ -0,0 +1,158 @@ +// 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.CostManagement +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; + using GetParameterDelegate = global::System.Func; + using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using ArgumentCompleterDelegate = global::System.Func; + using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; + using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; + using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + + /// A class that contains the module-common code and data. + public partial class Module + { + /// The currently selected profile. + public string Profile = global::System.String.Empty; + + public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + + /// the ISendAsync pipeline instance + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline _pipeline; + + /// the ISendAsync pipeline instance (when proxy is enabled) + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline _pipelineWithProxy; + + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); + + /// Gets completion data for azure specific fields + public ArgumentCompleterDelegate ArgumentCompleter { get; set; } + + /// The instance of the Client API + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement ClientAPI { get; set; } + + /// A delegate that gets called for each signalled event + public EventListenerDelegate EventListener { get; set; } + + /// The delegate to call to get parameter data from a common module. + public GetParameterDelegate GetParameterValue { get; set; } + + /// Backing field for property. + private static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module _instance; + + /// the singleton of this module class + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module()); + + /// The Name of this module + public string Name => @"Az.CostManagement"; + + /// The delegate to call when this module is loaded (supporting a commmon module). + public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } + + /// The delegate to call before each new request (supporting a commmon module). + public NewRequestPipelineDelegate OnNewRequest { get; set; } + + /// The name of the currently selected Azure profile + public global::System.String ProfileName { get; set; } + + /// The ResourceID for this module (azure arm). + public string ResourceId => @"Az.CostManagement"; + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline pipeline); + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline pipeline); + + partial void CustomInit(); + + /// Creates an instance of the HttpPipeline for each call. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the cmdlet's parameterset name. + /// An instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline for the remote call. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline pipeline = null; + BeforeCreatePipeline(invocationInfo, ref pipeline); + pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + AfterCreatePipeline(invocationInfo, ref pipeline); + pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); + OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); + return pipeline; + } + + /// Gets parameters from a common module. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// The name of the parameter to get the value for. + /// + /// The parameter value from the common module. (Note: this should be type converted on the way back) + /// + public object GetParameter(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName) => GetParameterValue?.Invoke( ResourceId, Name, invocationInfo, correlationId,parameterName ); + + /// 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(); + } + + /// Creates the module instance. + private Module() + { + /// constructor + ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement(); + _handler.Proxy = _webProxy; + _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); + _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler))); + } + + /// The HTTP Proxy to use. + /// The HTTP Proxy Credentials + /// True if the proxy should use default credentials + public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) + { + // set the proxy configuration + _webProxy.Address = proxy; + _webProxy.BypassProxyOnLocal = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; + _handler.UseProxy = proxy != null; + } + + /// Called to dispatch events to the common module listener + /// The ID of the event + /// The cancellation token for the event + /// A delegate to get the detailed event data + /// The callback for the event dispatcher + /// The from the cmdlet + /// the cmdlet's parameterset name. + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the exception that is being thrown (if available) + /// + /// A that will be complete when handling of the event is completed. + /// + public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception) + { + using( NoSynchronizationContext ) + { + await EventListener?.Invoke(id,token,getEventData, signal, invocationInfo, parameterSetName, correlationId,processRecordId,exception); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/CostManagement.cs b/src/CostManagement/generated/api/CostManagement.cs new file mode 100644 index 000000000000..ab959d9b5e59 --- /dev/null +++ b/src/CostManagement/generated/api/CostManagement.cs @@ -0,0 +1,4410 @@ +// 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.CostManagement +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Low-level API implementation for the CostManagement service. + /// + public partial class CostManagement + { + + /// Dismisses the specified alert + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Alert ID + /// Parameters supplied to the Dismiss Alert operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsDismiss(string scope, string alertId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/alerts/" + + (alertId) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsDismiss_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Dismisses the specified alert + /// + /// Parameters supplied to the Dismiss Alert operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsDismissViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/alerts/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var alertId = _match.Groups["alertId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/alerts/" + + alertId + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsDismiss_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsDismiss_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Alert ID + /// Parameters supplied to the Dismiss Alert operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsDismiss_Validate(string scope, string alertId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(alertId),alertId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Gets the alert for the scope by alert ID. + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Alert ID + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsGet(string scope, string alertId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/alerts/" + + (alertId) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the alert for the scope by alert ID. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/alerts/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var alertId = _match.Groups["alertId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/alerts/" + + alertId + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Alert ID + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsGet_Validate(string scope, string alertId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(alertId),alertId); + } + } + + /// Lists the alerts for scope defined. + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsList(string scope, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/alerts" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the Alerts for external cloud provider type defined. + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsListExternal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + global::System.Uri.EscapeDataString(externalCloudProviderType) + + "/" + + global::System.Uri.EscapeDataString(externalCloudProviderId) + + "/alerts" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsListExternal_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the Alerts for external cloud provider type defined. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsListExternalViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/(?[^/]+)/(?[^/]+)/alerts$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts'"); + } + + // replace URI parameters with values from identity + var externalCloudProviderType = _match.Groups["externalCloudProviderType"].Value; + var externalCloudProviderId = _match.Groups["externalCloudProviderId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + externalCloudProviderType + + "/" + + externalCloudProviderId + + "/alerts" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsListExternal_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsListExternal_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsListExternal_Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(externalCloudProviderType),externalCloudProviderType); + await eventListener.AssertEnum(nameof(externalCloudProviderType),externalCloudProviderType,@"externalSubscriptions", @"externalBillingAccounts"); + await eventListener.AssertNotNull(nameof(externalCloudProviderId),externalCloudProviderId); + } + } + + /// Lists the alerts for scope defined. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AlertsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/alerts$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/alerts'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/alerts" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AlertsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The scope associated with alerts operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AlertsList_Validate(string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + } + } + + /// Lists the dimensions by the external cloud provider type. + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DimensionsByExternalCloudProviderType(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, string Filter, string Expand, string Skiptoken, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + global::System.Uri.EscapeDataString(externalCloudProviderType) + + "/" + + global::System.Uri.EscapeDataString(externalCloudProviderId) + + "/dimensions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + (string.IsNullOrEmpty(Skiptoken) ? global::System.String.Empty : "$skiptoken=" + global::System.Uri.EscapeDataString(Skiptoken)) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DimensionsByExternalCloudProviderType_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the dimensions by the external cloud provider type. + /// + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DimensionsByExternalCloudProviderTypeViaIdentity(global::System.String viaIdentity, string Filter, string Expand, string Skiptoken, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/(?[^/]+)/(?[^/]+)/dimensions$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions'"); + } + + // replace URI parameters with values from identity + var externalCloudProviderType = _match.Groups["externalCloudProviderType"].Value; + var externalCloudProviderId = _match.Groups["externalCloudProviderId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + externalCloudProviderType + + "/" + + externalCloudProviderId + + "/dimensions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + (string.IsNullOrEmpty(Skiptoken) ? global::System.String.Empty : "$skiptoken=" + global::System.Uri.EscapeDataString(Skiptoken)) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DimensionsByExternalCloudProviderType_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DimensionsByExternalCloudProviderType_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DimensionsByExternalCloudProviderType_Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, string Filter, string Expand, string Skiptoken, int? Top, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(externalCloudProviderType),externalCloudProviderType); + await eventListener.AssertEnum(nameof(externalCloudProviderType),externalCloudProviderType,@"externalSubscriptions", @"externalBillingAccounts"); + await eventListener.AssertNotNull(nameof(externalCloudProviderId),externalCloudProviderId); + await eventListener.AssertNotNull(nameof(Filter),Filter); + await eventListener.AssertNotNull(nameof(Expand),Expand); + await eventListener.AssertNotNull(nameof(Skiptoken),Skiptoken); + await eventListener.AssertIsGreaterThanOrEqual(nameof(Top),Top,1); + await eventListener.AssertIsLessThanOrEqual(nameof(Top),Top,1000); + } + } + + /// Lists the dimensions by the defined scope. + /// The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DimensionsList(string scope, string Filter, string Expand, string Skiptoken, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/dimensions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + (string.IsNullOrEmpty(Skiptoken) ? global::System.String.Empty : "$skiptoken=" + global::System.Uri.EscapeDataString(Skiptoken)) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DimensionsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the dimensions by the defined scope. + /// + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DimensionsListViaIdentity(global::System.String viaIdentity, string Filter, string Expand, string Skiptoken, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/dimensions$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/dimensions'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/dimensions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + (string.IsNullOrEmpty(Skiptoken) ? global::System.String.Empty : "$skiptoken=" + global::System.Uri.EscapeDataString(Skiptoken)) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DimensionsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DimensionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. + /// Supported operators are 'eq','lt', 'gt', 'le', 'ge'. + /// May be used to expand the properties/data within a dimension category. By default, data is not included + /// when listing dimensions. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response + /// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. + /// May be used to limit the number of results to the most recent N dimension data. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DimensionsList_Validate(string scope, string Filter, string Expand, string Skiptoken, int? Top, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(Filter),Filter); + await eventListener.AssertNotNull(nameof(Expand),Expand); + await eventListener.AssertNotNull(nameof(Skiptoken),Skiptoken); + await eventListener.AssertIsGreaterThanOrEqual(nameof(Top),Top,1); + await eventListener.AssertIsLessThanOrEqual(nameof(Top),Top,1000); + } + } + + /// + /// The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// Parameters supplied to the CreateOrUpdate Export operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsCreateOrUpdate(string scope, string exportName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports/" + + global::System.Uri.EscapeDataString(exportName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// + /// The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// Parameters supplied to the CreateOrUpdate Export operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var exportName = _match.Groups["exportName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports/" + + exportName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Created: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// Parameters supplied to the CreateOrUpdate Export operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsCreateOrUpdate_Validate(string scope, string exportName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(exportName),exportName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// The operation to delete a export. + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsDelete(string scope, string exportName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports/" + + global::System.Uri.EscapeDataString(exportName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsDelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// The operation to delete a export. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var exportName = _match.Groups["exportName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports/" + + exportName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsDelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsDelete_Validate(string scope, string exportName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(exportName),exportName); + } + } + + /// The operation to execute an export. + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsExecute(string scope, string exportName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports/" + + global::System.Uri.EscapeDataString(exportName) + + "/run" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsExecute_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// The operation to execute an export. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsExecuteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var exportName = _match.Groups["exportName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports/" + + exportName + + "/run" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsExecute_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsExecute_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsExecute_Validate(string scope, string exportName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(exportName),exportName); + } + } + + /// The operation to get the export for the defined scope by export name. + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last 10 executions of the export. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsGet(string scope, string exportName, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports/" + + global::System.Uri.EscapeDataString(exportName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// The operation to get the execution history of an export for the defined scope and export name. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsGetExecutionHistory(string scope, string exportName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports/" + + global::System.Uri.EscapeDataString(exportName) + + "/runHistory" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsGetExecutionHistory_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// The operation to get the execution history of an export for the defined scope and export name. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsGetExecutionHistoryViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var exportName = _match.Groups["exportName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports/" + + exportName + + "/runHistory" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsGetExecutionHistory_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsGetExecutionHistory_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsGetExecutionHistory_Validate(string scope, string exportName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(exportName),exportName); + } + } + + /// The operation to get the export for the defined scope by export name. + /// + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last 10 executions of the export. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsGetViaIdentity(global::System.String viaIdentity, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports/{exportName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var exportName = _match.Groups["exportName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports/" + + exportName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Export Name. + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last 10 executions of the export. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsGet_Validate(string scope, string exportName, string Expand, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(exportName),exportName); + await eventListener.AssertNotNull(nameof(Expand),Expand); + } + } + + /// The operation to list all exports at the given scope. + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last execution of each export. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsList(string scope, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/exports" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// The operation to list all exports at the given scope. + /// + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last execution of each export. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ExportsListViaIdentity(global::System.String viaIdentity, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/exports$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/exports'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/exports" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ExportsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and + /// will return information for the last execution of each export. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ExportsList_Validate(string scope, string Expand, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(Expand),Expand); + } + } + + /// Lists the forecast charges for external cloud provider type defined. + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ForecastExternalCloudProviderUsage(string Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + global::System.Uri.EscapeDataString(externalCloudProviderType) + + "/" + + global::System.Uri.EscapeDataString(externalCloudProviderId) + + "/forecast" + + "?" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ForecastExternalCloudProviderUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the forecast charges for external cloud provider type defined. + /// + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ForecastExternalCloudProviderUsageViaIdentity(global::System.String viaIdentity, string Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/(?[^/]+)/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast'"); + } + + // replace URI parameters with values from identity + var externalCloudProviderType = _match.Groups["externalCloudProviderType"].Value; + var externalCloudProviderId = _match.Groups["externalCloudProviderId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + externalCloudProviderType + + "/" + + externalCloudProviderId + + "/forecast" + + "?" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ForecastExternalCloudProviderUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ForecastExternalCloudProviderUsage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ForecastExternalCloudProviderUsage_Validate(string Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(Filter),Filter); + await eventListener.AssertNotNull(nameof(externalCloudProviderType),externalCloudProviderType); + await eventListener.AssertEnum(nameof(externalCloudProviderType),externalCloudProviderType,@"externalSubscriptions", @"externalBillingAccounts"); + await eventListener.AssertNotNull(nameof(externalCloudProviderId),externalCloudProviderId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Lists the forecast charges for scope defined. + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ForecastUsage(string Filter, string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/forecast" + + "?" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ForecastUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the forecast charges for scope defined. + /// + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ForecastUsageViaIdentity(global::System.String viaIdentity, string Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/forecast'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/forecast" + + "?" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ForecastUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ForecastUsage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. + /// The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. + /// The scope associated with forecast operations. This includes '/subscriptions/{subscriptionId}/' for + /// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Parameters supplied to the CreateOrUpdate Forecast Config operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ForecastUsage_Validate(string Filter, string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(Filter),Filter); + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Lists all of the available cost management REST API operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the available cost management REST API operations. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/operations$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/operations'"); + } + + // replace URI parameters with values from identity + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + + } + } + + /// Query the usage data for scope defined. + /// The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' + /// for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + /// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task QueryUsage(string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + (scope) + + "/providers/Microsoft.CostManagement/query" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.QueryUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Query the usage data for external cloud provider type defined. + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task QueryUsageByExternalCloudProviderType(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + global::System.Uri.EscapeDataString(externalCloudProviderType) + + "/" + + global::System.Uri.EscapeDataString(externalCloudProviderId) + + "/query" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.QueryUsageByExternalCloudProviderType_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Query the usage data for external cloud provider type defined. + /// + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task QueryUsageByExternalCloudProviderTypeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/(?[^/]+)/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query'"); + } + + // replace URI parameters with values from identity + var externalCloudProviderType = _match.Groups["externalCloudProviderType"].Value; + var externalCloudProviderId = _match.Groups["externalCloudProviderId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/" + + externalCloudProviderType + + "/" + + externalCloudProviderId + + "/query" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.QueryUsageByExternalCloudProviderType_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task QueryUsageByExternalCloudProviderType_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The external cloud provider type associated with dimension/query operations. This + /// includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' + /// for consolidated account used with dimension/query operations. + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task QueryUsageByExternalCloudProviderType_Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(externalCloudProviderType),externalCloudProviderType); + await eventListener.AssertEnum(nameof(externalCloudProviderType),externalCloudProviderType,@"externalSubscriptions", @"externalBillingAccounts"); + await eventListener.AssertNotNull(nameof(externalCloudProviderId),externalCloudProviderId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Query the usage data for scope defined. + /// + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task QueryUsageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/query'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/query" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.QueryUsage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task QueryUsage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' + /// for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, + /// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile + /// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' + /// for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' + /// specific for partners. + /// Parameters supplied to the CreateOrUpdate Query Config operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task QueryUsage_Validate(string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// View name + /// Parameters supplied to the CreateOrUpdate View operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsCreateOrUpdate(string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// + /// The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// Parameters supplied to the CreateOrUpdate View operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsCreateOrUpdateByScope(string scope, string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + global::System.Uri.EscapeDataString(scope) + + "/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsCreateOrUpdateByScope_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// + /// The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// Parameters supplied to the CreateOrUpdate View operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsCreateOrUpdateByScopeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsCreateOrUpdateByScope_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsCreateOrUpdateByScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Created: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// Parameters supplied to the CreateOrUpdate View operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsCreateOrUpdateByScope_Validate(string scope, string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(viewName),viewName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// Parameters supplied to the CreateOrUpdate View operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Created: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// View name + /// Parameters supplied to the CreateOrUpdate View operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsCreateOrUpdate_Validate(string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView body, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(viewName),viewName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// The operation to delete a view. + /// View name + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsDelete(string viewName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// The operation to delete a view. + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsDeleteByScope(string scope, string viewName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + global::System.Uri.EscapeDataString(scope) + + "/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsDeleteByScope_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// The operation to delete a view. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsDeleteByScopeViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsDeleteByScope_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsDeleteByScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsDeleteByScope_Validate(string scope, string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(viewName),viewName); + } + } + + /// The operation to delete a view. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// View name + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsDelete_Validate(string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(viewName),viewName); + } + } + + /// Gets the view by view name. + /// View name + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsGet(string viewName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the view for the defined scope by view name. + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsGetByScope(string scope, string viewName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + global::System.Uri.EscapeDataString(scope) + + "/providers/Microsoft.CostManagement/views/" + + global::System.Uri.EscapeDataString(viewName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsGetByScope_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the view for the defined scope by view name. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsGetByScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsGetByScope_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsGetByScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// View name + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsGetByScope_Validate(string scope, string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + await eventListener.AssertNotNull(nameof(viewName),viewName); + } + } + + /// Gets the view by view name. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/views/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/views/{viewName}'"); + } + + // replace URI parameters with values from identity + var viewName = _match.Groups["viewName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views/" + + viewName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// View name + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsGet_Validate(string viewName, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(viewName),viewName); + } + } + + /// Lists all views by tenant and object. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all views at the given scope. + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsListByScope(string scope, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + global::System.Uri.EscapeDataString(scope) + + "/providers/Microsoft.CostManagement/views" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsListByScope_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all views at the given scope. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsListByScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("(?.+)/providers/Microsoft.CostManagement/views$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{scope}/providers/Microsoft.CostManagement/views'"); + } + + // replace URI parameters with values from identity + var scope = _match.Groups["scope"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/" + + scope + + "/providers/Microsoft.CostManagement/views" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsListByScope_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsListByScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription + /// scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' + /// for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsListByScope_Validate(string scope, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(scope),scope); + } + } + + /// Lists all views by tenant and object. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ViewsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.CostManagement/views$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.CostManagement/views'"); + } + + // replace URI parameters with values from identity + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.CostManagement/views" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ViewsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ViewsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Alert.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/Alert.PowerShell.cs new file mode 100644 index 000000000000..a4fc9183a968 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Alert.PowerShell.cs @@ -0,0 +1,199 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// An individual alert. + [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] + public partial class Alert + { + + /// + /// 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 Alert(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailUnit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Alert(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailUnit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, 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.CostManagement.Models.Api20200601.IAlert DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Alert(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.CostManagement.Models.Api20200601.IAlert DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Alert(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.CostManagement.Models.Api20200601.IAlert FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An individual alert. + [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] + public partial interface IAlert + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Alert.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/Alert.TypeConverter.cs new file mode 100644 index 000000000000..ca3f796af1cd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Alert.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlert ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Alert.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Alert.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Alert.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/CostManagement/generated/api/Models/Api20200601/Alert.cs b/src/CostManagement/generated/api/Models/Api20200601/Alert.cs new file mode 100644 index 000000000000..9000a4ee56a5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Alert.cs @@ -0,0 +1,489 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An individual alert. + public partial class Alert : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(); + + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CloseTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CloseTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CloseTime = value; } + + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CostEntityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CostEntityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CostEntityId = value; } + + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CreationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CreationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CreationTime = value; } + + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCategory = value; } + + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCriterion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCriterion = value; } + + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionType = value; } + + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Description = value; } + + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailAmount = value; } + + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactEmail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactEmail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactEmail = value; } + + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactGroup = value; } + + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactRole = value; } + + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailCurrentSpend { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailCurrentSpend; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailCurrentSpend = value; } + + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailMeterFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailMeterFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailMeterFilter = value; } + + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOperator; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOperator = value; } + + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailOverridingAlert { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOverridingAlert; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOverridingAlert = value; } + + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailPeriodStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailPeriodStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailPeriodStartDate = value; } + + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceFilter = value; } + + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceGroupFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceGroupFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceGroupFilter = value; } + + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTagFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTagFilter = value; } + + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailThreshold = value; } + + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTimeGrainType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTimeGrainType = value; } + + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailTriggeredBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTriggeredBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTriggeredBy = value; } + + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailUnit = value; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Definition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal.Definition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Definition = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Detail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type = value; } + + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string ModificationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).ModificationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).ModificationTime = value; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties _property; + + /// Alert properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties()); set => this._property = value; } + + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Source; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Source = value; } + + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Status = value; } + + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string StatusModificationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationTime = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string StatusModificationUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationUserName = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Alert() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// An individual alert. + public partial interface IAlert : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource + { + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was closed", + SerializedName = @"closeTime", + PossibleTypes = new [] { typeof(string) })] + string CloseTime { get; set; } + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"related budget", + SerializedName = @"costEntityId", + PossibleTypes = new [] { typeof(string) })] + string CostEntityId { get; set; } + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was created", + SerializedName = @"creationTime", + PossibleTypes = new [] { typeof(string) })] + string CreationTime { get; set; } + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert category", + SerializedName = @"category", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Criteria that triggered alert", + SerializedName = @"criteria", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"type of alert", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert description", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"budget threshold amount", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailAmount { get; set; } + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of emails to contact", + SerializedName = @"contactEmails", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of action groups to broadcast to", + SerializedName = @"contactGroups", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactGroup { get; set; } + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of contact roles", + SerializedName = @"contactRoles", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactRole { get; set; } + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"current spend", + SerializedName = @"currentSpend", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of meters to filter by", + SerializedName = @"meterFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"operator used to compare currentSpend with amount", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"overriding alert", + SerializedName = @"overridingAlert", + PossibleTypes = new [] { typeof(string) })] + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"datetime of periodStartDate", + SerializedName = @"periodStartDate", + PossibleTypes = new [] { typeof(string) })] + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resources to filter by", + SerializedName = @"resourceFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resourceGroups to filter by", + SerializedName = @"resourceGroupFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"tags to filter by", + SerializedName = @"tagFilter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notification threshold percentage as a decimal which activated this alert", + SerializedName = @"threshold", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of timegrain cadence", + SerializedName = @"timeGrainType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notificationId that triggered this alert", + SerializedName = @"triggeredBy", + PossibleTypes = new [] { typeof(string) })] + string DetailTriggeredBy { get; set; } + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"unit of currency being used", + SerializedName = @"unit", + PossibleTypes = new [] { typeof(string) })] + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was last modified", + SerializedName = @"modificationTime", + PossibleTypes = new [] { typeof(string) })] + string ModificationTime { get; set; } + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of alert", + SerializedName = @"source", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"alert status", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which the alert status was last modified", + SerializedName = @"statusModificationTime", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationTime { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"statusModificationUserName", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationUserName { get; set; } + + } + /// An individual alert. + public partial interface IAlertInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal + { + /// dateTime in which alert was closed + string CloseTime { get; set; } + /// related budget + string CostEntityId { get; set; } + /// dateTime in which alert was created + string CreationTime { get; set; } + /// defines the type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Definition { get; set; } + /// Alert category + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + string Description { get; set; } + /// Alert details + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Detail { get; set; } + /// budget threshold amount + decimal? DetailAmount { get; set; } + /// list of emails to contact + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + string[] DetailContactGroup { get; set; } + /// list of contact roles + string[] DetailContactRole { get; set; } + /// current spend + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + string DetailTriggeredBy { get; set; } + /// unit of currency being used + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + string ModificationTime { get; set; } + /// Alert properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Property { get; set; } + /// Source of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + string StatusModificationTime { get; set; } + + string StatusModificationUserName { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Alert.json.cs b/src/CostManagement/generated/api/Models/Api20200601/Alert.json.cs new file mode 100644 index 000000000000..40ff542edbb6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Alert.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An individual alert. + public partial class Alert + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal Alert(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new Alert(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.PowerShell.cs new file mode 100644 index 000000000000..79f5262df72a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.PowerShell.cs @@ -0,0 +1,187 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesTypeConverter))] + public partial class AlertProperties + { + + /// + /// 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 AlertProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailUnit, 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 AlertProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)this).DetailUnit, 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.CostManagement.Models.Api20200601.IAlertProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AlertProperties(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.CostManagement.Models.Api20200601.IAlertProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AlertProperties(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.CostManagement.Models.Api20200601.IAlertProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesTypeConverter))] + public partial interface IAlertProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.TypeConverter.cs new file mode 100644 index 000000000000..d7989c6fc6bb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlertProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AlertProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AlertProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AlertProperties.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/CostManagement/generated/api/Models/Api20200601/AlertProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.cs new file mode 100644 index 000000000000..345d342eccd3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.cs @@ -0,0 +1,468 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class AlertProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal + { + + /// Backing field for property. + private string _closeTime; + + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string CloseTime { get => this._closeTime; set => this._closeTime = value; } + + /// Backing field for property. + private string _costEntityId; + + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string CostEntityId { get => this._costEntityId; set => this._costEntityId = value; } + + /// Backing field for property. + private string _creationTime; + + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string CreationTime { get => this._creationTime; set => this._creationTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition _definition; + + /// defines the type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Definition { get => (this._definition = this._definition ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinition()); set => this._definition = value; } + + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Category; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Category = value; } + + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Criterion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Criterion = value; } + + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)Definition).Type = value; } + + /// Backing field for property. + private string _description; + + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails _detail; + + /// Alert details + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetails()); set => this._detail = value; } + + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Amount; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Amount = value; } + + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactEmail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactEmail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactEmail = value; } + + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactGroup = value; } + + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ContactRole = value; } + + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailCurrentSpend { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).CurrentSpend; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).CurrentSpend = value; } + + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailMeterFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).MeterFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).MeterFilter = value; } + + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Operator; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Operator = value; } + + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailOverridingAlert { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).OverridingAlert; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).OverridingAlert = value; } + + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailPeriodStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).PeriodStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).PeriodStartDate = value; } + + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ResourceFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ResourceFilter = value; } + + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceGroupFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ResourceGroupFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).ResourceGroupFilter = value; } + + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TagFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TagFilter = value; } + + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Threshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Threshold = value; } + + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TimeGrainType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TimeGrainType = value; } + + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailTriggeredBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TriggeredBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).TriggeredBy = value; } + + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Unit; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)Detail).Unit = value; } + + /// Internal Acessors for Definition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal.Definition { get => (this._definition = this._definition ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinition()); set { {_definition = value;} } } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal.Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetails()); set { {_detail = value;} } } + + /// Backing field for property. + private string _modificationTime; + + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ModificationTime { get => this._modificationTime; set => this._modificationTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? _source; + + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get => this._source; set => this._source = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? _status; + + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get => this._status; set => this._status = value; } + + /// Backing field for property. + private string _statusModificationTime; + + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string StatusModificationTime { get => this._statusModificationTime; set => this._statusModificationTime = value; } + + /// Backing field for property. + private string _statusModificationUserName; + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string StatusModificationUserName { get => this._statusModificationUserName; set => this._statusModificationUserName = value; } + + /// Creates an new instance. + public AlertProperties() + { + + } + } + public partial interface IAlertProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was closed", + SerializedName = @"closeTime", + PossibleTypes = new [] { typeof(string) })] + string CloseTime { get; set; } + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"related budget", + SerializedName = @"costEntityId", + PossibleTypes = new [] { typeof(string) })] + string CostEntityId { get; set; } + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was created", + SerializedName = @"creationTime", + PossibleTypes = new [] { typeof(string) })] + string CreationTime { get; set; } + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert category", + SerializedName = @"category", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Criteria that triggered alert", + SerializedName = @"criteria", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"type of alert", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert description", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"budget threshold amount", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailAmount { get; set; } + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of emails to contact", + SerializedName = @"contactEmails", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of action groups to broadcast to", + SerializedName = @"contactGroups", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactGroup { get; set; } + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of contact roles", + SerializedName = @"contactRoles", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactRole { get; set; } + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"current spend", + SerializedName = @"currentSpend", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of meters to filter by", + SerializedName = @"meterFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"operator used to compare currentSpend with amount", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"overriding alert", + SerializedName = @"overridingAlert", + PossibleTypes = new [] { typeof(string) })] + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"datetime of periodStartDate", + SerializedName = @"periodStartDate", + PossibleTypes = new [] { typeof(string) })] + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resources to filter by", + SerializedName = @"resourceFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resourceGroups to filter by", + SerializedName = @"resourceGroupFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"tags to filter by", + SerializedName = @"tagFilter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notification threshold percentage as a decimal which activated this alert", + SerializedName = @"threshold", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of timegrain cadence", + SerializedName = @"timeGrainType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notificationId that triggered this alert", + SerializedName = @"triggeredBy", + PossibleTypes = new [] { typeof(string) })] + string DetailTriggeredBy { get; set; } + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"unit of currency being used", + SerializedName = @"unit", + PossibleTypes = new [] { typeof(string) })] + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was last modified", + SerializedName = @"modificationTime", + PossibleTypes = new [] { typeof(string) })] + string ModificationTime { get; set; } + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of alert", + SerializedName = @"source", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"alert status", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which the alert status was last modified", + SerializedName = @"statusModificationTime", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationTime { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"statusModificationUserName", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationUserName { get; set; } + + } + public partial interface IAlertPropertiesInternal + + { + /// dateTime in which alert was closed + string CloseTime { get; set; } + /// related budget + string CostEntityId { get; set; } + /// dateTime in which alert was created + string CreationTime { get; set; } + /// defines the type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Definition { get; set; } + /// Alert category + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + string Description { get; set; } + /// Alert details + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Detail { get; set; } + /// budget threshold amount + decimal? DetailAmount { get; set; } + /// list of emails to contact + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + string[] DetailContactGroup { get; set; } + /// list of contact roles + string[] DetailContactRole { get; set; } + /// current spend + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + string DetailTriggeredBy { get; set; } + /// unit of currency being used + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + string ModificationTime { get; set; } + /// Source of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + string StatusModificationTime { get; set; } + + string StatusModificationUserName { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.json.cs new file mode 100644 index 000000000000..01ec5e37957a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertProperties.json.cs @@ -0,0 +1,120 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class AlertProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal AlertProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_definition = If( json?.PropertyT("definition"), out var __jsonDefinition) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinition.FromJson(__jsonDefinition) : Definition;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetails.FromJson(__jsonDetails) : Detail;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_closeTime = If( json?.PropertyT("closeTime"), out var __jsonCloseTime) ? (string)__jsonCloseTime : (string)CloseTime;} + {_costEntityId = If( json?.PropertyT("costEntityId"), out var __jsonCostEntityId) ? (string)__jsonCostEntityId : (string)CostEntityId;} + {_creationTime = If( json?.PropertyT("creationTime"), out var __jsonCreationTime) ? (string)__jsonCreationTime : (string)CreationTime;} + {_modificationTime = If( json?.PropertyT("modificationTime"), out var __jsonModificationTime) ? (string)__jsonModificationTime : (string)ModificationTime;} + {_source = If( json?.PropertyT("source"), out var __jsonSource) ? (string)__jsonSource : (string)Source;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_statusModificationTime = If( json?.PropertyT("statusModificationTime"), out var __jsonStatusModificationTime) ? (string)__jsonStatusModificationTime : (string)StatusModificationTime;} + {_statusModificationUserName = If( json?.PropertyT("statusModificationUserName"), out var __jsonStatusModificationUserName) ? (string)__jsonStatusModificationUserName : (string)StatusModificationUserName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AlertProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._definition ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._definition.ToJson(null,serializationMode) : null, "definition" ,container.Add ); + AddIf( null != this._detail ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._detail.ToJson(null,serializationMode) : null, "details" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._closeTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._closeTime.ToString()) : null, "closeTime" ,container.Add ); + AddIf( null != (((object)this._costEntityId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._costEntityId.ToString()) : null, "costEntityId" ,container.Add ); + AddIf( null != (((object)this._creationTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._creationTime.ToString()) : null, "creationTime" ,container.Add ); + AddIf( null != (((object)this._modificationTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._modificationTime.ToString()) : null, "modificationTime" ,container.Add ); + AddIf( null != (((object)this._source)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._source.ToString()) : null, "source" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._statusModificationTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._statusModificationTime.ToString()) : null, "statusModificationTime" ,container.Add ); + AddIf( null != (((object)this._statusModificationUserName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._statusModificationUserName.ToString()) : null, "statusModificationUserName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.PowerShell.cs new file mode 100644 index 000000000000..00e49a6ca104 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// defines the type of alert + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDefinitionTypeConverter))] + public partial class AlertPropertiesDefinition + { + + /// + /// 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 AlertPropertiesDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Criterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AlertPropertiesDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal)this).Criterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.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.CostManagement.Models.Api20200601.IAlertPropertiesDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AlertPropertiesDefinition(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.CostManagement.Models.Api20200601.IAlertPropertiesDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AlertPropertiesDefinition(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.CostManagement.Models.Api20200601.IAlertPropertiesDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// defines the type of alert + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDefinitionTypeConverter))] + public partial interface IAlertPropertiesDefinition + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.TypeConverter.cs new file mode 100644 index 000000000000..6dc3e1f089d2 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertPropertiesDefinitionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlertPropertiesDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AlertPropertiesDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AlertPropertiesDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AlertPropertiesDefinition.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/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.cs new file mode 100644 index 000000000000..d256488ae949 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// defines the type of alert + public partial class AlertPropertiesDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinitionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? _category; + + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? Category { get => this._category; set => this._category = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? _criterion; + + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? Criterion { get => this._criterion; set => this._criterion = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? _type; + + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public AlertPropertiesDefinition() + { + + } + } + /// defines the type of alert + public partial interface IAlertPropertiesDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert category", + SerializedName = @"category", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? Category { get; set; } + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Criteria that triggered alert", + SerializedName = @"criteria", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? Criterion { get; set; } + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"type of alert", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? Type { get; set; } + + } + /// defines the type of alert + public partial interface IAlertPropertiesDefinitionInternal + + { + /// Alert category + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? Category { get; set; } + /// Criteria that triggered alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? Criterion { get; set; } + /// type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.json.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.json.cs new file mode 100644 index 000000000000..f5b24f5c9e76 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDefinition.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// defines the type of alert + public partial class AlertPropertiesDefinition + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal AlertPropertiesDefinition(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_category = If( json?.PropertyT("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category;} + {_criterion = If( json?.PropertyT("criteria"), out var __jsonCriteria) ? (string)__jsonCriteria : (string)Criterion;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AlertPropertiesDefinition(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._category)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._category.ToString()) : null, "category" ,container.Add ); + AddIf( null != (((object)this._criterion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._criterion.ToString()) : null, "criteria" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.PowerShell.cs new file mode 100644 index 000000000000..7789165faa62 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.PowerShell.cs @@ -0,0 +1,163 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Alert details + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDetailsTypeConverter))] + public partial class AlertPropertiesDetails + { + + /// + /// 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 AlertPropertiesDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Amount = (decimal?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Amount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactEmail = (string[]) content.GetValueForProperty("ContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactGroup = (string[]) content.GetValueForProperty("ContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactRole = (string[]) content.GetValueForProperty("ContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).CurrentSpend = (decimal?) content.GetValueForProperty("CurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).CurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).MeterFilter = (string[]) content.GetValueForProperty("MeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).MeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).OverridingAlert = (string) content.GetValueForProperty("OverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).OverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).PeriodStartDate = (string) content.GetValueForProperty("PeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).PeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceFilter = (string[]) content.GetValueForProperty("ResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceGroupFilter = (string[]) content.GetValueForProperty("ResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("TagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Threshold = (decimal?) content.GetValueForProperty("Threshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Threshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("TimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TriggeredBy = (string) content.GetValueForProperty("TriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Unit, 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 AlertPropertiesDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Amount = (decimal?) content.GetValueForProperty("Amount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Amount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactEmail = (string[]) content.GetValueForProperty("ContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactGroup = (string[]) content.GetValueForProperty("ContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactRole = (string[]) content.GetValueForProperty("ContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).CurrentSpend = (decimal?) content.GetValueForProperty("CurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).CurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).MeterFilter = (string[]) content.GetValueForProperty("MeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).MeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).OverridingAlert = (string) content.GetValueForProperty("OverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).OverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).PeriodStartDate = (string) content.GetValueForProperty("PeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).PeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceFilter = (string[]) content.GetValueForProperty("ResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceGroupFilter = (string[]) content.GetValueForProperty("ResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).ResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("TagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Threshold = (decimal?) content.GetValueForProperty("Threshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Threshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("TimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TriggeredBy = (string) content.GetValueForProperty("TriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).TriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal)this).Unit, 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.CostManagement.Models.Api20200601.IAlertPropertiesDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AlertPropertiesDetails(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.CostManagement.Models.Api20200601.IAlertPropertiesDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AlertPropertiesDetails(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.CostManagement.Models.Api20200601.IAlertPropertiesDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Alert details + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDetailsTypeConverter))] + public partial interface IAlertPropertiesDetails + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.TypeConverter.cs new file mode 100644 index 000000000000..e8350c9c3376 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertPropertiesDetailsTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlertPropertiesDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AlertPropertiesDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AlertPropertiesDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AlertPropertiesDetails.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/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.cs new file mode 100644 index 000000000000..71be0bfb10b7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.cs @@ -0,0 +1,301 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Alert details + public partial class AlertPropertiesDetails : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsInternal + { + + /// Backing field for property. + private decimal? _amount; + + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public decimal? Amount { get => this._amount; set => this._amount = value; } + + /// Backing field for property. + private string[] _contactEmail; + + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] ContactEmail { get => this._contactEmail; set => this._contactEmail = value; } + + /// Backing field for property. + private string[] _contactGroup; + + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] ContactGroup { get => this._contactGroup; set => this._contactGroup = value; } + + /// Backing field for property. + private string[] _contactRole; + + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] ContactRole { get => this._contactRole; set => this._contactRole = value; } + + /// Backing field for property. + private decimal? _currentSpend; + + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public decimal? CurrentSpend { get => this._currentSpend; set => this._currentSpend = value; } + + /// Backing field for property. + private string[] _meterFilter; + + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] MeterFilter { get => this._meterFilter; set => this._meterFilter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? _operator; + + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? Operator { get => this._operator; set => this._operator = value; } + + /// Backing field for property. + private string _overridingAlert; + + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string OverridingAlert { get => this._overridingAlert; set => this._overridingAlert = value; } + + /// Backing field for property. + private string _periodStartDate; + + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string PeriodStartDate { get => this._periodStartDate; set => this._periodStartDate = value; } + + /// Backing field for property. + private string[] _resourceFilter; + + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] ResourceFilter { get => this._resourceFilter; set => this._resourceFilter = value; } + + /// Backing field for property. + private string[] _resourceGroupFilter; + + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] ResourceGroupFilter { get => this._resourceGroupFilter; set => this._resourceGroupFilter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter _tagFilter; + + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter TagFilter { get => (this._tagFilter = this._tagFilter ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilter()); set => this._tagFilter = value; } + + /// Backing field for property. + private decimal? _threshold; + + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public decimal? Threshold { get => this._threshold; set => this._threshold = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? _timeGrainType; + + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? TimeGrainType { get => this._timeGrainType; set => this._timeGrainType = value; } + + /// Backing field for property. + private string _triggeredBy; + + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string TriggeredBy { get => this._triggeredBy; set => this._triggeredBy = value; } + + /// Backing field for property. + private string _unit; + + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Unit { get => this._unit; set => this._unit = value; } + + /// Creates an new instance. + public AlertPropertiesDetails() + { + + } + } + /// Alert details + public partial interface IAlertPropertiesDetails : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"budget threshold amount", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(decimal) })] + decimal? Amount { get; set; } + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of emails to contact", + SerializedName = @"contactEmails", + PossibleTypes = new [] { typeof(string) })] + string[] ContactEmail { get; set; } + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of action groups to broadcast to", + SerializedName = @"contactGroups", + PossibleTypes = new [] { typeof(string) })] + string[] ContactGroup { get; set; } + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of contact roles", + SerializedName = @"contactRoles", + PossibleTypes = new [] { typeof(string) })] + string[] ContactRole { get; set; } + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"current spend", + SerializedName = @"currentSpend", + PossibleTypes = new [] { typeof(decimal) })] + decimal? CurrentSpend { get; set; } + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of meters to filter by", + SerializedName = @"meterFilter", + PossibleTypes = new [] { typeof(string) })] + string[] MeterFilter { get; set; } + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"operator used to compare currentSpend with amount", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? Operator { get; set; } + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"overriding alert", + SerializedName = @"overridingAlert", + PossibleTypes = new [] { typeof(string) })] + string OverridingAlert { get; set; } + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"datetime of periodStartDate", + SerializedName = @"periodStartDate", + PossibleTypes = new [] { typeof(string) })] + string PeriodStartDate { get; set; } + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resources to filter by", + SerializedName = @"resourceFilter", + PossibleTypes = new [] { typeof(string) })] + string[] ResourceFilter { get; set; } + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resourceGroups to filter by", + SerializedName = @"resourceGroupFilter", + PossibleTypes = new [] { typeof(string) })] + string[] ResourceGroupFilter { get; set; } + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"tags to filter by", + SerializedName = @"tagFilter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter TagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notification threshold percentage as a decimal which activated this alert", + SerializedName = @"threshold", + PossibleTypes = new [] { typeof(decimal) })] + decimal? Threshold { get; set; } + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of timegrain cadence", + SerializedName = @"timeGrainType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? TimeGrainType { get; set; } + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notificationId that triggered this alert", + SerializedName = @"triggeredBy", + PossibleTypes = new [] { typeof(string) })] + string TriggeredBy { get; set; } + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"unit of currency being used", + SerializedName = @"unit", + PossibleTypes = new [] { typeof(string) })] + string Unit { get; set; } + + } + /// Alert details + public partial interface IAlertPropertiesDetailsInternal + + { + /// budget threshold amount + decimal? Amount { get; set; } + /// list of emails to contact + string[] ContactEmail { get; set; } + /// list of action groups to broadcast to + string[] ContactGroup { get; set; } + /// list of contact roles + string[] ContactRole { get; set; } + /// current spend + decimal? CurrentSpend { get; set; } + /// array of meters to filter by + string[] MeterFilter { get; set; } + /// operator used to compare currentSpend with amount + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? Operator { get; set; } + /// overriding alert + string OverridingAlert { get; set; } + /// datetime of periodStartDate + string PeriodStartDate { get; set; } + /// array of resources to filter by + string[] ResourceFilter { get; set; } + /// array of resourceGroups to filter by + string[] ResourceGroupFilter { get; set; } + /// tags to filter by + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter TagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + decimal? Threshold { get; set; } + /// Type of timegrain cadence + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? TimeGrainType { get; set; } + /// notificationId that triggered this alert + string TriggeredBy { get; set; } + /// unit of currency being used + string Unit { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.json.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.json.cs new file mode 100644 index 000000000000..16adc3c268e7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetails.json.cs @@ -0,0 +1,179 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Alert details + public partial class AlertPropertiesDetails + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal AlertPropertiesDetails(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_amount = If( json?.PropertyT("amount"), out var __jsonAmount) ? (decimal?)__jsonAmount : Amount;} + {_contactEmail = If( json?.PropertyT("contactEmails"), out var __jsonContactEmails) ? If( __jsonContactEmails as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : ContactEmail;} + {_contactGroup = If( json?.PropertyT("contactGroups"), out var __jsonContactGroups) ? If( __jsonContactGroups as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : ContactGroup;} + {_contactRole = If( json?.PropertyT("contactRoles"), out var __jsonContactRoles) ? If( __jsonContactRoles as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : ContactRole;} + {_currentSpend = If( json?.PropertyT("currentSpend"), out var __jsonCurrentSpend) ? (decimal?)__jsonCurrentSpend : CurrentSpend;} + {_meterFilter = If( json?.PropertyT("meterFilter"), out var __jsonMeterFilter) ? If( __jsonMeterFilter as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(string) (__f is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __e ? (string)(__e.ToString()) : null)) ))() : null : MeterFilter;} + {_operator = If( json?.PropertyT("operator"), out var __jsonOperator) ? (string)__jsonOperator : (string)Operator;} + {_overridingAlert = If( json?.PropertyT("overridingAlert"), out var __jsonOverridingAlert) ? (string)__jsonOverridingAlert : (string)OverridingAlert;} + {_periodStartDate = If( json?.PropertyT("periodStartDate"), out var __jsonPeriodStartDate) ? (string)__jsonPeriodStartDate : (string)PeriodStartDate;} + {_resourceFilter = If( json?.PropertyT("resourceFilter"), out var __jsonResourceFilter) ? If( __jsonResourceFilter as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(string) (__a is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString ___z ? (string)(___z.ToString()) : null)) ))() : null : ResourceFilter;} + {_resourceGroupFilter = If( json?.PropertyT("resourceGroupFilter"), out var __jsonResourceGroupFilter) ? If( __jsonResourceGroupFilter as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(string) (___v is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString ___u ? (string)(___u.ToString()) : null)) ))() : null : ResourceGroupFilter;} + {_tagFilter = If( json?.PropertyT("tagFilter"), out var __jsonTagFilter) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilter.FromJson(__jsonTagFilter) : TagFilter;} + {_threshold = If( json?.PropertyT("threshold"), out var __jsonThreshold) ? (decimal?)__jsonThreshold : Threshold;} + {_timeGrainType = If( json?.PropertyT("timeGrainType"), out var __jsonTimeGrainType) ? (string)__jsonTimeGrainType : (string)TimeGrainType;} + {_triggeredBy = If( json?.PropertyT("triggeredBy"), out var __jsonTriggeredBy) ? (string)__jsonTriggeredBy : (string)TriggeredBy;} + {_unit = If( json?.PropertyT("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AlertPropertiesDetails(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._amount ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNumber((decimal)this._amount) : null, "amount" ,container.Add ); + if (null != this._contactEmail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._contactEmail ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("contactEmails",__w); + } + if (null != this._contactGroup) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._contactGroup ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("contactGroups",__r); + } + if (null != this._contactRole) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __n in this._contactRole ) + { + AddIf(null != (((object)__n)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__n.ToString()) : null ,__m.Add); + } + container.Add("contactRoles",__m); + } + AddIf( null != this._currentSpend ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNumber((decimal)this._currentSpend) : null, "currentSpend" ,container.Add ); + if (null != this._meterFilter) + { + var __h = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __i in this._meterFilter ) + { + AddIf(null != (((object)__i)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__i.ToString()) : null ,__h.Add); + } + container.Add("meterFilter",__h); + } + AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._operator.ToString()) : null, "operator" ,container.Add ); + AddIf( null != (((object)this._overridingAlert)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._overridingAlert.ToString()) : null, "overridingAlert" ,container.Add ); + AddIf( null != (((object)this._periodStartDate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._periodStartDate.ToString()) : null, "periodStartDate" ,container.Add ); + if (null != this._resourceFilter) + { + var __c = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __d in this._resourceFilter ) + { + AddIf(null != (((object)__d)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__d.ToString()) : null ,__c.Add); + } + container.Add("resourceFilter",__c); + } + if (null != this._resourceGroupFilter) + { + var ___x = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var ___y in this._resourceGroupFilter ) + { + AddIf(null != (((object)___y)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(___y.ToString()) : null ,___x.Add); + } + container.Add("resourceGroupFilter",___x); + } + AddIf( null != this._tagFilter ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._tagFilter.ToJson(null,serializationMode) : null, "tagFilter" ,container.Add ); + AddIf( null != this._threshold ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNumber((decimal)this._threshold) : null, "threshold" ,container.Add ); + AddIf( null != (((object)this._timeGrainType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeGrainType.ToString()) : null, "timeGrainType" ,container.Add ); + AddIf( null != (((object)this._triggeredBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._triggeredBy.ToString()) : null, "triggeredBy" ,container.Add ); + AddIf( null != (((object)this._unit)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._unit.ToString()) : null, "unit" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.PowerShell.cs new file mode 100644 index 000000000000..eaead2b24f16 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// tags to filter by + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDetailsTagFilterTypeConverter))] + public partial class AlertPropertiesDetailsTagFilter + { + + /// + /// 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 AlertPropertiesDetailsTagFilter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AlertPropertiesDetailsTagFilter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AlertPropertiesDetailsTagFilter(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.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AlertPropertiesDetailsTagFilter(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.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// tags to filter by + [System.ComponentModel.TypeConverter(typeof(AlertPropertiesDetailsTagFilterTypeConverter))] + public partial interface IAlertPropertiesDetailsTagFilter + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.TypeConverter.cs new file mode 100644 index 000000000000..c1af6046e54b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertPropertiesDetailsTagFilterTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AlertPropertiesDetailsTagFilter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AlertPropertiesDetailsTagFilter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AlertPropertiesDetailsTagFilter.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/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.cs new file mode 100644 index 000000000000..17afadbf6059 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.cs @@ -0,0 +1,29 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// tags to filter by + public partial class AlertPropertiesDetailsTagFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilterInternal + { + + /// Creates an new instance. + public AlertPropertiesDetailsTagFilter() + { + + } + } + /// tags to filter by + public partial interface IAlertPropertiesDetailsTagFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + + } + /// tags to filter by + public partial interface IAlertPropertiesDetailsTagFilterInternal + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.json.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.json.cs new file mode 100644 index 000000000000..6fe9ac5a76fe --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertPropertiesDetailsTagFilter.json.cs @@ -0,0 +1,99 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// tags to filter by + public partial class AlertPropertiesDetailsTagFilter + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal AlertPropertiesDetailsTagFilter(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AlertPropertiesDetailsTagFilter(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.PowerShell.cs new file mode 100644 index 000000000000..b7ca4e7e7727 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Result of alerts. + [System.ComponentModel.TypeConverter(typeof(AlertsResultTypeConverter))] + public partial class AlertsResult + { + + /// + /// 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 AlertsResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AlertsResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertTypeConverter.ConvertFrom)); + 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.CostManagement.Models.Api20200601.IAlertsResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AlertsResult(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.CostManagement.Models.Api20200601.IAlertsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AlertsResult(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.CostManagement.Models.Api20200601.IAlertsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of alerts. + [System.ComponentModel.TypeConverter(typeof(AlertsResultTypeConverter))] + public partial interface IAlertsResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.TypeConverter.cs new file mode 100644 index 000000000000..2e2212b98696 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AlertsResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IAlertsResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AlertsResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AlertsResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AlertsResult.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/CostManagement/generated/api/Models/Api20200601/AlertsResult.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.cs new file mode 100644 index 000000000000..5b3eac45aeb9 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of alerts. + public partial class AlertsResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of alerts results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[] _value; + + /// List of alerts. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[] Value { get => this._value; } + + /// Creates an new instance. + public AlertsResult() + { + + } + } + /// Result of alerts. + public partial interface IAlertsResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// URL to get the next set of alerts results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of alerts results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// List of alerts. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of alerts.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[] Value { get; } + + } + /// Result of alerts. + public partial interface IAlertsResultInternal + + { + /// URL to get the next set of alerts results if there are any. + string NextLink { get; set; } + /// List of alerts. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlert[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.json.cs new file mode 100644 index 000000000000..b8a5b1b760eb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/AlertsResult.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of alerts. + public partial class AlertsResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal AlertsResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CostManagement.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.CostManagement.Models.Api20200601.IAlert) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Alert.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AlertsResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.PowerShell.cs new file mode 100644 index 000000000000..4975f6da417f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.PowerShell.cs @@ -0,0 +1,169 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The common properties of the export. + [System.ComponentModel.TypeConverter(typeof(CommonExportPropertiesTypeConverter))] + public partial class CommonExportProperties + { + + /// + /// 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 CommonExportProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CommonExportProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, 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.CostManagement.Models.Api20200601.ICommonExportProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CommonExportProperties(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.CostManagement.Models.Api20200601.ICommonExportProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CommonExportProperties(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.CostManagement.Models.Api20200601.ICommonExportProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The common properties of the export. + [System.ComponentModel.TypeConverter(typeof(CommonExportPropertiesTypeConverter))] + public partial interface ICommonExportProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.TypeConverter.cs new file mode 100644 index 000000000000..fee5f3273103 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CommonExportPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.ICommonExportProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CommonExportProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CommonExportProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CommonExportProperties.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/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.cs new file mode 100644 index 000000000000..c2391f7622a3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.cs @@ -0,0 +1,295 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The common properties of the export. + public partial class CommonExportProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal + { + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSetGranularity = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition _definition; + + /// Has the definition for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Definition { get => (this._definition = this._definition ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinition()); set => this._definition = value; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).Timeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).Timeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).Type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo _deliveryInfo; + + /// Has delivery information for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfo()); set => this._deliveryInfo = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationRootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).DestinationRootFolderPath = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? _format; + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get => this._format; set => this._format = value; } + + /// Internal Acessors for DataSetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSetConfiguration = value; } + + /// Internal Acessors for Definition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.Definition { get => (this._definition = this._definition ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinition()); set { {_definition = value;} } } + + /// Internal Acessors for DefinitionDataSet + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.DefinitionDataSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).DataSet = value; } + + /// Internal Acessors for DefinitionTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.DefinitionTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriod = value; } + + /// Internal Acessors for DeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfo()); set { {_deliveryInfo = value;} } } + + /// Internal Acessors for DeliveryInfoDestination + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.DeliveryInfoDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).Destination; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)DeliveryInfo).Destination = value; } + + /// Internal Acessors for NextRunTimeEstimate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.NextRunTimeEstimate { get => this._nextRunTimeEstimate; set { {_nextRunTimeEstimate = value;} } } + + /// Internal Acessors for RunHistory + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.RunHistory { get => (this._runHistory = this._runHistory ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResult()); set { {_runHistory = value;} } } + + /// Internal Acessors for RunHistoryValue + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)RunHistory).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)RunHistory).Value = value; } + + /// Backing field for property. + private global::System.DateTime? _nextRunTimeEstimate; + + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? NextRunTimeEstimate { get => this._nextRunTimeEstimate; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult _runHistory; + + /// If requested, has the most recent execution history for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunHistory { get => (this._runHistory = this._runHistory ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResult()); set => this._runHistory = value; } + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)RunHistory).Value; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriodFrom = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)Definition).TimePeriodTo = value; } + + /// Creates an new instance. + public CommonExportProperties() + { + + } + } + /// The common properties of the export. + public partial interface ICommonExportProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string DestinationRootFolderPath { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If the export has an active schedule, provides an estimate of the next execution time.", + SerializedName = @"nextRunTimeEstimate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? NextRunTimeEstimate { get; } + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of export executions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; } + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// The common properties of the export. + public partial interface ICommonExportPropertiesInternal + + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// Has the definition for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Definition { get; set; } + /// The definition for data in the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DefinitionDataSet { get; set; } + /// Has time period for pulling data for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DefinitionTimePeriod { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// Has delivery information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo DeliveryInfo { get; set; } + /// Has destination for the export being delivered. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeliveryInfoDestination { get; set; } + /// The name of the container where exports will be uploaded. + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string DestinationRootFolderPath { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + global::System.DateTime? NextRunTimeEstimate { get; set; } + /// If requested, has the most recent execution history for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunHistory { get; set; } + /// A list of export executions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; set; } + /// The start date for export data. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.json.cs new file mode 100644 index 000000000000..80c0a91447a4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/CommonExportProperties.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The common properties of the export. + public partial class CommonExportProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal CommonExportProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_definition = If( json?.PropertyT("definition"), out var __jsonDefinition) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinition.FromJson(__jsonDefinition) : Definition;} + {_deliveryInfo = If( json?.PropertyT("deliveryInfo"), out var __jsonDeliveryInfo) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfo.FromJson(__jsonDeliveryInfo) : DeliveryInfo;} + {_runHistory = If( json?.PropertyT("runHistory"), out var __jsonRunHistory) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResult.FromJson(__jsonRunHistory) : RunHistory;} + {_format = If( json?.PropertyT("format"), out var __jsonFormat) ? (string)__jsonFormat : (string)Format;} + {_nextRunTimeEstimate = If( json?.PropertyT("nextRunTimeEstimate"), out var __jsonNextRunTimeEstimate) ? global::System.DateTime.TryParse((string)__jsonNextRunTimeEstimate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonNextRunTimeEstimateValue) ? __jsonNextRunTimeEstimateValue : NextRunTimeEstimate : NextRunTimeEstimate;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new CommonExportProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._definition ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._definition.ToJson(null,serializationMode) : null, "definition" ,container.Add ); + AddIf( null != this._deliveryInfo ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._deliveryInfo.ToJson(null,serializationMode) : null, "deliveryInfo" ,container.Add ); + AddIf( null != this._runHistory ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._runHistory.ToJson(null,serializationMode) : null, "runHistory" ,container.Add ); + AddIf( null != (((object)this._format)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._format.ToString()) : null, "format" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._nextRunTimeEstimate ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextRunTimeEstimate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "nextRunTimeEstimate" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Dimension.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/Dimension.PowerShell.cs new file mode 100644 index 000000000000..153666be3c1b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Dimension.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DimensionTypeConverter))] + public partial class Dimension + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Dimension(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.CostManagement.Models.Api20200601.IDimension DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Dimension(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Dimension(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Category, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Data = (string[]) content.GetValueForProperty("Data",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Data, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).FilterEnabled = (bool?) content.GetValueForProperty("FilterEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).FilterEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).GroupingEnabled = (bool?) content.GetValueForProperty("GroupingEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).GroupingEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Total = (int?) content.GetValueForProperty("Total",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Total, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageEnd = (global::System.DateTime?) content.GetValueForProperty("UsageEnd",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageStart = (global::System.DateTime?) content.GetValueForProperty("UsageStart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Dimension(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Category, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Data = (string[]) content.GetValueForProperty("Data",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Data, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).FilterEnabled = (bool?) content.GetValueForProperty("FilterEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).FilterEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).GroupingEnabled = (bool?) content.GetValueForProperty("GroupingEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).GroupingEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Total = (int?) content.GetValueForProperty("Total",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).Total, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageEnd = (global::System.DateTime?) content.GetValueForProperty("UsageEnd",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageStart = (global::System.DateTime?) content.GetValueForProperty("UsageStart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal)this).UsageStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DimensionTypeConverter))] + public partial interface IDimension + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Dimension.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/Dimension.TypeConverter.cs new file mode 100644 index 000000000000..48aef6ddfd80 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Dimension.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DimensionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IDimension ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Dimension.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Dimension.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Dimension.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/CostManagement/generated/api/Models/Api20200601/Dimension.cs b/src/CostManagement/generated/api/Models/Api20200601/Dimension.cs new file mode 100644 index 000000000000..4e1b8aef0b66 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Dimension.cs @@ -0,0 +1,234 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class Dimension : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(); + + /// Dimension category. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Category { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Category; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] Data { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Data; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Data = value; } + + /// Dimension description. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Description; } + + /// Filter enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public bool? FilterEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).FilterEnabled; } + + /// Grouping enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public bool? GroupingEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).GroupingEnabled; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Category + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.Category { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Category; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Category = value; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Description = value; } + + /// Internal Acessors for FilterEnabled + bool? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.FilterEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).FilterEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).FilterEnabled = value; } + + /// Internal Acessors for GroupingEnabled + bool? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.GroupingEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).GroupingEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).GroupingEnabled = value; } + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).NextLink = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionProperties()); set { {_property = value;} } } + + /// Internal Acessors for Total + int? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.Total { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Total; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Total = value; } + + /// Internal Acessors for UsageEnd + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.UsageEnd { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageEnd; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageEnd = value; } + + /// Internal Acessors for UsageStart + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionInternal.UsageStart { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageStart; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageStart = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type = value; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; } + + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).NextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties _property; + + /// Dimension properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionProperties()); set => this._property = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; } + + /// Total number of data for the dimension. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public int? Total { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).Total; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; } + + /// Usage end. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? UsageEnd { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageEnd; } + + /// Usage start. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? UsageStart { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)Property).UsageStart; } + + /// Creates an new instance. + public Dimension() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + public partial interface IDimension : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource + { + /// Dimension category. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Dimension category.", + SerializedName = @"category", + PossibleTypes = new [] { typeof(string) })] + string Category { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"data", + PossibleTypes = new [] { typeof(string) })] + string[] Data { get; set; } + /// Dimension description. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Dimension description.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Filter enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Filter enabled.", + SerializedName = @"filterEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? FilterEnabled { get; } + /// Grouping enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Grouping enabled.", + SerializedName = @"groupingEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? GroupingEnabled { get; } + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The link (url) to the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Total number of data for the dimension. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Total number of data for the dimension.", + SerializedName = @"total", + PossibleTypes = new [] { typeof(int) })] + int? Total { get; } + /// Usage end. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Usage end.", + SerializedName = @"usageEnd", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? UsageEnd { get; } + /// Usage start. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Usage start.", + SerializedName = @"usageStart", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? UsageStart { get; } + + } + public partial interface IDimensionInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal + { + /// Dimension category. + string Category { get; set; } + + string[] Data { get; set; } + /// Dimension description. + string Description { get; set; } + /// Filter enabled. + bool? FilterEnabled { get; set; } + /// Grouping enabled. + bool? GroupingEnabled { get; set; } + /// The link (url) to the next page of results. + string NextLink { get; set; } + /// Dimension properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties Property { get; set; } + /// Total number of data for the dimension. + int? Total { get; set; } + /// Usage end. + global::System.DateTime? UsageEnd { get; set; } + /// Usage start. + global::System.DateTime? UsageStart { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Dimension.json.cs b/src/CostManagement/generated/api/Models/Api20200601/Dimension.json.cs new file mode 100644 index 000000000000..cf4e5d3a6118 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Dimension.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class Dimension + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal Dimension(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new Dimension(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.PowerShell.cs new file mode 100644 index 000000000000..88181c9ae8da --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DimensionPropertiesTypeConverter))] + public partial class DimensionProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DimensionProperties(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.CostManagement.Models.Api20200601.IDimensionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DimensionProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DimensionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Category, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Data = (string[]) content.GetValueForProperty("Data",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Data, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).FilterEnabled = (bool?) content.GetValueForProperty("FilterEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).FilterEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).GroupingEnabled = (bool?) content.GetValueForProperty("GroupingEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).GroupingEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Total = (int?) content.GetValueForProperty("Total",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Total, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageEnd = (global::System.DateTime?) content.GetValueForProperty("UsageEnd",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageStart = (global::System.DateTime?) content.GetValueForProperty("UsageStart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DimensionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Category, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Data = (string[]) content.GetValueForProperty("Data",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Data, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).FilterEnabled = (bool?) content.GetValueForProperty("FilterEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).FilterEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).GroupingEnabled = (bool?) content.GetValueForProperty("GroupingEnabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).GroupingEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Total = (int?) content.GetValueForProperty("Total",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).Total, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageEnd = (global::System.DateTime?) content.GetValueForProperty("UsageEnd",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageStart = (global::System.DateTime?) content.GetValueForProperty("UsageStart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal)this).UsageStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DimensionPropertiesTypeConverter))] + public partial interface IDimensionProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.TypeConverter.cs new file mode 100644 index 000000000000..9a43ea118bbc --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DimensionPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IDimensionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DimensionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DimensionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DimensionProperties.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/CostManagement/generated/api/Models/Api20200601/DimensionProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.cs new file mode 100644 index 000000000000..dbb60b8ca09d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.cs @@ -0,0 +1,202 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class DimensionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal + { + + /// Backing field for property. + private string _category; + + /// Dimension category. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Category { get => this._category; } + + /// Backing field for property. + private string[] _data; + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Data { get => this._data; set => this._data = value; } + + /// Backing field for property. + private string _description; + + /// Dimension description. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Backing field for property. + private bool? _filterEnabled; + + /// Filter enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public bool? FilterEnabled { get => this._filterEnabled; } + + /// Backing field for property. + private bool? _groupingEnabled; + + /// Grouping enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public bool? GroupingEnabled { get => this._groupingEnabled; } + + /// Internal Acessors for Category + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.Category { get => this._category; set { {_category = value;} } } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for FilterEnabled + bool? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.FilterEnabled { get => this._filterEnabled; set { {_filterEnabled = value;} } } + + /// Internal Acessors for GroupingEnabled + bool? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.GroupingEnabled { get => this._groupingEnabled; set { {_groupingEnabled = value;} } } + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Total + int? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.Total { get => this._total; set { {_total = value;} } } + + /// Internal Acessors for UsageEnd + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.UsageEnd { get => this._usageEnd; set { {_usageEnd = value;} } } + + /// Internal Acessors for UsageStart + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionPropertiesInternal.UsageStart { get => this._usageStart; set { {_usageStart = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private int? _total; + + /// Total number of data for the dimension. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public int? Total { get => this._total; } + + /// Backing field for property. + private global::System.DateTime? _usageEnd; + + /// Usage end. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? UsageEnd { get => this._usageEnd; } + + /// Backing field for property. + private global::System.DateTime? _usageStart; + + /// Usage start. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? UsageStart { get => this._usageStart; } + + /// Creates an new instance. + public DimensionProperties() + { + + } + } + public partial interface IDimensionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Dimension category. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Dimension category.", + SerializedName = @"category", + PossibleTypes = new [] { typeof(string) })] + string Category { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"data", + PossibleTypes = new [] { typeof(string) })] + string[] Data { get; set; } + /// Dimension description. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Dimension description.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Filter enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Filter enabled.", + SerializedName = @"filterEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? FilterEnabled { get; } + /// Grouping enabled. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Grouping enabled.", + SerializedName = @"groupingEnabled", + PossibleTypes = new [] { typeof(bool) })] + bool? GroupingEnabled { get; } + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The link (url) to the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Total number of data for the dimension. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Total number of data for the dimension.", + SerializedName = @"total", + PossibleTypes = new [] { typeof(int) })] + int? Total { get; } + /// Usage end. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Usage end.", + SerializedName = @"usageEnd", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? UsageEnd { get; } + /// Usage start. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Usage start.", + SerializedName = @"usageStart", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? UsageStart { get; } + + } + public partial interface IDimensionPropertiesInternal + + { + /// Dimension category. + string Category { get; set; } + + string[] Data { get; set; } + /// Dimension description. + string Description { get; set; } + /// Filter enabled. + bool? FilterEnabled { get; set; } + /// Grouping enabled. + bool? GroupingEnabled { get; set; } + /// The link (url) to the next page of results. + string NextLink { get; set; } + /// Total number of data for the dimension. + int? Total { get; set; } + /// Usage end. + global::System.DateTime? UsageEnd { get; set; } + /// Usage start. + global::System.DateTime? UsageStart { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.json.cs new file mode 100644 index 000000000000..c9bb49215bcb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionProperties.json.cs @@ -0,0 +1,148 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class DimensionProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal DimensionProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_category = If( json?.PropertyT("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category;} + {_data = If( json?.PropertyT("data"), out var __jsonData) ? If( __jsonData as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Data;} + {_filterEnabled = If( json?.PropertyT("filterEnabled"), out var __jsonFilterEnabled) ? (bool?)__jsonFilterEnabled : FilterEnabled;} + {_groupingEnabled = If( json?.PropertyT("groupingEnabled"), out var __jsonGroupingEnabled) ? (bool?)__jsonGroupingEnabled : GroupingEnabled;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_total = If( json?.PropertyT("total"), out var __jsonTotal) ? (int?)__jsonTotal : Total;} + {_usageEnd = If( json?.PropertyT("usageEnd"), out var __jsonUsageEnd) ? global::System.DateTime.TryParse((string)__jsonUsageEnd, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonUsageEndValue) ? __jsonUsageEndValue : UsageEnd : UsageEnd;} + {_usageStart = If( json?.PropertyT("usageStart"), out var __jsonUsageStart) ? global::System.DateTime.TryParse((string)__jsonUsageStart, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonUsageStartValue) ? __jsonUsageStartValue : UsageStart : UsageStart;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new DimensionProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._category)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._category.ToString()) : null, "category" ,container.Add ); + } + if (null != this._data) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._data ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("data",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._filterEnabled ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonBoolean((bool)this._filterEnabled) : null, "filterEnabled" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._groupingEnabled ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonBoolean((bool)this._groupingEnabled) : null, "groupingEnabled" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._total ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNumber((int)this._total) : null, "total" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._usageEnd ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._usageEnd?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "usageEnd" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._usageStart ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._usageStart?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "usageStart" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.PowerShell.cs new file mode 100644 index 000000000000..87ee216e2a10 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Result of listing dimensions. It contains a list of available dimensions. + [System.ComponentModel.TypeConverter(typeof(DimensionsListResultTypeConverter))] + public partial class DimensionsListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DimensionsListResult(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.CostManagement.Models.Api20200601.IDimensionsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DimensionsListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DimensionsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DimensionsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.DimensionTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of listing dimensions. It contains a list of available dimensions. + [System.ComponentModel.TypeConverter(typeof(DimensionsListResultTypeConverter))] + public partial interface IDimensionsListResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.TypeConverter.cs new file mode 100644 index 000000000000..3bffa6d709fa --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DimensionsListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IDimensionsListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DimensionsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DimensionsListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DimensionsListResult.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/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.cs new file mode 100644 index 000000000000..f4b7f94012af --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.cs @@ -0,0 +1,49 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing dimensions. It contains a list of available dimensions. + public partial class DimensionsListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal + { + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[] _value; + + /// The list of dimensions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[] Value { get => this._value; } + + /// Creates an new instance. + public DimensionsListResult() + { + + } + } + /// Result of listing dimensions. It contains a list of available dimensions. + public partial interface IDimensionsListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The list of dimensions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The list of dimensions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[] Value { get; } + + } + /// Result of listing dimensions. It contains a list of available dimensions. + public partial interface IDimensionsListResultInternal + + { + /// The list of dimensions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimension[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.json.cs new file mode 100644 index 000000000000..eeea5e870f55 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DimensionsListResult.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing dimensions. It contains a list of available dimensions. + public partial class DimensionsListResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal DimensionsListResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IDimension) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Dimension.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDimensionsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new DimensionsListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.PowerShell.cs new file mode 100644 index 000000000000..c7bb34fffcd6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.PowerShell.cs @@ -0,0 +1,191 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The request payload to update an alert + [System.ComponentModel.TypeConverter(typeof(DismissAlertPayloadTypeConverter))] + public partial class DismissAlertPayload + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DismissAlertPayload(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.CostManagement.Models.Api20200601.IDismissAlertPayload DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DismissAlertPayload(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DismissAlertPayload(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailUnit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DismissAlertPayload(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).ModificationTime = (string) content.GetValueForProperty("ModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).ModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CloseTime = (string) content.GetValueForProperty("CloseTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CloseTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CostEntityId = (string) content.GetValueForProperty("CostEntityId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CostEntityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CreationTime = (string) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).CreationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Source = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource?) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Source, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationTime = (string) content.GetValueForProperty("StatusModificationTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationUserName = (string) content.GetValueForProperty("StatusModificationUserName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).StatusModificationUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOperator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator?) content.GetValueForProperty("DetailOperator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOperator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType?) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCriterion = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria?) content.GetValueForProperty("DefinitionCriterion",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCriterion, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailAmount = (decimal?) content.GetValueForProperty("DetailAmount",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailAmount, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailUnit = (string) content.GetValueForProperty("DetailUnit",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailUnit, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactGroup = (string[]) content.GetValueForProperty("DetailContactGroup",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactGroup, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactRole = (string[]) content.GetValueForProperty("DetailContactRole",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactRole, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailCurrentSpend = (decimal?) content.GetValueForProperty("DetailCurrentSpend",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailCurrentSpend, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailMeterFilter = (string[]) content.GetValueForProperty("DetailMeterFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailMeterFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCategory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory?) content.GetValueForProperty("DefinitionCategory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DefinitionCategory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOverridingAlert = (string) content.GetValueForProperty("DetailOverridingAlert",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailOverridingAlert, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailPeriodStartDate = (string) content.GetValueForProperty("DetailPeriodStartDate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailPeriodStartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceFilter = (string[]) content.GetValueForProperty("DetailResourceFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceGroupFilter = (string[]) content.GetValueForProperty("DetailResourceGroupFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailResourceGroupFilter, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTagFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) content.GetValueForProperty("DetailTagFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTagFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertPropertiesDetailsTagFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailThreshold = (decimal?) content.GetValueForProperty("DetailThreshold",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailThreshold, (__y)=> (decimal) global::System.Convert.ChangeType(__y, typeof(decimal))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTimeGrainType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType?) content.GetValueForProperty("DetailTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTimeGrainType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTriggeredBy = (string) content.GetValueForProperty("DetailTriggeredBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailTriggeredBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactEmail = (string[]) content.GetValueForProperty("DetailContactEmail",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal)this).DetailContactEmail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The request payload to update an alert + [System.ComponentModel.TypeConverter(typeof(DismissAlertPayloadTypeConverter))] + public partial interface IDismissAlertPayload + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.TypeConverter.cs new file mode 100644 index 000000000000..a1c70f53f144 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DismissAlertPayloadTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IDismissAlertPayload ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DismissAlertPayload.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DismissAlertPayload.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DismissAlertPayload.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/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.cs b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.cs new file mode 100644 index 000000000000..e70f8d8dac09 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.cs @@ -0,0 +1,442 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The request payload to update an alert + public partial class DismissAlertPayload : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal + { + + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CloseTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CloseTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CloseTime = value; } + + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CostEntityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CostEntityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CostEntityId = value; } + + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string CreationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CreationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).CreationTime = value; } + + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCategory = value; } + + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCriterion; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionCriterion = value; } + + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DefinitionType = value; } + + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Description = value; } + + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailAmount { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailAmount; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailAmount = value; } + + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactEmail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactEmail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactEmail = value; } + + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactGroup = value; } + + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailContactRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailContactRole = value; } + + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailCurrentSpend { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailCurrentSpend; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailCurrentSpend = value; } + + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailMeterFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailMeterFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailMeterFilter = value; } + + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOperator; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOperator = value; } + + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailOverridingAlert { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOverridingAlert; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailOverridingAlert = value; } + + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailPeriodStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailPeriodStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailPeriodStartDate = value; } + + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceFilter = value; } + + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] DetailResourceGroupFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceGroupFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailResourceGroupFilter = value; } + + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTagFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTagFilter = value; } + + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public decimal? DetailThreshold { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailThreshold; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailThreshold = value; } + + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTimeGrainType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTimeGrainType = value; } + + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailTriggeredBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTriggeredBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailTriggeredBy = value; } + + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DetailUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).DetailUnit = value; } + + /// Internal Acessors for Definition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal.Definition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Definition = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Detail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayloadInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties()); set { {_property = value;} } } + + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string ModificationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).ModificationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).ModificationTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties _property; + + /// Alert properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties()); set => this._property = value; } + + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Source; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Source = value; } + + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).Status = value; } + + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string StatusModificationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationTime = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string StatusModificationUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesInternal)Property).StatusModificationUserName = value; } + + /// Creates an new instance. + public DismissAlertPayload() + { + + } + } + /// The request payload to update an alert + public partial interface IDismissAlertPayload : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// dateTime in which alert was closed + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was closed", + SerializedName = @"closeTime", + PossibleTypes = new [] { typeof(string) })] + string CloseTime { get; set; } + /// related budget + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"related budget", + SerializedName = @"costEntityId", + PossibleTypes = new [] { typeof(string) })] + string CostEntityId { get; set; } + /// dateTime in which alert was created + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was created", + SerializedName = @"creationTime", + PossibleTypes = new [] { typeof(string) })] + string CreationTime { get; set; } + /// Alert category + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert category", + SerializedName = @"category", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Criteria that triggered alert", + SerializedName = @"criteria", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"type of alert", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert description", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// budget threshold amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"budget threshold amount", + SerializedName = @"amount", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailAmount { get; set; } + /// list of emails to contact + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of emails to contact", + SerializedName = @"contactEmails", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of action groups to broadcast to", + SerializedName = @"contactGroups", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactGroup { get; set; } + /// list of contact roles + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"list of contact roles", + SerializedName = @"contactRoles", + PossibleTypes = new [] { typeof(string) })] + string[] DetailContactRole { get; set; } + /// current spend + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"current spend", + SerializedName = @"currentSpend", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of meters to filter by", + SerializedName = @"meterFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"operator used to compare currentSpend with amount", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"overriding alert", + SerializedName = @"overridingAlert", + PossibleTypes = new [] { typeof(string) })] + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"datetime of periodStartDate", + SerializedName = @"periodStartDate", + PossibleTypes = new [] { typeof(string) })] + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resources to filter by", + SerializedName = @"resourceFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"array of resourceGroups to filter by", + SerializedName = @"resourceGroupFilter", + PossibleTypes = new [] { typeof(string) })] + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"tags to filter by", + SerializedName = @"tagFilter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notification threshold percentage as a decimal which activated this alert", + SerializedName = @"threshold", + PossibleTypes = new [] { typeof(decimal) })] + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of timegrain cadence", + SerializedName = @"timeGrainType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"notificationId that triggered this alert", + SerializedName = @"triggeredBy", + PossibleTypes = new [] { typeof(string) })] + string DetailTriggeredBy { get; set; } + /// unit of currency being used + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"unit of currency being used", + SerializedName = @"unit", + PossibleTypes = new [] { typeof(string) })] + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which alert was last modified", + SerializedName = @"modificationTime", + PossibleTypes = new [] { typeof(string) })] + string ModificationTime { get; set; } + /// Source of alert + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of alert", + SerializedName = @"source", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"alert status", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"dateTime in which the alert status was last modified", + SerializedName = @"statusModificationTime", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationTime { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"statusModificationUserName", + PossibleTypes = new [] { typeof(string) })] + string StatusModificationUserName { get; set; } + + } + /// The request payload to update an alert + public partial interface IDismissAlertPayloadInternal + + { + /// dateTime in which alert was closed + string CloseTime { get; set; } + /// related budget + string CostEntityId { get; set; } + /// dateTime in which alert was created + string CreationTime { get; set; } + /// defines the type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDefinition Definition { get; set; } + /// Alert category + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory? DefinitionCategory { get; set; } + /// Criteria that triggered alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria? DefinitionCriterion { get; set; } + /// type of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType? DefinitionType { get; set; } + /// Alert description + string Description { get; set; } + /// Alert details + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetails Detail { get; set; } + /// budget threshold amount + decimal? DetailAmount { get; set; } + /// list of emails to contact + string[] DetailContactEmail { get; set; } + /// list of action groups to broadcast to + string[] DetailContactGroup { get; set; } + /// list of contact roles + string[] DetailContactRole { get; set; } + /// current spend + decimal? DetailCurrentSpend { get; set; } + /// array of meters to filter by + string[] DetailMeterFilter { get; set; } + /// operator used to compare currentSpend with amount + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator? DetailOperator { get; set; } + /// overriding alert + string DetailOverridingAlert { get; set; } + /// datetime of periodStartDate + string DetailPeriodStartDate { get; set; } + /// array of resources to filter by + string[] DetailResourceFilter { get; set; } + /// array of resourceGroups to filter by + string[] DetailResourceGroupFilter { get; set; } + /// tags to filter by + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertPropertiesDetailsTagFilter DetailTagFilter { get; set; } + /// notification threshold percentage as a decimal which activated this alert + decimal? DetailThreshold { get; set; } + /// Type of timegrain cadence + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType? DetailTimeGrainType { get; set; } + /// notificationId that triggered this alert + string DetailTriggeredBy { get; set; } + /// unit of currency being used + string DetailUnit { get; set; } + /// dateTime in which alert was last modified + string ModificationTime { get; set; } + /// Alert properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IAlertProperties Property { get; set; } + /// Source of alert + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource? Source { get; set; } + /// alert status + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus? Status { get; set; } + /// dateTime in which the alert status was last modified + string StatusModificationTime { get; set; } + + string StatusModificationUserName { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.json.cs b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.json.cs new file mode 100644 index 000000000000..41a2a9d4effb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/DismissAlertPayload.json.cs @@ -0,0 +1,101 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The request payload to update an alert + public partial class DismissAlertPayload + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal DismissAlertPayload(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.AlertProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IDismissAlertPayload FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new DismissAlertPayload(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..24ec77e43de4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The details of the error. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial class ErrorDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorDetails(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.CostManagement.Models.Api20200601.IErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Message, 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 ErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The details of the error. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial interface IErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..6ee007b96cc2 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorDetailsTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorDetails.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/CostManagement/generated/api/Models/Api20200601/ErrorDetails.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.cs new file mode 100644 index 000000000000..4c21ea3e34ec --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The details of the error. + public partial class ErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal + { + + /// Backing field for property. + private string _code; + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private string _message; + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal.Message { get => this._message; set { {_message = value;} } } + + /// Creates an new instance. + public ErrorDetails() + { + + } + } + /// The details of the error. + public partial interface IErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + + } + /// The details of the error. + public partial interface IErrorDetailsInternal + + { + /// Error code. + string Code { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.json.cs new file mode 100644 index 000000000000..4053e1aaa1fe --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorDetails.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The details of the error. + public partial class ErrorDetails + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ErrorDetails(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..b88fda2468b3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.PowerShell.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + /// + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial class ErrorResponse + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Message, 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 ErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial interface IErrorResponse + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.TypeConverter.cs new file mode 100644 index 000000000000..c244b269b4ee --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IErrorResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.cs new file mode 100644 index 000000000000..07c6617d5722 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.cs @@ -0,0 +1,95 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal + { + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails _error; + + /// The details of the error. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails()); set => this._error = value; } + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message = value; } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + + } + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + public partial interface IErrorResponseInternal + + { + /// Error code. + string Code { get; set; } + /// The details of the error. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Error { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.json.cs new file mode 100644 index 000000000000..ae809dfd0941 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ErrorResponse.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Error response indicates that the service is not able to process the incoming request. The reason is provided in the error + /// message. + /// Some Error responses: + /// * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the "x-ms-ratelimit-microsoft.consumption-retry-after" + /// header. + /// * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the "Retry-After" + /// header. + /// + public partial class ErrorResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Export.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/Export.PowerShell.cs new file mode 100644 index 000000000000..8a2aa513ae68 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Export.PowerShell.cs @@ -0,0 +1,189 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// An export resource. + [System.ComponentModel.TypeConverter(typeof(ExportTypeConverter))] + public partial class Export + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Export(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.CostManagement.Models.Api20200601.IExport DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Export(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Export(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("ScheduleRecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("ScheduleRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleStatus = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("ScheduleStatus",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleStatus, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Export(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("ScheduleRecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("ScheduleRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleRecurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleStatus = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("ScheduleStatus",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ScheduleStatus, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An export resource. + [System.ComponentModel.TypeConverter(typeof(ExportTypeConverter))] + public partial interface IExport + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Export.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/Export.TypeConverter.cs new file mode 100644 index 000000000000..fd6a8416ee1e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Export.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExport ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Export.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Export.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Export.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/CostManagement/generated/api/Models/Api20200601/Export.cs b/src/CostManagement/generated/api/Models/Api20200601/Export.cs new file mode 100644 index 000000000000..e5c17d4e99a5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Export.cs @@ -0,0 +1,402 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An export resource. + public partial class Export : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource(); + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DataSetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DataSetGranularity = value; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionTimeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationRootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DestinationRootFolderPath = value; } + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).ETag = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).Format; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).Format = value; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id; } + + /// Internal Acessors for DataSetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DataSetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DataSetConfiguration = value; } + + /// Internal Acessors for Definition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.Definition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).Definition = value; } + + /// Internal Acessors for DefinitionDataSet + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.DefinitionDataSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionDataSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionDataSet = value; } + + /// Internal Acessors for DefinitionTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.DefinitionTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionTimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DefinitionTimePeriod = value; } + + /// Internal Acessors for DeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.DeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DeliveryInfo = value; } + + /// Internal Acessors for DeliveryInfoDestination + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.DeliveryInfoDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DeliveryInfoDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).DeliveryInfoDestination = value; } + + /// Internal Acessors for NextRunTimeEstimate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.NextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).NextRunTimeEstimate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).NextRunTimeEstimate = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportProperties()); set { {_property = value;} } } + + /// Internal Acessors for RunHistory + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.RunHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).RunHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).RunHistory = value; } + + /// Internal Acessors for RunHistoryValue + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).RunHistoryValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).RunHistoryValue = value; } + + /// Internal Acessors for Schedule + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.Schedule { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).Schedule; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).Schedule = value; } + + /// Internal Acessors for ScheduleRecurrencePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportInternal.ScheduleRecurrencePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleRecurrencePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleRecurrencePeriod = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type = value; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name; } + + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? NextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).NextRunTimeEstimate; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties _property; + + /// Export properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportProperties()); set => this._property = value; } + + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime RecurrencePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).RecurrencePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).RecurrencePeriodFrom = value; } + + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? RecurrencePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).RecurrencePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).RecurrencePeriodTo = value; } + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).RunHistoryValue; } + + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleRecurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleRecurrence = value; } + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)Property).ScheduleStatus = value; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).TimePeriodFrom = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)Property).TimePeriodTo = value; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type; } + + /// Creates an new instance. + public Export() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + } + } + /// An export resource. + public partial interface IExport : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string DestinationRootFolderPath { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If the export has an active schedule, provides an estimate of the next execution time.", + SerializedName = @"nextRunTimeEstimate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? NextRunTimeEstimate { get; } + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of export executions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; } + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get; set; } + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// An export resource. + public partial interface IExportInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// Has the definition for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Definition { get; set; } + /// The definition for data in the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DefinitionDataSet { get; set; } + /// Has time period for pulling data for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DefinitionTimePeriod { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// Has delivery information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo DeliveryInfo { get; set; } + /// Has destination for the export being delivered. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeliveryInfoDestination { get; set; } + /// The name of the container where exports will be uploaded. + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string DestinationRootFolderPath { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + global::System.DateTime? NextRunTimeEstimate { get; set; } + /// Export properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties Property { get; set; } + /// The start date of recurrence. + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// If requested, has the most recent execution history for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunHistory { get; set; } + /// A list of export executions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; set; } + /// Has schedule information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule Schedule { get; set; } + /// The schedule recurrence. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get; set; } + /// + /// Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than + /// start date. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod ScheduleRecurrencePeriod { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get; set; } + /// The start date for export data. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Export.json.cs b/src/CostManagement/generated/api/Models/Api20200601/Export.json.cs new file mode 100644 index 000000000000..da49e1a15295 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Export.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An export resource. + public partial class Export + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal Export(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new Export(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __proxyResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.PowerShell.cs new file mode 100644 index 000000000000..334cef29e5b1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition for data in the export. + [System.ComponentModel.TypeConverter(typeof(ExportDatasetTypeConverter))] + public partial class ExportDataset + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportDataset(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.CostManagement.Models.Api20200601.IExportDataset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportDataset(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportDataset(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportDataset(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition for data in the export. + [System.ComponentModel.TypeConverter(typeof(ExportDatasetTypeConverter))] + public partial interface IExportDataset + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.TypeConverter.cs new file mode 100644 index 000000000000..9d67ec52f376 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportDatasetTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportDataset ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportDataset.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportDataset.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportDataset.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/CostManagement/generated/api/Models/Api20200601/ExportDataset.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.cs new file mode 100644 index 000000000000..19ba451afcb4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.cs @@ -0,0 +1,81 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition for data in the export. + public partial class ExportDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration _configuration; + + /// The export dataset configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfiguration()); set => this._configuration = value; } + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)Configuration).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)Configuration).Column = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? _granularity; + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get => this._granularity; set => this._granularity = value; } + + /// Internal Acessors for Configuration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfiguration()); set { {_configuration = value;} } } + + /// Creates an new instance. + public ExportDataset() + { + + } + } + /// The definition for data in the export. + public partial interface IExportDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + + } + /// The definition for data in the export. + public partial interface IExportDatasetInternal + + { + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Configuration { get; set; } + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.json.cs new file mode 100644 index 000000000000..b9bdf7602536 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDataset.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition for data in the export. + public partial class ExportDataset + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportDataset(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfiguration.FromJson(__jsonConfiguration) : Configuration;} + {_granularity = If( json?.PropertyT("granularity"), out var __jsonGranularity) ? (string)__jsonGranularity : (string)Granularity;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportDataset(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._configuration ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._configuration.ToJson(null,serializationMode) : null, "configuration" ,container.Add ); + AddIf( null != (((object)this._granularity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._granularity.ToString()) : null, "granularity" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.PowerShell.cs new file mode 100644 index 000000000000..e2727460ca8c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + /// + [System.ComponentModel.TypeConverter(typeof(ExportDatasetConfigurationTypeConverter))] + public partial class ExportDatasetConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportDatasetConfiguration(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.CostManagement.Models.Api20200601.IExportDatasetConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportDatasetConfiguration(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportDatasetConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportDatasetConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + [System.ComponentModel.TypeConverter(typeof(ExportDatasetConfigurationTypeConverter))] + public partial interface IExportDatasetConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..b8bb789663aa --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportDatasetConfigurationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportDatasetConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportDatasetConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportDatasetConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportDatasetConfiguration.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/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.cs new file mode 100644 index 000000000000..554a445c905f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.cs @@ -0,0 +1,60 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + /// + public partial class ExportDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfigurationInternal + { + + /// Backing field for property. + private string[] _column; + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Column { get => this._column; set => this._column = value; } + + /// Creates an new instance. + public ExportDatasetConfiguration() + { + + } + } + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + public partial interface IExportDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] Column { get; set; } + + } + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + public partial interface IExportDatasetConfigurationInternal + + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] Column { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.json.cs new file mode 100644 index 000000000000..6eb4e8c7b733 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDatasetConfiguration.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The export dataset configuration. Allows columns to be selected for the export. If not provided then the export will include + /// all available columns. + /// + public partial class ExportDatasetConfiguration + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportDatasetConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_column = If( json?.PropertyT("columns"), out var __jsonColumns) ? If( __jsonColumns as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Column;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportDatasetConfiguration(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._column) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._column ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("columns",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.PowerShell.cs new file mode 100644 index 000000000000..4e12c07c28cd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.PowerShell.cs @@ -0,0 +1,147 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of an export. + [System.ComponentModel.TypeConverter(typeof(ExportDefinitionTypeConverter))] + public partial class ExportDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportDefinition(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.CostManagement.Models.Api20200601.IExportDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportDefinition(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of an export. + [System.ComponentModel.TypeConverter(typeof(ExportDefinitionTypeConverter))] + public partial interface IExportDefinition + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.TypeConverter.cs new file mode 100644 index 000000000000..a9c6344e55a8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportDefinitionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportDefinition.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/CostManagement/generated/api/Models/Api20200601/ExportDefinition.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.cs new file mode 100644 index 000000000000..309f0bcb7836 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.cs @@ -0,0 +1,172 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of an export. + public partial class ExportDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal + { + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).ConfigurationColumn = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset _dataSet; + + /// The definition for data in the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DataSet { get => (this._dataSet = this._dataSet ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDataset()); set => this._dataSet = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).Granularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).Granularity = value; } + + /// Internal Acessors for DataSet + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal.DataSet { get => (this._dataSet = this._dataSet ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDataset()); set { {_dataSet = value;} } } + + /// Internal Acessors for DataSetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal.DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetInternal)DataSet).Configuration = value; } + + /// Internal Acessors for TimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinitionInternal.TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriod()); set { {_timePeriod = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod _timePeriod; + + /// Has time period for pulling data for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriod()); set => this._timePeriod = value; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)TimePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)TimePeriod).From = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)TimePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)TimePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType _timeframe; + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get => this._timeframe; set => this._timeframe = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType _type; + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public ExportDefinition() + { + + } + } + /// The definition of an export. + public partial interface IExportDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get; set; } + + } + /// The definition of an export. + public partial interface IExportDefinitionInternal + + { + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The definition for data in the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DataSet { get; set; } + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// Has time period for pulling data for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod TimePeriod { get; set; } + /// The start date for export data. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.json.cs new file mode 100644 index 000000000000..738a5af1bdd1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDefinition.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of an export. + public partial class ExportDefinition + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportDefinition(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dataSet = If( json?.PropertyT("dataSet"), out var __jsonDataSet) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDataset.FromJson(__jsonDataSet) : DataSet;} + {_timePeriod = If( json?.PropertyT("timePeriod"), out var __jsonTimePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriod.FromJson(__jsonTimePeriod) : TimePeriod;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_timeframe = If( json?.PropertyT("timeframe"), out var __jsonTimeframe) ? (string)__jsonTimeframe : (string)Timeframe;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportDefinition(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._dataSet ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dataSet.ToJson(null,serializationMode) : null, "dataSet" ,container.Add ); + AddIf( null != this._timePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._timePeriod.ToJson(null,serializationMode) : null, "timePeriod" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._timeframe)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeframe.ToString()) : null, "timeframe" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.PowerShell.cs new file mode 100644 index 000000000000..7a81be8fa242 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.PowerShell.cs @@ -0,0 +1,147 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + /// + [System.ComponentModel.TypeConverter(typeof(ExportDeliveryDestinationTypeConverter))] + public partial class ExportDeliveryDestination + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportDeliveryDestination(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.CostManagement.Models.Api20200601.IExportDeliveryDestination DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportDeliveryDestination(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportDeliveryDestination(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).Container = (string) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).Container, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).RootFolderPath = (string) content.GetValueForProperty("RootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).RootFolderPath, 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 ExportDeliveryDestination(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).Container = (string) content.GetValueForProperty("Container",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).Container, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).RootFolderPath = (string) content.GetValueForProperty("RootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)this).RootFolderPath, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + [System.ComponentModel.TypeConverter(typeof(ExportDeliveryDestinationTypeConverter))] + public partial interface IExportDeliveryDestination + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.TypeConverter.cs new file mode 100644 index 000000000000..2170f4ef266e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportDeliveryDestinationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportDeliveryDestination ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportDeliveryDestination.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportDeliveryDestination.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportDeliveryDestination.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/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.cs new file mode 100644 index 000000000000..422d35b7f161 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.cs @@ -0,0 +1,94 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + /// + public partial class ExportDeliveryDestination : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal + { + + /// Backing field for property. + private string _container; + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Container { get => this._container; set => this._container = value; } + + /// Backing field for property. + private string _resourceId; + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ResourceId { get => this._resourceId; set => this._resourceId = value; } + + /// Backing field for property. + private string _rootFolderPath; + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string RootFolderPath { get => this._rootFolderPath; set => this._rootFolderPath = value; } + + /// Creates an new instance. + public ExportDeliveryDestination() + { + + } + } + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + public partial interface IExportDeliveryDestination : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string Container { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string ResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string RootFolderPath { get; set; } + + } + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + public partial interface IExportDeliveryDestinationInternal + + { + /// The name of the container where exports will be uploaded. + string Container { get; set; } + /// The resource id of the storage account where exports will be delivered. + string ResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string RootFolderPath { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.json.cs new file mode 100644 index 000000000000..aea5d3bbf31f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryDestination.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The destination information for the delivery of the export. To allow access to a storage account, you must register the + /// account's subscription with the Microsoft.CostManagementExports resource provider. This is required once per subscription. + /// When creating an export in the Azure portal, it is done automatically, however API users need to register the subscription. + /// For more information see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services + /// . + /// + public partial class ExportDeliveryDestination + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportDeliveryDestination(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_container = If( json?.PropertyT("container"), out var __jsonContainer) ? (string)__jsonContainer : (string)Container;} + {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} + {_rootFolderPath = If( json?.PropertyT("rootFolderPath"), out var __jsonRootFolderPath) ? (string)__jsonRootFolderPath : (string)RootFolderPath;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportDeliveryDestination(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._container)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._container.ToString()) : null, "container" ,container.Add ); + AddIf( null != (((object)this._resourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._resourceId.ToString()) : null, "resourceId" ,container.Add ); + AddIf( null != (((object)this._rootFolderPath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._rootFolderPath.ToString()) : null, "rootFolderPath" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.PowerShell.cs new file mode 100644 index 000000000000..3bd71b5ecba0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The delivery information associated with a export. + [System.ComponentModel.TypeConverter(typeof(ExportDeliveryInfoTypeConverter))] + public partial class ExportDeliveryInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportDeliveryInfo(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.CostManagement.Models.Api20200601.IExportDeliveryInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportDeliveryInfo(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportDeliveryInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).Destination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("Destination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).Destination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationRootFolderPath, 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 ExportDeliveryInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).Destination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("Destination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).Destination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The delivery information associated with a export. + [System.ComponentModel.TypeConverter(typeof(ExportDeliveryInfoTypeConverter))] + public partial interface IExportDeliveryInfo + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.TypeConverter.cs new file mode 100644 index 000000000000..c52f0edd1250 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportDeliveryInfoTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportDeliveryInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportDeliveryInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportDeliveryInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportDeliveryInfo.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/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.cs new file mode 100644 index 000000000000..28a0b8e54cb4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.cs @@ -0,0 +1,83 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The delivery information associated with a export. + public partial class ExportDeliveryInfo : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination _destination; + + /// Has destination for the export being delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Destination { get => (this._destination = this._destination ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestination()); set => this._destination = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).Container; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).Container = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).ResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).RootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestinationInternal)Destination).RootFolderPath = value; } + + /// Internal Acessors for Destination + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfoInternal.Destination { get => (this._destination = this._destination ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestination()); set { {_destination = value;} } } + + /// Creates an new instance. + public ExportDeliveryInfo() + { + + } + } + /// The delivery information associated with a export. + public partial interface IExportDeliveryInfo : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string DestinationRootFolderPath { get; set; } + + } + /// The delivery information associated with a export. + public partial interface IExportDeliveryInfoInternal + + { + /// Has destination for the export being delivered. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Destination { get; set; } + /// The name of the container where exports will be uploaded. + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string DestinationRootFolderPath { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.json.cs new file mode 100644 index 000000000000..5fdf03cde528 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportDeliveryInfo.json.cs @@ -0,0 +1,101 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The delivery information associated with a export. + public partial class ExportDeliveryInfo + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportDeliveryInfo(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_destination = If( json?.PropertyT("destination"), out var __jsonDestination) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestination.FromJson(__jsonDestination) : Destination;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportDeliveryInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._destination ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._destination.ToJson(null,serializationMode) : null, "destination" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.PowerShell.cs new file mode 100644 index 000000000000..6c5ab925b0c5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.PowerShell.cs @@ -0,0 +1,199 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// An export execution. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionTypeConverter))] + public partial class ExportExecution + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportExecution(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.CostManagement.Models.Api20200601.IExportExecution DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportExecution(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportExecution(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ExecutionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType?) content.GetValueForProperty("ExecutionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ExecutionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingEndTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingEndTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingStartTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingStartTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedBy = (string) content.GetValueForProperty("SubmittedBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedTime = (global::System.DateTime?) content.GetValueForProperty("SubmittedTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSetting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties) content.GetValueForProperty("RunSetting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSetting, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDefinition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("RunSettingDefinition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDefinition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("RunSettingDeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingRunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunSettingRunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingRunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingFormat = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("RunSettingFormat",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingFormat, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingNextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("RunSettingNextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingNextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportExecution(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ExecutionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType?) content.GetValueForProperty("ExecutionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ExecutionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingEndTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingEndTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingStartTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingStartTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ProcessingStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedBy = (string) content.GetValueForProperty("SubmittedBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedTime = (global::System.DateTime?) content.GetValueForProperty("SubmittedTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).SubmittedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSetting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties) content.GetValueForProperty("RunSetting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSetting, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDefinition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("RunSettingDefinition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDefinition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("RunSettingDeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingDeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingRunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunSettingRunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingRunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingFormat = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("RunSettingFormat",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingFormat, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingNextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("RunSettingNextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunSettingNextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An export execution. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionTypeConverter))] + public partial interface IExportExecution + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.TypeConverter.cs new file mode 100644 index 000000000000..263d2b5cd238 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportExecutionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportExecution ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportExecution.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportExecution.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportExecution.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/CostManagement/generated/api/Models/Api20200601/ExportExecution.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.cs new file mode 100644 index 000000000000..4ff63f1eb0eb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.cs @@ -0,0 +1,504 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An export execution. + public partial class ExportExecution : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(); + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Code; } + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DataSetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DataSetGranularity = value; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionTimeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationRootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DestinationRootFolderPath = value; } + + /// The type of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 0)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ExecutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ExecutionType = value; } + + /// The name of the exported file. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 5)] + public string FileName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).FileName; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).FileName = value; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; } + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Code = value; } + + /// Internal Acessors for DataSetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DataSetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DataSetConfiguration = value; } + + /// Internal Acessors for DefinitionDataSet + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.DefinitionDataSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionDataSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionDataSet = value; } + + /// Internal Acessors for DefinitionTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.DefinitionTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionTimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DefinitionTimePeriod = value; } + + /// Internal Acessors for DeliveryInfoDestination + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.DeliveryInfoDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DeliveryInfoDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).DeliveryInfoDestination = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Error = value; } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Message = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionProperties()); set { {_property = value;} } } + + /// Internal Acessors for RunHistoryValue + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunHistoryValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunHistoryValue = value; } + + /// Internal Acessors for RunSetting + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSetting = value; } + + /// Internal Acessors for RunSettingDefinition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunSettingDefinition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingDefinition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingDefinition = value; } + + /// Internal Acessors for RunSettingDeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunSettingDeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingDeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingDeliveryInfo = value; } + + /// Internal Acessors for RunSettingNextRunTimeEstimate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunSettingNextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingNextRunTimeEstimate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingNextRunTimeEstimate = value; } + + /// Internal Acessors for RunSettingRunHistory + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionInternal.RunSettingRunHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingRunHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingRunHistory = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type = value; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; } + + /// The time when the export execution finished. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 2)] + public global::System.DateTime? ProcessingEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ProcessingEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ProcessingEndTime = value; } + + /// The time when export was picked up to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 1)] + public global::System.DateTime? ProcessingStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ProcessingStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).ProcessingStartTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties _property; + + /// Export execution properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionProperties()); set => this._property = value; } + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunHistoryValue; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingFormat; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingFormat = value; } + + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public global::System.DateTime? RunSettingNextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).RunSettingNextRunTimeEstimate; } + + /// The last known status of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 4)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).Status = value; } + + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string SubmittedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).SubmittedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).SubmittedBy = value; } + + /// The time when export was queued to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public global::System.DateTime? SubmittedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).SubmittedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).SubmittedTime = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).TimePeriodFrom = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)Property).TimePeriodTo = value; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ExportExecution() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// An export execution. + public partial interface IExportExecution : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string DestinationRootFolderPath { get; set; } + /// The type of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the export execution.", + SerializedName = @"executionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get; set; } + /// The name of the exported file. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the exported file.", + SerializedName = @"fileName", + PossibleTypes = new [] { typeof(string) })] + string FileName { get; set; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The time when the export execution finished. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when the export execution finished.", + SerializedName = @"processingEndTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProcessingEndTime { get; set; } + /// The time when export was picked up to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when export was picked up to be executed.", + SerializedName = @"processingStartTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProcessingStartTime { get; set; } + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of export executions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If the export has an active schedule, provides an estimate of the next execution time.", + SerializedName = @"nextRunTimeEstimate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RunSettingNextRunTimeEstimate { get; } + /// The last known status of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The last known status of the export execution.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get; set; } + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions it is 'System'.", + SerializedName = @"submittedBy", + PossibleTypes = new [] { typeof(string) })] + string SubmittedBy { get; set; } + /// The time when export was queued to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when export was queued to be executed.", + SerializedName = @"submittedTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SubmittedTime { get; set; } + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// An export execution. + public partial interface IExportExecutionInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal + { + /// Error code. + string Code { get; set; } + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// The definition for data in the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DefinitionDataSet { get; set; } + /// Has time period for pulling data for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DefinitionTimePeriod { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// Has destination for the export being delivered. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeliveryInfoDestination { get; set; } + /// The name of the container where exports will be uploaded. + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string DestinationRootFolderPath { get; set; } + /// The details of any error. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Error { get; set; } + /// The type of the export execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get; set; } + /// The name of the exported file. + string FileName { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + /// The time when the export execution finished. + global::System.DateTime? ProcessingEndTime { get; set; } + /// The time when export was picked up to be executed. + global::System.DateTime? ProcessingStartTime { get; set; } + /// Export execution properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties Property { get; set; } + /// A list of export executions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; set; } + /// The export settings that were in effect for this execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties RunSetting { get; set; } + /// Has the definition for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition RunSettingDefinition { get; set; } + /// Has delivery information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo RunSettingDeliveryInfo { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + global::System.DateTime? RunSettingNextRunTimeEstimate { get; set; } + /// If requested, has the most recent execution history for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunSettingRunHistory { get; set; } + /// The last known status of the export execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get; set; } + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + string SubmittedBy { get; set; } + /// The time when export was queued to be executed. + global::System.DateTime? SubmittedTime { get; set; } + /// The start date for export data. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.json.cs new file mode 100644 index 000000000000..adc7c3c6dcbc --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecution.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// An export execution. + public partial class ExportExecution + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportExecution(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportExecution(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.PowerShell.cs new file mode 100644 index 000000000000..03dfb4da655a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Result of listing the execution history of an export. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionListResultTypeConverter))] + public partial class ExportExecutionListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportExecutionListResult(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.CostManagement.Models.Api20200601.IExportExecutionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportExecutionListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportExecutionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportExecutionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of listing the execution history of an export. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionListResultTypeConverter))] + public partial interface IExportExecutionListResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.TypeConverter.cs new file mode 100644 index 000000000000..dd602a84416a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportExecutionListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportExecutionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportExecutionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportExecutionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportExecutionListResult.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/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.cs new file mode 100644 index 000000000000..75ec1783cee7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.cs @@ -0,0 +1,49 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing the execution history of an export. + public partial class ExportExecutionListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal + { + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] _value; + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Value { get => this._value; } + + /// Creates an new instance. + public ExportExecutionListResult() + { + + } + } + /// Result of listing the execution history of an export. + public partial interface IExportExecutionListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of export executions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Value { get; } + + } + /// Result of listing the execution history of an export. + public partial interface IExportExecutionListResultInternal + + { + /// A list of export executions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.json.cs new file mode 100644 index 000000000000..ce7966292e94 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionListResult.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing the execution history of an export. + public partial class ExportExecutionListResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportExecutionListResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IExportExecution) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecution.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportExecutionListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.PowerShell.cs new file mode 100644 index 000000000000..88921936a0b7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.PowerShell.cs @@ -0,0 +1,191 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The properties of the export execution. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionPropertiesTypeConverter))] + public partial class ExportExecutionProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportExecutionProperties(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.CostManagement.Models.Api20200601.IExportExecutionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportExecutionProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportExecutionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSetting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties) content.GetValueForProperty("RunSetting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSetting, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ExecutionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType?) content.GetValueForProperty("ExecutionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ExecutionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingEndTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingEndTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingStartTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingStartTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedBy = (string) content.GetValueForProperty("SubmittedBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedTime = (global::System.DateTime?) content.GetValueForProperty("SubmittedTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDefinition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("RunSettingDefinition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDefinition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("RunSettingDeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingRunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunSettingRunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingRunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingFormat = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("RunSettingFormat",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingFormat, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingNextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("RunSettingNextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingNextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportExecutionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSetting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties) content.GetValueForProperty("RunSetting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSetting, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ExecutionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType?) content.GetValueForProperty("ExecutionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ExecutionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingEndTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingEndTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingStartTime = (global::System.DateTime?) content.GetValueForProperty("ProcessingStartTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ProcessingStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedBy = (string) content.GetValueForProperty("SubmittedBy",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedTime = (global::System.DateTime?) content.GetValueForProperty("SubmittedTime",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).SubmittedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDefinition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("RunSettingDefinition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDefinition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("RunSettingDeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingDeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingRunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunSettingRunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingRunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingFormat = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("RunSettingFormat",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingFormat, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingNextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("RunSettingNextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunSettingNextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of the export execution. + [System.ComponentModel.TypeConverter(typeof(ExportExecutionPropertiesTypeConverter))] + public partial interface IExportExecutionProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.TypeConverter.cs new file mode 100644 index 000000000000..f162572e670e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportExecutionPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportExecutionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportExecutionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportExecutionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportExecutionProperties.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/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.cs new file mode 100644 index 000000000000..9eb0efe6eb2f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.cs @@ -0,0 +1,454 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the export execution. + public partial class ExportExecutionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal + { + + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code; } + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DataSetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DataSetGranularity = value; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionTimeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationRootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DestinationRootFolderPath = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails _error; + + /// The details of any error. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails()); set => this._error = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? _executionType; + + /// The type of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get => this._executionType; set => this._executionType = value; } + + /// Backing field for property. + private string _fileName; + + /// The name of the exported file. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string FileName { get => this._fileName; set => this._fileName = value; } + + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Code = value; } + + /// Internal Acessors for DataSetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DataSetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DataSetConfiguration = value; } + + /// Internal Acessors for DefinitionDataSet + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.DefinitionDataSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionDataSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionDataSet = value; } + + /// Internal Acessors for DefinitionTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.DefinitionTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionTimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DefinitionTimePeriod = value; } + + /// Internal Acessors for DeliveryInfoDestination + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.DeliveryInfoDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DeliveryInfoDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DeliveryInfoDestination = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetailsInternal)Error).Message = value; } + + /// Internal Acessors for RunHistoryValue + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).RunHistoryValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).RunHistoryValue = value; } + + /// Internal Acessors for RunSetting + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunSetting { get => (this._runSetting = this._runSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties()); set { {_runSetting = value;} } } + + /// Internal Acessors for RunSettingDefinition + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunSettingDefinition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).Definition = value; } + + /// Internal Acessors for RunSettingDeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunSettingDeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).DeliveryInfo = value; } + + /// Internal Acessors for RunSettingNextRunTimeEstimate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunSettingNextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).NextRunTimeEstimate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).NextRunTimeEstimate = value; } + + /// Internal Acessors for RunSettingRunHistory + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionPropertiesInternal.RunSettingRunHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).RunHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).RunHistory = value; } + + /// Backing field for property. + private global::System.DateTime? _processingEndTime; + + /// The time when the export execution finished. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? ProcessingEndTime { get => this._processingEndTime; set => this._processingEndTime = value; } + + /// Backing field for property. + private global::System.DateTime? _processingStartTime; + + /// The time when export was picked up to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? ProcessingStartTime { get => this._processingStartTime; set => this._processingStartTime = value; } + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).RunHistoryValue; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties _runSetting; + + /// The export settings that were in effect for this execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties RunSetting { get => (this._runSetting = this._runSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties()); set => this._runSetting = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).Format; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).Format = value; } + + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? RunSettingNextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).NextRunTimeEstimate; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? _status; + + /// The last known status of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get => this._status; set => this._status = value; } + + /// Backing field for property. + private string _submittedBy; + + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string SubmittedBy { get => this._submittedBy; set => this._submittedBy = value; } + + /// Backing field for property. + private global::System.DateTime? _submittedTime; + + /// The time when export was queued to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? SubmittedTime { get => this._submittedTime; set => this._submittedTime = value; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).TimePeriodFrom = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)RunSetting).TimePeriodTo = value; } + + /// Creates an new instance. + public ExportExecutionProperties() + { + + } + } + /// The properties of the export execution. + public partial interface IExportExecutionProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Error code. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + string DestinationRootFolderPath { get; set; } + /// The type of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the export execution.", + SerializedName = @"executionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get; set; } + /// The name of the exported file. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the exported file.", + SerializedName = @"fileName", + PossibleTypes = new [] { typeof(string) })] + string FileName { get; set; } + /// Error message indicating why the operation failed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Error message indicating why the operation failed.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The time when the export execution finished. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when the export execution finished.", + SerializedName = @"processingEndTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProcessingEndTime { get; set; } + /// The time when export was picked up to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when export was picked up to be executed.", + SerializedName = @"processingStartTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProcessingStartTime { get; set; } + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of export executions.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If the export has an active schedule, provides an estimate of the next execution time.", + SerializedName = @"nextRunTimeEstimate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RunSettingNextRunTimeEstimate { get; } + /// The last known status of the export execution. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The last known status of the export execution.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get; set; } + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions it is 'System'.", + SerializedName = @"submittedBy", + PossibleTypes = new [] { typeof(string) })] + string SubmittedBy { get; set; } + /// The time when export was queued to be executed. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when export was queued to be executed.", + SerializedName = @"submittedTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SubmittedTime { get; set; } + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// The properties of the export execution. + public partial interface IExportExecutionPropertiesInternal + + { + /// Error code. + string Code { get; set; } + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + string[] ConfigurationColumn { get; set; } + /// The export dataset configuration. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get; set; } + /// The granularity of rows in the export. Currently only 'Daily' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get; set; } + /// The definition for data in the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DefinitionDataSet { get; set; } + /// Has time period for pulling data for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DefinitionTimePeriod { get; set; } + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get; set; } + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get; set; } + /// Has destination for the export being delivered. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeliveryInfoDestination { get; set; } + /// The name of the container where exports will be uploaded. + string DestinationContainer { get; set; } + /// The resource id of the storage account where exports will be delivered. + string DestinationResourceId { get; set; } + /// The name of the directory where exports will be uploaded. + string DestinationRootFolderPath { get; set; } + /// The details of any error. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IErrorDetails Error { get; set; } + /// The type of the export execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType? ExecutionType { get; set; } + /// The name of the exported file. + string FileName { get; set; } + /// Error message indicating why the operation failed. + string Message { get; set; } + /// The time when the export execution finished. + global::System.DateTime? ProcessingEndTime { get; set; } + /// The time when export was picked up to be executed. + global::System.DateTime? ProcessingStartTime { get; set; } + /// A list of export executions. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get; set; } + /// The export settings that were in effect for this execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties RunSetting { get; set; } + /// Has the definition for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition RunSettingDefinition { get; set; } + /// Has delivery information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo RunSettingDeliveryInfo { get; set; } + /// The format of the export being delivered. Currently only 'Csv' is supported. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? RunSettingFormat { get; set; } + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + global::System.DateTime? RunSettingNextRunTimeEstimate { get; set; } + /// If requested, has the most recent execution history for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunSettingRunHistory { get; set; } + /// The last known status of the export execution. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus? Status { get; set; } + /// + /// The identifier for the entity that executed the export. For OnDemand executions it is the user email. For scheduled executions + /// it is 'System'. + /// + string SubmittedBy { get; set; } + /// The time when export was queued to be executed. + global::System.DateTime? SubmittedTime { get; set; } + /// The start date for export data. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date for export data. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.json.cs new file mode 100644 index 000000000000..d05ce7204a76 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportExecutionProperties.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the export execution. + public partial class ExportExecutionProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportExecutionProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ErrorDetails.FromJson(__jsonError) : Error;} + {_runSetting = If( json?.PropertyT("runSettings"), out var __jsonRunSettings) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties.FromJson(__jsonRunSettings) : RunSetting;} + {_executionType = If( json?.PropertyT("executionType"), out var __jsonExecutionType) ? (string)__jsonExecutionType : (string)ExecutionType;} + {_fileName = If( json?.PropertyT("fileName"), out var __jsonFileName) ? (string)__jsonFileName : (string)FileName;} + {_processingEndTime = If( json?.PropertyT("processingEndTime"), out var __jsonProcessingEndTime) ? global::System.DateTime.TryParse((string)__jsonProcessingEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonProcessingEndTimeValue) ? __jsonProcessingEndTimeValue : ProcessingEndTime : ProcessingEndTime;} + {_processingStartTime = If( json?.PropertyT("processingStartTime"), out var __jsonProcessingStartTime) ? global::System.DateTime.TryParse((string)__jsonProcessingStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonProcessingStartTimeValue) ? __jsonProcessingStartTimeValue : ProcessingStartTime : ProcessingStartTime;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_submittedBy = If( json?.PropertyT("submittedBy"), out var __jsonSubmittedBy) ? (string)__jsonSubmittedBy : (string)SubmittedBy;} + {_submittedTime = If( json?.PropertyT("submittedTime"), out var __jsonSubmittedTime) ? global::System.DateTime.TryParse((string)__jsonSubmittedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonSubmittedTimeValue) ? __jsonSubmittedTimeValue : SubmittedTime : SubmittedTime;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportExecutionProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != this._runSetting ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._runSetting.ToJson(null,serializationMode) : null, "runSettings" ,container.Add ); + AddIf( null != (((object)this._executionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._executionType.ToString()) : null, "executionType" ,container.Add ); + AddIf( null != (((object)this._fileName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._fileName.ToString()) : null, "fileName" ,container.Add ); + AddIf( null != this._processingEndTime ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._processingEndTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "processingEndTime" ,container.Add ); + AddIf( null != this._processingStartTime ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._processingStartTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "processingStartTime" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._submittedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._submittedBy.ToString()) : null, "submittedBy" ,container.Add ); + AddIf( null != this._submittedTime ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._submittedTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "submittedTime" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.PowerShell.cs new file mode 100644 index 000000000000..cc31927f4480 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Result of listing exports. It contains a list of available exports in the scope provided. + /// + [System.ComponentModel.TypeConverter(typeof(ExportListResultTypeConverter))] + public partial class ExportListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportListResult(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.CostManagement.Models.Api20200601.IExportListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of listing exports. It contains a list of available exports in the scope provided. + [System.ComponentModel.TypeConverter(typeof(ExportListResultTypeConverter))] + public partial interface IExportListResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.TypeConverter.cs new file mode 100644 index 000000000000..b823d44efabf --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportListResult.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/CostManagement/generated/api/Models/Api20200601/ExportListResult.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.cs new file mode 100644 index 000000000000..b8d28941ec92 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.cs @@ -0,0 +1,51 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of listing exports. It contains a list of available exports in the scope provided. + /// + public partial class ExportListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal + { + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[] _value; + + /// The list of exports. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[] Value { get => this._value; } + + /// Creates an new instance. + public ExportListResult() + { + + } + } + /// Result of listing exports. It contains a list of available exports in the scope provided. + public partial interface IExportListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The list of exports. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The list of exports.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[] Value { get; } + + } + /// Result of listing exports. It contains a list of available exports in the scope provided. + public partial interface IExportListResultInternal + + { + /// The list of exports. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.json.cs new file mode 100644 index 000000000000..0c9fb826da58 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportListResult.json.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of listing exports. It contains a list of available exports in the scope provided. + /// + public partial class ExportListResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportListResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IExport) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.PowerShell.cs new file mode 100644 index 000000000000..90dd35618c1f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.PowerShell.cs @@ -0,0 +1,179 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The properties of the export. + [System.ComponentModel.TypeConverter(typeof(ExportPropertiesTypeConverter))] + public partial class ExportProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportProperties(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.CostManagement.Models.Api20200601.IExportProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("ScheduleRecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("ScheduleRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleStatus = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("ScheduleStatus",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleStatus, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset) content.GetValueForProperty("DefinitionDataSet",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionDataSet, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[]) content.GetValueForProperty("RunHistoryValue",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistoryValue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("DefinitionType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("DefinitionTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination) content.GetValueForProperty("DeliveryInfoDestination",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfoDestination, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryDestinationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod) content.GetValueForProperty("DefinitionTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DefinitionTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DataSetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration) content.GetValueForProperty("DataSetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DataSetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer = (string) content.GetValueForProperty("DestinationContainer",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationContainer, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId = (string) content.GetValueForProperty("DestinationResourceId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath = (string) content.GetValueForProperty("DestinationRootFolderPath",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DestinationRootFolderPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition) content.GetValueForProperty("Definition",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Definition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult) content.GetValueForProperty("RunHistory",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).RunHistory, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportExecutionListResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType?) content.GetValueForProperty("Format",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).Format, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate = (global::System.DateTime?) content.GetValueForProperty("NextRunTimeEstimate",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)this).NextRunTimeEstimate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("ScheduleRecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("ScheduleRecurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleRecurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleStatus = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("ScheduleStatus",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).ScheduleStatus, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of the export. + [System.ComponentModel.TypeConverter(typeof(ExportPropertiesTypeConverter))] + public partial interface IExportProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.TypeConverter.cs new file mode 100644 index 000000000000..02de5d2770b8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportProperties.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/CostManagement/generated/api/Models/Api20200601/ExportProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.cs new file mode 100644 index 000000000000..12f53210733c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.cs @@ -0,0 +1,222 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the export. + public partial class ExportProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties __commonExportProperties = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties(); + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).ConfigurationColumn = value; } + + /// The export dataset configuration. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDatasetConfiguration DataSetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DataSetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DataSetConfiguration = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DataSetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DataSetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DataSetGranularity = value; } + + /// Has the definition for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDefinition Definition { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).Definition; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).Definition = value; } + + /// The definition for data in the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDataset DefinitionDataSet { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionDataSet; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionDataSet = value; } + + /// Has time period for pulling data for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DefinitionTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionTimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionTimePeriod = value; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionTimeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DefinitionType = value; } + + /// Has delivery information for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryInfo DeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DeliveryInfo = value; } + + /// Has destination for the export being delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportDeliveryDestination DeliveryInfoDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DeliveryInfoDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DeliveryInfoDestination = value; } + + /// The name of the container where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string DestinationContainer { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationContainer; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string DestinationResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string DestinationRootFolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationRootFolderPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).DestinationRootFolderPath = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType? Format { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).Format; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).Format = value; } + + /// Internal Acessors for NextRunTimeEstimate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.NextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).NextRunTimeEstimate; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).NextRunTimeEstimate = value; } + + /// Internal Acessors for RunHistoryValue + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal.RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).RunHistoryValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).RunHistoryValue = value; } + + /// Internal Acessors for Schedule + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportSchedule()); set { {_schedule = value;} } } + + /// Internal Acessors for ScheduleRecurrencePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportPropertiesInternal.ScheduleRecurrencePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriod = value; } + + /// + /// If the export has an active schedule, provides an estimate of the next execution time. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public global::System.DateTime? NextRunTimeEstimate { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).NextRunTimeEstimate; } + + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime RecurrencePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriodFrom = value; } + + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? RecurrencePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).RecurrencePeriodTo = value; } + + /// If requested, has the most recent execution history for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecutionListResult RunHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).RunHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).RunHistory = value; } + + /// A list of export executions. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution[] RunHistoryValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).RunHistoryValue; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule _schedule; + + /// Has schedule information for the export. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportSchedule()); set => this._schedule = value; } + + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).Recurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).Recurrence = value; } + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)Schedule).Status = value; } + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).TimePeriodFrom = value; } + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal)__commonExportProperties).TimePeriodTo = value; } + + /// Creates an new instance. + public ExportProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__commonExportProperties), __commonExportProperties); + await eventListener.AssertObjectIsValid(nameof(__commonExportProperties), __commonExportProperties); + } + } + /// The properties of the export. + public partial interface IExportProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportProperties + { + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get; set; } + + } + /// The properties of the export. + public partial interface IExportPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ICommonExportPropertiesInternal + { + /// The start date of recurrence. + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// Has schedule information for the export. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule Schedule { get; set; } + /// The schedule recurrence. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get; set; } + /// + /// Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than + /// start date. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod ScheduleRecurrencePeriod { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? ScheduleStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.json.cs new file mode 100644 index 000000000000..c45c38813d82 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportProperties.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the export. + public partial class ExportProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __commonExportProperties = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.CommonExportProperties(json); + {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportSchedule.FromJson(__jsonSchedule) : Schedule;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __commonExportProperties?.ToJson(container, serializationMode); + AddIf( null != this._schedule ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._schedule.ToJson(null,serializationMode) : null, "schedule" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.PowerShell.cs new file mode 100644 index 000000000000..b9e3ac4603df --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The start and end date for recurrence schedule. + [System.ComponentModel.TypeConverter(typeof(ExportRecurrencePeriodTypeConverter))] + public partial class ExportRecurrencePeriod + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportRecurrencePeriod(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.CostManagement.Models.Api20200601.IExportRecurrencePeriod DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportRecurrencePeriod(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportRecurrencePeriod(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).To = (global::System.DateTime?) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportRecurrencePeriod(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).To = (global::System.DateTime?) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The start and end date for recurrence schedule. + [System.ComponentModel.TypeConverter(typeof(ExportRecurrencePeriodTypeConverter))] + public partial interface IExportRecurrencePeriod + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.TypeConverter.cs new file mode 100644 index 000000000000..d1e38003cb69 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportRecurrencePeriodTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportRecurrencePeriod ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportRecurrencePeriod.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportRecurrencePeriod.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportRecurrencePeriod.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/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.cs new file mode 100644 index 000000000000..725bdff31943 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for recurrence schedule. + public partial class ExportRecurrencePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal + { + + /// Backing field for property. + private global::System.DateTime _from; + + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime From { get => this._from; set => this._from = value; } + + /// Backing field for property. + private global::System.DateTime? _to; + + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? To { get => this._to; set => this._to = value; } + + /// Creates an new instance. + public ExportRecurrencePeriod() + { + + } + } + /// The start and end date for recurrence schedule. + public partial interface IExportRecurrencePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime From { get; set; } + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? To { get; set; } + + } + /// The start and end date for recurrence schedule. + public partial interface IExportRecurrencePeriodInternal + + { + /// The start date of recurrence. + global::System.DateTime From { get; set; } + /// The end date of recurrence. + global::System.DateTime? To { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.json.cs new file mode 100644 index 000000000000..8d9e9fa85ef1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportRecurrencePeriod.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for recurrence schedule. + public partial class ExportRecurrencePeriod + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportRecurrencePeriod(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_from = If( json?.PropertyT("from"), out var __jsonFrom) ? global::System.DateTime.TryParse((string)__jsonFrom, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonFromValue) ? __jsonFromValue : From : From;} + {_to = If( json?.PropertyT("to"), out var __jsonTo) ? global::System.DateTime.TryParse((string)__jsonTo, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonToValue) ? __jsonToValue : To : To;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportRecurrencePeriod(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._from.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "from" ,container.Add ); + AddIf( null != this._to ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._to?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "to" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.PowerShell.cs new file mode 100644 index 000000000000..d85680130d40 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The schedule associated with the export. + [System.ComponentModel.TypeConverter(typeof(ExportScheduleTypeConverter))] + public partial class ExportSchedule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportSchedule(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.CostManagement.Models.Api20200601.IExportSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportSchedule(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportSchedule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("RecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Recurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("Recurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Recurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportSchedule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod) content.GetValueForProperty("RecurrencePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Recurrence = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) content.GetValueForProperty("Recurrence",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Recurrence, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodFrom = (global::System.DateTime) content.GetValueForProperty("RecurrencePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodTo = (global::System.DateTime?) content.GetValueForProperty("RecurrencePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal)this).RecurrencePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The schedule associated with the export. + [System.ComponentModel.TypeConverter(typeof(ExportScheduleTypeConverter))] + public partial interface IExportSchedule + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.TypeConverter.cs new file mode 100644 index 000000000000..212bbf8f521d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportScheduleTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportSchedule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportSchedule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportSchedule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportSchedule.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/CostManagement/generated/api/Models/Api20200601/ExportSchedule.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.cs new file mode 100644 index 000000000000..9ac8a3ca020b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.cs @@ -0,0 +1,115 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The schedule associated with the export. + public partial class ExportSchedule : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal + { + + /// Internal Acessors for RecurrencePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportScheduleInternal.RecurrencePeriod { get => (this._recurrencePeriod = this._recurrencePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriod()); set { {_recurrencePeriod = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType _recurrence; + + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Recurrence { get => this._recurrence; set => this._recurrence = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod _recurrencePeriod; + + /// + /// Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than + /// start date. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod RecurrencePeriod { get => (this._recurrencePeriod = this._recurrencePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriod()); set => this._recurrencePeriod = value; } + + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime RecurrencePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)RecurrencePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)RecurrencePeriod).From = value; } + + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? RecurrencePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)RecurrencePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriodInternal)RecurrencePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? _status; + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? Status { get => this._status; set => this._status = value; } + + /// Creates an new instance. + public ExportSchedule() + { + + } + } + /// The schedule associated with the export. + public partial interface IExportSchedule : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The schedule recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Recurrence { get; set; } + /// The start date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? Status { get; set; } + + } + /// The schedule associated with the export. + public partial interface IExportScheduleInternal + + { + /// The schedule recurrence. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Recurrence { get; set; } + /// + /// Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than + /// start date. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportRecurrencePeriod RecurrencePeriod { get; set; } + /// The start date of recurrence. + global::System.DateTime RecurrencePeriodFrom { get; set; } + /// The end date of recurrence. + global::System.DateTime? RecurrencePeriodTo { get; set; } + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType? Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.json.cs new file mode 100644 index 000000000000..6122c1d5f753 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportSchedule.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The schedule associated with the export. + public partial class ExportSchedule + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportSchedule(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_recurrencePeriod = If( json?.PropertyT("recurrencePeriod"), out var __jsonRecurrencePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ExportRecurrencePeriod.FromJson(__jsonRecurrencePeriod) : RecurrencePeriod;} + {_recurrence = If( json?.PropertyT("recurrence"), out var __jsonRecurrence) ? (string)__jsonRecurrence : (string)Recurrence;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportSchedule(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._recurrencePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._recurrencePeriod.ToJson(null,serializationMode) : null, "recurrencePeriod" ,container.Add ); + AddIf( null != (((object)this._recurrence)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._recurrence.ToString()) : null, "recurrence" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.PowerShell.cs new file mode 100644 index 000000000000..3f118352c511 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + /// + [System.ComponentModel.TypeConverter(typeof(ExportTimePeriodTypeConverter))] + public partial class ExportTimePeriod + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportTimePeriod(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.CostManagement.Models.Api20200601.IExportTimePeriod DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportTimePeriod(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportTimePeriod(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportTimePeriod(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + [System.ComponentModel.TypeConverter(typeof(ExportTimePeriodTypeConverter))] + public partial interface IExportTimePeriod + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.TypeConverter.cs new file mode 100644 index 000000000000..e9973835e6b6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExportTimePeriodTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IExportTimePeriod ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExportTimePeriod.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExportTimePeriod.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExportTimePeriod.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/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.cs new file mode 100644 index 000000000000..daa419f8152c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.cs @@ -0,0 +1,68 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + /// + public partial class ExportTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriodInternal + { + + /// Backing field for property. + private global::System.DateTime _from; + + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime From { get => this._from; set => this._from = value; } + + /// Backing field for property. + private global::System.DateTime _to; + + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime To { get => this._to; set => this._to = value; } + + /// Creates an new instance. + public ExportTimePeriod() + { + + } + } + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + public partial interface IExportTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The start date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime From { get; set; } + /// The end date for export data. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime To { get; set; } + + } + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + public partial interface IExportTimePeriodInternal + + { + /// The start date for export data. + global::System.DateTime From { get; set; } + /// The end date for export data. + global::System.DateTime To { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.json.cs new file mode 100644 index 000000000000..cfceb606a6dd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ExportTimePeriod.json.cs @@ -0,0 +1,106 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The date range for data in the export. This should only be specified with timeFrame set to 'Custom'. The maximum date + /// range is 3 months. + /// + public partial class ExportTimePeriod + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ExportTimePeriod(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_from = If( json?.PropertyT("from"), out var __jsonFrom) ? global::System.DateTime.TryParse((string)__jsonFrom, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonFromValue) ? __jsonFromValue : From : From;} + {_to = If( json?.PropertyT("to"), out var __jsonTo) ? global::System.DateTime.TryParse((string)__jsonTo, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonToValue) ? __jsonToValue : To : To;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportTimePeriod FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ExportTimePeriod(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._from.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "from" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._to.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "to" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.PowerShell.cs new file mode 100644 index 000000000000..8a6d260817f2 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of data present in the forecast. + [System.ComponentModel.TypeConverter(typeof(ForecastDatasetTypeConverter))] + public partial class ForecastDataset + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForecastDataset(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.CostManagement.Models.Api20200601.IForecastDataset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForecastDataset(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForecastDataset(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ForecastDataset(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of data present in the forecast. + [System.ComponentModel.TypeConverter(typeof(ForecastDatasetTypeConverter))] + public partial interface IForecastDataset + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.TypeConverter.cs new file mode 100644 index 000000000000..335c553388eb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ForecastDatasetTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IForecastDataset ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ForecastDataset.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ForecastDataset.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ForecastDataset.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/CostManagement/generated/api/Models/Api20200601/ForecastDataset.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.cs new file mode 100644 index 000000000000..313e75598bc4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.cs @@ -0,0 +1,130 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the forecast. + public partial class ForecastDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation _aggregation; + + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation Aggregation { get => (this._aggregation = this._aggregation ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregation()); set => this._aggregation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration _configuration; + + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration()); set => this._configuration = value; } + + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)Configuration).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)Configuration).Column = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter _filter; + + /// Has filter expression to use in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter()); set => this._filter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? _granularity; + + /// The granularity of rows in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get => this._granularity; set => this._granularity = value; } + + /// Internal Acessors for Configuration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration()); set { {_configuration = value;} } } + + /// Creates an new instance. + public ForecastDataset() + { + + } + } + /// The definition of data present in the forecast. + public partial interface IForecastDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation Aggregation { get; set; } + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the forecast.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get; set; } + /// The granularity of rows in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the forecast.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + + } + /// The definition of data present in the forecast. + public partial interface IForecastDatasetInternal + + { + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation Aggregation { get; set; } + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Configuration { get; set; } + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get; set; } + /// The granularity of rows in the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.json.cs new file mode 100644 index 000000000000..92feac698e88 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDataset.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the forecast. + public partial class ForecastDataset + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ForecastDataset(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration.FromJson(__jsonConfiguration) : Configuration;} + {_aggregation = If( json?.PropertyT("aggregation"), out var __jsonAggregation) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregation.FromJson(__jsonAggregation) : Aggregation;} + {_filter = If( json?.PropertyT("filter"), out var __jsonFilter) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter.FromJson(__jsonFilter) : Filter;} + {_granularity = If( json?.PropertyT("granularity"), out var __jsonGranularity) ? (string)__jsonGranularity : (string)Granularity;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ForecastDataset(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._configuration ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._configuration.ToJson(null,serializationMode) : null, "configuration" ,container.Add ); + AddIf( null != this._aggregation ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._aggregation.ToJson(null,serializationMode) : null, "aggregation" ,container.Add ); + AddIf( null != this._filter ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._filter.ToJson(null,serializationMode) : null, "filter" ,container.Add ); + AddIf( null != (((object)this._granularity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._granularity.ToString()) : null, "granularity" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.PowerShell.cs new file mode 100644 index 000000000000..e26b34cf8ee0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + [System.ComponentModel.TypeConverter(typeof(ForecastDatasetAggregationTypeConverter))] + public partial class ForecastDatasetAggregation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForecastDatasetAggregation(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.CostManagement.Models.Api20200601.IForecastDatasetAggregation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForecastDatasetAggregation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForecastDatasetAggregation(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 ForecastDatasetAggregation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + [System.ComponentModel.TypeConverter(typeof(ForecastDatasetAggregationTypeConverter))] + public partial interface IForecastDatasetAggregation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.TypeConverter.cs new file mode 100644 index 000000000000..845a6dc3ddd5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ForecastDatasetAggregationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IForecastDatasetAggregation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ForecastDatasetAggregation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ForecastDatasetAggregation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ForecastDatasetAggregation.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/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.cs new file mode 100644 index 000000000000..c01b6512a6c9 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.cs @@ -0,0 +1,35 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + public partial class ForecastDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregationInternal + { + + /// Creates an new instance. + public ForecastDatasetAggregation() + { + + } + } + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + public partial interface IForecastDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + + } + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + public partial interface IForecastDatasetAggregationInternal + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.dictionary.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.dictionary.cs new file mode 100644 index 000000000000..f8c5a3d46d65 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class ForecastDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation 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.CostManagement.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.CostManagement.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 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregation source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.json.cs new file mode 100644 index 000000000000..1de5997c9363 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDatasetAggregation.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + public partial class ForecastDatasetAggregation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ForecastDatasetAggregation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ForecastDatasetAggregation(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.PowerShell.cs new file mode 100644 index 000000000000..7054d0f325ff --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.PowerShell.cs @@ -0,0 +1,155 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of a forecast. + [System.ComponentModel.TypeConverter(typeof(ForecastDefinitionTypeConverter))] + public partial class ForecastDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForecastDefinition(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.CostManagement.Models.Api20200601.IForecastDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForecastDefinition(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForecastDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeActualCost = (bool?) content.GetValueForProperty("IncludeActualCost",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeActualCost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeFreshPartialCost = (bool?) content.GetValueForProperty("IncludeFreshPartialCost",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeFreshPartialCost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ForecastDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeActualCost = (bool?) content.GetValueForProperty("IncludeActualCost",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeActualCost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeFreshPartialCost = (bool?) content.GetValueForProperty("IncludeFreshPartialCost",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).IncludeFreshPartialCost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of a forecast. + [System.ComponentModel.TypeConverter(typeof(ForecastDefinitionTypeConverter))] + public partial interface IForecastDefinition + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.TypeConverter.cs new file mode 100644 index 000000000000..6bf83ddfd087 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ForecastDefinitionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IForecastDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ForecastDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ForecastDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ForecastDefinition.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/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.cs new file mode 100644 index 000000000000..c4fef3005932 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.cs @@ -0,0 +1,237 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a forecast. + public partial class ForecastDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal + { + + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).ConfigurationColumn = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset _dataset; + + /// Has definition for data in this forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDataset()); set => this._dataset = value; } + + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Aggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Aggregation = value; } + + /// Has filter expression to use in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Filter = value; } + + /// The granularity of rows in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Granularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Granularity = value; } + + /// Backing field for property. + private bool? _includeActualCost; + + /// a boolean determining if actualCost will be included + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public bool? IncludeActualCost { get => this._includeActualCost; set => this._includeActualCost = value; } + + /// Backing field for property. + private bool? _includeFreshPartialCost; + + /// a boolean determining if FreshPartialCost will be included + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public bool? IncludeFreshPartialCost { get => this._includeFreshPartialCost; set => this._includeFreshPartialCost = value; } + + /// Internal Acessors for Dataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal.Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDataset()); set { {_dataset = value;} } } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetInternal)Dataset).Configuration = value; } + + /// Internal Acessors for TimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinitionInternal.TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod()); set { {_timePeriod = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod _timePeriod; + + /// Has time period for pulling data for the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod()); set => this._timePeriod = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).From = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType _timeframe; + + /// + /// The time frame for pulling data for the forecast. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType Timeframe { get => this._timeframe; set => this._timeframe = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType _type; + + /// The type of the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public ForecastDefinition() + { + + } + } + /// The definition of a forecast. + public partial interface IForecastDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the aggregated column. forecast can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the forecast.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get; set; } + /// The granularity of rows in the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the forecast.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get; set; } + /// a boolean determining if actualCost will be included + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a boolean determining if actualCost will be included", + SerializedName = @"includeActualCost", + PossibleTypes = new [] { typeof(bool) })] + bool? IncludeActualCost { get; set; } + /// a boolean determining if FreshPartialCost will be included + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"a boolean determining if FreshPartialCost will be included", + SerializedName = @"includeFreshPartialCost", + PossibleTypes = new [] { typeof(bool) })] + bool? IncludeFreshPartialCost { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the forecast. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the forecast. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType Timeframe { get; set; } + /// The type of the forecast. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the forecast.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType Type { get; set; } + + } + /// The definition of a forecast. + public partial interface IForecastDefinitionInternal + + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has definition for data in this forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDataset Dataset { get; set; } + /// + /// Dictionary of aggregation expression to use in the forecast. The key of each item in the dictionary is the alias for the + /// aggregated column. forecast can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get; set; } + /// The granularity of rows in the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get; set; } + /// a boolean determining if actualCost will be included + bool? IncludeActualCost { get; set; } + /// a boolean determining if FreshPartialCost will be included + bool? IncludeFreshPartialCost { get; set; } + /// Has time period for pulling data for the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod TimePeriod { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the forecast. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType Timeframe { get; set; } + /// The type of the forecast. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.json.cs new file mode 100644 index 000000000000..4724067cb19b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ForecastDefinition.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a forecast. + public partial class ForecastDefinition + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ForecastDefinition(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dataset = If( json?.PropertyT("dataset"), out var __jsonDataset) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ForecastDataset.FromJson(__jsonDataset) : Dataset;} + {_timePeriod = If( json?.PropertyT("timePeriod"), out var __jsonTimePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod.FromJson(__jsonTimePeriod) : TimePeriod;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_includeActualCost = If( json?.PropertyT("includeActualCost"), out var __jsonIncludeActualCost) ? (bool?)__jsonIncludeActualCost : IncludeActualCost;} + {_includeFreshPartialCost = If( json?.PropertyT("includeFreshPartialCost"), out var __jsonIncludeFreshPartialCost) ? (bool?)__jsonIncludeFreshPartialCost : IncludeFreshPartialCost;} + {_timeframe = If( json?.PropertyT("timeframe"), out var __jsonTimeframe) ? (string)__jsonTimeframe : (string)Timeframe;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IForecastDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ForecastDefinition(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._dataset ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dataset.ToJson(null,serializationMode) : null, "dataset" ,container.Add ); + AddIf( null != this._timePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._timePeriod.ToJson(null,serializationMode) : null, "timePeriod" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._includeActualCost ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonBoolean((bool)this._includeActualCost) : null, "includeActualCost" ,container.Add ); + AddIf( null != this._includeFreshPartialCost ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonBoolean((bool)this._includeFreshPartialCost) : null, "includeFreshPartialCost" ,container.Add ); + AddIf( null != (((object)this._timeframe)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeframe.ToString()) : null, "timeframe" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.PowerShell.cs new file mode 100644 index 000000000000..3fcdc060f1e8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Each KPI must contain a 'type' and 'enabled' key. + [System.ComponentModel.TypeConverter(typeof(KpiPropertiesTypeConverter))] + public partial class KpiProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new KpiProperties(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.CostManagement.Models.Api20200601.IKpiProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new KpiProperties(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.CostManagement.Models.Api20200601.IKpiProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal KpiProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Id, 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 KpiProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal)this).Id, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Each KPI must contain a 'type' and 'enabled' key. + [System.ComponentModel.TypeConverter(typeof(KpiPropertiesTypeConverter))] + public partial interface IKpiProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.TypeConverter.cs new file mode 100644 index 000000000000..2a73166f42cd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class KpiPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IKpiProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return KpiProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return KpiProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return KpiProperties.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/CostManagement/generated/api/Models/Api20200601/KpiProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.cs new file mode 100644 index 000000000000..7eabe1398618 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Each KPI must contain a 'type' and 'enabled' key. + public partial class KpiProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiPropertiesInternal + { + + /// Backing field for property. + private bool? _enabled; + + /// show the KPI in the UI? + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public bool? Enabled { get => this._enabled; set => this._enabled = value; } + + /// Backing field for property. + private string _id; + + /// ID of resource related to metric (budget). + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType? _type; + + /// KPI type (Forecast, Budget). + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType? Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public KpiProperties() + { + + } + } + /// Each KPI must contain a 'type' and 'enabled' key. + public partial interface IKpiProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// show the KPI in the UI? + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"show the KPI in the UI?", + SerializedName = @"enabled", + PossibleTypes = new [] { typeof(bool) })] + bool? Enabled { get; set; } + /// ID of resource related to metric (budget). + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ID of resource related to metric (budget).", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// KPI type (Forecast, Budget). + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"KPI type (Forecast, Budget).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType? Type { get; set; } + + } + /// Each KPI must contain a 'type' and 'enabled' key. + public partial interface IKpiPropertiesInternal + + { + /// show the KPI in the UI? + bool? Enabled { get; set; } + /// ID of resource related to metric (budget). + string Id { get; set; } + /// KPI type (Forecast, Budget). + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.json.cs new file mode 100644 index 000000000000..dd504bcad513 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/KpiProperties.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Each KPI must contain a 'type' and 'enabled' key. + public partial class KpiProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new KpiProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal KpiProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_enabled = If( json?.PropertyT("enabled"), out var __jsonEnabled) ? (bool?)__jsonEnabled : Enabled;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._enabled ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonBoolean((bool)this._enabled) : null, "enabled" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Operation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/Operation.PowerShell.cs new file mode 100644 index 000000000000..c288def77c05 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Operation.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// A Cost management REST API operation. + [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] + public partial class Operation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Operation(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.CostManagement.Models.Api20200601.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Operation(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.CostManagement.Models.Api20200601.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Operation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayResource, 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 Operation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A Cost management REST API operation. + [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] + public partial interface IOperation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Operation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/Operation.TypeConverter.cs new file mode 100644 index 000000000000..5c67a94b1bb0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Operation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Operation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Operation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Operation.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/CostManagement/generated/api/Models/Api20200601/Operation.cs b/src/CostManagement/generated/api/Models/Api20200601/Operation.cs new file mode 100644 index 000000000000..6591fcf5b2b4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Operation.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// A Cost management REST API operation. + public partial class Operation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay _display; + + /// The object that represents the operation. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplay()); set => this._display = value; } + + /// Operation type: Read, write, delete, etc. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Operation; } + + /// Service provider: Microsoft.CostManagement. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Provider; } + + /// Resource on which the operation is performed: Dimensions, Query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Resource; } + + /// Internal Acessors for Display + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplay()); set { {_display = value;} } } + + /// Internal Acessors for DisplayOperation + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Operation = value; } + + /// Internal Acessors for DisplayProvider + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Provider = value; } + + /// Internal Acessors for DisplayResource + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)Display).Resource = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + + /// Backing field for property. + private string _name; + + /// Operation name: {provider}/{resource}/{operation}. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Creates an new instance. + public Operation() + { + + } + } + /// A Cost management REST API operation. + public partial interface IOperation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Operation type: Read, write, delete, etc. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Operation type: Read, write, delete, etc.", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string DisplayOperation { get; } + /// Service provider: Microsoft.CostManagement. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Service provider: Microsoft.CostManagement.", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string DisplayProvider { get; } + /// Resource on which the operation is performed: Dimensions, Query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource on which the operation is performed: Dimensions, Query.", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string DisplayResource { get; } + /// Operation name: {provider}/{resource}/{operation}. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Operation name: {provider}/{resource}/{operation}.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + + } + /// A Cost management REST API operation. + public partial interface IOperationInternal + + { + /// The object that represents the operation. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay Display { get; set; } + /// Operation type: Read, write, delete, etc. + string DisplayOperation { get; set; } + /// Service provider: Microsoft.CostManagement. + string DisplayProvider { get; set; } + /// Resource on which the operation is performed: Dimensions, Query. + string DisplayResource { get; set; } + /// Operation name: {provider}/{resource}/{operation}. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Operation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/Operation.json.cs new file mode 100644 index 000000000000..3e9bdc0df7a6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Operation.json.cs @@ -0,0 +1,106 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// A Cost management REST API operation. + public partial class Operation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new Operation(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal Operation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.PowerShell.cs new file mode 100644 index 000000000000..89d12fc8ba32 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The object that represents the operation. + [System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))] + public partial class OperationDisplay + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationDisplay(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.CostManagement.Models.Api20200601.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationDisplay(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.CostManagement.Models.Api20200601.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationDisplay(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Resource, 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 OperationDisplay(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The object that represents the operation. + [System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))] + public partial interface IOperationDisplay + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.TypeConverter.cs new file mode 100644 index 000000000000..f10a8bb45492 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationDisplayTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IOperationDisplay ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationDisplay.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationDisplay.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationDisplay.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/CostManagement/generated/api/Models/Api20200601/OperationDisplay.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.cs new file mode 100644 index 000000000000..a6337c28fcf0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.cs @@ -0,0 +1,89 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The object that represents the operation. + public partial class OperationDisplay : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal + { + + /// Internal Acessors for Operation + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } + + /// Internal Acessors for Provider + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } + + /// Internal Acessors for Resource + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } + + /// Backing field for property. + private string _operation; + + /// Operation type: Read, write, delete, etc. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Operation { get => this._operation; } + + /// Backing field for property. + private string _provider; + + /// Service provider: Microsoft.CostManagement. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Provider { get => this._provider; } + + /// Backing field for property. + private string _resource; + + /// Resource on which the operation is performed: Dimensions, Query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Resource { get => this._resource; } + + /// Creates an new instance. + public OperationDisplay() + { + + } + } + /// The object that represents the operation. + public partial interface IOperationDisplay : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Operation type: Read, write, delete, etc. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Operation type: Read, write, delete, etc.", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string Operation { get; } + /// Service provider: Microsoft.CostManagement. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Service provider: Microsoft.CostManagement.", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string Provider { get; } + /// Resource on which the operation is performed: Dimensions, Query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource on which the operation is performed: Dimensions, Query.", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string Resource { get; } + + } + /// The object that represents the operation. + public partial interface IOperationDisplayInternal + + { + /// Operation type: Read, write, delete, etc. + string Operation { get; set; } + /// Service provider: Microsoft.CostManagement. + string Provider { get; set; } + /// Resource on which the operation is performed: Dimensions, Query. + string Resource { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.json.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.json.cs new file mode 100644 index 000000000000..c0fc670acf9f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationDisplay.json.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The object that represents the operation. + public partial class OperationDisplay + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} + {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;} + {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.PowerShell.cs new file mode 100644 index 000000000000..404de3ba6901 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial class OperationListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationListResult(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.CostManagement.Models.Api20200601.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationListResult(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.CostManagement.Models.Api20200601.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.OperationTypeConverter.ConvertFrom)); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial interface IOperationListResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.TypeConverter.cs new file mode 100644 index 000000000000..6dbd1fbf1f86 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IOperationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationListResult.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/CostManagement/generated/api/Models/Api20200601/OperationListResult.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.cs new file mode 100644 index 000000000000..266853673da0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.cs @@ -0,0 +1,77 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + /// + public partial class OperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of operation list results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[] _value; + + /// + /// List of cost management operations supported by the Microsoft.CostManagement resource provider. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[] Value { get => this._value; } + + /// Creates an new instance. + public OperationListResult() + { + + } + } + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + public partial interface IOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// URL to get the next set of operation list results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of operation list results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// + /// List of cost management operations supported by the Microsoft.CostManagement resource provider. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of cost management operations supported by the Microsoft.CostManagement resource provider.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[] Value { get; } + + } + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + public partial interface IOperationListResultInternal + + { + /// URL to get the next set of operation list results if there are any. + string NextLink { get; set; } + /// + /// List of cost management operations supported by the Microsoft.CostManagement resource provider. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.json.cs new file mode 100644 index 000000000000..39cda3e590a1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/OperationListResult.json.cs @@ -0,0 +1,119 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results. + /// + public partial class OperationListResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CostManagement.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.CostManagement.Models.Api20200601.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Operation.FromJson(__u) )) ))() : null : Value;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.PowerShell.cs new file mode 100644 index 000000000000..32134312ba00 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Each pivot must contain a 'type' and 'name'. + [System.ComponentModel.TypeConverter(typeof(PivotPropertiesTypeConverter))] + public partial class PivotProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PivotProperties(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.CostManagement.Models.Api20200601.IPivotProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PivotProperties(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.CostManagement.Models.Api20200601.IPivotProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PivotProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PivotProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType.CreateFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Each pivot must contain a 'type' and 'name'. + [System.ComponentModel.TypeConverter(typeof(PivotPropertiesTypeConverter))] + public partial interface IPivotProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.TypeConverter.cs new file mode 100644 index 000000000000..9b9f660552f3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PivotPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IPivotProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PivotProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PivotProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PivotProperties.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/CostManagement/generated/api/Models/Api20200601/PivotProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.cs new file mode 100644 index 000000000000..1b6d6afb066b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Each pivot must contain a 'type' and 'name'. + public partial class PivotProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotPropertiesInternal + { + + /// Backing field for property. + private string _name; + + /// Data field to show in view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType? _type; + + /// Data type to show in view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType? Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public PivotProperties() + { + + } + } + /// Each pivot must contain a 'type' and 'name'. + public partial interface IPivotProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Data field to show in view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Data field to show in view.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Data type to show in view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Data type to show in view.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType? Type { get; set; } + + } + /// Each pivot must contain a 'type' and 'name'. + public partial interface IPivotPropertiesInternal + + { + /// Data field to show in view. + string Name { get; set; } + /// Data type to show in view. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.json.cs new file mode 100644 index 000000000000..b14da82f42b1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/PivotProperties.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Each pivot must contain a 'type' and 'name'. + public partial class PivotProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new PivotProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal PivotProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..3c0dfb4da842 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The Resource model definition. + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Resource model definition. + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.TypeConverter.cs new file mode 100644 index 000000000000..88d74f53c021 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProxyResourceTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IProxyResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ProxyResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ProxyResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ProxyResource.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/CostManagement/generated/api/Models/Api20200601/ProxyResource.cs b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.cs new file mode 100644 index 000000000000..eabb0086e29e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.cs @@ -0,0 +1,115 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The Resource model definition. + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal + { + + /// Backing field for property. + private string _eTag; + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ETag { get => this._eTag; set => this._eTag = value; } + + /// Backing field for property. + private string _id; + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + } + /// The Resource model definition. + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + string ETag { get; set; } + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The Resource model definition. + public partial interface IProxyResourceInternal + + { + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + string ETag { get; set; } + /// Resource Id. + string Id { get; set; } + /// Resource name. + string Name { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.json.cs new file mode 100644 index 000000000000..4834fde8f4c8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ProxyResource.json.cs @@ -0,0 +1,116 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The Resource model definition. + public partial class ProxyResource + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_eTag = If( json?.PropertyT("eTag"), out var __jsonETag) ? (string)__jsonETag : (string)ETag;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AddIf( null != (((object)this._eTag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._eTag.ToString()) : null, "eTag" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.PowerShell.cs new file mode 100644 index 000000000000..5fb110e6a087 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The aggregation expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryAggregationTypeConverter))] + public partial class QueryAggregation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryAggregation(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.CostManagement.Models.Api20200601.IQueryAggregation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryAggregation(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.CostManagement.Models.Api20200601.IQueryAggregation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryAggregation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Function = (string) content.GetValueForProperty("Function",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Function, 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 QueryAggregation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Function = (string) content.GetValueForProperty("Function",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal)this).Function, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The aggregation expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryAggregationTypeConverter))] + public partial interface IQueryAggregation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.TypeConverter.cs new file mode 100644 index 000000000000..988e2b9da0d4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryAggregationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryAggregation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryAggregation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryAggregation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryAggregation.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/CostManagement/generated/api/Models/Api20200601/QueryAggregation.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.cs new file mode 100644 index 000000000000..7ad13501050e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.cs @@ -0,0 +1,66 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The aggregation expression to be used in the query. + public partial class QueryAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal + { + + /// Backing field for property. + private string _function= @"Sum"; + + /// The name of the aggregation function to use. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Function { get => this._function; } + + /// Internal Acessors for Function + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregationInternal.Function { get => this._function; set { {_function = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the column to aggregate. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Creates an new instance. + public QueryAggregation() + { + + } + } + /// The aggregation expression to be used in the query. + public partial interface IQueryAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the aggregation function to use. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The name of the aggregation function to use.", + SerializedName = @"function", + PossibleTypes = new [] { typeof(string) })] + string Function { get; } + /// The name of the column to aggregate. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to aggregate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// The aggregation expression to be used in the query. + public partial interface IQueryAggregationInternal + + { + /// The name of the aggregation function to use. + string Function { get; set; } + /// The name of the column to aggregate. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.json.cs new file mode 100644 index 000000000000..d794951f17c5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryAggregation.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The aggregation expression to be used in the query. + public partial class QueryAggregation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryAggregation(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryAggregation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_function = If( json?.PropertyT("function"), out var __jsonFunction) ? (string)__jsonFunction : (string)Function;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._function)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._function.ToString()) : null, "function" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.PowerShell.cs new file mode 100644 index 000000000000..f772224803f1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.PowerShell.cs @@ -0,0 +1,131 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(QueryColumnTypeConverter))] + public partial class QueryColumn + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryColumn(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.CostManagement.Models.Api20200601.IQueryColumn DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryColumn(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.CostManagement.Models.Api20200601.IQueryColumn FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryColumn(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Type, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryColumn(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal)this).Type, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(QueryColumnTypeConverter))] + public partial interface IQueryColumn + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.TypeConverter.cs new file mode 100644 index 000000000000..74ccd85a870f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryColumnTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryColumn ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryColumn.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryColumn.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryColumn.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/CostManagement/generated/api/Models/Api20200601/QueryColumn.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.cs new file mode 100644 index 000000000000..b25dafcbc6cd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.cs @@ -0,0 +1,60 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class QueryColumn : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumnInternal + { + + /// Backing field for property. + private string _name; + + /// The name of column. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _type; + + /// The type of column. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public QueryColumn() + { + + } + } + public partial interface IQueryColumn : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of column. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of column.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The type of column. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of column.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; set; } + + } + public partial interface IQueryColumnInternal + + { + /// The name of column. + string Name { get; set; } + /// The type of column. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.json.cs new file mode 100644 index 000000000000..0349cf034612 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryColumn.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class QueryColumn + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryColumn(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryColumn(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.PowerShell.cs new file mode 100644 index 000000000000..ca9df90863b0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The comparison expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryComparisonExpressionTypeConverter))] + public partial class QueryComparisonExpression + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryComparisonExpression(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.CostManagement.Models.Api20200601.IQueryComparisonExpression DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryComparisonExpression(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.CostManagement.Models.Api20200601.IQueryComparisonExpression FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryComparisonExpression(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Value = (string[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryComparisonExpression(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Value = (string[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The comparison expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryComparisonExpressionTypeConverter))] + public partial interface IQueryComparisonExpression + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.TypeConverter.cs new file mode 100644 index 000000000000..7c0fe286c3db --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryComparisonExpressionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryComparisonExpression ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryComparisonExpression.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryComparisonExpression.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryComparisonExpression.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/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.cs new file mode 100644 index 000000000000..6b19a2a2cf4e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The comparison expression to be used in the query. + public partial class QueryComparisonExpression : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpressionInternal + { + + /// Backing field for property. + private string _name; + + /// The name of the column to use in comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType _operator; + + /// The operator to use for comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get => this._operator; set => this._operator = value; } + + /// Backing field for property. + private string[] _value; + + /// Array of values to use for comparison + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public QueryComparisonExpression() + { + + } + } + /// The comparison expression to be used in the query. + public partial interface IQueryComparisonExpression : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the column to use in comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to use in comparison.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The operator to use for comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operator to use for comparison.", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get; set; } + /// Array of values to use for comparison + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Array of values to use for comparison", + SerializedName = @"values", + PossibleTypes = new [] { typeof(string) })] + string[] Value { get; set; } + + } + /// The comparison expression to be used in the query. + public partial interface IQueryComparisonExpressionInternal + + { + /// The name of the column to use in comparison. + string Name { get; set; } + /// The operator to use for comparison. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get; set; } + /// Array of values to use for comparison + string[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.json.cs new file mode 100644 index 000000000000..3b7ba4a8f57f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryComparisonExpression.json.cs @@ -0,0 +1,113 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The comparison expression to be used in the query. + public partial class QueryComparisonExpression + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryComparisonExpression(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryComparisonExpression(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_operator = If( json?.PropertyT("operator"), out var __jsonOperator) ? (string)__jsonOperator : (string)Operator;} + {_value = If( json?.PropertyT("values"), out var __jsonValues) ? If( __jsonValues as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Value;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._operator.ToString()) : null, "operator" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("values",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.PowerShell.cs new file mode 100644 index 000000000000..16c3c162ba85 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of data present in the query. + [System.ComponentModel.TypeConverter(typeof(QueryDatasetTypeConverter))] + public partial class QueryDataset + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryDataset(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.CostManagement.Models.Api20200601.IQueryDataset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryDataset(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.CostManagement.Models.Api20200601.IQueryDataset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryDataset(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryDataset(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of data present in the query. + [System.ComponentModel.TypeConverter(typeof(QueryDatasetTypeConverter))] + public partial interface IQueryDataset + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.TypeConverter.cs new file mode 100644 index 000000000000..a79d50f86f70 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryDatasetTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryDataset ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryDataset.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryDataset.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryDataset.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/CostManagement/generated/api/Models/Api20200601/QueryDataset.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.cs new file mode 100644 index 000000000000..1982b61a71a6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.cs @@ -0,0 +1,153 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the query. + public partial class QueryDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation _aggregation; + + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation Aggregation { get => (this._aggregation = this._aggregation ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregation()); set => this._aggregation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration _configuration; + + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration()); set => this._configuration = value; } + + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)Configuration).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)Configuration).Column = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter _filter; + + /// Has filter expression to use in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter()); set => this._filter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? _granularity; + + /// The granularity of rows in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get => this._granularity; set => this._granularity = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] _grouping; + + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] Grouping { get => this._grouping; set => this._grouping = value; } + + /// Internal Acessors for Configuration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration()); set { {_configuration = value;} } } + + /// Creates an new instance. + public QueryDataset() + { + + } + } + /// The definition of data present in the query. + public partial interface IQueryDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation Aggregation { get; set; } + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the query.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get; set; } + /// The granularity of rows in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the query.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the query. Query can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] Grouping { get; set; } + + } + /// The definition of data present in the query. + public partial interface IQueryDatasetInternal + + { + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation Aggregation { get; set; } + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Configuration { get; set; } + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Filter { get; set; } + /// The granularity of rows in the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] Grouping { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.json.cs new file mode 100644 index 000000000000..1252d701a70a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDataset.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the query. + public partial class QueryDataset + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryDataset(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryDataset(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfiguration.FromJson(__jsonConfiguration) : Configuration;} + {_aggregation = If( json?.PropertyT("aggregation"), out var __jsonAggregation) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregation.FromJson(__jsonAggregation) : Aggregation;} + {_filter = If( json?.PropertyT("filter"), out var __jsonFilter) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter.FromJson(__jsonFilter) : Filter;} + {_granularity = If( json?.PropertyT("granularity"), out var __jsonGranularity) ? (string)__jsonGranularity : (string)Granularity;} + {_grouping = If( json?.PropertyT("grouping"), out var __jsonGrouping) ? If( __jsonGrouping as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IQueryGrouping) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGrouping.FromJson(__u) )) ))() : null : Grouping;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._configuration ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._configuration.ToJson(null,serializationMode) : null, "configuration" ,container.Add ); + AddIf( null != this._aggregation ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._aggregation.ToJson(null,serializationMode) : null, "aggregation" ,container.Add ); + AddIf( null != this._filter ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._filter.ToJson(null,serializationMode) : null, "filter" ,container.Add ); + AddIf( null != (((object)this._granularity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._granularity.ToString()) : null, "granularity" ,container.Add ); + if (null != this._grouping) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._grouping ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("grouping",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.PowerShell.cs new file mode 100644 index 000000000000..f0d9237e2446 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + [System.ComponentModel.TypeConverter(typeof(QueryDatasetAggregationTypeConverter))] + public partial class QueryDatasetAggregation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryDatasetAggregation(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.CostManagement.Models.Api20200601.IQueryDatasetAggregation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryDatasetAggregation(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.CostManagement.Models.Api20200601.IQueryDatasetAggregation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryDatasetAggregation(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 QueryDatasetAggregation(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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + [System.ComponentModel.TypeConverter(typeof(QueryDatasetAggregationTypeConverter))] + public partial interface IQueryDatasetAggregation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.TypeConverter.cs new file mode 100644 index 000000000000..aedfd88f2bd5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryDatasetAggregationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryDatasetAggregation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryDatasetAggregation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryDatasetAggregation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryDatasetAggregation.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/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.cs new file mode 100644 index 000000000000..e41e3644b232 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.cs @@ -0,0 +1,35 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + public partial class QueryDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregationInternal + { + + /// Creates an new instance. + public QueryDatasetAggregation() + { + + } + } + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + public partial interface IQueryDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + + } + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + public partial interface IQueryDatasetAggregationInternal + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.dictionary.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.dictionary.cs new file mode 100644 index 000000000000..86293ab5b131 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class QueryDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation 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.CostManagement.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.CostManagement.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 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryAggregation value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregation source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.json.cs new file mode 100644 index 000000000000..438e146dc748 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetAggregation.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + public partial class QueryDatasetAggregation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryDatasetAggregation(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + /// + internal QueryDatasetAggregation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.PowerShell.cs new file mode 100644 index 000000000000..71af335b9b30 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The configuration of dataset in the query. + [System.ComponentModel.TypeConverter(typeof(QueryDatasetConfigurationTypeConverter))] + public partial class QueryDatasetConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryDatasetConfiguration(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.CostManagement.Models.Api20200601.IQueryDatasetConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryDatasetConfiguration(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.CostManagement.Models.Api20200601.IQueryDatasetConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryDatasetConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryDatasetConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The configuration of dataset in the query. + [System.ComponentModel.TypeConverter(typeof(QueryDatasetConfigurationTypeConverter))] + public partial interface IQueryDatasetConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..7c88b896c991 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryDatasetConfigurationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryDatasetConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryDatasetConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryDatasetConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryDatasetConfiguration.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/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.cs new file mode 100644 index 000000000000..f7eedcfeb8e5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.cs @@ -0,0 +1,55 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The configuration of dataset in the query. + public partial class QueryDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfigurationInternal + { + + /// Backing field for property. + private string[] _column; + + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Column { get => this._column; set => this._column = value; } + + /// Creates an new instance. + public QueryDatasetConfiguration() + { + + } + } + /// The configuration of dataset in the query. + public partial interface IQueryDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] Column { get; set; } + + } + /// The configuration of dataset in the query. + public partial interface IQueryDatasetConfigurationInternal + + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + string[] Column { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.json.cs new file mode 100644 index 000000000000..05bceb29a115 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDatasetConfiguration.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The configuration of dataset in the query. + public partial class QueryDatasetConfiguration + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryDatasetConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryDatasetConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_column = If( json?.PropertyT("columns"), out var __jsonColumns) ? If( __jsonColumns as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Column;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._column) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._column ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("columns",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.PowerShell.cs new file mode 100644 index 000000000000..dbdc3842a0fd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.PowerShell.cs @@ -0,0 +1,153 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of a query. + [System.ComponentModel.TypeConverter(typeof(QueryDefinitionTypeConverter))] + public partial class QueryDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryDefinition(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.CostManagement.Models.Api20200601.IQueryDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryDefinition(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.CostManagement.Models.Api20200601.IQueryDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of a query. + [System.ComponentModel.TypeConverter(typeof(QueryDefinitionTypeConverter))] + public partial interface IQueryDefinition + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.TypeConverter.cs new file mode 100644 index 000000000000..ecf519975034 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryDefinitionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryDefinition.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/CostManagement/generated/api/Models/Api20200601/QueryDefinition.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.cs new file mode 100644 index 000000000000..75e470224bf4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.cs @@ -0,0 +1,223 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a query. + public partial class QueryDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal + { + + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).ConfigurationColumn = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset _dataset; + + /// Has definition for data in this query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDataset()); set => this._dataset = value; } + + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Aggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Aggregation = value; } + + /// Has filter expression to use in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Filter = value; } + + /// The granularity of rows in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Granularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Granularity = value; } + + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] DatasetGrouping { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Grouping; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Grouping = value; } + + /// Internal Acessors for Dataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal.Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDataset()); set { {_dataset = value;} } } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetInternal)Dataset).Configuration = value; } + + /// Internal Acessors for TimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinitionInternal.TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod()); set { {_timePeriod = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod _timePeriod; + + /// Has time period for pulling data for the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod()); set => this._timePeriod = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).From = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)TimePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType _timeframe; + + /// + /// The time frame for pulling data for the query. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get => this._timeframe; set => this._timeframe = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType _type; + + /// The type of the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public QueryDefinition() + { + + } + } + /// The definition of a query. + public partial interface IQueryDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the query.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get; set; } + /// The granularity of rows in the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the query.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the query. Query can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] DatasetGrouping { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the query. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the query. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get; set; } + /// The type of the query. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the query.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get; set; } + + } + /// The definition of a query. + public partial interface IQueryDefinitionInternal + + { + /// + /// Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has definition for data in this query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDataset Dataset { get; set; } + /// + /// Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the + /// aggregated column. Query can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DatasetFilter { get; set; } + /// The granularity of rows in the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the query. Query can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] DatasetGrouping { get; set; } + /// Has time period for pulling data for the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod TimePeriod { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the query. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Timeframe { get; set; } + /// The type of the query. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.json.cs new file mode 100644 index 000000000000..096fbbf72151 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryDefinition.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a query. + public partial class QueryDefinition + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryDefinition(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dataset = If( json?.PropertyT("dataset"), out var __jsonDataset) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryDataset.FromJson(__jsonDataset) : Dataset;} + {_timePeriod = If( json?.PropertyT("timePeriod"), out var __jsonTimePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryTimePeriod.FromJson(__jsonTimePeriod) : TimePeriod;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_timeframe = If( json?.PropertyT("timeframe"), out var __jsonTimeframe) ? (string)__jsonTimeframe : (string)Timeframe;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._dataset ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dataset.ToJson(null,serializationMode) : null, "dataset" ,container.Add ); + AddIf( null != this._timePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._timePeriod.ToJson(null,serializationMode) : null, "timePeriod" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._timeframe)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeframe.ToString()) : null, "timeframe" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.PowerShell.cs new file mode 100644 index 000000000000..aed6690acf9b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The filter expression to be used in the export. + [System.ComponentModel.TypeConverter(typeof(QueryFilterTypeConverter))] + public partial class QueryFilter + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryFilter(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.CostManagement.Models.Api20200601.IQueryFilter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryFilter(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.CostManagement.Models.Api20200601.IQueryFilter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryFilter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Dimensions = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) content.GetValueForProperty("Dimensions",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Dimensions, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpressionTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryFilter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Dimensions = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) content.GetValueForProperty("Dimensions",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Dimensions, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpressionTypeConverter.ConvertFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The filter expression to be used in the export. + [System.ComponentModel.TypeConverter(typeof(QueryFilterTypeConverter))] + public partial interface IQueryFilter + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.TypeConverter.cs new file mode 100644 index 000000000000..b266b5574fc1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryFilterTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryFilter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryFilter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryFilter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryFilter.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/CostManagement/generated/api/Models/Api20200601/QueryFilter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.cs new file mode 100644 index 000000000000..29c6441dcd23 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the export. + public partial class QueryFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilterInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] _and; + + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] And { get => this._and; set => this._and = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression _dimensions; + + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Dimensions { get => (this._dimensions = this._dimensions ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression()); set => this._dimensions = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter _not; + + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Not { get => (this._not = this._not ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter()); set => this._not = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] _or; + + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] Or { get => this._or; set => this._or = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression _tag; + + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression()); set => this._tag = value; } + + /// Creates an new instance. + public QueryFilter() + { + + } + } + /// The filter expression to be used in the export. + public partial interface IQueryFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""AND"" expression. Must have at least 2 items.", + SerializedName = @"and", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] And { get; set; } + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a dimension", + SerializedName = @"dimensions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Dimensions { get; set; } + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""NOT"" expression.", + SerializedName = @"not", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""OR"" expression. Must have at least 2 items.", + SerializedName = @"or", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] Or { get; set; } + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a tag", + SerializedName = @"tag", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Tag { get; set; } + + } + /// The filter expression to be used in the export. + public partial interface IQueryFilterInternal + + { + /// The logical "AND" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] And { get; set; } + /// Has comparison expression for a dimension + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Dimensions { get; set; } + /// The logical "NOT" expression. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] Or { get; set; } + /// Has comparison expression for a tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.json.cs new file mode 100644 index 000000000000..7291acb455d9 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryFilter.json.cs @@ -0,0 +1,125 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the export. + public partial class QueryFilter + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryFilter(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryFilter(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_and = If( json?.PropertyT("and"), out var __jsonAnd) ? If( __jsonAnd as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IQueryFilter) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter.FromJson(__u) )) ))() : null : And;} + {_dimensions = If( json?.PropertyT("dimensions"), out var __jsonDimensions) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression.FromJson(__jsonDimensions) : Dimensions;} + {_not = If( json?.PropertyT("not"), out var __jsonNot) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter.FromJson(__jsonNot) : Not;} + {_or = If( json?.PropertyT("or"), out var __jsonOr) ? If( __jsonOr as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IQueryFilter) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter.FromJson(__p) )) ))() : null : Or;} + {_tag = If( json?.PropertyT("tag"), out var __jsonTag) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression.FromJson(__jsonTag) : Tag;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._and) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._and ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("and",__w); + } + AddIf( null != this._dimensions ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dimensions.ToJson(null,serializationMode) : null, "dimensions" ,container.Add ); + AddIf( null != this._not ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._not.ToJson(null,serializationMode) : null, "not" ,container.Add ); + if (null != this._or) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._or ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("or",__r); + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tag" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.PowerShell.cs new file mode 100644 index 000000000000..c6c68186b83e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The group by expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryGroupingTypeConverter))] + public partial class QueryGrouping + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryGrouping(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.CostManagement.Models.Api20200601.IQueryGrouping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryGrouping(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.CostManagement.Models.Api20200601.IQueryGrouping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryGrouping(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryGrouping(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType.CreateFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The group by expression to be used in the query. + [System.ComponentModel.TypeConverter(typeof(QueryGroupingTypeConverter))] + public partial interface IQueryGrouping + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.TypeConverter.cs new file mode 100644 index 000000000000..6705c92111db --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryGroupingTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryGrouping ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryGrouping.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryGrouping.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryGrouping.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/CostManagement/generated/api/Models/Api20200601/QueryGrouping.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.cs new file mode 100644 index 000000000000..6f66be92526e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The group by expression to be used in the query. + public partial class QueryGrouping : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGroupingInternal + { + + /// Backing field for property. + private string _name; + + /// The name of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType _type; + + /// Has type of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public QueryGrouping() + { + + } + } + /// The group by expression to be used in the query. + public partial interface IQueryGrouping : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to group.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Has type of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Has type of the column to group.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType Type { get; set; } + + } + /// The group by expression to be used in the query. + public partial interface IQueryGroupingInternal + + { + /// The name of the column to group. + string Name { get; set; } + /// Has type of the column to group. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.json.cs new file mode 100644 index 000000000000..7139d5936c70 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryGrouping.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The group by expression to be used in the query. + public partial class QueryGrouping + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryGrouping(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryGrouping(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.PowerShell.cs new file mode 100644 index 000000000000..06330bad8329 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(QueryPropertiesTypeConverter))] + public partial class QueryProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryProperties(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.CostManagement.Models.Api20200601.IQueryProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryProperties(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.CostManagement.Models.Api20200601.IQueryProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Column = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumnTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Row = (string[][]) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Row, __y => TypeConverterExtensions.SelectToArray(__y, __w => TypeConverterExtensions.SelectToArray(__w, 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 QueryProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Column = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumnTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Row = (string[][]) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)this).Row, __y => TypeConverterExtensions.SelectToArray(__y, __w => TypeConverterExtensions.SelectToArray(__w, global::System.Convert.ToString))); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(QueryPropertiesTypeConverter))] + public partial interface IQueryProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.TypeConverter.cs new file mode 100644 index 000000000000..096ef82353b0 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryProperties.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/CostManagement/generated/api/Models/Api20200601/QueryProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.cs new file mode 100644 index 000000000000..67c7d81eeda6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.cs @@ -0,0 +1,77 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class QueryProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] _column; + + /// Array of columns + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get => this._column; set => this._column = value; } + + /// Backing field for property. + private string _nextLink; + + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private string[][] _row; + + /// Array of rows + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[][] Row { get => this._row; set => this._row = value; } + + /// Creates an new instance. + public QueryProperties() + { + + } + } + public partial interface IQueryProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Array of columns + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of columns", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get; set; } + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link (url) to the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Array of rows + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of rows", + SerializedName = @"rows", + PossibleTypes = new [] { typeof(string) })] + string[][] Row { get; set; } + + } + public partial interface IQueryPropertiesInternal + + { + /// Array of columns + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get; set; } + /// The link (url) to the next page of results. + string NextLink { get; set; } + /// Array of rows + string[][] Row { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.json.cs new file mode 100644 index 000000000000..01b895e447f2 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryProperties.json.cs @@ -0,0 +1,120 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class QueryProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_column = If( json?.PropertyT("columns"), out var __jsonColumns) ? If( __jsonColumns as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IQueryColumn) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumn.FromJson(__u) )) ))() : null : Column;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_row = If( json?.PropertyT("rows"), out var __jsonRows) ? If( __jsonRows as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __p) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__p, (__o)=>(string[]) (If( __o as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __n) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__n, (__m)=>(string) (__m is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __l ? (string)(__l.ToString()) : null)) ))() : null /* arrayOf */)) ))() : null : Row;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._column) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._column ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("columns",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._row) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._row ) + { + AddIf(null != __s ? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(global::System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(__s, (__q) => null != (((object)__q)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__q.ToString()) : null))) : null ,__r.Add); + } + container.Add("rows",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.PowerShell.cs new file mode 100644 index 000000000000..89efc84e6ef1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.PowerShell.cs @@ -0,0 +1,147 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Result of query. It contains all columns listed under groupings and aggregation. + /// + [System.ComponentModel.TypeConverter(typeof(QueryResultTypeConverter))] + public partial class QueryResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryResult(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.CostManagement.Models.Api20200601.IQueryResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryResult(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.CostManagement.Models.Api20200601.IQueryResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Column = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumnTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Row = (string[][]) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Row, __y => TypeConverterExtensions.SelectToArray(__y, __w => TypeConverterExtensions.SelectToArray(__w, 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 QueryResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Column = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryColumnTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Row = (string[][]) content.GetValueForProperty("Row",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal)this).Row, __y => TypeConverterExtensions.SelectToArray(__y, __w => TypeConverterExtensions.SelectToArray(__w, global::System.Convert.ToString))); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of query. It contains all columns listed under groupings and aggregation. + [System.ComponentModel.TypeConverter(typeof(QueryResultTypeConverter))] + public partial interface IQueryResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.TypeConverter.cs new file mode 100644 index 000000000000..b6ed12566e55 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryResult.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/CostManagement/generated/api/Models/Api20200601/QueryResult.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.cs new file mode 100644 index 000000000000..ce52961a35e9 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.cs @@ -0,0 +1,140 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of query. It contains all columns listed under groupings and aggregation. + /// + public partial class QueryResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(); + + /// Array of columns + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 0)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).Column = value; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResultInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type = value; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Name; } + + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).NextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties _property; + + /// Query properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryProperties()); set => this._property = value; } + + /// Array of rows + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.FormatTable(Index = 1)] + public string[][] Row { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).Row; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryPropertiesInternal)Property).Row = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Tag; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public QueryResult() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Result of query. It contains all columns listed under groupings and aggregation. + public partial interface IQueryResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource + { + /// Array of columns + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of columns", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get; set; } + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link (url) to the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Array of rows + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of rows", + SerializedName = @"rows", + PossibleTypes = new [] { typeof(string) })] + string[][] Row { get; set; } + + } + /// Result of query. It contains all columns listed under groupings and aggregation. + public partial interface IQueryResultInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal + { + /// Array of columns + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryColumn[] Column { get; set; } + /// The link (url) to the next page of results. + string NextLink { get; set; } + /// Query properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryProperties Property { get; set; } + /// Array of rows + string[][] Row { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.json.cs new file mode 100644 index 000000000000..7ad2d1bf878d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryResult.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Result of query. It contains all columns listed under groupings and aggregation. + /// + public partial class QueryResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryProperties.FromJson(__jsonProperties) : Property;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.PowerShell.cs new file mode 100644 index 000000000000..1accf0ba9e23 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The start and end date for pulling data for the query. + [System.ComponentModel.TypeConverter(typeof(QueryTimePeriodTypeConverter))] + public partial class QueryTimePeriod + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new QueryTimePeriod(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.CostManagement.Models.Api20200601.IQueryTimePeriod DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new QueryTimePeriod(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.CostManagement.Models.Api20200601.IQueryTimePeriod FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal QueryTimePeriod(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal QueryTimePeriod(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The start and end date for pulling data for the query. + [System.ComponentModel.TypeConverter(typeof(QueryTimePeriodTypeConverter))] + public partial interface IQueryTimePeriod + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.TypeConverter.cs new file mode 100644 index 000000000000..93a94d43dd8e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class QueryTimePeriodTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IQueryTimePeriod ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return QueryTimePeriod.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return QueryTimePeriod.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return QueryTimePeriod.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/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.cs new file mode 100644 index 000000000000..d5fe3090d18a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for pulling data for the query. + public partial class QueryTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriodInternal + { + + /// Backing field for property. + private global::System.DateTime _from; + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime From { get => this._from; set => this._from = value; } + + /// Backing field for property. + private global::System.DateTime _to; + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime To { get => this._to; set => this._to = value; } + + /// Creates an new instance. + public QueryTimePeriod() + { + + } + } + /// The start and end date for pulling data for the query. + public partial interface IQueryTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime From { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime To { get; set; } + + } + /// The start and end date for pulling data for the query. + public partial interface IQueryTimePeriodInternal + + { + /// The start date to pull data from. + global::System.DateTime From { get; set; } + /// The end date to pull data to. + global::System.DateTime To { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.json.cs b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.json.cs new file mode 100644 index 000000000000..2e7b9922231e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/QueryTimePeriod.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for pulling data for the query. + public partial class QueryTimePeriod + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryTimePeriod FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new QueryTimePeriod(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal QueryTimePeriod(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_from = If( json?.PropertyT("from"), out var __jsonFrom) ? global::System.DateTime.TryParse((string)__jsonFrom, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonFromValue) ? __jsonFromValue : From : From;} + {_to = If( json?.PropertyT("to"), out var __jsonTo) ? global::System.DateTime.TryParse((string)__jsonTo, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonToValue) ? __jsonToValue : To : To;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._from.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "from" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._to.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "to" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.PowerShell.cs new file mode 100644 index 000000000000..d9851882d988 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The aggregation expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigAggregationTypeConverter))] + public partial class ReportConfigAggregation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigAggregation(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.CostManagement.Models.Api20200601.IReportConfigAggregation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigAggregation(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.CostManagement.Models.Api20200601.IReportConfigAggregation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigAggregation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Function = (string) content.GetValueForProperty("Function",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Function, 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 ReportConfigAggregation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Function = (string) content.GetValueForProperty("Function",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal)this).Function, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The aggregation expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigAggregationTypeConverter))] + public partial interface IReportConfigAggregation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.TypeConverter.cs new file mode 100644 index 000000000000..72483f4b7e51 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigAggregationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigAggregation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigAggregation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigAggregation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigAggregation.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/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.cs new file mode 100644 index 000000000000..a05c76853b94 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.cs @@ -0,0 +1,66 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The aggregation expression to be used in the report. + public partial class ReportConfigAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal + { + + /// Backing field for property. + private string _function= @"Sum"; + + /// The name of the aggregation function to use. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Function { get => this._function; } + + /// Internal Acessors for Function + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregationInternal.Function { get => this._function; set { {_function = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the column to aggregate. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Creates an new instance. + public ReportConfigAggregation() + { + + } + } + /// The aggregation expression to be used in the report. + public partial interface IReportConfigAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the aggregation function to use. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The name of the aggregation function to use.", + SerializedName = @"function", + PossibleTypes = new [] { typeof(string) })] + string Function { get; } + /// The name of the column to aggregate. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to aggregate.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// The aggregation expression to be used in the report. + public partial interface IReportConfigAggregationInternal + + { + /// The name of the aggregation function to use. + string Function { get; set; } + /// The name of the column to aggregate. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.json.cs new file mode 100644 index 000000000000..24bb0bc2973c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigAggregation.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The aggregation expression to be used in the report. + public partial class ReportConfigAggregation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigAggregation(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigAggregation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_function = If( json?.PropertyT("function"), out var __jsonFunction) ? (string)__jsonFunction : (string)Function;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._function)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._function.ToString()) : null, "function" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.PowerShell.cs new file mode 100644 index 000000000000..e1f1e6c4e6eb --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The comparison expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigComparisonExpressionTypeConverter))] + public partial class ReportConfigComparisonExpression + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigComparisonExpression(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.CostManagement.Models.Api20200601.IReportConfigComparisonExpression DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigComparisonExpression(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.CostManagement.Models.Api20200601.IReportConfigComparisonExpression FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigComparisonExpression(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Value = (string[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigComparisonExpression(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Operator = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) content.GetValueForProperty("Operator",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Operator, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Value = (string[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The comparison expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigComparisonExpressionTypeConverter))] + public partial interface IReportConfigComparisonExpression + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.TypeConverter.cs new file mode 100644 index 000000000000..48d7af59ea9a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigComparisonExpressionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigComparisonExpression ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigComparisonExpression.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigComparisonExpression.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigComparisonExpression.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/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.cs new file mode 100644 index 000000000000..14ba5dded3d9 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The comparison expression to be used in the report. + public partial class ReportConfigComparisonExpression : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpressionInternal + { + + /// Backing field for property. + private string _name; + + /// The name of the column to use in comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType _operator; + + /// The operator to use for comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get => this._operator; set => this._operator = value; } + + /// Backing field for property. + private string[] _value; + + /// Array of values to use for comparison + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ReportConfigComparisonExpression() + { + + } + } + /// The comparison expression to be used in the report. + public partial interface IReportConfigComparisonExpression : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The name of the column to use in comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to use in comparison.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The operator to use for comparison. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operator to use for comparison.", + SerializedName = @"operator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get; set; } + /// Array of values to use for comparison + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Array of values to use for comparison", + SerializedName = @"values", + PossibleTypes = new [] { typeof(string) })] + string[] Value { get; set; } + + } + /// The comparison expression to be used in the report. + public partial interface IReportConfigComparisonExpressionInternal + + { + /// The name of the column to use in comparison. + string Name { get; set; } + /// The operator to use for comparison. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Operator { get; set; } + /// Array of values to use for comparison + string[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.json.cs new file mode 100644 index 000000000000..abe19a2fbd17 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigComparisonExpression.json.cs @@ -0,0 +1,113 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The comparison expression to be used in the report. + public partial class ReportConfigComparisonExpression + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigComparisonExpression(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigComparisonExpression(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_operator = If( json?.PropertyT("operator"), out var __jsonOperator) ? (string)__jsonOperator : (string)Operator;} + {_value = If( json?.PropertyT("values"), out var __jsonValues) ? If( __jsonValues as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Value;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._operator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._operator.ToString()) : null, "operator" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("values",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.PowerShell.cs new file mode 100644 index 000000000000..bfa93664fea6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of data present in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetTypeConverter))] + public partial class ReportConfigDataset + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDataset(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.CostManagement.Models.Api20200601.IReportConfigDataset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDataset(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.CostManagement.Models.Api20200601.IReportConfigDataset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDataset(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Sorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("Sorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Sorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigDataset(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Sorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("Sorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).Sorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of data present in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetTypeConverter))] + public partial interface IReportConfigDataset + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.TypeConverter.cs new file mode 100644 index 000000000000..e738be2bea57 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDatasetTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDataset ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDataset.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDataset.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDataset.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.cs new file mode 100644 index 000000000000..bfc77739db4e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.cs @@ -0,0 +1,170 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the report. + public partial class ReportConfigDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation _aggregation; + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get => (this._aggregation = this._aggregation ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregation()); set => this._aggregation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration _configuration; + + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration()); set => this._configuration = value; } + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)Configuration).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)Configuration).Column = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter _filter; + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter()); set => this._filter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? _granularity; + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get => this._granularity; set => this._granularity = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] _grouping; + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get => this._grouping; set => this._grouping = value; } + + /// Internal Acessors for Configuration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration()); set { {_configuration = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] _sorting; + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get => this._sorting; set => this._sorting = value; } + + /// Creates an new instance. + public ReportConfigDataset() + { + + } + } + /// The definition of data present in the report. + public partial interface IReportConfigDataset : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Filter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get; set; } + + } + /// The definition of data present in the report. + public partial interface IReportConfigDatasetInternal + + { + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Configuration { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Filter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.json.cs new file mode 100644 index 000000000000..67276cca3e23 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset.json.cs @@ -0,0 +1,127 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the report. + public partial class ReportConfigDataset + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDataset(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigDataset(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration.FromJson(__jsonConfiguration) : Configuration;} + {_aggregation = If( json?.PropertyT("aggregation"), out var __jsonAggregation) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregation.FromJson(__jsonAggregation) : Aggregation;} + {_filter = If( json?.PropertyT("filter"), out var __jsonFilter) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter.FromJson(__jsonFilter) : Filter;} + {_granularity = If( json?.PropertyT("granularity"), out var __jsonGranularity) ? (string)__jsonGranularity : (string)Granularity;} + {_grouping = If( json?.PropertyT("grouping"), out var __jsonGrouping) ? If( __jsonGrouping as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigGrouping) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGrouping.FromJson(__u) )) ))() : null : Grouping;} + {_sorting = If( json?.PropertyT("sorting"), out var __jsonSorting) ? If( __jsonSorting as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigSorting) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSorting.FromJson(__p) )) ))() : null : Sorting;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._configuration ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._configuration.ToJson(null,serializationMode) : null, "configuration" ,container.Add ); + AddIf( null != this._aggregation ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._aggregation.ToJson(null,serializationMode) : null, "aggregation" ,container.Add ); + AddIf( null != this._filter ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._filter.ToJson(null,serializationMode) : null, "filter" ,container.Add ); + AddIf( null != (((object)this._granularity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._granularity.ToString()) : null, "granularity" ,container.Add ); + if (null != this._grouping) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._grouping ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("grouping",__w); + } + if (null != this._sorting) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._sorting ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("sorting",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.PowerShell.cs new file mode 100644 index 000000000000..d45eaf53fbb1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of data present in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDataset1TypeConverter))] + public partial class ReportConfigDataset1 + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDataset1(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.CostManagement.Models.Api20200601.IReportConfigDataset1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDataset1(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.CostManagement.Models.Api20200601.IReportConfigDataset1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDataset1(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Sorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("Sorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Sorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigDataset1(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Aggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("Aggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Aggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Filter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("Filter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Filter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Granularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("Granularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Granularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Grouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("Grouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Grouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Sorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("Sorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).Sorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of data present in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDataset1TypeConverter))] + public partial interface IReportConfigDataset1 + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.TypeConverter.cs new file mode 100644 index 000000000000..28296d721968 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDataset1TypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDataset1 ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDataset1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDataset1.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDataset1.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.cs new file mode 100644 index 000000000000..c603f44aabde --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.cs @@ -0,0 +1,170 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the report. + public partial class ReportConfigDataset1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation _aggregation; + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get => (this._aggregation = this._aggregation ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregation()); set => this._aggregation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration _configuration; + + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration()); set => this._configuration = value; } + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)Configuration).Column; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)Configuration).Column = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 _filter; + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Filter { get => (this._filter = this._filter ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1()); set => this._filter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? _granularity; + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get => this._granularity; set => this._granularity = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] _grouping; + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get => this._grouping; set => this._grouping = value; } + + /// Internal Acessors for Configuration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal.Configuration { get => (this._configuration = this._configuration ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration()); set { {_configuration = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] _sorting; + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get => this._sorting; set => this._sorting = value; } + + /// Creates an new instance. + public ReportConfigDataset1() + { + + } + } + /// The definition of data present in the report. + public partial interface IReportConfigDataset1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Filter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get; set; } + + } + /// The definition of data present in the report. + public partial interface IReportConfigDataset1Internal + + { + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation Aggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Configuration { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Filter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? Granularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] Grouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] Sorting { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.json.cs new file mode 100644 index 000000000000..09cb4a14cc4e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDataset1.json.cs @@ -0,0 +1,127 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of data present in the report. + public partial class ReportConfigDataset1 + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDataset1(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigDataset1(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_configuration = If( json?.PropertyT("configuration"), out var __jsonConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfiguration.FromJson(__jsonConfiguration) : Configuration;} + {_aggregation = If( json?.PropertyT("aggregation"), out var __jsonAggregation) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregation.FromJson(__jsonAggregation) : Aggregation;} + {_filter = If( json?.PropertyT("filter"), out var __jsonFilter) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1.FromJson(__jsonFilter) : Filter;} + {_granularity = If( json?.PropertyT("granularity"), out var __jsonGranularity) ? (string)__jsonGranularity : (string)Granularity;} + {_grouping = If( json?.PropertyT("grouping"), out var __jsonGrouping) ? If( __jsonGrouping as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigGrouping) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGrouping.FromJson(__u) )) ))() : null : Grouping;} + {_sorting = If( json?.PropertyT("sorting"), out var __jsonSorting) ? If( __jsonSorting as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigSorting) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSorting.FromJson(__p) )) ))() : null : Sorting;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._configuration ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._configuration.ToJson(null,serializationMode) : null, "configuration" ,container.Add ); + AddIf( null != this._aggregation ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._aggregation.ToJson(null,serializationMode) : null, "aggregation" ,container.Add ); + AddIf( null != this._filter ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._filter.ToJson(null,serializationMode) : null, "filter" ,container.Add ); + AddIf( null != (((object)this._granularity)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._granularity.ToString()) : null, "granularity" ,container.Add ); + if (null != this._grouping) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._grouping ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("grouping",__w); + } + if (null != this._sorting) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._sorting ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("sorting",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.PowerShell.cs new file mode 100644 index 000000000000..18272ee0ed2b --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetAggregationTypeConverter))] + public partial class ReportConfigDatasetAggregation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDatasetAggregation(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.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDatasetAggregation(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.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDatasetAggregation(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 ReportConfigDatasetAggregation(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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetAggregationTypeConverter))] + public partial interface IReportConfigDatasetAggregation + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.TypeConverter.cs new file mode 100644 index 000000000000..8dd28c5c44ed --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDatasetAggregationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDatasetAggregation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDatasetAggregation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDatasetAggregation.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.cs new file mode 100644 index 000000000000..819fd733ee41 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.cs @@ -0,0 +1,35 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + public partial class ReportConfigDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregationInternal + { + + /// Creates an new instance. + public ReportConfigDatasetAggregation() + { + + } + } + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + public partial interface IReportConfigDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + + } + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + public partial interface IReportConfigDatasetAggregationInternal + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.dictionary.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.dictionary.cs new file mode 100644 index 000000000000..50b3cc4d6ffd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class ReportConfigDatasetAggregation : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation 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.CostManagement.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.CostManagement.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 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigAggregation value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregation source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.json.cs new file mode 100644 index 000000000000..d9eb52f4ff37 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetAggregation.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + public partial class ReportConfigDatasetAggregation + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDatasetAggregation(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ReportConfigDatasetAggregation(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.PowerShell.cs new file mode 100644 index 000000000000..c7ea20daa08a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The configuration of dataset in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetConfigurationTypeConverter))] + public partial class ReportConfigDatasetConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDatasetConfiguration(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.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDatasetConfiguration(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.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDatasetConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigDatasetConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)this).Column = (string[]) content.GetValueForProperty("Column",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal)this).Column, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The configuration of dataset in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDatasetConfigurationTypeConverter))] + public partial interface IReportConfigDatasetConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..447b9ffd4e75 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDatasetConfigurationTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDatasetConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDatasetConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDatasetConfiguration.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.cs new file mode 100644 index 000000000000..7fb2105472dd --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.cs @@ -0,0 +1,55 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The configuration of dataset in the report. + public partial class ReportConfigDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfigurationInternal + { + + /// Backing field for property. + private string[] _column; + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string[] Column { get => this._column; set => this._column = value; } + + /// Creates an new instance. + public ReportConfigDatasetConfiguration() + { + + } + } + /// The configuration of dataset in the report. + public partial interface IReportConfigDatasetConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] Column { get; set; } + + } + /// The configuration of dataset in the report. + public partial interface IReportConfigDatasetConfigurationInternal + + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] Column { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.json.cs new file mode 100644 index 000000000000..e22b7e18a7c3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDatasetConfiguration.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The configuration of dataset in the report. + public partial class ReportConfigDatasetConfiguration + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDatasetConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigDatasetConfiguration(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_column = If( json?.PropertyT("columns"), out var __jsonColumns) ? If( __jsonColumns as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Column;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._column) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._column ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("columns",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.PowerShell.cs new file mode 100644 index 000000000000..214a24f03d8f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of a report config. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDefinitionTypeConverter))] + public partial class ReportConfigDefinition + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDefinition(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.CostManagement.Models.Api20200601.IReportConfigDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDefinition(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.CostManagement.Models.Api20200601.IReportConfigDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of a report config. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDefinitionTypeConverter))] + public partial interface IReportConfigDefinition + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.TypeConverter.cs new file mode 100644 index 000000000000..0f02c0134706 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDefinitionTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDefinition.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.cs new file mode 100644 index 000000000000..7a268818c078 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.cs @@ -0,0 +1,249 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a report config. + public partial class ReportConfigDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal + { + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).ConfigurationColumn = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 _dataset; + + /// Has definition for data in this report config. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1()); set => this._dataset = value; } + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Aggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Aggregation = value; } + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Filter = value; } + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Granularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Granularity = value; } + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Grouping; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Grouping = value; } + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Sorting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Sorting = value; } + + /// Internal Acessors for Dataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal.Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1()); set { {_dataset = value;} } } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1Internal)Dataset).Configuration = value; } + + /// Internal Acessors for TimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal.TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod()); set { {_timePeriod = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod _timePeriod; + + /// Has time period for pulling data for the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod()); set => this._timePeriod = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).From = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType _timeframe; + + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get => this._timeframe; set => this._timeframe = value; } + + /// Backing field for property. + private string _type= @"Usage"; + + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ReportConfigDefinition() + { + + } + } + /// The definition of a report config. + public partial interface IReportConfigDefinition : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The definition of a report config. + public partial interface IReportConfigDefinitionInternal + + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has definition for data in this report config. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 Dataset { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// Has time period for pulling data for the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod TimePeriod { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.json.cs new file mode 100644 index 000000000000..def5847e0bb5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a report config. + public partial class ReportConfigDefinition + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDefinition(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigDefinition(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dataset = If( json?.PropertyT("dataset"), out var __jsonDataset) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1.FromJson(__jsonDataset) : Dataset;} + {_timePeriod = If( json?.PropertyT("timePeriod"), out var __jsonTimePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod.FromJson(__jsonTimePeriod) : TimePeriod;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_timeframe = If( json?.PropertyT("timeframe"), out var __jsonTimeframe) ? (string)__jsonTimeframe : (string)Timeframe;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._dataset ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dataset.ToJson(null,serializationMode) : null, "dataset" ,container.Add ); + AddIf( null != this._timePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._timePeriod.ToJson(null,serializationMode) : null, "timePeriod" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._timeframe)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeframe.ToString()) : null, "timeframe" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.PowerShell.cs new file mode 100644 index 000000000000..d3d8e72d1a34 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The definition of a report config. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDefinition1TypeConverter))] + public partial class ReportConfigDefinition1 + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1 DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigDefinition1(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.CostManagement.Models.Api20200601.IReportConfigDefinition1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigDefinition1(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.CostManagement.Models.Api20200601.IReportConfigDefinition1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigDefinition1(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigDefinition1(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Dataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Dataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("TimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Timeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("Timeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).Timeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The definition of a report config. + [System.ComponentModel.TypeConverter(typeof(ReportConfigDefinition1TypeConverter))] + public partial interface IReportConfigDefinition1 + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.TypeConverter.cs new file mode 100644 index 000000000000..d0a134a00f32 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigDefinition1TypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigDefinition1 ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigDefinition1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigDefinition1.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigDefinition1.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/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.cs new file mode 100644 index 000000000000..a4d133b82f28 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.cs @@ -0,0 +1,249 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a report config. + public partial class ReportConfigDefinition1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal + { + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).ConfigurationColumn = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset _dataset; + + /// Has definition for data in this report config. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset()); set => this._dataset = value; } + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Aggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Aggregation = value; } + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Filter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Filter = value; } + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Granularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Granularity = value; } + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Grouping; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Grouping = value; } + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Sorting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Sorting = value; } + + /// Internal Acessors for Dataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal.Dataset { get => (this._dataset = this._dataset ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset()); set { {_dataset = value;} } } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Configuration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetInternal)Dataset).Configuration = value; } + + /// Internal Acessors for TimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal.TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod()); set { {_timePeriod = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1Internal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod _timePeriod; + + /// Has time period for pulling data for the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod TimePeriod { get => (this._timePeriod = this._timePeriod ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod()); set => this._timePeriod = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).From; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).From = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).To; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)TimePeriod).To = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType _timeframe; + + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get => this._timeframe; set => this._timeframe = value; } + + /// Backing field for property. + private string _type= @"Usage"; + + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ReportConfigDefinition1() + { + + } + } + /// The definition of a report config. + public partial interface IReportConfigDefinition1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter DatasetFilter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The definition of a report config. + public partial interface IReportConfigDefinition1Internal + + { + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Has definition for data in this report config. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset Dataset { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter DatasetFilter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// Has time period for pulling data for the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod TimePeriod { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Timeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.json.cs new file mode 100644 index 000000000000..0d5c249aeb0c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigDefinition1.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The definition of a report config. + public partial class ReportConfigDefinition1 + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigDefinition1(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigDefinition1(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dataset = If( json?.PropertyT("dataset"), out var __jsonDataset) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset.FromJson(__jsonDataset) : Dataset;} + {_timePeriod = If( json?.PropertyT("timePeriod"), out var __jsonTimePeriod) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriod.FromJson(__jsonTimePeriod) : TimePeriod;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_timeframe = If( json?.PropertyT("timeframe"), out var __jsonTimeframe) ? (string)__jsonTimeframe : (string)Timeframe;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._dataset ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dataset.ToJson(null,serializationMode) : null, "dataset" ,container.Add ); + AddIf( null != this._timePeriod ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._timePeriod.ToJson(null,serializationMode) : null, "timePeriod" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._timeframe)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._timeframe.ToString()) : null, "timeframe" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.PowerShell.cs new file mode 100644 index 000000000000..17d5c3be6857 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The filter expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigFilterTypeConverter))] + public partial class ReportConfigFilter + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigFilter(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.CostManagement.Models.Api20200601.IReportConfigFilter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigFilter(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.CostManagement.Models.Api20200601.IReportConfigFilter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigFilter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Dimension, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigFilter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Dimension, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The filter expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigFilterTypeConverter))] + public partial interface IReportConfigFilter + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.TypeConverter.cs new file mode 100644 index 000000000000..79bc84dee6af --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigFilterTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigFilter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigFilter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigFilter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigFilter.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/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.cs new file mode 100644 index 000000000000..95e9b18f55a8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the report. + public partial class ReportConfigFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilterInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] _and; + + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] And { get => this._and; set => this._and = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression _dimension; + + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get => (this._dimension = this._dimension ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression()); set => this._dimension = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter _not; + + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Not { get => (this._not = this._not ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter()); set => this._not = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] _or; + + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] Or { get => this._or; set => this._or = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression _tag; + + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression()); set => this._tag = value; } + + /// Creates an new instance. + public ReportConfigFilter() + { + + } + } + /// The filter expression to be used in the report. + public partial interface IReportConfigFilter : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""AND"" expression. Must have at least 2 items.", + SerializedName = @"and", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] And { get; set; } + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a dimension", + SerializedName = @"dimension", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get; set; } + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""NOT"" expression.", + SerializedName = @"not", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""OR"" expression. Must have at least 2 items.", + SerializedName = @"or", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] Or { get; set; } + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a tag", + SerializedName = @"tag", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get; set; } + + } + /// The filter expression to be used in the report. + public partial interface IReportConfigFilterInternal + + { + /// The logical "AND" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] And { get; set; } + /// Has comparison expression for a dimension + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get; set; } + /// The logical "NOT" expression. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter[] Or { get; set; } + /// Has comparison expression for a tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.json.cs new file mode 100644 index 000000000000..2b02e0d3713c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter.json.cs @@ -0,0 +1,125 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the report. + public partial class ReportConfigFilter + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigFilter(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigFilter(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_and = If( json?.PropertyT("and"), out var __jsonAnd) ? If( __jsonAnd as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigFilter) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter.FromJson(__u) )) ))() : null : And;} + {_dimension = If( json?.PropertyT("dimension"), out var __jsonDimension) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression.FromJson(__jsonDimension) : Dimension;} + {_not = If( json?.PropertyT("not"), out var __jsonNot) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter.FromJson(__jsonNot) : Not;} + {_or = If( json?.PropertyT("or"), out var __jsonOr) ? If( __jsonOr as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigFilter) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter.FromJson(__p) )) ))() : null : Or;} + {_tag = If( json?.PropertyT("tag"), out var __jsonTag) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression.FromJson(__jsonTag) : Tag;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._and) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._and ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("and",__w); + } + AddIf( null != this._dimension ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dimension.ToJson(null,serializationMode) : null, "dimension" ,container.Add ); + AddIf( null != this._not ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._not.ToJson(null,serializationMode) : null, "not" ,container.Add ); + if (null != this._or) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._or ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("or",__r); + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tag" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.PowerShell.cs new file mode 100644 index 000000000000..242c7785e1a7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The filter expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigFilter1TypeConverter))] + public partial class ReportConfigFilter1 + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigFilter1(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.CostManagement.Models.Api20200601.IReportConfigFilter1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigFilter1(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.CostManagement.Models.Api20200601.IReportConfigFilter1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigFilter1(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Dimension, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigFilter1(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).And = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[]) content.GetValueForProperty("And",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).And, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Dimension = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Dimension, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Not = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("Not",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Not, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Or = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[]) content.GetValueForProperty("Or",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Or, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpressionTypeConverter.ConvertFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The filter expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigFilter1TypeConverter))] + public partial interface IReportConfigFilter1 + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.TypeConverter.cs new file mode 100644 index 000000000000..25b3f6a0b229 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigFilter1TypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigFilter1 ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigFilter1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigFilter1.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigFilter1.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/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.cs new file mode 100644 index 000000000000..74aedc0d7dd5 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the report. + public partial class ReportConfigFilter1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1Internal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] _and; + + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] And { get => this._and; set => this._and = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression _dimension; + + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get => (this._dimension = this._dimension ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression()); set => this._dimension = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 _not; + + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Not { get => (this._not = this._not ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1()); set => this._not = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] _or; + + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] Or { get => this._or; set => this._or = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression _tag; + + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression()); set => this._tag = value; } + + /// Creates an new instance. + public ReportConfigFilter1() + { + + } + } + /// The filter expression to be used in the report. + public partial interface IReportConfigFilter1 : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The logical "AND" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""AND"" expression. Must have at least 2 items.", + SerializedName = @"and", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] And { get; set; } + /// Has comparison expression for a dimension + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a dimension", + SerializedName = @"dimension", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get; set; } + /// The logical "NOT" expression. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""NOT"" expression.", + SerializedName = @"not", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The logical ""OR"" expression. Must have at least 2 items.", + SerializedName = @"or", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] Or { get; set; } + /// Has comparison expression for a tag + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has comparison expression for a tag", + SerializedName = @"tag", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get; set; } + + } + /// The filter expression to be used in the report. + public partial interface IReportConfigFilter1Internal + + { + /// The logical "AND" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] And { get; set; } + /// Has comparison expression for a dimension + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Dimension { get; set; } + /// The logical "NOT" expression. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 Not { get; set; } + /// The logical "OR" expression. Must have at least 2 items. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1[] Or { get; set; } + /// Has comparison expression for a tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigComparisonExpression Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.json.cs new file mode 100644 index 000000000000..579facb82d3d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigFilter1.json.cs @@ -0,0 +1,125 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The filter expression to be used in the report. + public partial class ReportConfigFilter1 + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigFilter1(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigFilter1(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_and = If( json?.PropertyT("and"), out var __jsonAnd) ? If( __jsonAnd as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigFilter1) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1.FromJson(__u) )) ))() : null : And;} + {_dimension = If( json?.PropertyT("dimension"), out var __jsonDimension) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression.FromJson(__jsonDimension) : Dimension;} + {_not = If( json?.PropertyT("not"), out var __jsonNot) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1.FromJson(__jsonNot) : Not;} + {_or = If( json?.PropertyT("or"), out var __jsonOr) ? If( __jsonOr as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IReportConfigFilter1) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1.FromJson(__p) )) ))() : null : Or;} + {_tag = If( json?.PropertyT("tag"), out var __jsonTag) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigComparisonExpression.FromJson(__jsonTag) : Tag;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._and) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._and ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("and",__w); + } + AddIf( null != this._dimension ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._dimension.ToJson(null,serializationMode) : null, "dimension" ,container.Add ); + AddIf( null != this._not ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._not.ToJson(null,serializationMode) : null, "not" ,container.Add ); + if (null != this._or) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._or ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("or",__r); + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tag" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.PowerShell.cs new file mode 100644 index 000000000000..7be9e8764710 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The group by expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigGroupingTypeConverter))] + public partial class ReportConfigGrouping + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigGrouping(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.CostManagement.Models.Api20200601.IReportConfigGrouping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigGrouping(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.CostManagement.Models.Api20200601.IReportConfigGrouping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigGrouping(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigGrouping(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType.CreateFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The group by expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigGroupingTypeConverter))] + public partial interface IReportConfigGrouping + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.TypeConverter.cs new file mode 100644 index 000000000000..8683ef3ce818 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigGroupingTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigGrouping ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigGrouping.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigGrouping.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigGrouping.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/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.cs new file mode 100644 index 000000000000..054c07d1dd6d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The group by expression to be used in the report. + public partial class ReportConfigGrouping : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGroupingInternal + { + + /// Backing field for property. + private string _name; + + /// + /// The name of the column to group. This version supports subscription lowest possible grain. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType _type; + + /// Has type of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public ReportConfigGrouping() + { + + } + } + /// The group by expression to be used in the report. + public partial interface IReportConfigGrouping : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// + /// The name of the column to group. This version supports subscription lowest possible grain. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to group. This version supports subscription lowest possible grain.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Has type of the column to group. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Has type of the column to group.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType Type { get; set; } + + } + /// The group by expression to be used in the report. + public partial interface IReportConfigGroupingInternal + + { + /// + /// The name of the column to group. This version supports subscription lowest possible grain. + /// + string Name { get; set; } + /// Has type of the column to group. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.json.cs new file mode 100644 index 000000000000..81531a8fd94c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigGrouping.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The group by expression to be used in the report. + public partial class ReportConfigGrouping + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigGrouping(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigGrouping(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.PowerShell.cs new file mode 100644 index 000000000000..6de2796e77f3 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The order by expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigSortingTypeConverter))] + public partial class ReportConfigSorting + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigSorting(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.CostManagement.Models.Api20200601.IReportConfigSorting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigSorting(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.CostManagement.Models.Api20200601.IReportConfigSorting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigSorting(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Direction = (string) content.GetValueForProperty("Direction",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Direction, 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 ReportConfigSorting(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Direction = (string) content.GetValueForProperty("Direction",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal)this).Direction, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The order by expression to be used in the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigSortingTypeConverter))] + public partial interface IReportConfigSorting + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.TypeConverter.cs new file mode 100644 index 000000000000..2215be22c41a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigSortingTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigSorting ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigSorting.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigSorting.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigSorting.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/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.cs new file mode 100644 index 000000000000..c7f706097087 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The order by expression to be used in the report. + public partial class ReportConfigSorting : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSortingInternal + { + + /// Backing field for property. + private string _direction; + + /// Direction of sort. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Direction { get => this._direction; set => this._direction = value; } + + /// Backing field for property. + private string _name; + + /// The name of the column to sort. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Creates an new instance. + public ReportConfigSorting() + { + + } + } + /// The order by expression to be used in the report. + public partial interface IReportConfigSorting : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Direction of sort. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Direction of sort.", + SerializedName = @"direction", + PossibleTypes = new [] { typeof(string) })] + string Direction { get; set; } + /// The name of the column to sort. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the column to sort.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// The order by expression to be used in the report. + public partial interface IReportConfigSortingInternal + + { + /// Direction of sort. + string Direction { get; set; } + /// The name of the column to sort. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.json.cs new file mode 100644 index 000000000000..04bed20e709f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigSorting.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The order by expression to be used in the report. + public partial class ReportConfigSorting + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigSorting(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigSorting(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_direction = If( json?.PropertyT("direction"), out var __jsonDirection) ? (string)__jsonDirection : (string)Direction;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._direction)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._direction.ToString()) : null, "direction" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.PowerShell.cs new file mode 100644 index 000000000000..c224752f7f6c --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The start and end date for pulling data for the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigTimePeriodTypeConverter))] + public partial class ReportConfigTimePeriod + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReportConfigTimePeriod(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.CostManagement.Models.Api20200601.IReportConfigTimePeriod DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReportConfigTimePeriod(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.CostManagement.Models.Api20200601.IReportConfigTimePeriod FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReportConfigTimePeriod(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReportConfigTimePeriod(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).From = (global::System.DateTime) content.GetValueForProperty("From",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).From, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).To = (global::System.DateTime) content.GetValueForProperty("To",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal)this).To, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The start and end date for pulling data for the report. + [System.ComponentModel.TypeConverter(typeof(ReportConfigTimePeriodTypeConverter))] + public partial interface IReportConfigTimePeriod + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.TypeConverter.cs new file mode 100644 index 000000000000..613c8253adae --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReportConfigTimePeriodTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IReportConfigTimePeriod ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReportConfigTimePeriod.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReportConfigTimePeriod.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReportConfigTimePeriod.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/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.cs new file mode 100644 index 000000000000..379441927467 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for pulling data for the report. + public partial class ReportConfigTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriodInternal + { + + /// Backing field for property. + private global::System.DateTime _from; + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime From { get => this._from; set => this._from = value; } + + /// Backing field for property. + private global::System.DateTime _to; + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime To { get => this._to; set => this._to = value; } + + /// Creates an new instance. + public ReportConfigTimePeriod() + { + + } + } + /// The start and end date for pulling data for the report. + public partial interface IReportConfigTimePeriod : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime From { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime To { get; set; } + + } + /// The start and end date for pulling data for the report. + public partial interface IReportConfigTimePeriodInternal + + { + /// The start date to pull data from. + global::System.DateTime From { get; set; } + /// The end date to pull data to. + global::System.DateTime To { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.json.cs new file mode 100644 index 000000000000..34660ba5580e --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ReportConfigTimePeriod.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The start and end date for pulling data for the report. + public partial class ReportConfigTimePeriod + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ReportConfigTimePeriod(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ReportConfigTimePeriod(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_from = If( json?.PropertyT("from"), out var __jsonFrom) ? global::System.DateTime.TryParse((string)__jsonFrom, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonFromValue) ? __jsonFromValue : From : From;} + {_to = If( json?.PropertyT("to"), out var __jsonTo) ? global::System.DateTime.TryParse((string)__jsonTo, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonToValue) ? __jsonToValue : To : To;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._from.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "from" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._to.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "to" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Resource.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/Resource.PowerShell.cs new file mode 100644 index 000000000000..c87e5838bef8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Resource.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The Resource model definition. + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTagsTypeConverter.ConvertFrom); + 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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Resource model definition. + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Resource.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/Resource.TypeConverter.cs new file mode 100644 index 000000000000..2d4491c19460 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Resource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Resource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Resource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Resource.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/CostManagement/generated/api/Models/Api20200601/Resource.cs b/src/CostManagement/generated/api/Models/Api20200601/Resource.cs new file mode 100644 index 000000000000..8aece54acb1d --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Resource.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The Resource model definition. + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Tag + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags()); set { {_tag = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags()); } + + /// Backing field for property. + private string _type; + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// The Resource model definition. + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get; } + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The Resource model definition. + public partial interface IResourceInternal + + { + /// Resource Id. + string Id { get; set; } + /// Resource name. + string Name { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags Tag { get; set; } + /// Resource type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/Resource.json.cs b/src/CostManagement/generated/api/Models/Api20200601/Resource.json.cs new file mode 100644 index 000000000000..7ecebf0fe7ff --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/Resource.json.cs @@ -0,0 +1,119 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The Resource model definition. + public partial class Resource + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new Resource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal Resource(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags.FromJson(__jsonTags) : Tag;} + 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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.PowerShell.cs new file mode 100644 index 000000000000..ab967e8a9c8a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] + public partial class ResourceTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResourceTags(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.CostManagement.Models.Api20200601.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResourceTags(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.CostManagement.Models.Api20200601.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResourceTags(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 ResourceTags(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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] + public partial interface IResourceTags + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.TypeConverter.cs new file mode 100644 index 000000000000..8bca98af1333 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceTagsTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IResourceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ResourceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ResourceTags.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/CostManagement/generated/api/Models/Api20200601/ResourceTags.cs b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.cs new file mode 100644 index 000000000000..c9f67011c2da --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Resource tags. + public partial class ResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTagsInternal + { + + /// Creates an new instance. + public ResourceTags() + { + + } + } + /// Resource tags. + public partial interface IResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + + } + /// Resource tags. + public partial interface IResourceTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.dictionary.cs b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.dictionary.cs new file mode 100644 index 000000000000..bba3d8b22156 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class ResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ResourceTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.json.cs new file mode 100644 index 000000000000..601d87e0a6c4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ResourceTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Resource tags. + public partial class ResourceTags + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ResourceTags(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/View.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/View.PowerShell.cs new file mode 100644 index 000000000000..cba31ffbbe60 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/View.PowerShell.cs @@ -0,0 +1,185 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// States and configurations of Cost Analysis. + [System.ComponentModel.TypeConverter(typeof(ViewTypeConverter))] + public partial class View + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new View(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.CostManagement.Models.Api20200601.IView DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new View(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.CostManagement.Models.Api20200601.IView FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal View(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Query = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition) content.GetValueForProperty("Query",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Query, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Chart = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType?) content.GetValueForProperty("Chart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Chart, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).CreatedOn = (global::System.DateTime?) content.GetValueForProperty("CreatedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).CreatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Kpi = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[]) content.GetValueForProperty("Kpi",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Kpi, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType?) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ModifiedOn = (global::System.DateTime?) content.GetValueForProperty("ModifiedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ModifiedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Pivot = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[]) content.GetValueForProperty("Pivot",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Pivot, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Accumulated = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType?) content.GetValueForProperty("Accumulated",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Accumulated, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryDataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("QueryDataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryDataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryType = (string) content.GetValueForProperty("QueryType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("QueryTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("QueryTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal View(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Query = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition) content.GetValueForProperty("Query",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Query, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Chart = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType?) content.GetValueForProperty("Chart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Chart, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).CreatedOn = (global::System.DateTime?) content.GetValueForProperty("CreatedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).CreatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Kpi = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[]) content.GetValueForProperty("Kpi",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Kpi, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType?) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ModifiedOn = (global::System.DateTime?) content.GetValueForProperty("ModifiedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ModifiedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Pivot = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[]) content.GetValueForProperty("Pivot",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Pivot, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Accumulated = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType?) content.GetValueForProperty("Accumulated",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).Accumulated, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryDataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("QueryDataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryDataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryType = (string) content.GetValueForProperty("QueryType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("QueryTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("QueryTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).QueryTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + } + /// States and configurations of Cost Analysis. + [System.ComponentModel.TypeConverter(typeof(ViewTypeConverter))] + public partial interface IView + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/View.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/View.TypeConverter.cs new file mode 100644 index 000000000000..c26fba9624e7 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/View.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ViewTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IView ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return View.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return View.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return View.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/CostManagement/generated/api/Models/Api20200601/View.cs b/src/CostManagement/generated/api/Models/Api20200601/View.cs new file mode 100644 index 000000000000..1fd553abed07 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/View.cs @@ -0,0 +1,455 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// States and configurations of Cost Analysis. + public partial class View : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource(); + + /// Show costs accumulated over time. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Accumulated; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Accumulated = value; } + + /// Chart type of the main view in Cost Analysis. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Chart; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Chart = value; } + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).ConfigurationColumn = value; } + + /// Date the user created this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).CreatedOn; } + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetAggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetAggregation = value; } + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetFilter = value; } + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetGranularity = value; } + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetGrouping; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetGrouping = value; } + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetSorting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetSorting = value; } + + /// User input name of the view. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DisplayName = value; } + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).ETag = value; } + + /// Resource Id. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id; } + + /// List of KPIs to show in Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Kpi; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Kpi = value; } + + /// Metric to use when displaying costs. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Metric; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Metric = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type = value; } + + /// Internal Acessors for CreatedOn + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.CreatedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).CreatedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).CreatedOn = value; } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).DatasetConfiguration = value; } + + /// Internal Acessors for ModifiedOn + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.ModifiedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).ModifiedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).ModifiedOn = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewProperties()); set { {_property = value;} } } + + /// Internal Acessors for Query + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.Query { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Query; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Query = value; } + + /// Internal Acessors for QueryDataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.QueryDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryDataset; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryDataset = value; } + + /// Internal Acessors for QueryTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.QueryTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryTimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryTimePeriod = value; } + + /// Internal Acessors for QueryType + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewInternal.QueryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryType; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryType = value; } + + /// Date when the user last modified this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime? ModifiedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).ModifiedOn; } + + /// Resource name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Name; } + + /// Configuration of 3 sub-views in the Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Pivot; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Pivot = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties _property; + + /// View properties + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewProperties()); set => this._property = value; } + + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryTimeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryTimeframe = value; } + + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string QueryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).QueryType; } + + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).Scope = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).TimePeriodFrom = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)Property).TimePeriodTo = value; } + + /// Resource type. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal)__proxyResource).Type; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + } + + /// Creates an new instance. + public View() + { + + } + } + /// States and configurations of Cost Analysis. + public partial interface IView : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResource + { + /// Show costs accumulated over time. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Show costs accumulated over time.", + SerializedName = @"accumulated", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get; set; } + /// Chart type of the main view in Cost Analysis. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Chart type of the main view in Cost Analysis. Required.", + SerializedName = @"chart", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Date the user created this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Date the user created this view.", + SerializedName = @"createdOn", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreatedOn { get; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// User input name of the view. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"User input name of the view. Required.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// List of KPIs to show in Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of KPIs to show in Cost Analysis UI.", + SerializedName = @"kpis", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get; set; } + /// Metric to use when displaying costs. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Metric to use when displaying costs.", + SerializedName = @"metric", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get; set; } + /// Date when the user last modified this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Date when the user last modified this view.", + SerializedName = @"modifiedOn", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ModifiedOn { get; } + /// Configuration of 3 sub-views in the Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Configuration of 3 sub-views in the Cost Analysis UI.", + SerializedName = @"pivots", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string QueryType { get; } + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// States and configurations of Cost Analysis. + public partial interface IViewInternal : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IProxyResourceInternal + { + /// Show costs accumulated over time. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get; set; } + /// Chart type of the main view in Cost Analysis. Required. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Date the user created this view. + global::System.DateTime? CreatedOn { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// User input name of the view. Required. + string DisplayName { get; set; } + /// List of KPIs to show in Cost Analysis UI. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get; set; } + /// Metric to use when displaying costs. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get; set; } + /// Date when the user last modified this view. + global::System.DateTime? ModifiedOn { get; set; } + /// Configuration of 3 sub-views in the Cost Analysis UI. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get; set; } + /// View properties + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties Property { get; set; } + /// Query body configuration. Required. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition Query { get; set; } + /// Has definition for data in this report config. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 QueryDataset { get; set; } + /// Has time period for pulling data for the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod QueryTimePeriod { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + string QueryType { get; set; } + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + string Scope { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/View.json.cs b/src/CostManagement/generated/api/Models/Api20200601/View.json.cs new file mode 100644 index 000000000000..a41c8410d8db --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/View.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// States and configurations of Cost Analysis. + public partial class View + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new View(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __proxyResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal View(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.PowerShell.cs new file mode 100644 index 000000000000..d3d1d4f9ae8f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// Result of listing views. It contains a list of available views. + [System.ComponentModel.TypeConverter(typeof(ViewListResultTypeConverter))] + public partial class ViewListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ViewListResult(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.CostManagement.Models.Api20200601.IViewListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ViewListResult(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.CostManagement.Models.Api20200601.IViewListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ViewListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ViewListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ViewTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + } + /// Result of listing views. It contains a list of available views. + [System.ComponentModel.TypeConverter(typeof(ViewListResultTypeConverter))] + public partial interface IViewListResult + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.TypeConverter.cs new file mode 100644 index 000000000000..39de9efe306f --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ViewListResultTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IViewListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ViewListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ViewListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ViewListResult.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/CostManagement/generated/api/Models/Api20200601/ViewListResult.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.cs new file mode 100644 index 000000000000..5040beecc28a --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing views. It contains a list of available views. + public partial class ViewListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[] Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[] _value; + + /// The list of views. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[] Value { get => this._value; } + + /// Creates an new instance. + public ViewListResult() + { + + } + } + /// Result of listing views. It contains a list of available views. + public partial interface IViewListResult : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// The link (url) to the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The link (url) to the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// The list of views. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The list of views.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[] Value { get; } + + } + /// Result of listing views. It contains a list of available views. + public partial interface IViewListResultInternal + + { + /// The link (url) to the next page of results. + string NextLink { get; set; } + /// The list of views. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IView[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.json.cs new file mode 100644 index 000000000000..5a434f8e2906 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewListResult.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Result of listing views. It contains a list of available views. + public partial class ViewListResult + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ViewListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ViewListResult(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.CostManagement.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.CostManagement.Models.Api20200601.IView) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.View.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.PowerShell.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.PowerShell.cs new file mode 100644 index 000000000000..daaa3adae029 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.PowerShell.cs @@ -0,0 +1,175 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// The properties of the view. + [System.ComponentModel.TypeConverter(typeof(ViewPropertiesTypeConverter))] + public partial class ViewProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ViewProperties(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.CostManagement.Models.Api20200601.IViewProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ViewProperties(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.CostManagement.Models.Api20200601.IViewProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ViewProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Query = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition) content.GetValueForProperty("Query",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Query, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Accumulated = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType?) content.GetValueForProperty("Accumulated",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Accumulated, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Chart = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType?) content.GetValueForProperty("Chart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Chart, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).CreatedOn = (global::System.DateTime?) content.GetValueForProperty("CreatedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).CreatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Kpi = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[]) content.GetValueForProperty("Kpi",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Kpi, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType?) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ModifiedOn = (global::System.DateTime?) content.GetValueForProperty("ModifiedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ModifiedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Pivot = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[]) content.GetValueForProperty("Pivot",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Pivot, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryDataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("QueryDataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryDataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryType = (string) content.GetValueForProperty("QueryType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("QueryTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("QueryTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ViewProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Query = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition) content.GetValueForProperty("Query",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Query, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Accumulated = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType?) content.GetValueForProperty("Accumulated",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Accumulated, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Chart = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType?) content.GetValueForProperty("Chart",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Chart, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).CreatedOn = (global::System.DateTime?) content.GetValueForProperty("CreatedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).CreatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Kpi = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[]) content.GetValueForProperty("Kpi",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Kpi, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Metric = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType?) content.GetValueForProperty("Metric",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Metric, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ModifiedOn = (global::System.DateTime?) content.GetValueForProperty("ModifiedOn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ModifiedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Pivot = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[]) content.GetValueForProperty("Pivot",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Pivot, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryDataset = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1) content.GetValueForProperty("QueryDataset",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryDataset, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDataset1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryType = (string) content.GetValueForProperty("QueryType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimeframe = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) content.GetValueForProperty("QueryTimeframe",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimeframe, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimePeriod = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod) content.GetValueForProperty("QueryTimePeriod",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).QueryTimePeriod, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigTimePeriodTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration) content.GetValueForProperty("DatasetConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetConfiguration, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetAggregation = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) content.GetValueForProperty("DatasetAggregation",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetAggregation, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDatasetAggregationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetFilter = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) content.GetValueForProperty("DatasetFilter",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetFilter, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigFilter1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGranularity = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType?) content.GetValueForProperty("DatasetGranularity",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGranularity, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGrouping = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[]) content.GetValueForProperty("DatasetGrouping",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetGrouping, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigGroupingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetSorting = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[]) content.GetValueForProperty("DatasetSorting",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).DatasetSorting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigSortingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodFrom = (global::System.DateTime) content.GetValueForProperty("TimePeriodFrom",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodFrom, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodTo = (global::System.DateTime) content.GetValueForProperty("TimePeriodTo",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).TimePeriodTo, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ConfigurationColumn = (string[]) content.GetValueForProperty("ConfigurationColumn",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal)this).ConfigurationColumn, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + AfterDeserializePSObject(content); + } + } + /// The properties of the view. + [System.ComponentModel.TypeConverter(typeof(ViewPropertiesTypeConverter))] + public partial interface IViewProperties + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.TypeConverter.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.TypeConverter.cs new file mode 100644 index 000000000000..1cd2d9172da1 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ViewPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.Api20200601.IViewProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ViewProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ViewProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ViewProperties.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/CostManagement/generated/api/Models/Api20200601/ViewProperties.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.cs new file mode 100644 index 000000000000..fc1b59a08ec6 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.cs @@ -0,0 +1,430 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the view. + public partial class ViewProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? _accumulated; + + /// Show costs accumulated over time. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get => this._accumulated; set => this._accumulated = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? _chart; + + /// Chart type of the main view in Cost Analysis. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get => this._chart; set => this._chart = value; } + + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string[] ConfigurationColumn { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).ConfigurationColumn; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).ConfigurationColumn = value; } + + /// Backing field for property. + private global::System.DateTime? _createdOn; + + /// Date the user created this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? CreatedOn { get => this._createdOn; } + + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetAggregation; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetAggregation = value; } + + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetFilter; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetFilter = value; } + + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetGranularity; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetGranularity = value; } + + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetGrouping; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetGrouping = value; } + + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetSorting; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetSorting = value; } + + /// Backing field for property. + private string _displayName; + + /// User input name of the view. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] _kpi; + + /// List of KPIs to show in Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get => this._kpi; set => this._kpi = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? _metric; + + /// Metric to use when displaying costs. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get => this._metric; set => this._metric = value; } + + /// Internal Acessors for CreatedOn + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.CreatedOn { get => this._createdOn; set { {_createdOn = value;} } } + + /// Internal Acessors for DatasetConfiguration + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.DatasetConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).DatasetConfiguration = value; } + + /// Internal Acessors for ModifiedOn + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.ModifiedOn { get => this._modifiedOn; set { {_modifiedOn = value;} } } + + /// Internal Acessors for Query + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.Query { get => (this._query = this._query ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition()); set { {_query = value;} } } + + /// Internal Acessors for QueryDataset + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.QueryDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Dataset; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Dataset = value; } + + /// Internal Acessors for QueryTimePeriod + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.QueryTimePeriod { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriod; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriod = value; } + + /// Internal Acessors for QueryType + string Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewPropertiesInternal.QueryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Type = value; } + + /// Backing field for property. + private global::System.DateTime? _modifiedOn; + + /// Date when the user last modified this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public global::System.DateTime? ModifiedOn { get => this._modifiedOn; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] _pivot; + + /// Configuration of 3 sub-views in the Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get => this._pivot; set => this._pivot = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition _query; + + /// Query body configuration. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition Query { get => (this._query = this._query ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition()); set => this._query = value; } + + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Timeframe; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Timeframe = value; } + + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public string QueryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).Type; } + + /// Backing field for property. + private string _scope; + + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodFrom { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriodFrom; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriodFrom = value; } + + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Inlined)] + public global::System.DateTime TimePeriodTo { get => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriodTo; set => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinitionInternal)Query).TimePeriodTo = value; } + + /// Creates an new instance. + public ViewProperties() + { + + } + } + /// The properties of the view. + public partial interface IViewProperties : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Show costs accumulated over time. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Show costs accumulated over time.", + SerializedName = @"accumulated", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get; set; } + /// Chart type of the main view in Cost Analysis. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Chart type of the main view in Cost Analysis. Required.", + SerializedName = @"chart", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + string[] ConfigurationColumn { get; set; } + /// Date the user created this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Date the user created this view.", + SerializedName = @"createdOn", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreatedOn { get; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.", + SerializedName = @"aggregation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// Has filter expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Has filter expression to use in the report.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the report.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of group by expression to use in the report. Report can have up to 2 group by clauses.", + SerializedName = @"grouping", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of order by expression to use in the report.", + SerializedName = @"sorting", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// User input name of the view. Required. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"User input name of the view. Required.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// List of KPIs to show in Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of KPIs to show in Cost Analysis UI.", + SerializedName = @"kpis", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get; set; } + /// Metric to use when displaying costs. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Metric to use when displaying costs.", + SerializedName = @"metric", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get; set; } + /// Date when the user last modified this view. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Date when the user last modified this view.", + SerializedName = @"modifiedOn", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ModifiedOn { get; } + /// Configuration of 3 sub-views in the Cost Analysis UI. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Configuration of 3 sub-views in the Cost Analysis UI.", + SerializedName = @"pivots", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string QueryType { get; } + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// The start date to pull data from. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start date to pull data from.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end date to pull data to.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime TimePeriodTo { get; set; } + + } + /// The properties of the view. + public partial interface IViewPropertiesInternal + + { + /// Show costs accumulated over time. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType? Accumulated { get; set; } + /// Chart type of the main view in Cost Analysis. Required. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType? Chart { get; set; } + /// + /// Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report + /// includes all columns. + /// + string[] ConfigurationColumn { get; set; } + /// Date the user created this view. + global::System.DateTime? CreatedOn { get; set; } + /// + /// Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the + /// aggregated column. Report can have up to 2 aggregation clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetAggregation DatasetAggregation { get; set; } + /// + /// Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping + /// are provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDatasetConfiguration DatasetConfiguration { get; set; } + /// Has filter expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigFilter1 DatasetFilter { get; set; } + /// The granularity of rows in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType? DatasetGranularity { get; set; } + /// + /// Array of group by expression to use in the report. Report can have up to 2 group by clauses. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigGrouping[] DatasetGrouping { get; set; } + /// Array of order by expression to use in the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigSorting[] DatasetSorting { get; set; } + /// User input name of the view. Required. + string DisplayName { get; set; } + /// List of KPIs to show in Cost Analysis UI. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IKpiProperties[] Kpi { get; set; } + /// Metric to use when displaying costs. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType? Metric { get; set; } + /// Date when the user last modified this view. + global::System.DateTime? ModifiedOn { get; set; } + /// Configuration of 3 sub-views in the Cost Analysis UI. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IPivotProperties[] Pivot { get; set; } + /// Query body configuration. Required. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDefinition Query { get; set; } + /// Has definition for data in this report config. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigDataset1 QueryDataset { get; set; } + /// Has time period for pulling data for the report. + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IReportConfigTimePeriod QueryTimePeriod { get; set; } + /// + /// The time frame for pulling data for the report. If custom, then a specific time period must be provided. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType QueryTimeframe { get; set; } + /// + /// The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents + /// both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates. + /// + string QueryType { get; set; } + /// + /// Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount + /// scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription + /// scope. + /// + string Scope { get; set; } + /// The start date to pull data from. + global::System.DateTime TimePeriodFrom { get; set; } + /// The end date to pull data to. + global::System.DateTime TimePeriodTo { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.json.cs b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.json.cs new file mode 100644 index 000000000000..e937ecdcefc4 --- /dev/null +++ b/src/CostManagement/generated/api/Models/Api20200601/ViewProperties.json.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The properties of the view. + public partial class ViewProperties + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IViewProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new ViewProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._query ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) this._query.ToJson(null,serializationMode) : null, "query" ,container.Add ); + AddIf( null != (((object)this._accumulated)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._accumulated.ToString()) : null, "accumulated" ,container.Add ); + AddIf( null != (((object)this._chart)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._chart.ToString()) : null, "chart" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._createdOn ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._createdOn?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdOn" ,container.Add ); + } + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + if (null != this._kpi) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __x in this._kpi ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("kpis",__w); + } + AddIf( null != (((object)this._metric)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._metric.ToString()) : null, "metric" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._modifiedOn ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._modifiedOn?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "modifiedOn" ,container.Add ); + } + if (null != this._pivot) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.XNodeArray(); + foreach( var __s in this._pivot ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("pivots",__r); + } + AddIf( null != (((object)this._scope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._scope.ToString()) : null, "scope" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal ViewProperties(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_query = If( json?.PropertyT("query"), out var __jsonQuery) ? Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.ReportConfigDefinition.FromJson(__jsonQuery) : Query;} + {_accumulated = If( json?.PropertyT("accumulated"), out var __jsonAccumulated) ? (string)__jsonAccumulated : (string)Accumulated;} + {_chart = If( json?.PropertyT("chart"), out var __jsonChart) ? (string)__jsonChart : (string)Chart;} + {_createdOn = If( json?.PropertyT("createdOn"), out var __jsonCreatedOn) ? global::System.DateTime.TryParse((string)__jsonCreatedOn, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedOnValue) ? __jsonCreatedOnValue : CreatedOn : CreatedOn;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + {_kpi = If( json?.PropertyT("kpis"), out var __jsonKpis) ? If( __jsonKpis as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IKpiProperties) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.KpiProperties.FromJson(__u) )) ))() : null : Kpi;} + {_metric = If( json?.PropertyT("metric"), out var __jsonMetric) ? (string)__jsonMetric : (string)Metric;} + {_modifiedOn = If( json?.PropertyT("modifiedOn"), out var __jsonModifiedOn) ? global::System.DateTime.TryParse((string)__jsonModifiedOn, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonModifiedOnValue) ? __jsonModifiedOnValue : ModifiedOn : ModifiedOn;} + {_pivot = If( json?.PropertyT("pivots"), out var __jsonPivots) ? If( __jsonPivots as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Models.Api20200601.IPivotProperties) (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.PivotProperties.FromJson(__p) )) ))() : null : Pivot;} + {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/CostManagementIdentity.PowerShell.cs b/src/CostManagement/generated/api/Models/CostManagementIdentity.PowerShell.cs new file mode 100644 index 000000000000..4eb06fc628ef --- /dev/null +++ b/src/CostManagement/generated/api/Models/CostManagementIdentity.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(CostManagementIdentityTypeConverter))] + public partial class CostManagementIdentity + { + + /// + /// 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 CostManagementIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).AlertId = (string) content.GetValueForProperty("AlertId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).AlertId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExportName = (string) content.GetValueForProperty("ExportName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExportName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderId = (string) content.GetValueForProperty("ExternalCloudProviderId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType?) content.GetValueForProperty("ExternalCloudProviderType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ViewName = (string) content.GetValueForProperty("ViewName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ViewName, 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 CostManagementIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).AlertId = (string) content.GetValueForProperty("AlertId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).AlertId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExportName = (string) content.GetValueForProperty("ExportName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExportName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderId = (string) content.GetValueForProperty("ExternalCloudProviderId",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderType = (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType?) content.GetValueForProperty("ExternalCloudProviderType",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ExternalCloudProviderType, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ViewName = (string) content.GetValueForProperty("ViewName",((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal)this).ViewName, 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.CostManagement.Models.ICostManagementIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CostManagementIdentity(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.CostManagement.Models.ICostManagementIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CostManagementIdentity(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.CostManagement.Models.ICostManagementIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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.CostManagement.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(CostManagementIdentityTypeConverter))] + public partial interface ICostManagementIdentity + + { + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/CostManagementIdentity.TypeConverter.cs b/src/CostManagement/generated/api/Models/CostManagementIdentity.TypeConverter.cs new file mode 100644 index 000000000000..9d46cb3f5eff --- /dev/null +++ b/src/CostManagement/generated/api/Models/CostManagementIdentity.TypeConverter.cs @@ -0,0 +1,157 @@ +// 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.CostManagement.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CostManagementIdentityTypeConverter : 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 + /// parameter. + /// + /// 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(); + // we allow string conversion too. + if (type == typeof(global::System.String)) + { + return true; + } + 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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// 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.CostManagement.Models.ICostManagementIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + // support direct string to id type conversion. + if (type == typeof(global::System.String)) + { + return new CostManagementIdentity { Id = sourceValue }; + } + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CostManagementIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CostManagementIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CostManagementIdentity.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/CostManagement/generated/api/Models/CostManagementIdentity.cs b/src/CostManagement/generated/api/Models/CostManagementIdentity.cs new file mode 100644 index 000000000000..57a6915f2f32 --- /dev/null +++ b/src/CostManagement/generated/api/Models/CostManagementIdentity.cs @@ -0,0 +1,198 @@ +// 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.CostManagement.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class CostManagementIdentity : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentityInternal + { + + /// Backing field for property. + private string _alertId; + + /// Alert ID + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string AlertId { get => this._alertId; set => this._alertId = value; } + + /// Backing field for property. + private string _exportName; + + /// Export Name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ExportName { get => this._exportName; set => this._exportName = value; } + + /// Backing field for property. + private string _externalCloudProviderId; + + /// + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used + /// with dimension/query operations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ExternalCloudProviderId { get => this._externalCloudProviderId; set => this._externalCloudProviderId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType? _externalCloudProviderType; + + /// + /// The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for + /// linked account and 'externalBillingAccounts' for consolidated account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType? ExternalCloudProviderType { get => this._externalCloudProviderType; set => this._externalCloudProviderType = value; } + + /// Backing field for property. + private string _id; + + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _scope; + + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// Backing field for property. + private string _viewName; + + /// View name + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Origin(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.PropertyOrigin.Owned)] + public string ViewName { get => this._viewName; set => this._viewName = value; } + + /// Creates an new instance. + public CostManagementIdentity() + { + + } + } + public partial interface ICostManagementIdentity : + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable + { + /// Alert ID + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Alert ID", + SerializedName = @"alertId", + PossibleTypes = new [] { typeof(string) })] + string AlertId { get; set; } + /// Export Name. + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + string ExportName { get; set; } + /// + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used + /// with dimension/query operations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.", + SerializedName = @"externalCloudProviderId", + PossibleTypes = new [] { typeof(string) })] + string ExternalCloudProviderId { get; set; } + /// + /// The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for + /// linked account and 'externalBillingAccounts' for consolidated account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account.", + SerializedName = @"externalCloudProviderType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType) })] + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType? ExternalCloudProviderType { get; set; } + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource identity path", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// View name + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"View name", + SerializedName = @"viewName", + PossibleTypes = new [] { typeof(string) })] + string ViewName { get; set; } + + } + public partial interface ICostManagementIdentityInternal + + { + /// Alert ID + string AlertId { get; set; } + /// Export Name. + string ExportName { get; set; } + /// + /// This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used + /// with dimension/query operations. + /// + string ExternalCloudProviderId { get; set; } + /// + /// The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for + /// linked account and 'externalBillingAccounts' for consolidated account. + /// + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType? ExternalCloudProviderType { get; set; } + /// Resource identity path + string Id { get; set; } + /// + /// The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' + /// for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' + /// for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' + /// for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' + /// for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, + /// 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account + /// scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription + /// scope. + /// + string Scope { get; set; } + /// View name + string ViewName { get; set; } + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Models/CostManagementIdentity.json.cs b/src/CostManagement/generated/api/Models/CostManagementIdentity.json.cs new file mode 100644 index 000000000000..22a57a8365f8 --- /dev/null +++ b/src/CostManagement/generated/api/Models/CostManagementIdentity.json.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public partial class CostManagementIdentity + { + + /// + /// 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.CostManagement.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.CostManagement.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.CostManagement.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.CostManagement.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject instance to deserialize from. + internal CostManagementIdentity(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_alertId = If( json?.PropertyT("alertId"), out var __jsonAlertId) ? (string)__jsonAlertId : (string)AlertId;} + {_exportName = If( json?.PropertyT("exportName"), out var __jsonExportName) ? (string)__jsonExportName : (string)ExportName;} + {_externalCloudProviderId = If( json?.PropertyT("externalCloudProviderId"), out var __jsonExternalCloudProviderId) ? (string)__jsonExternalCloudProviderId : (string)ExternalCloudProviderId;} + {_externalCloudProviderType = If( json?.PropertyT("externalCloudProviderType"), out var __jsonExternalCloudProviderType) ? (string)__jsonExternalCloudProviderType : (string)ExternalCloudProviderType;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} + {_viewName = If( json?.PropertyT("viewName"), out var __jsonViewName) ? (string)__jsonViewName : (string)ViewName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new CostManagementIdentity(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._alertId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._alertId.ToString()) : null, "alertId" ,container.Add ); + AddIf( null != (((object)this._exportName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._exportName.ToString()) : null, "exportName" ,container.Add ); + AddIf( null != (((object)this._externalCloudProviderId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._externalCloudProviderId.ToString()) : null, "externalCloudProviderId" ,container.Add ); + AddIf( null != (((object)this._externalCloudProviderType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._externalCloudProviderType.ToString()) : null, "externalCloudProviderType" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._scope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._scope.ToString()) : null, "scope" ,container.Add ); + AddIf( null != (((object)this._viewName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonString(this._viewName.ToString()) : null, "viewName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AccumulatedType.Completer.cs b/src/CostManagement/generated/api/Support/AccumulatedType.Completer.cs new file mode 100644 index 000000000000..fc1536dacba5 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AccumulatedType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for AccumulatedType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedTypeTypeConverter))] + public partial struct AccumulatedType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "true".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("true", "true", global::System.Management.Automation.CompletionResultType.ParameterValue, "true"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "false".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("false", "false", global::System.Management.Automation.CompletionResultType.ParameterValue, "false"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AccumulatedType.TypeConverter.cs b/src/CostManagement/generated/api/Support/AccumulatedType.TypeConverter.cs new file mode 100644 index 000000000000..c00fe65b333a --- /dev/null +++ b/src/CostManagement/generated/api/Support/AccumulatedType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AccumulatedType. + public partial class AccumulatedTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AccumulatedType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AccumulatedType.cs b/src/CostManagement/generated/api/Support/AccumulatedType.cs new file mode 100644 index 000000000000..2c491ef62562 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AccumulatedType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct AccumulatedType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType False = @"false"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType True = @"true"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AccumulatedType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AccumulatedType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AccumulatedType(System.Convert.ToString(value)); + } + + /// Compares values of enum type AccumulatedType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AccumulatedType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AccumulatedType && Equals((AccumulatedType)obj); + } + + /// Returns hashCode for enum AccumulatedType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AccumulatedType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AccumulatedType + /// the value to convert to an instance of . + + public static implicit operator AccumulatedType(string value) + { + return new AccumulatedType(value); + } + + /// Implicit operator to convert AccumulatedType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e) + { + return e._value; + } + + /// Overriding != operator for enum AccumulatedType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AccumulatedType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AccumulatedType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCategory.Completer.cs b/src/CostManagement/generated/api/Support/AlertCategory.Completer.cs new file mode 100644 index 000000000000..d07515b4e0da --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCategory.Completer.cs @@ -0,0 +1,47 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for AlertCategory. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategoryTypeConverter))] + public partial struct AlertCategory : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Cost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Cost", "Cost", global::System.Management.Automation.CompletionResultType.ParameterValue, "Cost"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Usage".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Usage", "Usage", global::System.Management.Automation.CompletionResultType.ParameterValue, "Usage"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Billing".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Billing", "Billing", global::System.Management.Automation.CompletionResultType.ParameterValue, "Billing"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "System".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("System", "System", global::System.Management.Automation.CompletionResultType.ParameterValue, "System"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCategory.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertCategory.TypeConverter.cs new file mode 100644 index 000000000000..cecf2d2bb4f2 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCategory.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertCategory. + public partial class AlertCategoryTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertCategory.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCategory.cs b/src/CostManagement/generated/api/Support/AlertCategory.cs new file mode 100644 index 000000000000..7f185a5dfa21 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCategory.cs @@ -0,0 +1,101 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertCategory : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory Billing = @"Billing"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory Cost = @"Cost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory System1 = @"System"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory Usage = @"Usage"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertCategory(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertCategory + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertCategory(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertCategory + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertCategory (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertCategory && Equals((AlertCategory)obj); + } + + /// Returns hashCode for enum AlertCategory + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertCategory + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertCategory + /// the value to convert to an instance of . + + public static implicit operator AlertCategory(string value) + { + return new AlertCategory(value); + } + + /// Implicit operator to convert AlertCategory to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e) + { + return e._value; + } + + /// Overriding != operator for enum AlertCategory + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertCategory + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCategory e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCriteria.Completer.cs b/src/CostManagement/generated/api/Support/AlertCriteria.Completer.cs new file mode 100644 index 000000000000..50843b37cb59 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCriteria.Completer.cs @@ -0,0 +1,87 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for AlertCriteria. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteriaTypeConverter))] + public partial struct AlertCriteria : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CostThresholdExceeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CostThresholdExceeded", "CostThresholdExceeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "CostThresholdExceeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "UsageThresholdExceeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("UsageThresholdExceeded", "UsageThresholdExceeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "UsageThresholdExceeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CreditThresholdApproaching".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CreditThresholdApproaching", "CreditThresholdApproaching", global::System.Management.Automation.CompletionResultType.ParameterValue, "CreditThresholdApproaching"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CreditThresholdReached".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CreditThresholdReached", "CreditThresholdReached", global::System.Management.Automation.CompletionResultType.ParameterValue, "CreditThresholdReached"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "QuotaThresholdApproaching".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("QuotaThresholdApproaching", "QuotaThresholdApproaching", global::System.Management.Automation.CompletionResultType.ParameterValue, "QuotaThresholdApproaching"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "QuotaThresholdReached".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("QuotaThresholdReached", "QuotaThresholdReached", global::System.Management.Automation.CompletionResultType.ParameterValue, "QuotaThresholdReached"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "MultiCurrency".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("MultiCurrency", "MultiCurrency", global::System.Management.Automation.CompletionResultType.ParameterValue, "MultiCurrency"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ForecastCostThresholdExceeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ForecastCostThresholdExceeded", "ForecastCostThresholdExceeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "ForecastCostThresholdExceeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ForecastUsageThresholdExceeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ForecastUsageThresholdExceeded", "ForecastUsageThresholdExceeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "ForecastUsageThresholdExceeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "InvoiceDueDateApproaching".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("InvoiceDueDateApproaching", "InvoiceDueDateApproaching", global::System.Management.Automation.CompletionResultType.ParameterValue, "InvoiceDueDateApproaching"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "InvoiceDueDateReached".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("InvoiceDueDateReached", "InvoiceDueDateReached", global::System.Management.Automation.CompletionResultType.ParameterValue, "InvoiceDueDateReached"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CrossCloudNewDataAvailable".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CrossCloudNewDataAvailable", "CrossCloudNewDataAvailable", global::System.Management.Automation.CompletionResultType.ParameterValue, "CrossCloudNewDataAvailable"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CrossCloudCollectionError".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CrossCloudCollectionError", "CrossCloudCollectionError", global::System.Management.Automation.CompletionResultType.ParameterValue, "CrossCloudCollectionError"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "GeneralThresholdError".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("GeneralThresholdError", "GeneralThresholdError", global::System.Management.Automation.CompletionResultType.ParameterValue, "GeneralThresholdError"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCriteria.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertCriteria.TypeConverter.cs new file mode 100644 index 000000000000..28503407c6fe --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCriteria.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertCriteria. + public partial class AlertCriteriaTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertCriteria.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertCriteria.cs b/src/CostManagement/generated/api/Support/AlertCriteria.cs new file mode 100644 index 000000000000..e4f2886095a9 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertCriteria.cs @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + public partial struct AlertCriteria : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria CostThresholdExceeded = @"CostThresholdExceeded"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria CreditThresholdApproaching = @"CreditThresholdApproaching"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria CreditThresholdReached = @"CreditThresholdReached"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria CrossCloudCollectionError = @"CrossCloudCollectionError"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria CrossCloudNewDataAvailable = @"CrossCloudNewDataAvailable"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria ForecastCostThresholdExceeded = @"ForecastCostThresholdExceeded"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria ForecastUsageThresholdExceeded = @"ForecastUsageThresholdExceeded"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria GeneralThresholdError = @"GeneralThresholdError"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria InvoiceDueDateApproaching = @"InvoiceDueDateApproaching"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria InvoiceDueDateReached = @"InvoiceDueDateReached"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria MultiCurrency = @"MultiCurrency"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria QuotaThresholdApproaching = @"QuotaThresholdApproaching"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria QuotaThresholdReached = @"QuotaThresholdReached"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria UsageThresholdExceeded = @"UsageThresholdExceeded"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertCriteria(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertCriteria + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertCriteria(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertCriteria + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertCriteria (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertCriteria && Equals((AlertCriteria)obj); + } + + /// Returns hashCode for enum AlertCriteria + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertCriteria + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertCriteria + /// the value to convert to an instance of . + + public static implicit operator AlertCriteria(string value) + { + return new AlertCriteria(value); + } + + /// Implicit operator to convert AlertCriteria to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e) + { + return e._value; + } + + /// Overriding != operator for enum AlertCriteria + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertCriteria + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertCriteria e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertOperator.Completer.cs b/src/CostManagement/generated/api/Support/AlertOperator.Completer.cs new file mode 100644 index 000000000000..9e4ea2c7a410 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertOperator.Completer.cs @@ -0,0 +1,55 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for AlertOperator. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperatorTypeConverter))] + public partial struct AlertOperator : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("None", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "EqualTo".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("EqualTo", "EqualTo", global::System.Management.Automation.CompletionResultType.ParameterValue, "EqualTo"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "GreaterThan".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("GreaterThan", "GreaterThan", global::System.Management.Automation.CompletionResultType.ParameterValue, "GreaterThan"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "GreaterThanOrEqualTo".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("GreaterThanOrEqualTo", "GreaterThanOrEqualTo", global::System.Management.Automation.CompletionResultType.ParameterValue, "GreaterThanOrEqualTo"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "LessThan".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("LessThan", "LessThan", global::System.Management.Automation.CompletionResultType.ParameterValue, "LessThan"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "LessThanOrEqualTo".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("LessThanOrEqualTo", "LessThanOrEqualTo", global::System.Management.Automation.CompletionResultType.ParameterValue, "LessThanOrEqualTo"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertOperator.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertOperator.TypeConverter.cs new file mode 100644 index 000000000000..c6cd4d2b983a --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertOperator.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertOperator. + public partial class AlertOperatorTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertOperator.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertOperator.cs b/src/CostManagement/generated/api/Support/AlertOperator.cs new file mode 100644 index 000000000000..567ba99bbc87 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertOperator.cs @@ -0,0 +1,105 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertOperator : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator EqualTo = @"EqualTo"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator GreaterThan = @"GreaterThan"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator GreaterThanOrEqualTo = @"GreaterThanOrEqualTo"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator LessThan = @"LessThan"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator LessThanOrEqualTo = @"LessThanOrEqualTo"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator None = @"None"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertOperator(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertOperator + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertOperator(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertOperator + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertOperator (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertOperator && Equals((AlertOperator)obj); + } + + /// Returns hashCode for enum AlertOperator + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertOperator + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertOperator + /// the value to convert to an instance of . + + public static implicit operator AlertOperator(string value) + { + return new AlertOperator(value); + } + + /// Implicit operator to convert AlertOperator to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e) + { + return e._value; + } + + /// Overriding != operator for enum AlertOperator + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertOperator + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertOperator e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertSource.Completer.cs b/src/CostManagement/generated/api/Support/AlertSource.Completer.cs new file mode 100644 index 000000000000..7532271e89d0 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertSource.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for AlertSource. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSourceTypeConverter))] + public partial struct AlertSource : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Preset".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Preset", "Preset", global::System.Management.Automation.CompletionResultType.ParameterValue, "Preset"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "User".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("User", "User", global::System.Management.Automation.CompletionResultType.ParameterValue, "User"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertSource.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertSource.TypeConverter.cs new file mode 100644 index 000000000000..3be048ab6919 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertSource.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertSource. + public partial class AlertSourceTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertSource.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertSource.cs b/src/CostManagement/generated/api/Support/AlertSource.cs new file mode 100644 index 000000000000..9cd1585ad294 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertSource.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertSource : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource Preset = @"Preset"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource User = @"User"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertSource(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertSource + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertSource(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertSource + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertSource (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertSource && Equals((AlertSource)obj); + } + + /// Returns hashCode for enum AlertSource + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertSource + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertSource + /// the value to convert to an instance of . + + public static implicit operator AlertSource(string value) + { + return new AlertSource(value); + } + + /// Implicit operator to convert AlertSource to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e) + { + return e._value; + } + + /// Overriding != operator for enum AlertSource + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertSource + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertSource e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertStatus.Completer.cs b/src/CostManagement/generated/api/Support/AlertStatus.Completer.cs new file mode 100644 index 000000000000..0947d5bfc3ff --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertStatus.Completer.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for AlertStatus. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatusTypeConverter))] + public partial struct AlertStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("None", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Active".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Active", "Active", global::System.Management.Automation.CompletionResultType.ParameterValue, "Active"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Overridden".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Overridden", "Overridden", global::System.Management.Automation.CompletionResultType.ParameterValue, "Overridden"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Resolved".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Resolved", "Resolved", global::System.Management.Automation.CompletionResultType.ParameterValue, "Resolved"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Dismissed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Dismissed", "Dismissed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Dismissed"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertStatus.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertStatus.TypeConverter.cs new file mode 100644 index 000000000000..044f9c978605 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertStatus. + public partial class AlertStatusTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertStatus.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertStatus.cs b/src/CostManagement/generated/api/Support/AlertStatus.cs new file mode 100644 index 000000000000..f8c8638724b9 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertStatus.cs @@ -0,0 +1,103 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertStatus : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus Active = @"Active"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus Dismissed = @"Dismissed"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus None = @"None"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus Overridden = @"Overridden"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus Resolved = @"Resolved"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertStatus(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertStatus && Equals((AlertStatus)obj); + } + + /// Returns hashCode for enum AlertStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertStatus + /// the value to convert to an instance of . + + public static implicit operator AlertStatus(string value) + { + return new AlertStatus(value); + } + + /// Implicit operator to convert AlertStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e) + { + return e._value; + } + + /// Overriding != operator for enum AlertStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertTimeGrainType.Completer.cs b/src/CostManagement/generated/api/Support/AlertTimeGrainType.Completer.cs new file mode 100644 index 000000000000..006ff6083ed2 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertTimeGrainType.Completer.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for AlertTimeGrainType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainTypeTypeConverter))] + public partial struct AlertTimeGrainType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("None", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Monthly".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Monthly", "Monthly", global::System.Management.Automation.CompletionResultType.ParameterValue, "Monthly"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Quarterly".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Quarterly", "Quarterly", global::System.Management.Automation.CompletionResultType.ParameterValue, "Quarterly"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Annually".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Annually", "Annually", global::System.Management.Automation.CompletionResultType.ParameterValue, "Annually"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BillingMonth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BillingMonth", "BillingMonth", global::System.Management.Automation.CompletionResultType.ParameterValue, "BillingMonth"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BillingQuarter".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BillingQuarter", "BillingQuarter", global::System.Management.Automation.CompletionResultType.ParameterValue, "BillingQuarter"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BillingAnnual".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BillingAnnual", "BillingAnnual", global::System.Management.Automation.CompletionResultType.ParameterValue, "BillingAnnual"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertTimeGrainType.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertTimeGrainType.TypeConverter.cs new file mode 100644 index 000000000000..531d1977d313 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertTimeGrainType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertTimeGrainType. + public partial class AlertTimeGrainTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertTimeGrainType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertTimeGrainType.cs b/src/CostManagement/generated/api/Support/AlertTimeGrainType.cs new file mode 100644 index 000000000000..374aef6379b8 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertTimeGrainType.cs @@ -0,0 +1,107 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertTimeGrainType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType Annually = @"Annually"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType BillingAnnual = @"BillingAnnual"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType BillingMonth = @"BillingMonth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType BillingQuarter = @"BillingQuarter"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType Monthly = @"Monthly"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType None = @"None"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType Quarterly = @"Quarterly"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertTimeGrainType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertTimeGrainType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertTimeGrainType(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertTimeGrainType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertTimeGrainType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertTimeGrainType && Equals((AlertTimeGrainType)obj); + } + + /// Returns hashCode for enum AlertTimeGrainType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertTimeGrainType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertTimeGrainType + /// the value to convert to an instance of . + + public static implicit operator AlertTimeGrainType(string value) + { + return new AlertTimeGrainType(value); + } + + /// Implicit operator to convert AlertTimeGrainType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e) + { + return e._value; + } + + /// Overriding != operator for enum AlertTimeGrainType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertTimeGrainType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTimeGrainType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertType.Completer.cs b/src/CostManagement/generated/api/Support/AlertType.Completer.cs new file mode 100644 index 000000000000..248980c31a50 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertType.Completer.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for AlertType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertTypeTypeConverter))] + public partial struct AlertType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Budget".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Budget", "Budget", global::System.Management.Automation.CompletionResultType.ParameterValue, "Budget"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Invoice".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Invoice", "Invoice", global::System.Management.Automation.CompletionResultType.ParameterValue, "Invoice"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Credit".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Credit", "Credit", global::System.Management.Automation.CompletionResultType.ParameterValue, "Credit"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Quota".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Quota", "Quota", global::System.Management.Automation.CompletionResultType.ParameterValue, "Quota"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "General".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("General", "General", global::System.Management.Automation.CompletionResultType.ParameterValue, "General"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "xCloud".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("xCloud", "xCloud", global::System.Management.Automation.CompletionResultType.ParameterValue, "xCloud"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BudgetForecast".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BudgetForecast", "BudgetForecast", global::System.Management.Automation.CompletionResultType.ParameterValue, "BudgetForecast"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertType.TypeConverter.cs b/src/CostManagement/generated/api/Support/AlertType.TypeConverter.cs new file mode 100644 index 000000000000..7270ad47976e --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for AlertType. + public partial class AlertTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AlertType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/AlertType.cs b/src/CostManagement/generated/api/Support/AlertType.cs new file mode 100644 index 000000000000..e52deecc0912 --- /dev/null +++ b/src/CostManagement/generated/api/Support/AlertType.cs @@ -0,0 +1,107 @@ +// 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.CostManagement.Support +{ + + public partial struct AlertType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType Budget = @"Budget"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType BudgetForecast = @"BudgetForecast"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType Credit = @"Credit"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType General = @"General"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType Invoice = @"Invoice"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType Quota = @"Quota"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType XCloud = @"xCloud"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private AlertType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertType(System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AlertType && Equals((AlertType)obj); + } + + /// Returns hashCode for enum AlertType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertType + /// the value to convert to an instance of . + + public static implicit operator AlertType(string value) + { + return new AlertType(value); + } + + /// Implicit operator to convert AlertType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e) + { + return e._value; + } + + /// Overriding != operator for enum AlertType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.AlertType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ChartType.Completer.cs b/src/CostManagement/generated/api/Support/ChartType.Completer.cs new file mode 100644 index 000000000000..be409c0ed224 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ChartType.Completer.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ChartType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartTypeTypeConverter))] + public partial struct ChartType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Area".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Area", "Area", global::System.Management.Automation.CompletionResultType.ParameterValue, "Area"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Line".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Line", "Line", global::System.Management.Automation.CompletionResultType.ParameterValue, "Line"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "StackedColumn".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("StackedColumn", "StackedColumn", global::System.Management.Automation.CompletionResultType.ParameterValue, "StackedColumn"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "GroupedColumn".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("GroupedColumn", "GroupedColumn", global::System.Management.Automation.CompletionResultType.ParameterValue, "GroupedColumn"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Table".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Table", "Table", global::System.Management.Automation.CompletionResultType.ParameterValue, "Table"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ChartType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ChartType.TypeConverter.cs new file mode 100644 index 000000000000..84f5e73bb407 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ChartType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ChartType. + public partial class ChartTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ChartType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ChartType.cs b/src/CostManagement/generated/api/Support/ChartType.cs new file mode 100644 index 000000000000..cdccbd359de0 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ChartType.cs @@ -0,0 +1,103 @@ +// 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.CostManagement.Support +{ + + public partial struct ChartType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType Area = @"Area"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType GroupedColumn = @"GroupedColumn"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType Line = @"Line"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType StackedColumn = @"StackedColumn"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType Table = @"Table"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the + /// the value to create an instance for. + private ChartType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to ChartType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ChartType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ChartType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ChartType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ChartType && Equals((ChartType)obj); + } + + /// Returns hashCode for enum ChartType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ChartType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ChartType + /// the value to convert to an instance of . + + public static implicit operator ChartType(string value) + { + return new ChartType(value); + } + + /// Implicit operator to convert ChartType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e) + { + return e._value; + } + + /// Overriding != operator for enum ChartType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ChartType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ChartType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionStatus.Completer.cs b/src/CostManagement/generated/api/Support/ExecutionStatus.Completer.cs new file mode 100644 index 000000000000..f4b303f7f963 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionStatus.Completer.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ExecutionStatus. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatusTypeConverter))] + public partial struct ExecutionStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Queued".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Queued", "Queued", global::System.Management.Automation.CompletionResultType.ParameterValue, "Queued"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "InProgress".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("InProgress", "InProgress", global::System.Management.Automation.CompletionResultType.ParameterValue, "InProgress"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Completed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Completed", "Completed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Completed"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Failed", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Timeout".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Timeout", "Timeout", global::System.Management.Automation.CompletionResultType.ParameterValue, "Timeout"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NewDataNotAvailable".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("NewDataNotAvailable", "NewDataNotAvailable", global::System.Management.Automation.CompletionResultType.ParameterValue, "NewDataNotAvailable"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DataNotAvailable".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("DataNotAvailable", "DataNotAvailable", global::System.Management.Automation.CompletionResultType.ParameterValue, "DataNotAvailable"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionStatus.TypeConverter.cs b/src/CostManagement/generated/api/Support/ExecutionStatus.TypeConverter.cs new file mode 100644 index 000000000000..f2e78de4a424 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ExecutionStatus. + public partial class ExecutionStatusTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ExecutionStatus.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionStatus.cs b/src/CostManagement/generated/api/Support/ExecutionStatus.cs new file mode 100644 index 000000000000..cd5cad14c8bc --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionStatus.cs @@ -0,0 +1,107 @@ +// 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.CostManagement.Support +{ + + public partial struct ExecutionStatus : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus Completed = @"Completed"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus DataNotAvailable = @"DataNotAvailable"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus Failed = @"Failed"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus InProgress = @"InProgress"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus NewDataNotAvailable = @"NewDataNotAvailable"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus Queued = @"Queued"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus Timeout = @"Timeout"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ExecutionStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ExecutionStatus(System.Convert.ToString(value)); + } + + /// Compares values of enum type ExecutionStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ExecutionStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ExecutionStatus && Equals((ExecutionStatus)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ExecutionStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ExecutionStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ExecutionStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ExecutionStatus + /// the value to convert to an instance of . + + public static implicit operator ExecutionStatus(string value) + { + return new ExecutionStatus(value); + } + + /// Implicit operator to convert ExecutionStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e) + { + return e._value; + } + + /// Overriding != operator for enum ExecutionStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ExecutionStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionType.Completer.cs b/src/CostManagement/generated/api/Support/ExecutionType.Completer.cs new file mode 100644 index 000000000000..34d76d39e952 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ExecutionType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionTypeTypeConverter))] + public partial struct ExecutionType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "OnDemand".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("OnDemand", "OnDemand", global::System.Management.Automation.CompletionResultType.ParameterValue, "OnDemand"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Scheduled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Scheduled", "Scheduled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Scheduled"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ExecutionType.TypeConverter.cs new file mode 100644 index 000000000000..908957dfc135 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ExecutionType. + public partial class ExecutionTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ExecutionType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExecutionType.cs b/src/CostManagement/generated/api/Support/ExecutionType.cs new file mode 100644 index 000000000000..2e277829098c --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExecutionType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct ExecutionType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType OnDemand = @"OnDemand"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType Scheduled = @"Scheduled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ExecutionType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ExecutionType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ExecutionType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ExecutionType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ExecutionType && Equals((ExecutionType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ExecutionType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ExecutionType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ExecutionType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ExecutionType + /// the value to convert to an instance of . + + public static implicit operator ExecutionType(string value) + { + return new ExecutionType(value); + } + + /// Implicit operator to convert ExecutionType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e) + { + return e._value; + } + + /// Overriding != operator for enum ExecutionType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ExecutionType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExecutionType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExportType.Completer.cs b/src/CostManagement/generated/api/Support/ExportType.Completer.cs new file mode 100644 index 000000000000..29a514520eda --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExportType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ExportType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportTypeTypeConverter))] + public partial struct ExportType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Usage".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Usage", "Usage", global::System.Management.Automation.CompletionResultType.ParameterValue, "Usage"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ActualCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ActualCost", "ActualCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "ActualCost"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AmortizedCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("AmortizedCost", "AmortizedCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "AmortizedCost"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExportType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ExportType.TypeConverter.cs new file mode 100644 index 000000000000..c11b0fda422d --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExportType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ExportType. + public partial class ExportTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ExportType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExportType.cs b/src/CostManagement/generated/api/Support/ExportType.cs new file mode 100644 index 000000000000..19c9e1d097dd --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExportType.cs @@ -0,0 +1,99 @@ +// 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.CostManagement.Support +{ + + public partial struct ExportType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType ActualCost = @"ActualCost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType AmortizedCost = @"AmortizedCost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType Usage = @"Usage"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ExportType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ExportType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ExportType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ExportType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ExportType && Equals((ExportType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ExportType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ExportType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ExportType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ExportType + /// the value to convert to an instance of . + + public static implicit operator ExportType(string value) + { + return new ExportType(value); + } + + /// Implicit operator to convert ExportType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e) + { + return e._value; + } + + /// Overriding != operator for enum ExportType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ExportType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExternalCloudProviderType.Completer.cs b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.Completer.cs new file mode 100644 index 000000000000..fb64f7224213 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ExternalCloudProviderType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderTypeTypeConverter))] + public partial struct ExternalCloudProviderType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "externalSubscriptions".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("externalSubscriptions", "externalSubscriptions", global::System.Management.Automation.CompletionResultType.ParameterValue, "externalSubscriptions"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "externalBillingAccounts".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("externalBillingAccounts", "externalBillingAccounts", global::System.Management.Automation.CompletionResultType.ParameterValue, "externalBillingAccounts"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExternalCloudProviderType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.TypeConverter.cs new file mode 100644 index 000000000000..4f2a6615c13d --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ExternalCloudProviderType. + public partial class ExternalCloudProviderTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ExternalCloudProviderType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ExternalCloudProviderType.cs b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.cs new file mode 100644 index 000000000000..10e80f142590 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ExternalCloudProviderType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct ExternalCloudProviderType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType ExternalBillingAccounts = @"externalBillingAccounts"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType ExternalSubscriptions = @"externalSubscriptions"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ExternalCloudProviderType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ExternalCloudProviderType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ExternalCloudProviderType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ExternalCloudProviderType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ExternalCloudProviderType && Equals((ExternalCloudProviderType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ExternalCloudProviderType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ExternalCloudProviderType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ExternalCloudProviderType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ExternalCloudProviderType + /// the value to convert to an instance of . + + public static implicit operator ExternalCloudProviderType(string value) + { + return new ExternalCloudProviderType(value); + } + + /// Implicit operator to convert ExternalCloudProviderType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e) + { + return e._value; + } + + /// Overriding != operator for enum ExternalCloudProviderType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ExternalCloudProviderType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastTimeframeType.Completer.cs b/src/CostManagement/generated/api/Support/ForecastTimeframeType.Completer.cs new file mode 100644 index 000000000000..f6835ababf48 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastTimeframeType.Completer.cs @@ -0,0 +1,55 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for ForecastTimeframeType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeTypeTypeConverter))] + public partial struct ForecastTimeframeType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "MonthToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("MonthToDate", "MonthToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "MonthToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BillingMonthToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BillingMonthToDate", "BillingMonthToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "BillingMonthToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TheLastMonth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("TheLastMonth", "TheLastMonth", global::System.Management.Automation.CompletionResultType.ParameterValue, "TheLastMonth"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TheLastBillingMonth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("TheLastBillingMonth", "TheLastBillingMonth", global::System.Management.Automation.CompletionResultType.ParameterValue, "TheLastBillingMonth"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "WeekToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("WeekToDate", "WeekToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "WeekToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Custom".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Custom", "Custom", global::System.Management.Automation.CompletionResultType.ParameterValue, "Custom"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastTimeframeType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ForecastTimeframeType.TypeConverter.cs new file mode 100644 index 000000000000..76eb27c1f11a --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastTimeframeType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ForecastTimeframeType. + public partial class ForecastTimeframeTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ForecastTimeframeType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastTimeframeType.cs b/src/CostManagement/generated/api/Support/ForecastTimeframeType.cs new file mode 100644 index 000000000000..aa388099d6b1 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastTimeframeType.cs @@ -0,0 +1,105 @@ +// 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.CostManagement.Support +{ + + public partial struct ForecastTimeframeType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType BillingMonthToDate = @"BillingMonthToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType Custom = @"Custom"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType MonthToDate = @"MonthToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType TheLastBillingMonth = @"TheLastBillingMonth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType TheLastMonth = @"TheLastMonth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType WeekToDate = @"WeekToDate"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ForecastTimeframeType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ForecastTimeframeType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ForecastTimeframeType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ForecastTimeframeType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ForecastTimeframeType && Equals((ForecastTimeframeType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ForecastTimeframeType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ForecastTimeframeType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ForecastTimeframeType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ForecastTimeframeType + /// the value to convert to an instance of . + + public static implicit operator ForecastTimeframeType(string value) + { + return new ForecastTimeframeType(value); + } + + /// Implicit operator to convert ForecastTimeframeType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e) + { + return e._value; + } + + /// Overriding != operator for enum ForecastTimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ForecastTimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTimeframeType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastType.Completer.cs b/src/CostManagement/generated/api/Support/ForecastType.Completer.cs new file mode 100644 index 000000000000..86a1aedcd691 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ForecastType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastTypeTypeConverter))] + public partial struct ForecastType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Usage".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Usage", "Usage", global::System.Management.Automation.CompletionResultType.ParameterValue, "Usage"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ActualCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ActualCost", "ActualCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "ActualCost"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AmortizedCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("AmortizedCost", "AmortizedCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "AmortizedCost"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ForecastType.TypeConverter.cs new file mode 100644 index 000000000000..2e7c9e4cfb52 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ForecastType. + public partial class ForecastTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ForecastType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ForecastType.cs b/src/CostManagement/generated/api/Support/ForecastType.cs new file mode 100644 index 000000000000..b1b7b26cdb99 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ForecastType.cs @@ -0,0 +1,99 @@ +// 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.CostManagement.Support +{ + + public partial struct ForecastType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType ActualCost = @"ActualCost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType AmortizedCost = @"AmortizedCost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType Usage = @"Usage"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ForecastType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ForecastType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ForecastType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ForecastType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ForecastType && Equals((ForecastType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ForecastType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum ForecastType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ForecastType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ForecastType + /// the value to convert to an instance of . + + public static implicit operator ForecastType(string value) + { + return new ForecastType(value); + } + + /// Implicit operator to convert ForecastType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e) + { + return e._value; + } + + /// Overriding != operator for enum ForecastType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ForecastType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ForecastType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/FormatType.Completer.cs b/src/CostManagement/generated/api/Support/FormatType.Completer.cs new file mode 100644 index 000000000000..53b9a2e0f626 --- /dev/null +++ b/src/CostManagement/generated/api/Support/FormatType.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for FormatType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatTypeTypeConverter))] + public partial struct FormatType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Csv".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Csv", "Csv", global::System.Management.Automation.CompletionResultType.ParameterValue, "Csv"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/FormatType.TypeConverter.cs b/src/CostManagement/generated/api/Support/FormatType.TypeConverter.cs new file mode 100644 index 000000000000..0a49285e4219 --- /dev/null +++ b/src/CostManagement/generated/api/Support/FormatType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for FormatType. + public partial class FormatTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => FormatType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/FormatType.cs b/src/CostManagement/generated/api/Support/FormatType.cs new file mode 100644 index 000000000000..9574392ef51d --- /dev/null +++ b/src/CostManagement/generated/api/Support/FormatType.cs @@ -0,0 +1,95 @@ +// 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.CostManagement.Support +{ + + public partial struct FormatType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType Csv = @"Csv"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to FormatType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new FormatType(System.Convert.ToString(value)); + } + + /// Compares values of enum type FormatType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type FormatType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is FormatType && Equals((FormatType)obj); + } + + /// Creates an instance of the + /// the value to create an instance for. + private FormatType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns hashCode for enum FormatType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for FormatType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to FormatType + /// the value to convert to an instance of . + + public static implicit operator FormatType(string value) + { + return new FormatType(value); + } + + /// Implicit operator to convert FormatType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e) + { + return e._value; + } + + /// Overriding != operator for enum FormatType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum FormatType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/GranularityType.Completer.cs b/src/CostManagement/generated/api/Support/GranularityType.Completer.cs new file mode 100644 index 000000000000..cf5065b3bd63 --- /dev/null +++ b/src/CostManagement/generated/api/Support/GranularityType.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for GranularityType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityTypeTypeConverter))] + public partial struct GranularityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Daily".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Daily", "Daily", global::System.Management.Automation.CompletionResultType.ParameterValue, "Daily"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/GranularityType.TypeConverter.cs b/src/CostManagement/generated/api/Support/GranularityType.TypeConverter.cs new file mode 100644 index 000000000000..ca85966b8941 --- /dev/null +++ b/src/CostManagement/generated/api/Support/GranularityType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for GranularityType. + public partial class GranularityTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => GranularityType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/GranularityType.cs b/src/CostManagement/generated/api/Support/GranularityType.cs new file mode 100644 index 000000000000..b56bfd5b8872 --- /dev/null +++ b/src/CostManagement/generated/api/Support/GranularityType.cs @@ -0,0 +1,95 @@ +// 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.CostManagement.Support +{ + + public partial struct GranularityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType Daily = @"Daily"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to GranularityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new GranularityType(System.Convert.ToString(value)); + } + + /// Compares values of enum type GranularityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type GranularityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is GranularityType && Equals((GranularityType)obj); + } + + /// Returns hashCode for enum GranularityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private GranularityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for GranularityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to GranularityType + /// the value to convert to an instance of . + + public static implicit operator GranularityType(string value) + { + return new GranularityType(value); + } + + /// Implicit operator to convert GranularityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e) + { + return e._value; + } + + /// Overriding != operator for enum GranularityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum GranularityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/KpiType.Completer.cs b/src/CostManagement/generated/api/Support/KpiType.Completer.cs new file mode 100644 index 000000000000..ebe48e0ef737 --- /dev/null +++ b/src/CostManagement/generated/api/Support/KpiType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for KpiType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiTypeTypeConverter))] + public partial struct KpiType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Forecast".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Forecast", "Forecast", global::System.Management.Automation.CompletionResultType.ParameterValue, "Forecast"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Budget".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Budget", "Budget", global::System.Management.Automation.CompletionResultType.ParameterValue, "Budget"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/KpiType.TypeConverter.cs b/src/CostManagement/generated/api/Support/KpiType.TypeConverter.cs new file mode 100644 index 000000000000..0a83e8b4c610 --- /dev/null +++ b/src/CostManagement/generated/api/Support/KpiType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for KpiType. + public partial class KpiTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => KpiType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/KpiType.cs b/src/CostManagement/generated/api/Support/KpiType.cs new file mode 100644 index 000000000000..812567cdc81e --- /dev/null +++ b/src/CostManagement/generated/api/Support/KpiType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct KpiType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType Budget = @"Budget"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType Forecast = @"Forecast"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to KpiType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new KpiType(System.Convert.ToString(value)); + } + + /// Compares values of enum type KpiType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type KpiType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is KpiType && Equals((KpiType)obj); + } + + /// Returns hashCode for enum KpiType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private KpiType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for KpiType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to KpiType + /// the value to convert to an instance of . + + public static implicit operator KpiType(string value) + { + return new KpiType(value); + } + + /// Implicit operator to convert KpiType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e) + { + return e._value; + } + + /// Overriding != operator for enum KpiType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum KpiType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.KpiType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/MetricType.Completer.cs b/src/CostManagement/generated/api/Support/MetricType.Completer.cs new file mode 100644 index 000000000000..ac9be1edad76 --- /dev/null +++ b/src/CostManagement/generated/api/Support/MetricType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for MetricType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricTypeTypeConverter))] + public partial struct MetricType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ActualCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ActualCost", "ActualCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "ActualCost"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AmortizedCost".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("AmortizedCost", "AmortizedCost", global::System.Management.Automation.CompletionResultType.ParameterValue, "AmortizedCost"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AHUB".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("AHUB", "AHUB", global::System.Management.Automation.CompletionResultType.ParameterValue, "AHUB"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/MetricType.TypeConverter.cs b/src/CostManagement/generated/api/Support/MetricType.TypeConverter.cs new file mode 100644 index 000000000000..ea943612ccd5 --- /dev/null +++ b/src/CostManagement/generated/api/Support/MetricType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for MetricType. + public partial class MetricTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => MetricType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/MetricType.cs b/src/CostManagement/generated/api/Support/MetricType.cs new file mode 100644 index 000000000000..cad12aea408f --- /dev/null +++ b/src/CostManagement/generated/api/Support/MetricType.cs @@ -0,0 +1,99 @@ +// 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.CostManagement.Support +{ + + public partial struct MetricType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType ActualCost = @"ActualCost"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType Ahub = @"AHUB"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType AmortizedCost = @"AmortizedCost"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to MetricType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new MetricType(System.Convert.ToString(value)); + } + + /// Compares values of enum type MetricType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type MetricType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is MetricType && Equals((MetricType)obj); + } + + /// Returns hashCode for enum MetricType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private MetricType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for MetricType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to MetricType + /// the value to convert to an instance of . + + public static implicit operator MetricType(string value) + { + return new MetricType(value); + } + + /// Implicit operator to convert MetricType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e) + { + return e._value; + } + + /// Overriding != operator for enum MetricType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum MetricType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.MetricType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/OperatorType.Completer.cs b/src/CostManagement/generated/api/Support/OperatorType.Completer.cs new file mode 100644 index 000000000000..1091c2e3030b --- /dev/null +++ b/src/CostManagement/generated/api/Support/OperatorType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for OperatorType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorTypeTypeConverter))] + public partial struct OperatorType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "In".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("In", "In", global::System.Management.Automation.CompletionResultType.ParameterValue, "In"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Contains".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Contains", "Contains", global::System.Management.Automation.CompletionResultType.ParameterValue, "Contains"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/OperatorType.TypeConverter.cs b/src/CostManagement/generated/api/Support/OperatorType.TypeConverter.cs new file mode 100644 index 000000000000..1db65166a2c9 --- /dev/null +++ b/src/CostManagement/generated/api/Support/OperatorType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for OperatorType. + public partial class OperatorTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => OperatorType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/OperatorType.cs b/src/CostManagement/generated/api/Support/OperatorType.cs new file mode 100644 index 000000000000..61523feb9208 --- /dev/null +++ b/src/CostManagement/generated/api/Support/OperatorType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct OperatorType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType Contains = @"Contains"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType In = @"In"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to OperatorType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new OperatorType(System.Convert.ToString(value)); + } + + /// Compares values of enum type OperatorType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type OperatorType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is OperatorType && Equals((OperatorType)obj); + } + + /// Returns hashCode for enum OperatorType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private OperatorType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for OperatorType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to OperatorType + /// the value to convert to an instance of . + + public static implicit operator OperatorType(string value) + { + return new OperatorType(value); + } + + /// Implicit operator to convert OperatorType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e) + { + return e._value; + } + + /// Overriding != operator for enum OperatorType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum OperatorType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/PivotType.Completer.cs b/src/CostManagement/generated/api/Support/PivotType.Completer.cs new file mode 100644 index 000000000000..bd264960e480 --- /dev/null +++ b/src/CostManagement/generated/api/Support/PivotType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for PivotType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotTypeTypeConverter))] + public partial struct PivotType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Dimension".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Dimension", "Dimension", global::System.Management.Automation.CompletionResultType.ParameterValue, "Dimension"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TagKey".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("TagKey", "TagKey", global::System.Management.Automation.CompletionResultType.ParameterValue, "TagKey"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/PivotType.TypeConverter.cs b/src/CostManagement/generated/api/Support/PivotType.TypeConverter.cs new file mode 100644 index 000000000000..a3399ba4e89f --- /dev/null +++ b/src/CostManagement/generated/api/Support/PivotType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for PivotType. + public partial class PivotTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => PivotType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/PivotType.cs b/src/CostManagement/generated/api/Support/PivotType.cs new file mode 100644 index 000000000000..ed1741363ecf --- /dev/null +++ b/src/CostManagement/generated/api/Support/PivotType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct PivotType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType Dimension = @"Dimension"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType TagKey = @"TagKey"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to PivotType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new PivotType(System.Convert.ToString(value)); + } + + /// Compares values of enum type PivotType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type PivotType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is PivotType && Equals((PivotType)obj); + } + + /// Returns hashCode for enum PivotType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private PivotType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for PivotType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to PivotType + /// the value to convert to an instance of . + + public static implicit operator PivotType(string value) + { + return new PivotType(value); + } + + /// Implicit operator to convert PivotType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e) + { + return e._value; + } + + /// Overriding != operator for enum PivotType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum PivotType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.PivotType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/QueryColumnType.Completer.cs b/src/CostManagement/generated/api/Support/QueryColumnType.Completer.cs new file mode 100644 index 000000000000..1d0d6d8e3017 --- /dev/null +++ b/src/CostManagement/generated/api/Support/QueryColumnType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for QueryColumnType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnTypeTypeConverter))] + public partial struct QueryColumnType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Tag".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Tag", "Tag", global::System.Management.Automation.CompletionResultType.ParameterValue, "Tag"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Dimension".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Dimension", "Dimension", global::System.Management.Automation.CompletionResultType.ParameterValue, "Dimension"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/QueryColumnType.TypeConverter.cs b/src/CostManagement/generated/api/Support/QueryColumnType.TypeConverter.cs new file mode 100644 index 000000000000..b36fb3fac76a --- /dev/null +++ b/src/CostManagement/generated/api/Support/QueryColumnType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for QueryColumnType. + public partial class QueryColumnTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => QueryColumnType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/QueryColumnType.cs b/src/CostManagement/generated/api/Support/QueryColumnType.cs new file mode 100644 index 000000000000..8fb676dac4f8 --- /dev/null +++ b/src/CostManagement/generated/api/Support/QueryColumnType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct QueryColumnType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType Dimension = @"Dimension"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType Tag = @"Tag"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to QueryColumnType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new QueryColumnType(System.Convert.ToString(value)); + } + + /// Compares values of enum type QueryColumnType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type QueryColumnType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is QueryColumnType && Equals((QueryColumnType)obj); + } + + /// Returns hashCode for enum QueryColumnType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private QueryColumnType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for QueryColumnType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to QueryColumnType + /// the value to convert to an instance of . + + public static implicit operator QueryColumnType(string value) + { + return new QueryColumnType(value); + } + + /// Implicit operator to convert QueryColumnType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e) + { + return e._value; + } + + /// Overriding != operator for enum QueryColumnType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum QueryColumnType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.QueryColumnType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/RecurrenceType.Completer.cs b/src/CostManagement/generated/api/Support/RecurrenceType.Completer.cs new file mode 100644 index 000000000000..3117e18b638d --- /dev/null +++ b/src/CostManagement/generated/api/Support/RecurrenceType.Completer.cs @@ -0,0 +1,47 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for RecurrenceType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceTypeTypeConverter))] + public partial struct RecurrenceType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Daily".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Daily", "Daily", global::System.Management.Automation.CompletionResultType.ParameterValue, "Daily"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Weekly".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Weekly", "Weekly", global::System.Management.Automation.CompletionResultType.ParameterValue, "Weekly"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Monthly".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Monthly", "Monthly", global::System.Management.Automation.CompletionResultType.ParameterValue, "Monthly"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Annually".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Annually", "Annually", global::System.Management.Automation.CompletionResultType.ParameterValue, "Annually"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/RecurrenceType.TypeConverter.cs b/src/CostManagement/generated/api/Support/RecurrenceType.TypeConverter.cs new file mode 100644 index 000000000000..794b5cde7692 --- /dev/null +++ b/src/CostManagement/generated/api/Support/RecurrenceType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for RecurrenceType. + public partial class RecurrenceTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => RecurrenceType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/RecurrenceType.cs b/src/CostManagement/generated/api/Support/RecurrenceType.cs new file mode 100644 index 000000000000..264e9b332cb7 --- /dev/null +++ b/src/CostManagement/generated/api/Support/RecurrenceType.cs @@ -0,0 +1,101 @@ +// 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.CostManagement.Support +{ + + public partial struct RecurrenceType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Annually = @"Annually"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Daily = @"Daily"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Monthly = @"Monthly"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType Weekly = @"Weekly"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to RecurrenceType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new RecurrenceType(System.Convert.ToString(value)); + } + + /// Compares values of enum type RecurrenceType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type RecurrenceType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is RecurrenceType && Equals((RecurrenceType)obj); + } + + /// Returns hashCode for enum RecurrenceType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private RecurrenceType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for RecurrenceType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to RecurrenceType + /// the value to convert to an instance of . + + public static implicit operator RecurrenceType(string value) + { + return new RecurrenceType(value); + } + + /// Implicit operator to convert RecurrenceType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e) + { + return e._value; + } + + /// Overriding != operator for enum RecurrenceType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum RecurrenceType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportConfigColumnType.Completer.cs b/src/CostManagement/generated/api/Support/ReportConfigColumnType.Completer.cs new file mode 100644 index 000000000000..696cc82bd125 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportConfigColumnType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ReportConfigColumnType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnTypeTypeConverter))] + public partial struct ReportConfigColumnType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Tag".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Tag", "Tag", global::System.Management.Automation.CompletionResultType.ParameterValue, "Tag"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Dimension".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Dimension", "Dimension", global::System.Management.Automation.CompletionResultType.ParameterValue, "Dimension"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportConfigColumnType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ReportConfigColumnType.TypeConverter.cs new file mode 100644 index 000000000000..98a3e25b1c54 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportConfigColumnType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ReportConfigColumnType. + public partial class ReportConfigColumnTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ReportConfigColumnType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportConfigColumnType.cs b/src/CostManagement/generated/api/Support/ReportConfigColumnType.cs new file mode 100644 index 000000000000..5bd4d2038e16 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportConfigColumnType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct ReportConfigColumnType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType Dimension = @"Dimension"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType Tag = @"Tag"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ReportConfigColumnType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ReportConfigColumnType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ReportConfigColumnType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ReportConfigColumnType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ReportConfigColumnType && Equals((ReportConfigColumnType)obj); + } + + /// Returns hashCode for enum ReportConfigColumnType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ReportConfigColumnType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ReportConfigColumnType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ReportConfigColumnType + /// the value to convert to an instance of . + + public static implicit operator ReportConfigColumnType(string value) + { + return new ReportConfigColumnType(value); + } + + /// Implicit operator to convert ReportConfigColumnType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e) + { + return e._value; + } + + /// Overriding != operator for enum ReportConfigColumnType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ReportConfigColumnType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportConfigColumnType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportGranularityType.Completer.cs b/src/CostManagement/generated/api/Support/ReportGranularityType.Completer.cs new file mode 100644 index 000000000000..5a47d8d13502 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportGranularityType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for ReportGranularityType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityTypeTypeConverter))] + public partial struct ReportGranularityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Daily".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Daily", "Daily", global::System.Management.Automation.CompletionResultType.ParameterValue, "Daily"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Monthly".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Monthly", "Monthly", global::System.Management.Automation.CompletionResultType.ParameterValue, "Monthly"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportGranularityType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ReportGranularityType.TypeConverter.cs new file mode 100644 index 000000000000..dcd38c319b36 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportGranularityType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ReportGranularityType. + public partial class ReportGranularityTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ReportGranularityType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportGranularityType.cs b/src/CostManagement/generated/api/Support/ReportGranularityType.cs new file mode 100644 index 000000000000..95bae4e605ad --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportGranularityType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct ReportGranularityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType Daily = @"Daily"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType Monthly = @"Monthly"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ReportGranularityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ReportGranularityType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ReportGranularityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ReportGranularityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ReportGranularityType && Equals((ReportGranularityType)obj); + } + + /// Returns hashCode for enum ReportGranularityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ReportGranularityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ReportGranularityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ReportGranularityType + /// the value to convert to an instance of . + + public static implicit operator ReportGranularityType(string value) + { + return new ReportGranularityType(value); + } + + /// Implicit operator to convert ReportGranularityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e) + { + return e._value; + } + + /// Overriding != operator for enum ReportGranularityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ReportGranularityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportGranularityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportTimeframeType.Completer.cs b/src/CostManagement/generated/api/Support/ReportTimeframeType.Completer.cs new file mode 100644 index 000000000000..ebb3809a0941 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportTimeframeType.Completer.cs @@ -0,0 +1,47 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for ReportTimeframeType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeTypeTypeConverter))] + public partial struct ReportTimeframeType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "WeekToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("WeekToDate", "WeekToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "WeekToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "MonthToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("MonthToDate", "MonthToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "MonthToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "YearToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("YearToDate", "YearToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "YearToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Custom".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Custom", "Custom", global::System.Management.Automation.CompletionResultType.ParameterValue, "Custom"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportTimeframeType.TypeConverter.cs b/src/CostManagement/generated/api/Support/ReportTimeframeType.TypeConverter.cs new file mode 100644 index 000000000000..485db00a705f --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportTimeframeType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for ReportTimeframeType. + public partial class ReportTimeframeTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ReportTimeframeType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/ReportTimeframeType.cs b/src/CostManagement/generated/api/Support/ReportTimeframeType.cs new file mode 100644 index 000000000000..b0a91f15e074 --- /dev/null +++ b/src/CostManagement/generated/api/Support/ReportTimeframeType.cs @@ -0,0 +1,101 @@ +// 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.CostManagement.Support +{ + + public partial struct ReportTimeframeType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType Custom = @"Custom"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType MonthToDate = @"MonthToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType WeekToDate = @"WeekToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType YearToDate = @"YearToDate"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ReportTimeframeType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ReportTimeframeType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ReportTimeframeType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ReportTimeframeType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ReportTimeframeType && Equals((ReportTimeframeType)obj); + } + + /// Returns hashCode for enum ReportTimeframeType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ReportTimeframeType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ReportTimeframeType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ReportTimeframeType + /// the value to convert to an instance of . + + public static implicit operator ReportTimeframeType(string value) + { + return new ReportTimeframeType(value); + } + + /// Implicit operator to convert ReportTimeframeType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e) + { + return e._value; + } + + /// Overriding != operator for enum ReportTimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ReportTimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ReportTimeframeType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/StatusType.Completer.cs b/src/CostManagement/generated/api/Support/StatusType.Completer.cs new file mode 100644 index 000000000000..a2d1e3884e39 --- /dev/null +++ b/src/CostManagement/generated/api/Support/StatusType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// Argument completer implementation for StatusType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusTypeTypeConverter))] + public partial struct StatusType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Active".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Active", "Active", global::System.Management.Automation.CompletionResultType.ParameterValue, "Active"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Inactive".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Inactive", "Inactive", global::System.Management.Automation.CompletionResultType.ParameterValue, "Inactive"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/StatusType.TypeConverter.cs b/src/CostManagement/generated/api/Support/StatusType.TypeConverter.cs new file mode 100644 index 000000000000..5befd15bc61b --- /dev/null +++ b/src/CostManagement/generated/api/Support/StatusType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for StatusType. + public partial class StatusTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => StatusType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/StatusType.cs b/src/CostManagement/generated/api/Support/StatusType.cs new file mode 100644 index 000000000000..c047fa32f53e --- /dev/null +++ b/src/CostManagement/generated/api/Support/StatusType.cs @@ -0,0 +1,97 @@ +// 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.CostManagement.Support +{ + + public partial struct StatusType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType Active = @"Active"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType Inactive = @"Inactive"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to StatusType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new StatusType(System.Convert.ToString(value)); + } + + /// Compares values of enum type StatusType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type StatusType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is StatusType && Equals((StatusType)obj); + } + + /// Returns hashCode for enum StatusType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private StatusType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for StatusType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to StatusType + /// the value to convert to an instance of . + + public static implicit operator StatusType(string value) + { + return new StatusType(value); + } + + /// Implicit operator to convert StatusType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e) + { + return e._value; + } + + /// Overriding != operator for enum StatusType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum StatusType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/TimeframeType.Completer.cs b/src/CostManagement/generated/api/Support/TimeframeType.Completer.cs new file mode 100644 index 000000000000..cb7c78026da9 --- /dev/null +++ b/src/CostManagement/generated/api/Support/TimeframeType.Completer.cs @@ -0,0 +1,55 @@ +// 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.CostManagement.Support +{ + + /// Argument completer implementation for TimeframeType. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeTypeTypeConverter))] + public partial struct TimeframeType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "MonthToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("MonthToDate", "MonthToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "MonthToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BillingMonthToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("BillingMonthToDate", "BillingMonthToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "BillingMonthToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TheLastMonth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("TheLastMonth", "TheLastMonth", global::System.Management.Automation.CompletionResultType.ParameterValue, "TheLastMonth"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TheLastBillingMonth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("TheLastBillingMonth", "TheLastBillingMonth", global::System.Management.Automation.CompletionResultType.ParameterValue, "TheLastBillingMonth"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "WeekToDate".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("WeekToDate", "WeekToDate", global::System.Management.Automation.CompletionResultType.ParameterValue, "WeekToDate"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Custom".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Custom", "Custom", global::System.Management.Automation.CompletionResultType.ParameterValue, "Custom"); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/TimeframeType.TypeConverter.cs b/src/CostManagement/generated/api/Support/TimeframeType.TypeConverter.cs new file mode 100644 index 000000000000..6dabab4f452e --- /dev/null +++ b/src/CostManagement/generated/api/Support/TimeframeType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support +{ + + /// TypeConverter implementation for TimeframeType. + public partial class TimeframeTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => TimeframeType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/api/Support/TimeframeType.cs b/src/CostManagement/generated/api/Support/TimeframeType.cs new file mode 100644 index 000000000000..3526cce1d523 --- /dev/null +++ b/src/CostManagement/generated/api/Support/TimeframeType.cs @@ -0,0 +1,105 @@ +// 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.CostManagement.Support +{ + + public partial struct TimeframeType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType BillingMonthToDate = @"BillingMonthToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType Custom = @"Custom"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType MonthToDate = @"MonthToDate"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType TheLastBillingMonth = @"TheLastBillingMonth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType TheLastMonth = @"TheLastMonth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType WeekToDate = @"WeekToDate"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to TimeframeType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new TimeframeType(System.Convert.ToString(value)); + } + + /// Compares values of enum type TimeframeType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type TimeframeType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is TimeframeType && Equals((TimeframeType)obj); + } + + /// Returns hashCode for enum TimeframeType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private TimeframeType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for TimeframeType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to TimeframeType + /// the value to convert to an instance of . + + public static implicit operator TimeframeType(string value) + { + return new TimeframeType(value); + } + + /// Implicit operator to convert TimeframeType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e) + { + return e._value; + } + + /// Overriding != operator for enum TimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum TimeframeType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e1, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_Get.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_Get.cs new file mode 100644 index 000000000000..2f726f8b094b --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_Get.cs @@ -0,0 +1,383 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The operation to get the execution history of an export for the defined scope and export name. + /// + /// + /// [OpenAPI] Exports_GetExecutionHistory=>GET:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementExportExecutionHistory_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to get the execution history of an export for the defined scope and export name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementExportExecutionHistory_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _exportName; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string ExportName { get => this._exportName; set => this._exportName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementExportExecutionHistory_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsGetExecutionHistory(Scope, ExportName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,ExportName=ExportName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, ExportName=ExportName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, ExportName=ExportName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / value / + WriteObject((await response).Value, true); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_GetViaIdentity.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_GetViaIdentity.cs new file mode 100644 index 000000000000..9803d23f80d7 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementExportExecutionHistory_GetViaIdentity.cs @@ -0,0 +1,376 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The operation to get the execution history of an export for the defined scope and export name. + /// + /// + /// [OpenAPI] Exports_GetExecutionHistory=>GET:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementExportExecutionHistory_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to get the execution history of an export for the defined scope and export name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementExportExecutionHistory_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementExportExecutionHistory_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ExportsGetExecutionHistoryViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Scope) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Scope"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ExportName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ExportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ExportsGetExecutionHistory(InputObject.Scope ?? null, InputObject.ExportName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / value / + WriteObject((await response).Value, true); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_Get.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_Get.cs new file mode 100644 index 000000000000..2d58fd9ee31c --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_Get.cs @@ -0,0 +1,398 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to get the export for the defined scope by export name. + /// + /// [OpenAPI] Exports_Get=>GET:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementExport_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to get the export for the defined scope by export name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementExport_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _expand; + + /// + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information + /// for the last 10 executions of the export. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 executions of the export.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 executions of the export.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Query)] + public string Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ExportName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementExport_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsGet(Scope, Name, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,Name=Name,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_GetViaIdentity.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_GetViaIdentity.cs new file mode 100644 index 000000000000..fd9416e355b1 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_GetViaIdentity.cs @@ -0,0 +1,390 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to get the export for the defined scope by export name. + /// + /// [OpenAPI] Exports_Get=>GET:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementExport_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to get the export for the defined scope by export name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementExport_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _expand; + + /// + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information + /// for the last 10 executions of the export. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 executions of the export.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 executions of the export.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Query)] + public string Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementExport_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ExportsGetViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Scope) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Scope"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ExportName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ExportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ExportsGet(InputObject.Scope ?? null, InputObject.ExportName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_List.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_List.cs new file mode 100644 index 000000000000..05fe1b7a4410 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementExport_List.cs @@ -0,0 +1,384 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to list all exports at the given scope. + /// + /// [OpenAPI] Exports_List=>GET:"/{scope}/providers/Microsoft.CostManagement/exports" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementExport_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to list all exports at the given scope.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementExport_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _expand; + + /// + /// May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information + /// for the last execution of each export. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last execution of each export.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last execution of each export.", + SerializedName = @"$expand", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Query)] + public string Expand { get => this._expand; set => this._expand = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementExport_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsList(Scope, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / value / + WriteObject((await response).Value, true); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/GetAzCostManagementOperation_List.cs b/src/CostManagement/generated/cmdlets/GetAzCostManagementOperation_List.cs new file mode 100644 index 000000000000..b047230ce493 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/GetAzCostManagementOperation_List.cs @@ -0,0 +1,361 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// Lists all of the available cost management REST API operations. + /// + /// [OpenAPI] Operations_List=>GET:"/providers/Microsoft.CostManagement/operations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzCostManagementOperation_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"Lists all of the available cost management REST API operations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class GetAzCostManagementOperation_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzCostManagementOperation_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList(onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_Execute.cs b/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_Execute.cs new file mode 100644 index 000000000000..935b37943f67 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_Execute.cs @@ -0,0 +1,388 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to execute an export. + /// + /// [OpenAPI] Exports_Execute=>POST:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCostManagementExecuteExport_Execute", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to execute an export.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class InvokeAzCostManagementExecuteExport_Execute : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _exportName; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string ExportName { get => this._exportName; set => this._exportName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCostManagementExecuteExport_Execute() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsExecute' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsExecute(Scope, ExportName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,ExportName=ExportName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, ExportName=ExportName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, ExportName=ExportName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_ExecuteViaIdentity.cs b/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_ExecuteViaIdentity.cs new file mode 100644 index 000000000000..25a8ba5eccd7 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/InvokeAzCostManagementExecuteExport_ExecuteViaIdentity.cs @@ -0,0 +1,381 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to execute an export. + /// + /// [OpenAPI] Exports_Execute=>POST:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzCostManagementExecuteExport_ExecuteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to execute an export.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class InvokeAzCostManagementExecuteExport_ExecuteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzCostManagementExecuteExport_ExecuteViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsExecute' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ExportsExecuteViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Scope) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Scope"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ExportName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ExportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ExportsExecute(InputObject.Scope ?? null, InputObject.ExportName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/NewAzCostManagementExport_CreateExpanded.cs b/src/CostManagement/generated/cmdlets/NewAzCostManagementExport_CreateExpanded.cs new file mode 100644 index 000000000000..e966640c0e7a --- /dev/null +++ b/src/CostManagement/generated/cmdlets/NewAzCostManagementExport_CreateExpanded.cs @@ -0,0 +1,615 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// [OpenAPI] Exports_CreateOrUpdate=>PUT:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzCostManagementExport_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class NewAzCostManagementExport_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + public string[] ConfigurationColumn { get => ParametersBody.ConfigurationColumn ?? null /* arrayOf */; set => ParametersBody.ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The granularity of rows in the export. Currently only 'Daily' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType DataSetGranularity { get => ParametersBody.DataSetGranularity ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType)""); set => ParametersBody.DataSetGranularity = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time frame for pulling data for the export. If custom, then a specific time period must be provided.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ParametersBody.DefinitionTimeframe; set => ParametersBody.DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ParametersBody.DefinitionType; set => ParametersBody.DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the container where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + public string DestinationContainer { get => ParametersBody.DestinationContainer ?? null; set => ParametersBody.DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the storage account where exports will be delivered.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + public string DestinationResourceId { get => ParametersBody.DestinationResourceId ?? null; set => ParametersBody.DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the directory where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + public string DestinationRootFolderPath { get => ParametersBody.DestinationRootFolderPath ?? null; set => ParametersBody.DestinationRootFolderPath = value; } + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + public string ETag { get => ParametersBody.ETag ?? null; set => ParametersBody.ETag = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The format of the export being delivered. Currently only 'Csv' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType Format { get => ParametersBody.Format ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType)""); set => ParametersBody.Format = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ExportName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export(); + + /// An export resource. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The start date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodFrom { get => ParametersBody.RecurrencePeriodFrom; set => ParametersBody.RecurrencePeriodFrom = value; } + + /// The end date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodTo { get => ParametersBody.RecurrencePeriodTo ?? default(global::System.DateTime); set => ParametersBody.RecurrencePeriodTo = value; } + + /// The schedule recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The schedule recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get => ParametersBody.ScheduleRecurrence; set => ParametersBody.ScheduleRecurrence = value; } + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The status of the export's schedule. If 'Inactive', the export's schedule is paused.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType ScheduleStatus { get => ParametersBody.ScheduleStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType)""); set => ParametersBody.ScheduleStatus = value; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// The start date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodFrom { get => ParametersBody.TimePeriodFrom; set => ParametersBody.TimePeriodFrom = value; } + + /// The end date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodTo { get => ParametersBody.TimePeriodTo; set => ParametersBody.TimePeriodTo = value; } + + /// + /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onCreated method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzCostManagementExport_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsCreateOrUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsCreateOrUpdate(Scope, Name, ParametersBody, onOk, onCreated, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// a delegate that is called when the remote service returns 201 (Created). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnCreated(responseMessage, response, ref _returnNow); + // if overrideOnCreated has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onCreated - response for 201 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_Delete.cs b/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_Delete.cs new file mode 100644 index 000000000000..a8e1797641ac --- /dev/null +++ b/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_Delete.cs @@ -0,0 +1,389 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to delete a export. + /// + /// [OpenAPI] Exports_Delete=>DELETE:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCostManagementExport_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to delete a export.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class RemoveAzCostManagementExport_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ExportName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsDelete(Scope, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCostManagementExport_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_DeleteViaIdentity.cs b/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_DeleteViaIdentity.cs new file mode 100644 index 000000000000..ec1869a34b86 --- /dev/null +++ b/src/CostManagement/generated/cmdlets/RemoveAzCostManagementExport_DeleteViaIdentity.cs @@ -0,0 +1,381 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// The operation to delete a export. + /// + /// [OpenAPI] Exports_Delete=>DELETE:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzCostManagementExport_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to delete a export.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class RemoveAzCostManagementExport_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ExportsDeleteViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Scope) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Scope"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ExportName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ExportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ExportsDelete(InputObject.Scope ?? null, InputObject.ExportName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzCostManagementExport_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateExpanded.cs b/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateExpanded.cs new file mode 100644 index 000000000000..e823e2ae97cb --- /dev/null +++ b/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateExpanded.cs @@ -0,0 +1,615 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// [OpenAPI] Exports_CreateOrUpdate=>PUT:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzCostManagementExport_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class UpdateAzCostManagementExport_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + public string[] ConfigurationColumn { get => ParametersBody.ConfigurationColumn ?? null /* arrayOf */; set => ParametersBody.ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The granularity of rows in the export. Currently only 'Daily' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType DataSetGranularity { get => ParametersBody.DataSetGranularity ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType)""); set => ParametersBody.DataSetGranularity = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time frame for pulling data for the export. If custom, then a specific time period must be provided.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ParametersBody.DefinitionTimeframe; set => ParametersBody.DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ParametersBody.DefinitionType; set => ParametersBody.DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the container where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + public string DestinationContainer { get => ParametersBody.DestinationContainer ?? null; set => ParametersBody.DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the storage account where exports will be delivered.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + public string DestinationResourceId { get => ParametersBody.DestinationResourceId ?? null; set => ParametersBody.DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the directory where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + public string DestinationRootFolderPath { get => ParametersBody.DestinationRootFolderPath ?? null; set => ParametersBody.DestinationRootFolderPath = value; } + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + public string ETag { get => ParametersBody.ETag ?? null; set => ParametersBody.ETag = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The format of the export being delivered. Currently only 'Csv' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType Format { get => ParametersBody.Format ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType)""); set => ParametersBody.Format = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Export Name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Export Name.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Export Name.", + SerializedName = @"exportName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ExportName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export(); + + /// An export resource. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The start date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodFrom { get => ParametersBody.RecurrencePeriodFrom; set => ParametersBody.RecurrencePeriodFrom = value; } + + /// The end date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodTo { get => ParametersBody.RecurrencePeriodTo ?? default(global::System.DateTime); set => ParametersBody.RecurrencePeriodTo = value; } + + /// The schedule recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The schedule recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get => ParametersBody.ScheduleRecurrence; set => ParametersBody.ScheduleRecurrence = value; } + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The status of the export's schedule. If 'Inactive', the export's schedule is paused.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType ScheduleStatus { get => ParametersBody.ScheduleStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType)""); set => ParametersBody.ScheduleStatus = value; } + + /// Backing field for property. + private string _scope; + + /// + /// This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide + /// Service'. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.")] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// The start date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodFrom { get => ParametersBody.TimePeriodFrom; set => ParametersBody.TimePeriodFrom = value; } + + /// The end date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodTo { get => ParametersBody.TimePeriodTo; set => ParametersBody.TimePeriodTo = value; } + + /// + /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onCreated method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsCreateOrUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ExportsCreateOrUpdate(Scope, Name, ParametersBody, onOk, onCreated, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzCostManagementExport_UpdateExpanded() + { + + } + + /// a delegate that is called when the remote service returns 201 (Created). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnCreated(responseMessage, response, ref _returnNow); + // if overrideOnCreated has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onCreated - response for 201 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Scope=Scope, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateViaIdentityExpanded.cs b/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..1c248a86009f --- /dev/null +++ b/src/CostManagement/generated/cmdlets/UpdateAzCostManagementExport_UpdateViaIdentityExpanded.cs @@ -0,0 +1,607 @@ +// 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.CostManagement.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + /// + /// The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain + /// the latest eTag by performing a get operation. Create operation does not require eTag. + /// + /// + /// [OpenAPI] Exports_CreateOrUpdate=>PUT:"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzCostManagementExport_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport))] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Description(@"The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Generated] + public partial class UpdateAzCostManagementExport_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.CostManagement Client => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.ClientAPI; + + /// + /// Array of column names to be included in the export. If not provided then the export will include all available columns. + /// The available columns can vary by customer channel (see examples). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Array of column names to be included in the export. If not provided then the export will include all available columns. The available columns can vary by customer channel (see examples).", + SerializedName = @"columns", + PossibleTypes = new [] { typeof(string) })] + public string[] ConfigurationColumn { get => ParametersBody.ConfigurationColumn ?? null /* arrayOf */; set => ParametersBody.ConfigurationColumn = value; } + + /// The granularity of rows in the export. Currently only 'Daily' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The granularity of rows in the export. Currently only 'Daily' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The granularity of rows in the export. Currently only 'Daily' is supported.", + SerializedName = @"granularity", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType DataSetGranularity { get => ParametersBody.DataSetGranularity ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType)""); set => ParametersBody.DataSetGranularity = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// The time frame for pulling data for the export. If custom, then a specific time period must be provided. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time frame for pulling data for the export. If custom, then a specific time period must be provided.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time frame for pulling data for the export. If custom, then a specific time period must be provided.", + SerializedName = @"timeframe", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType DefinitionTimeframe { get => ParametersBody.DefinitionTimeframe; set => ParametersBody.DefinitionTimeframe = value; } + + /// + /// The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide + /// data for charges or amortization for service reservations. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the export. Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType DefinitionType { get => ParametersBody.DefinitionType; set => ParametersBody.DefinitionType = value; } + + /// The name of the container where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the container where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the container where exports will be uploaded.", + SerializedName = @"container", + PossibleTypes = new [] { typeof(string) })] + public string DestinationContainer { get => ParametersBody.DestinationContainer ?? null; set => ParametersBody.DestinationContainer = value; } + + /// The resource id of the storage account where exports will be delivered. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource id of the storage account where exports will be delivered.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The resource id of the storage account where exports will be delivered.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + public string DestinationResourceId { get => ParametersBody.DestinationResourceId ?? null; set => ParametersBody.DestinationResourceId = value; } + + /// The name of the directory where exports will be uploaded. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the directory where exports will be uploaded.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the directory where exports will be uploaded.", + SerializedName = @"rootFolderPath", + PossibleTypes = new [] { typeof(string) })] + public string DestinationRootFolderPath { get => ParametersBody.DestinationRootFolderPath ?? null; set => ParametersBody.DestinationRootFolderPath = value; } + + /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating + /// the latest version or not. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + public string ETag { get => ParametersBody.ETag ?? null; set => ParametersBody.ETag = value; } + + /// The format of the export being delivered. Currently only 'Csv' is supported. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The format of the export being delivered. Currently only 'Csv' is supported.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The format of the export being delivered. Currently only 'Csv' is supported.", + SerializedName = @"format", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType Format { get => ParametersBody.Format ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType)""); set => ParametersBody.Format = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.Export(); + + /// An export resource. + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The start date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date of recurrence.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodFrom { get => ParametersBody.RecurrencePeriodFrom; set => ParametersBody.RecurrencePeriodFrom = value; } + + /// The end date of recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date of recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date of recurrence.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RecurrencePeriodTo { get => ParametersBody.RecurrencePeriodTo ?? default(global::System.DateTime); set => ParametersBody.RecurrencePeriodTo = value; } + + /// The schedule recurrence. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The schedule recurrence.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The schedule recurrence.", + SerializedName = @"recurrence", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType ScheduleRecurrence { get => ParametersBody.ScheduleRecurrence; set => ParametersBody.ScheduleRecurrence = value; } + + /// + /// The status of the export's schedule. If 'Inactive', the export's schedule is paused. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The status of the export's schedule. If 'Inactive', the export's schedule is paused.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the export's schedule. If 'Inactive', the export's schedule is paused.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType))] + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType ScheduleStatus { get => ParametersBody.ScheduleStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType)""); set => ParametersBody.ScheduleStatus = value; } + + /// The start date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The start date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start date for export data.", + SerializedName = @"from", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodFrom { get => ParametersBody.TimePeriodFrom; set => ParametersBody.TimePeriodFrom = value; } + + /// The end date for export data. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The end date for export data.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CostManagement.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end date for export data.", + SerializedName = @"to", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime TimePeriodTo { get => ParametersBody.TimePeriodTo; set => ParametersBody.TimePeriodTo = value; } + + /// + /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onCreated method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ExportsCreateOrUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ExportsCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onCreated, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.Scope) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Scope"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ExportName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ExportName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ExportsCreateOrUpdate(InputObject.Scope ?? null, InputObject.ExportName ?? null, ParametersBody, onOk, onCreated, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzCostManagementExport_UpdateViaIdentityExpanded() + { + + } + + /// a delegate that is called when the remote service returns 201 (Created). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnCreated(responseMessage, response, ref _returnNow); + // if overrideOnCreated has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onCreated - response for 201 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/AsyncCommandRuntime.cs b/src/CostManagement/generated/runtime/AsyncCommandRuntime.cs new file mode 100644 index 000000000000..0f2800036c86 --- /dev/null +++ b/src/CostManagement/generated/runtime/AsyncCommandRuntime.cs @@ -0,0 +1,828 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + using System.Linq; + + internal interface IAsyncCommandRuntimeExtensions + { + Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep func); + System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs); + + T ExecuteSync(System.Func step); + } + + public class AsyncCommandRuntime : System.Management.Automation.ICommandRuntime2, IAsyncCommandRuntimeExtensions, System.IDisposable + { + private ICommandRuntime2 originalCommandRuntime; + private System.Threading.Thread originalThread; + public bool AllowInteractive { get; set; } = false; + + public CancellationToken cancellationToken; + SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); + ManualResetEventSlim readyToRun = new ManualResetEventSlim(false); + ManualResetEventSlim completed = new ManualResetEventSlim(false); + + System.Action runOnMainThread; + + private System.Management.Automation.PSCmdlet cmdlet; + + internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, CancellationToken cancellationToken) + { + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + this.cancellationToken = cancellationToken; + this.cmdlet = cmdlet; + cmdlet.CommandRuntime = this; + } + + public PSHost Host => this.originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => this.originalCommandRuntime.CurrentPSTransaction; + + private void CheckForInteractive() + { + // This is an interactive call -- if we are not on the original thread, this will only work if this was done at ACR creation time; + if (!AllowInteractive) + { + throw new System.Exception("AsyncCommandRuntime is not configured for interactive calls"); + } + } + private void WaitOurTurn() + { + // wait for our turn to play + semaphore?.Wait(cancellationToken); + + // ensure that completed is not set + completed.Reset(); + } + + private void WaitForCompletion() + { + // wait for the result (or cancellation!) + WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, completed?.WaitHandle }); + + // let go of the semaphore + semaphore?.Release(); + + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target, string action) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target, action); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target, action); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + ShouldProcessReason reason = ShouldProcessReason.None; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out reason); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + shouldProcessReason = reason; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.ThrowTerminatingError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.ThrowTerminatingError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool TransactionAvailable() + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.TransactionAvailable(); + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.TransactionAvailable(); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteCommandDetail(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteCommandDetail(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteCommandDetail(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteDebug(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteDebug(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteDebug(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteInformation(informationRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteInformation(informationRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(sourceId, progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(sourceId, progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteVerbose(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteVerbose(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteVerbose(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteWarning(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteWarning(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteWarning(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Threading.CancellationToken cancellationToken) + { + do + { + WaitHandle.WaitAny(new[] { readyToRun.WaitHandle, ((System.IAsyncResult)ProcessRecordAsyncTask).AsyncWaitHandle }); + if (readyToRun.IsSet) + { + // reset the request for the next time + readyToRun.Reset(); + + // run the delegate on this thread + runOnMainThread(); + + // tell the originator everything is complete + completed.Set(); + } + } + while (!ProcessRecordAsyncTask.IsCompleted); + if (ProcessRecordAsyncTask.IsFaulted) + { + // don't unwrap a Aggregate Exception -- we'll lose the stack trace of the actual exception. + // if( ProcessRecordAsyncTask.Exception is System.AggregateException aggregate ) { + // throw aggregate.InnerException; + // } + throw ProcessRecordAsyncTask.Exception; + } + } + public Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3)); + public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap); + + public T ExecuteSync(System.Func step) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return step(); + } + + T result = default(T); + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + // set the function to run + runOnMainThread = () => { result = step(); }; + // tell the main thread to go ahead + readyToRun.Set(); + // wait for the result (or cancellation!) + WaitForCompletion(); + // return + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Dispose() + { + if (cmdlet != null) + { + cmdlet.CommandRuntime = this.originalCommandRuntime; + cmdlet = null; + } + + semaphore?.Dispose(); + semaphore = null; + readyToRun?.Dispose(); + readyToRun = null; + completed?.Dispose(); + completed = null; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/AsyncJob.cs b/src/CostManagement/generated/runtime/AsyncJob.cs new file mode 100644 index 000000000000..f0eda2c3202c --- /dev/null +++ b/src/CostManagement/generated/runtime/AsyncJob.cs @@ -0,0 +1,270 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + + using System.Threading.Tasks; + + public class LongRunningJobCancelledException : System.Exception + { + public LongRunningJobCancelledException(string message) : base(message) + { + + } + } + + public class AsyncJob : Job, System.Management.Automation.ICommandRuntime2 + { + const int MaxRecords = 1000; + + private string _statusMessage = string.Empty; + + public override string StatusMessage => _statusMessage; + + public override bool HasMoreData => Output.Count > 0 || Progress.Count > 0 || Error.Count > 0 || Warning.Count > 0 || Verbose.Count > 0 || Debug.Count > 0; + + public override string Location => "localhost"; + + public PSHost Host => originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => originalCommandRuntime.CurrentPSTransaction; + + public override void StopJob() + { + Cancel(); + } + + private readonly PSCmdlet cmdlet; + private readonly ICommandRuntime2 originalCommandRuntime; + private readonly System.Threading.Thread originalThread; + + private void CheckForInteractive() + { + // This is an interactive call -- We should never allow interactivity in AsnycJob cmdlets. + throw new System.Exception("Cmdlets in AsyncJob; interactive calls are not permitted."); + } + private bool IsJobDone => CancellationToken.IsCancellationRequested || this.JobStateInfo.State == JobState.Failed || this.JobStateInfo.State == JobState.Stopped || this.JobStateInfo.State == JobState.Stopping || this.JobStateInfo.State == JobState.Completed; + + private readonly System.Action Cancel; + private readonly CancellationToken CancellationToken; + + internal AsyncJob(PSCmdlet cmdlet, string line, string name, CancellationToken cancellationToken, System.Action cancelMethod) : base(line, name) + { + SetJobState(JobState.NotStarted); + // know how to cancel/check for cancelation + this.CancellationToken = cancellationToken; + this.Cancel = cancelMethod; + + // we might need these. + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + + // the instance of the cmdlet we're going to run + this.cmdlet = cmdlet; + + // set the command runtime to the AsyncJob + cmdlet.CommandRuntime = this; + } + + /// + /// Monitors the task (which should be ProcessRecordAsync) to control + /// the lifetime of the job itself + /// + /// + public void Monitor(Task task) + { + SetJobState(JobState.Running); + task.ContinueWith(antecedent => + { + if (antecedent.IsCanceled) + { + // if the task was canceled, we're just going to call it completed. + SetJobState(JobState.Completed); + } + else if (antecedent.IsFaulted) + { + foreach (var innerException in antecedent.Exception.Flatten().InnerExceptions) + { + WriteError(new System.Management.Automation.ErrorRecord(innerException, string.Empty, System.Management.Automation.ErrorCategory.NotSpecified, null)); + } + + // a fault indicates an actual failure + SetJobState(JobState.Failed); + } + else + { + // otherwiser it's a completed state. + SetJobState(JobState.Completed); + } + }, CancellationToken); + } + + private void CheckForCancellation() + { + if (IsJobDone) + { + throw new LongRunningJobCancelledException("Long running job is canceled or stopping, continuation of the cmdlet is not permitted."); + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + CheckForCancellation(); + + this.Information.Add(informationRecord); + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public void WriteDebug(string text) + { + _statusMessage = text; + CheckForCancellation(); + + if (Debug.IsOpen && Debug.Count < MaxRecords) + { + Debug.Add(new DebugRecord(text)); + } + } + + public void WriteError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + + public void WriteObject(object sendToPipeline) + { + CheckForCancellation(); + + if (Output.IsOpen) + { + Output.Add(new PSObject(sendToPipeline)); + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + CheckForCancellation(); + + if (enumerateCollection && sendToPipeline is System.Collections.IEnumerable enumerable) + { + foreach (var item in enumerable) + { + WriteObject(item); + } + } + else + { + WriteObject(sendToPipeline); + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteVerbose(string text) + { + CheckForCancellation(); + + if (Verbose.IsOpen && Verbose.Count < MaxRecords) + { + Verbose.Add(new VerboseRecord(text)); + } + } + + public void WriteWarning(string text) + { + CheckForCancellation(); + + if (Warning.IsOpen && Warning.Count < MaxRecords) + { + Warning.Add(new WarningRecord(text)); + } + } + + public void WriteCommandDetail(string text) + { + WriteVerbose(text); + } + + public bool ShouldProcess(string target) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string target, string action) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + CheckForInteractive(); + shouldProcessReason = ShouldProcessReason.None; + return false; + } + + public bool ShouldContinue(string query, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public bool TransactionAvailable() + { + // interactivity required? + return false; + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/AsyncOperationResponse.cs b/src/CostManagement/generated/runtime/AsyncOperationResponse.cs new file mode 100644 index 000000000000..86528b60ba5d --- /dev/null +++ b/src/CostManagement/generated/runtime/AsyncOperationResponse.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + [System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))] + public class AsyncOperationResponse + { + private string _target; + public string Target { get => _target; set => _target = value; } + public AsyncOperationResponse() + { + } + internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json) + { + // pull target + { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; } + } + public string ToJsonString() + { + return $"{{ \"target\" : \"{this.Target}\" }}"; + } + + public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null; + } + + + /// + /// 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 AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(jsonText)); + + } + + public partial class AsyncOperationResponseTypeConverter : 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 + /// parameter. + /// + /// 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(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.CostManagement.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.CostManagement.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 to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static object ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(AsyncOperationResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AsyncOperationResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString()); ; + } + catch + { + // Unable to use JSON pattern + } + + if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as System.Management.Automation.PSObject).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as global::System.Collections.IDictionary).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + 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/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs new file mode 100644 index 000000000000..a352b0676bce --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs @@ -0,0 +1,113 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "CmdletSurface")] + [DoNotExport] + public class ExportCmdletSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CmdletFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool IncludeGeneralParameters { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = GetScriptCmdlets(this, CmdletFolder) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + foreach (var profileGroup in profileGroups) + { + var variantGroups = profileGroup.Variants + .GroupBy(v => new { v.CmdletName }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), String.Empty, profileGroup.ProfileName)); + var sb = UseExpandedFormat ? ExpandedFormat(variantGroups) : CondensedFormat(variantGroups); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, $"CmdletSurface-{profileGroup.ProfileName}.md"), sb.ToString()); + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private StringBuilder ExpandedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + foreach (var variantGroup in variantGroups.OrderBy(vg => vg.CmdletName)) + { + sb.Append($"### {variantGroup.CmdletName}{Environment.NewLine}"); + var parameterGroups = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private StringBuilder CondensedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + var condensedGroups = variantGroups + .GroupBy(vg => vg.CmdletNoun) + .Select(vgg => ( + CmdletNoun: vgg.Key, + CmdletVerbs: vgg.Select(vg => vg.CmdletVerb).OrderBy(cv => cv).ToArray(), + ParameterGroups: vgg.SelectMany(vg => vg.ParameterGroups).DistinctBy(p => p.ParameterName).ToArray(), + OutputTypes: vgg.SelectMany(vg => vg.OutputTypes).Select(ot => ot.Type).DistinctBy(t => t.Name).Select(t => t.ToSyntaxTypeName()).ToArray())) + .OrderBy(vg => vg.CmdletNoun); + foreach (var condensedGroup in condensedGroups) + { + sb.Append($"### {condensedGroup.CmdletNoun} [{String.Join(", ", condensedGroup.CmdletVerbs)}] `{String.Join(", ", condensedGroup.OutputTypes)}`{Environment.NewLine}"); + var parameterGroups = condensedGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs new file mode 100644 index 000000000000..6acfbdc07556 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ExampleStub")] + [DoNotExport] + public class ExportExampleStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + + var exampleText = String.Join(String.Empty, DefaultExampleHelpInfos.Select(ehi => ehi.ToHelpExampleOutput())); + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var cmdletFilePaths = GetScriptCmdlets(exportDirectory).Select(fi => Path.Combine(outputFolder, $"{fi.Name}.md")).ToArray(); + var currentExamplesFilePaths = Directory.GetFiles(outputFolder).ToArray(); + // Remove examples of non-existing cmdlets + var removedCmdletFilePaths = currentExamplesFilePaths.Except(cmdletFilePaths); + foreach (var removedCmdletFilePath in removedCmdletFilePaths) + { + File.Delete(removedCmdletFilePath); + } + + // Only create example stubs if they don't exist + foreach (var cmdletFilePath in cmdletFilePaths.Except(currentExamplesFilePaths)) + { + File.WriteAllText(cmdletFilePath, exampleText); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs new file mode 100644 index 000000000000..6cc17ec884b8 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -0,0 +1,99 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "FormatPs1xml")] + [DoNotExport] + public class ExportFormatPs1xml : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string FilePath { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support"; + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + + protected override void ProcessRecord() + { + try + { + var viewModels = GetFilteredViewParameters().Select(CreateViewModel).ToList(); + var ps1xml = new Configuration + { + ViewDefinitions = new ViewDefinitions + { + Views = viewModels + } + }; + File.WriteAllText(FilePath, ps1xml.ToXmlString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static IEnumerable GetFilteredViewParameters() + { + //https://stackoverflow.com/a/79738/294804 + //https://stackoverflow.com/a/949285/294804 + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass + && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace)) + && !t.GetCustomAttributes().Any()); + return types.Select(t => new ViewParameters(t, t.GetProperties() + .Select(p => new PropertyFormat(p)) + .Where(pf => !pf.Property.GetCustomAttributes().Any() + && (!IsAzure || pf.Property.Name != "Id") + && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) + .OrderByDescending(pf => pf.Index.HasValue) + .ThenBy(pf => pf.Index) + .ThenByDescending(pf => pf.Origin.HasValue) + .ThenBy(pf => pf.Origin))).Where(vp => vp.Properties.Any()); + } + + private static View CreateViewModel(ViewParameters viewParameters) + { + var entries = viewParameters.Properties.Select(pf => + (TableColumnHeader: new TableColumnHeader { Label = pf.Label, Width = pf.Width }, + TableColumnItem: new TableColumnItem { PropertyName = pf.Property.Name })).ToArray(); + + return new View + { + Name = viewParameters.Type.FullName, + ViewSelectedBy = new ViewSelectedBy + { + TypeName = viewParameters.Type.FullName + }, + TableControl = new TableControl + { + TableHeaders = new TableHeaders + { + TableColumnHeaders = entries.Select(e => e.TableColumnHeader).ToList() + }, + TableRowEntries = new TableRowEntries + { + TableRowEntry = new TableRowEntry + { + TableColumnItems = new TableColumnItems + { + TableItems = entries.Select(e => e.TableColumnItem).ToList() + } + } + } + } + }; + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs new file mode 100644 index 000000000000..63941ac08f03 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.MarkdownRenderer; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "HelpMarkdown")] + [DoNotExport] + public class ExportHelpMarkdown : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSModuleInfo ModuleInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] FunctionInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] HelpInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + var helpInfos = HelpInfo.Select(hi => hi.ToPsHelpInfo()); + var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() + .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) + .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs new file mode 100644 index 000000000000..a17516094711 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ModelSurface")] + [DoNotExport] + public class ExportModelSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support"; + + protected override void ProcessRecord() + { + try + { + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace))); + var typeInfos = types.Select(t => new ModelTypeInfo + { + Type = t, + TypeName = t.Name, + Properties = t.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => !p.GetIndexParameters().Any()).OrderBy(p => p.Name).ToArray(), + NamespaceGroup = t.Namespace.Split('.').LastOrDefault().EmptyIfNull() + }).Where(mti => mti.Properties.Any()); + var sb = UseExpandedFormat ? ExpandedFormat(typeInfos) : CondensedFormat(typeInfos); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, "ModelSurface.md"), sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static StringBuilder ExpandedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + foreach (var typeInfo in typeInfos.OrderBy(mti => mti.TypeName).ThenBy(mti => mti.NamespaceGroup)) + { + sb.Append($"### {typeInfo.TypeName} [{typeInfo.NamespaceGroup}]{Environment.NewLine}"); + foreach (var property in typeInfo.Properties) + { + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private static StringBuilder CondensedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + var typeGroups = typeInfos + .GroupBy(mti => mti.TypeName) + .Select(tig => ( + Types: tig.Select(mti => mti.Type).ToArray(), + TypeName: tig.Key, + Properties: tig.SelectMany(mti => mti.Properties).DistinctBy(p => p.Name).OrderBy(p => p.Name).ToArray(), + NamespaceGroups: tig.Select(mti => mti.NamespaceGroup).OrderBy(ng => ng).ToArray() + )) + .OrderBy(tg => tg.TypeName); + foreach (var typeGroup in typeGroups) + { + var aType = typeGroup.Types.Select(GetAssociativeType).FirstOrDefault(t => t != null); + var aText = aType != null ? $@" \<{aType.ToSyntaxTypeName()}\>" : String.Empty; + sb.Append($"### {typeGroup.TypeName}{aText} [{String.Join(", ", typeGroup.NamespaceGroups)}]{Environment.NewLine}"); + foreach (var property in typeGroup.Properties) + { + var propertyAType = GetAssociativeType(property.PropertyType); + var propertyAText = propertyAType != null ? $" <{propertyAType.ToSyntaxTypeName()}>" : String.Empty; + var enumNames = GetEnumFieldNames(property.PropertyType.Unwrap()); + var enumNamesText = enumNames.Any() ? $" **{{{String.Join(", ", enumNames)}}}**" : String.Empty; + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}{propertyAText}`{enumNamesText}{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + //https://stackoverflow.com/a/4963190/294804 + private static Type GetAssociativeType(Type type) => + type.GetInterfaces().FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>))?.GetGenericArguments().First(); + + private static string[] GetEnumFieldNames(Type type) => + type.IsValueType && !type.IsPrimitive && type != typeof(decimal) && type != typeof(DateTime) + ? type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(f => f.FieldType == type).Select(p => p.Name).ToArray() + : new string[] { }; + + private class ModelTypeInfo + { + public Type Type { get; set; } + public string TypeName { get; set; } + public PropertyInfo[] Properties { get; set; } + public string NamespaceGroup { get; set; } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs new file mode 100644 index 000000000000..47433c2ff0af --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -0,0 +1,159 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.MarkdownRenderer; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyTypeExtensions; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")] + [DoNotExport] + public class ExportProxyCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string[] ModulePath { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string InternalFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [AllowEmptyString] + public string ModuleDescription { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + public Guid ModuleGuid { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] + public SwitchParameter ExcludeDocs { get; set; } + + protected override void ProcessRecord() + { + try { + var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + var variantGroups = profileGroups.SelectMany(pg => pg.Variants + .GroupBy(v => new { v.CmdletName, v.IsInternal }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + .ToArray(); + + foreach (var variantGroup in variantGroups) + { + var parameterGroups = variantGroup.ParameterGroups.ToList(); + var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; + var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); + List examples = new List(); + foreach (var it in markdownInfo.Examples) + { + examples.Add(it); + } + variantGroup.HelpInfo.Examples = examples.ToArray(); + var sb = new StringBuilder(); + sb.Append(@" +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +"); + sb.Append($"{Environment.NewLine}"); + sb.Append(variantGroup.ToHelpCommentOutput()); + sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); + sb.Append(variantGroup.Aliases.ToAliasOutput()); + sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); + sb.Append(variantGroup.ToCmdletBindingOutput()); + sb.Append(variantGroup.ProfileName.ToProfileOutput()); + + sb.Append("param("); + sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) + { + var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; + foreach (var parameter in parameters) + { + sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + } + sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); + sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); + sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); + sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); + sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); + sb.Append(parameterGroup.ToDefaultInfoOutput()); + sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); + sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); + sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); + } + sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + + sb.Append(variantGroup.ToBeginOutput()); + sb.Append(variantGroup.ToProcessOutput()); + sb.Append(variantGroup.ToEndOutput()); + + sb.Append($"}}{Environment.NewLine}"); + + Directory.CreateDirectory(variantGroup.OutputFolder); + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); + } + + if (!ExcludeDocs) + { + var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); + foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + { + var profileName = variantGroupsByProfile.Key; + var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; + var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + } + } + } catch (Exception ee) { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs new file mode 100644 index 000000000000..c65f413764fe --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -0,0 +1,125 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } + + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.CostManagement.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: Cost cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.CostManagement.private.dll"}'"); + + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.CostManagement.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule Cost".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs new file mode 100644 index 000000000000..7ede188afea1 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -0,0 +1,137 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing +} +"); + File.WriteAllText(utilFile, sc.ToString()); + } + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine(@"$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath)" +); + sb.AppendLine($@"$TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@"$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName +"); + + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); + + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); + + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs new file mode 100644 index 000000000000..850a6a7c1b98 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs @@ -0,0 +1,52 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "CommonParameter")] + [OutputType(typeof(Dictionary))] + [DoNotExport] + public class GetCommonParameter : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSCmdlet PSCmdlet { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public Dictionary PSBoundParameter { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = PSCmdlet.MyInvocation.MyCommand.ToVariants(); + var commonParameterNames = variants.ToParameterGroups() + .Where(pg => pg.OrderCategory == ParameterCategory.Azure || pg.OrderCategory == ParameterCategory.Runtime) + .Select(pg => pg.ParameterName); + if (variants.Any(v => v.SupportsShouldProcess)) + { + commonParameterNames = commonParameterNames.Append("Confirm").Append("WhatIf"); + } + if (variants.Any(v => v.SupportsPaging)) + { + commonParameterNames = commonParameterNames.Append("First").Append("Skip").Append("IncludeTotalCount"); + } + + var names = commonParameterNames.ToArray(); + var keys = PSBoundParameter.Keys.Where(k => names.Contains(k)); + WriteObject(keys.ToDictionary(key => key, key => PSBoundParameter[key]), true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs new file mode 100644 index 000000000000..0506071630f8 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ModuleGuid")] + [DoNotExport] + public class GetModuleGuid : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + protected override void ProcessRecord() + { + try + { + WriteObject(ReadGuidFromPsd1(Psd1Path)); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs new file mode 100644 index 000000000000..1169ac60c7c7 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ScriptCmdlet")] + [OutputType(typeof(string[]))] + [DoNotExport] + public class GetScriptCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ScriptFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeDoNotExport { get; set; } + + [Parameter] + public SwitchParameter AsAlias { get; set; } + + [Parameter] + public SwitchParameter AsFunctionInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var functionInfos = GetScriptCmdlets(this, ScriptFolder) + .Where(fi => IncludeDoNotExport || !fi.ScriptBlock.Attributes.OfType().Any()) + .ToArray(); + if (AsFunctionInfo) + { + WriteObject(functionInfos, true); + return; + } + var aliases = functionInfos.SelectMany(i => i.ScriptBlock.Attributes).ToAliasNames(); + var names = functionInfos.Select(fi => fi.Name).Distinct(); + var output = (AsAlias ? aliases : names).DefaultIfEmpty("''").ToArray(); + WriteObject(output, true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/CollectionExtensions.cs b/src/CostManagement/generated/runtime/BuildTime/CollectionExtensions.cs new file mode 100644 index 000000000000..5b906828ec16 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/CollectionExtensions.cs @@ -0,0 +1,20 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class CollectionExtensions + { + public static T[] NullIfEmpty(this T[] collection) => (collection?.Any() ?? false) ? collection : null; + public static IEnumerable EmptyIfNull(this IEnumerable collection) => collection ?? Enumerable.Empty(); + + // https://stackoverflow.com/a/4158364/294804 + public static IEnumerable DistinctBy(this IEnumerable collection, Func selector) => + collection.GroupBy(selector).Select(group => group.First()); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/CostManagement/generated/runtime/BuildTime/MarkdownRenderer.cs new file mode 100644 index 000000000000..0057e6fae5fc --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -0,0 +1,121 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class MarkdownRenderer + { + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + { + Directory.CreateDirectory(docsFolder); + var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); + + foreach (var markdownInfo in markdownInfos) + { + var sb = new StringBuilder(); + sb.Append(markdownInfo.ToHelpMetadataOutput()); + sb.Append($"# {markdownInfo.CmdletName}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"## SYNOPSIS{Environment.NewLine}{markdownInfo.Synopsis.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## SYNTAX{Environment.NewLine}{Environment.NewLine}"); + var hasMultipleParameterSets = markdownInfo.SyntaxInfos.Length > 1; + foreach (var syntaxInfo in markdownInfo.SyntaxInfos) + { + sb.Append(syntaxInfo.ToHelpSyntaxOutput(hasMultipleParameterSets)); + } + + sb.Append($"## DESCRIPTION{Environment.NewLine}{markdownInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## EXAMPLES{Environment.NewLine}{Environment.NewLine}"); + foreach (var exampleInfo in markdownInfo.Examples) + { + sb.Append(exampleInfo.ToHelpExampleOutput()); + } + + sb.Append($"## PARAMETERS{Environment.NewLine}{Environment.NewLine}"); + foreach (var parameter in markdownInfo.Parameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + if (markdownInfo.SupportsShouldProcess) + { + foreach (var parameter in SupportsShouldProcessParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + if (markdownInfo.SupportsPaging) + { + foreach (var parameter in SupportsPagingParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + + sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## INPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var input in markdownInfo.Inputs) + { + sb.Append($"### {input}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## OUTPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var output in markdownInfo.Outputs) + { + sb.Append($"### {output}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); + foreach (var alias in markdownInfo.Aliases) + { + sb.Append($"### {alias}{Environment.NewLine}{Environment.NewLine}"); + } + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); + foreach (var relatedLink in markdownInfo.RelatedLinks) + { + sb.Append($"{relatedLink}{Environment.NewLine}{Environment.NewLine}"); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); + } + + WriteModulePage(moduleHelpInfo, markdownInfos, docsFolder); + } + + private static void WriteModulePage(PsModuleHelpInfo moduleInfo, MarkdownHelpInfo[] markdownInfos, string docsFolder) + { + var sb = new StringBuilder(); + sb.Append(moduleInfo.ToModulePageMetadataOutput()); + sb.Append($"# {moduleInfo.Name} Module{Environment.NewLine}"); + sb.Append($"## Description{Environment.NewLine}{moduleInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## {moduleInfo.Name} Cmdlets{Environment.NewLine}"); + foreach (var markdownInfo in markdownInfos) + { + sb.Append(markdownInfo.ToModulePageCmdletOutput()); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{moduleInfo.Name}.md"), sb.ToString()); + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsFormatTypes.cs new file mode 100644 index 000000000000..af187d2a5676 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsFormatTypes.cs @@ -0,0 +1,138 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class ViewParameters + { + public Type Type { get; } + public IEnumerable Properties { get; } + + public ViewParameters(Type type, IEnumerable properties) + { + Type = type; + Properties = properties; + } + } + + internal class PropertyFormat + { + public PropertyInfo Property { get; } + public FormatTableAttribute FormatTable { get; } + + public int? Index { get; } + public string Label { get; } + public int? Width { get; } + public PropertyOrigin? Origin { get; } + + public PropertyFormat(PropertyInfo propertyInfo) + { + Property = propertyInfo; + FormatTable = Property.GetCustomAttributes().FirstOrDefault(); + var origin = Property.GetCustomAttributes().FirstOrDefault(); + + Index = FormatTable?.HasIndex ?? false ? (int?)FormatTable.Index : null; + Label = FormatTable?.Label ?? propertyInfo.Name; + Width = FormatTable?.HasWidth ?? false ? (int?)FormatTable.Width : null; + // If we have an index, we don't want to use Origin. + Origin = FormatTable?.HasIndex ?? false ? null : origin?.Origin; + } + } + + [Serializable] + [XmlRoot(nameof(Configuration))] + public class Configuration + { + [XmlElement("ViewDefinitions")] + public ViewDefinitions ViewDefinitions { get; set; } + } + + [Serializable] + public class ViewDefinitions + { + //https://stackoverflow.com/a/10518657/294804 + [XmlElement("View")] + public List Views { get; set; } + } + + [Serializable] + public class View + { + [XmlElement(nameof(Name))] + public string Name { get; set; } + [XmlElement(nameof(ViewSelectedBy))] + public ViewSelectedBy ViewSelectedBy { get; set; } + [XmlElement(nameof(TableControl))] + public TableControl TableControl { get; set; } + } + + [Serializable] + public class ViewSelectedBy + { + [XmlElement(nameof(TypeName))] + public string TypeName { get; set; } + } + + [Serializable] + public class TableControl + { + [XmlElement(nameof(TableHeaders))] + public TableHeaders TableHeaders { get; set; } + [XmlElement(nameof(TableRowEntries))] + public TableRowEntries TableRowEntries { get; set; } + } + + [Serializable] + public class TableHeaders + { + [XmlElement("TableColumnHeader")] + public List TableColumnHeaders { get; set; } + } + + [Serializable] + public class TableColumnHeader + { + [XmlElement(nameof(Label))] + public string Label { get; set; } + [XmlElement(nameof(Width))] + public int? Width { get; set; } + + //https://stackoverflow.com/a/4095225/294804 + public bool ShouldSerializeWidth() => Width.HasValue; + } + + [Serializable] + public class TableRowEntries + { + [XmlElement(nameof(TableRowEntry))] + public TableRowEntry TableRowEntry { get; set; } + } + + [Serializable] + public class TableRowEntry + { + [XmlElement(nameof(TableColumnItems))] + public TableColumnItems TableColumnItems { get; set; } + } + + [Serializable] + public class TableColumnItems + { + [XmlElement("TableColumnItem")] + public List TableItems { get; set; } + } + + [Serializable] + public class TableColumnItem + { + [XmlElement(nameof(PropertyName))] + public string PropertyName { get; set; } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs new file mode 100644 index 000000000000..22b21641bf36 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class HelpMetadataOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public HelpMetadataOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"--- +external help file:{(!String.IsNullOrEmpty(HelpInfo.ExternalHelpFilename) ? $" {HelpInfo.ExternalHelpFilename}" : String.Empty)} +Module Name: {HelpInfo.ModuleName} +online version: {HelpInfo.OnlineVersion} +schema: {HelpInfo.Schema.ToString(3)} +--- + +"; + } + + internal class HelpSyntaxOutput + { + public MarkdownSyntaxHelpInfo SyntaxInfo { get; } + public bool HasMultipleParameterSets { get; } + + public HelpSyntaxOutput(MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) + { + SyntaxInfo = syntaxInfo; + HasMultipleParameterSets = hasMultipleParameterSets; + } + + public override string ToString() + { + var psnText = HasMultipleParameterSets ? $"### {SyntaxInfo.ParameterSetName}{(SyntaxInfo.IsDefault ? " (Default)" : String.Empty)}{Environment.NewLine}" : String.Empty; + return $@"{psnText}``` +{SyntaxInfo.SyntaxText} +``` + +"; + } + } + + internal class HelpExampleOutput + { + public MarkdownExampleHelpInfo ExampleInfo { get; } + + public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) + { + ExampleInfo = exampleInfo; + } + + public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} +{ExampleCodeHeader} +{ExampleInfo.Code} +{ExampleCodeFooter} + +{ExampleInfo.Description.ToDescriptionFormat()} + +"; + } + + + internal class HelpParameterOutput + { + public MarkdownParameterHelpInfo ParameterInfo { get; } + + public HelpParameterOutput(MarkdownParameterHelpInfo parameterInfo) + { + ParameterInfo = parameterInfo; + } + + public override string ToString() + { + var pipelineInputTypes = new[] + { + ParameterInfo.AcceptsPipelineByValue ? "ByValue" : String.Empty, + ParameterInfo.AcceptsPipelineByPropertyName ? "ByPropertyName" : String.Empty + }.JoinIgnoreEmpty(", "); + var pipelineInput = ParameterInfo.AcceptsPipelineByValue || ParameterInfo.AcceptsPipelineByPropertyName + ? $@"{true} ({pipelineInputTypes})" + : false.ToString(); + + return $@"### -{ParameterInfo.Name} +{ParameterInfo.Description.ToDescriptionFormat()} + +```yaml +Type: {ParameterInfo.Type.FullName} +Parameter Sets: {(ParameterInfo.HasAllParameterSets ? "(All)" : ParameterInfo.ParameterSetNames.JoinIgnoreEmpty(", "))} +Aliases:{(ParameterInfo.Aliases.Any() ? $" {ParameterInfo.Aliases.JoinIgnoreEmpty(", ")}" : String.Empty)} + +Required: {ParameterInfo.IsRequired} +Position: {ParameterInfo.Position} +Default value: {ParameterInfo.DefaultValue} +Accept pipeline input: {pipelineInput} +Accept wildcard characters: {ParameterInfo.AcceptsWildcardCharacters} +``` + +"; + } + } + + internal class ModulePageMetadataOutput + { + public PsModuleHelpInfo ModuleInfo { get; } + + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) + { + ModuleInfo = moduleInfo; + } + + public override string ToString() => $@"--- +Module Name: {ModuleInfo.Name} +Module Guid: {ModuleInfo.Guid} +Download Help Link: {HelpLinkPrefix}{ModuleInfo.Name.ToLowerInvariant()} +Help Version: 1.0.0.0 +Locale: en-US +--- + +"; + } + + internal class ModulePageCmdletOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) +{HelpInfo.Description.ToDescriptionFormat()} + +"; + } + + internal static class PsHelpOutputExtensions + { + public static string EscapeAngleBrackets(this string text) => text?.Replace("<", @"\<").Replace(">", @"\>"); + public static string ReplaceSentenceEndWithNewline(this string text) => text?.Replace(". ", $".{Environment.NewLine}").Replace(". ", $".{Environment.NewLine}"); + public static string ReplaceBrWithNewline(this string text) => text?.Replace("
", $"{Environment.NewLine}"); + public static string ToDescriptionFormat(this string text, bool escapeAngleBrackets = true) + { + var description = text?.ReplaceBrWithNewline(); + description = escapeAngleBrackets ? description?.EscapeAngleBrackets() : description; + return description?.ReplaceSentenceEndWithNewline().Trim(); + } + + public const string ExampleNameHeader = "### "; + public const string ExampleCodeHeader = "```powershell"; + public const string ExampleCodeFooter = "```"; + + public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); + + public static HelpSyntaxOutput ToHelpSyntaxOutput(this MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) => new HelpSyntaxOutput(syntaxInfo, hasMultipleParameterSets); + + public static HelpExampleOutput ToHelpExampleOutput(this MarkdownExampleHelpInfo exampleInfo) => new HelpExampleOutput(exampleInfo); + + public static HelpParameterOutput ToHelpParameterOutput(this MarkdownParameterHelpInfo parameterInfo) => new HelpParameterOutput(parameterInfo); + + public static ModulePageMetadataOutput ToModulePageMetadataOutput(this PsModuleHelpInfo moduleInfo) => new ModulePageMetadataOutput(moduleInfo); + + public static ModulePageCmdletOutput ToModulePageCmdletOutput(this MarkdownHelpInfo helpInfo) => new ModulePageCmdletOutput(helpInfo); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpTypes.cs new file mode 100644 index 000000000000..1b39c9f2f93b --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -0,0 +1,199 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class PsHelpInfo + { + public string CmdletName { get; } + public string ModuleName { get; } + public string Synopsis { get; } + public string Description { get; } + public string AlertText { get; } + public string Category { get; } + public PsHelpLinkInfo OnlineVersion { get; } + public PsHelpLinkInfo[] RelatedLinks { get; } + public bool? HasCommonParameters { get; } + public bool? HasWorkflowCommonParameters { get; } + + public PsHelpTypeInfo[] InputTypes { get; } + public PsHelpTypeInfo[] OutputTypes { get; } + public PsHelpExampleInfo[] Examples { get; set; } + public string[] Aliases { get; } + + public PsParameterHelpInfo[] Parameters { get; } + public PsHelpSyntaxInfo[] Syntax { get; } + + public object Component { get; } + public object Functionality { get; } + public object PsSnapIn { get; } + public object Role { get; } + public string NonTerminatingErrors { get; } + + public PsHelpInfo(PSObject helpObject = null) + { + helpObject = helpObject ?? new PSObject(); + CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); + ModuleName = helpObject.GetProperty("ModuleName"); + Synopsis = helpObject.GetProperty("Synopsis"); + Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? + helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); + Category = helpObject.GetProperty("Category"); + HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); + HasWorkflowCommonParameters = helpObject.GetProperty("WorkflowCommonParameters").ToNullableBool(); + + var links = helpObject.GetNestedProperty("relatedLinks", "navigationLink").EmptyIfNull().Select(nl => nl.ToLinkInfo()).ToArray(); + OnlineVersion = links.FirstOrDefault(l => l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length == 1); + RelatedLinks = links.Where(l => !l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length != 1).ToArray(); + + InputTypes = helpObject.GetNestedProperty("inputTypes", "inputType").EmptyIfNull().Select(it => it.ToTypeInfo()).ToArray(); + OutputTypes = helpObject.GetNestedProperty("returnValues", "returnValue").EmptyIfNull().Select(rv => rv.ToTypeInfo()).ToArray(); + Examples = helpObject.GetNestedProperty("examples", "example").EmptyIfNull().Select(e => e.ToExampleInfo()).ToArray(); + Aliases = helpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); + + Parameters = helpObject.GetNestedProperty("parameters", "parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + Syntax = helpObject.GetNestedProperty("syntax", "syntaxItem").EmptyIfNull().Select(si => si.ToSyntaxInfo()).ToArray(); + + Component = helpObject.GetProperty("Component"); + Functionality = helpObject.GetProperty("Functionality"); + PsSnapIn = helpObject.GetProperty("PSSnapIn"); + Role = helpObject.GetProperty("Role"); + NonTerminatingErrors = helpObject.GetProperty("nonTerminatingErrors"); + } + } + + internal class PsHelpTypeInfo + { + public string Name { get; } + public string Description { get; } + + public PsHelpTypeInfo(PSObject typeObject) + { + Name = typeObject.GetNestedProperty("type", "name").EmptyIfNull().Trim(); + Description = typeObject.GetProperty("description").EmptyIfNull().ToDescriptionText(); + } + } + + internal class PsHelpLinkInfo + { + public string Uri { get; } + public string Text { get; } + + public PsHelpLinkInfo(PSObject linkObject) + { + Uri = linkObject.GetProperty("uri"); + Text = linkObject.GetProperty("linkText"); + } + } + + internal class PsHelpSyntaxInfo + { + public string CmdletName { get; } + public PsParameterHelpInfo[] Parameters { get; } + + public PsHelpSyntaxInfo(PSObject syntaxObject) + { + CmdletName = syntaxObject.GetProperty("name"); + Parameters = syntaxObject.GetProperty("parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + } + } + + internal class PsHelpExampleInfo + { + public string Title { get; } + public string Code { get; } + public string Remarks { get; } + + public PsHelpExampleInfo(PSObject exampleObject) + { + Title = exampleObject.GetProperty("title"); + Code = exampleObject.GetProperty("code"); + Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); + } + public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) + { + Title = markdownExample.Name; + Code = markdownExample.Code; + Remarks = markdownExample.Description; + } + + public static implicit operator PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) => new PsHelpExampleInfo(markdownExample); + } + + internal class PsParameterHelpInfo + { + public string DefaultValueAsString { get; } + + public string Name { get; } + public string TypeName { get; } + public string Description { get; } + public string SupportsPipelineInput { get; } + public string PositionText { get; } + public string[] ParameterSetNames { get; } + public string[] Aliases { get; } + + public bool? SupportsGlobbing { get; } + public bool? IsRequired { get; } + public bool? IsVariableLength { get; } + public bool? IsDynamic { get; } + + public PsParameterHelpInfo(PSObject parameterHelpObject = null) + { + parameterHelpObject = parameterHelpObject ?? new PSObject(); + DefaultValueAsString = parameterHelpObject.GetProperty("defaultValue"); + Name = parameterHelpObject.GetProperty("name"); + TypeName = parameterHelpObject.GetProperty("parameterValue").NullIfEmpty() ?? parameterHelpObject.GetNestedProperty("type", "name"); + Description = parameterHelpObject.GetProperty("Description").EmptyIfNull().ToDescriptionText(); + SupportsPipelineInput = parameterHelpObject.GetProperty("pipelineInput"); + PositionText = parameterHelpObject.GetProperty("position"); + ParameterSetNames = parameterHelpObject.GetProperty("parameterSetName").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + Aliases = parameterHelpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + + SupportsGlobbing = parameterHelpObject.GetProperty("globbing").ToNullableBool(); + IsRequired = parameterHelpObject.GetProperty("required").ToNullableBool(); + IsVariableLength = parameterHelpObject.GetProperty("variableLength").ToNullableBool(); + IsDynamic = parameterHelpObject.GetProperty("isDynamic").ToNullableBool(); + } + } + + internal class PsModuleHelpInfo + { + public string Name { get; } + public Guid Guid { get; } + public string Description { get; } + + public PsModuleHelpInfo(PSModuleInfo moduleInfo) + : this(moduleInfo?.Name ?? String.Empty, moduleInfo?.Guid ?? Guid.NewGuid(), moduleInfo?.Description ?? String.Empty) + { + } + + public PsModuleHelpInfo(string name, Guid guid, string description) + { + Name = name; + Guid = guid; + Description = description; + } + } + + internal static class HelpTypesExtensions + { + public static PsHelpInfo ToPsHelpInfo(this PSObject helpObject) => new PsHelpInfo(helpObject); + public static PsParameterHelpInfo ToPsParameterHelpInfo(this PSObject parameterHelpObject) => new PsParameterHelpInfo(parameterHelpObject); + + public static string ToDescriptionText(this IEnumerable descriptionObject) => descriptionObject != null + ? String.Join(Environment.NewLine, descriptionObject.Select(dl => dl.GetProperty("Text").EmptyIfNull())).NullIfWhiteSpace() + : null; + public static PsHelpTypeInfo ToTypeInfo(this PSObject typeObject) => new PsHelpTypeInfo(typeObject); + public static PsHelpExampleInfo ToExampleInfo(this PSObject exampleObject) => new PsHelpExampleInfo(exampleObject); + public static PsHelpLinkInfo ToLinkInfo(this PSObject linkObject) => new PsHelpLinkInfo(linkObject); + public static PsHelpSyntaxInfo ToSyntaxInfo(this PSObject syntaxObject) => new PsHelpSyntaxInfo(syntaxObject); + public static PsModuleHelpInfo ToModuleInfo(this PSModuleInfo moduleInfo) => new PsModuleHelpInfo(moduleInfo); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs new file mode 100644 index 000000000000..fe251fd52858 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -0,0 +1,291 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class MarkdownHelpInfo + { + public string ExternalHelpFilename { get; } + public string ModuleName { get; } + public string OnlineVersion { get; } + public Version Schema { get; } + + public string CmdletName { get; } + public string[] Aliases { get; } + public string Synopsis { get; } + public string Description { get; } + + public MarkdownSyntaxHelpInfo[] SyntaxInfos { get; } + public MarkdownExampleHelpInfo[] Examples { get; } + public MarkdownParameterHelpInfo[] Parameters { get; } + + public string[] Inputs { get; } + public string[] Outputs { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + public string[] RelatedLinks { get; } + + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") + { + ExternalHelpFilename = externalHelpFilename; + ModuleName = variantGroup.ModuleName; + var helpInfo = variantGroup.HelpInfo; + var commentInfo = variantGroup.CommentInfo; + Schema = Version.Parse("2.0.0"); + + CmdletName = variantGroup.CmdletName; + Aliases = (variantGroup.Aliases.NullIfEmpty() ?? helpInfo.Aliases).Where(a => a != "None").ToArray(); + Synopsis = commentInfo.Synopsis; + Description = commentInfo.Description; + + SyntaxInfos = variantGroup.Variants + .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) + .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); + Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() + ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() + ?? DefaultExampleHelpInfos; + + Parameters = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow) + .Select(pg => new MarkdownParameterHelpInfo( + variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) + .OrderBy(phi => phi.Name).ToArray(); + + Inputs = commentInfo.Inputs; + Outputs = commentInfo.Outputs; + + ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; + OnlineVersion = commentInfo.OnlineVersion; + RelatedLinks = commentInfo.RelatedLinks; + + SupportsShouldProcess = variantGroup.SupportsShouldProcess; + SupportsPaging = variantGroup.SupportsPaging; + } + + private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) + { + var filePath = Path.Combine(examplesFolder, $"{CmdletName}.md"); + if (!Directory.Exists(examplesFolder) || !File.Exists(filePath)) return null; + + var lines = File.ReadAllLines(filePath); + var nameIndices = lines.Select((l, i) => l.StartsWith(ExampleNameHeader) ? i : -1).Where(i => i != -1).ToArray(); + //https://codereview.stackexchange.com/a/187148/68772 + var indexCountGroups = nameIndices.Skip(1).Append(lines.Length).Zip(nameIndices, (next, current) => (NameIndex: current, LineCount: next - current)); + var exampleGroups = indexCountGroups.Select(icg => lines.Skip(icg.NameIndex).Take(icg.LineCount).ToArray()); + return exampleGroups.Select(eg => + { + var name = eg.First().Replace(ExampleNameHeader, String.Empty); + var codeStartIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var codeEndIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i != codeStartIndex); + var code = codeStartIndex.HasValue && codeEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; + var descriptionEndIndex = eg.Length - 1; + descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; + var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); + return new MarkdownExampleHelpInfo(name, code, description); + }).ToArray(); + } + } + + internal class MarkdownSyntaxHelpInfo + { + public Variant Variant { get; } + public bool IsDefault { get; } + public string ParameterSetName { get; } + public Parameter[] Parameters { get; } + public string SyntaxText { get; } + + public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, bool isDefault) + { + Variant = variant; + IsDefault = isDefault; + ParameterSetName = Variant.VariantName; + Parameters = Variant.Parameters + .Where(p => !p.DontShow).OrderByDescending(p => p.IsMandatory) + //https://stackoverflow.com/a/6461526/294804 + .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) + // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. + .ThenBy(p => parameterGroups.First(pg => pg.ParameterName == p.ParameterName).OrderCategory).ThenBy(p => p.ParameterName).ToArray(); + SyntaxText = CreateSyntaxFormat(); + } + + //https://github.com/PowerShell/platyPS/blob/a607a926bfffe1e1a1e53c19e0057eddd0c07611/src/Markdown.MAML/Renderer/Markdownv2Renderer.cs#L29-L32 + private const int SyntaxLineWidth = 110; + private string CreateSyntaxFormat() + { + var parameterStrings = Parameters.Select(p => p.ToPropertySyntaxOutput().ToString()); + if (Variant.SupportsShouldProcess) + { + parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); + } + if (Variant.SupportsPaging) + { + parameterStrings = parameterStrings.Append(" [-First ]").Append(" [-IncludeTotalCount]").Append(" [-Skip ]"); + } + parameterStrings = parameterStrings.Append(" []"); + + var lines = new List(20); + return parameterStrings.Aggregate(Variant.CmdletName, (current, ps) => + { + var combined = current + ps; + if (combined.Length <= SyntaxLineWidth) return combined; + + lines.Add(current); + return ps; + }, last => + { + lines.Add(last); + return String.Join(Environment.NewLine, lines); + }); + } + } + + internal class MarkdownExampleHelpInfo + { + public string Name { get; } + public string Code { get; } + public string Description { get; } + + public MarkdownExampleHelpInfo(string name, string code, string description) + { + Name = name; + Code = code; + Description = description; + } + } + + internal class MarkdownParameterHelpInfo + { + public string Name { get; set; } + public string Description { get; set; } + public Type Type { get; set; } + public string Position { get; set; } + public string DefaultValue { get; set; } + + public bool HasAllParameterSets { get; set; } + public string[] ParameterSetNames { get; set; } + public string[] Aliases { get; set; } + + public bool IsRequired { get; set; } + public bool IsDynamic { get; set; } + public bool AcceptsPipelineByValue { get; set; } + public bool AcceptsPipelineByPropertyName { get; set; } + public bool AcceptsWildcardCharacters { get; set; } + + // For use by common parameters that have no backing data in the objects themselves. + public MarkdownParameterHelpInfo() { } + + public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, ParameterGroup parameterGroup) + { + Name = parameterGroup.ParameterName; + Description = parameterGroup.Description.NullIfEmpty() + ?? parameterHelpInfos.Select(phi => phi.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + Type = parameterGroup.ParameterType; + Position = parameterGroup.FirstPosition?.ToString() + ?? parameterHelpInfos.Select(phi => phi.PositionText).FirstOrDefault(d => !String.IsNullOrEmpty(d)).ToUpperFirstCharacter().NullIfEmpty() + ?? "Named"; + // This no longer uses firstHelpInfo.DefaultValueAsString since it seems to be broken. For example, it has a value of 0 for Int32, but no default value was declared. + DefaultValue = parameterGroup.DefaultInfo?.Script ?? "None"; + + HasAllParameterSets = parameterGroup.HasAllVariants; + ParameterSetNames = (parameterGroup.Parameters.Select(p => p.VariantName).ToArray().NullIfEmpty() + ?? parameterHelpInfos.SelectMany(phi => phi.ParameterSetNames).Distinct()) + .OrderBy(psn => psn).ToArray(); + Aliases = parameterGroup.Aliases.NullIfEmpty() ?? parameterHelpInfos.SelectMany(phi => phi.Aliases).ToArray(); + + IsRequired = parameterHelpInfos.Select(phi => phi.IsRequired).FirstOrDefault(r => r == true) ?? parameterGroup.Parameters.Any(p => p.IsMandatory); + IsDynamic = parameterHelpInfos.Select(phi => phi.IsDynamic).FirstOrDefault(d => d == true) ?? false; + AcceptsPipelineByValue = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByValue")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipeline; + AcceptsPipelineByPropertyName = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByPropertyName")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipelineByPropertyName; + AcceptsWildcardCharacters = parameterGroup.SupportsWildcards; + } + } + + internal static class MarkdownTypesExtensions + { + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + + public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = + { + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + }; + + public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = + { + new MarkdownParameterHelpInfo + { + Name = "Confirm", + Description ="Prompts you for confirmation before running the cmdlet.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "cf" } + }, + new MarkdownParameterHelpInfo + { + Name = "WhatIf", + Description ="Shows what would happen if the cmdlet runs. The cmdlet is not run.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "wi" } + } + }; + + public static MarkdownParameterHelpInfo[] SupportsPagingParameters = + { + new MarkdownParameterHelpInfo + { + Name = "First", + Description ="Gets only the first 'n' objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "IncludeTotalCount", + Description ="Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns \"Unknown total count\".", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "Skip", + Description ="Ignores the first 'n' objects and then gets the remaining objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + } + }; + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyOutputs.cs new file mode 100644 index 000000000000..3ec52ed9f761 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -0,0 +1,513 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class OutputTypeOutput + { + public PSTypeName[] OutputTypes { get; } + + public OutputTypeOutput(IEnumerable outputTypes) + { + OutputTypes = outputTypes.ToArray(); + } + + public override string ToString() => OutputTypes != null && OutputTypes.Any() ? $"[OutputType({OutputTypes.Select(ot => $"[{ot}]").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class CmdletBindingOutput + { + public VariantGroup VariantGroup { get; } + + public CmdletBindingOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() + { + var dpsText = VariantGroup.DefaultParameterSetName.IsValidDefaultParameterSetName() ? $"DefaultParameterSetName='{VariantGroup.DefaultParameterSetName}'" : String.Empty; + var sspText = VariantGroup.SupportsShouldProcess ? $"SupportsShouldProcess{ItemSeparator}ConfirmImpact='Medium'" : String.Empty; + var pbText = $"PositionalBinding={false.ToPsBool()}"; + var propertyText = new[] { dpsText, pbText, sspText }.JoinIgnoreEmpty(ItemSeparator); + return $"[CmdletBinding({propertyText})]{Environment.NewLine}"; + } + } + + internal class ParameterOutput + { + public Parameter Parameter { get; } + public bool HasMultipleVariantsInVariantGroup { get; } + public bool HasAllVariantsInParameterGroup { get; } + + public ParameterOutput(Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) + { + Parameter = parameter; + HasMultipleVariantsInVariantGroup = hasMultipleVariantsInVariantGroup; + HasAllVariantsInParameterGroup = hasAllVariantsInParameterGroup; + } + + public override string ToString() + { + var psnText = HasMultipleVariantsInVariantGroup && !HasAllVariantsInParameterGroup ? $"ParameterSetName='{Parameter.VariantName}'" : String.Empty; + var positionText = Parameter.Position != null ? $"Position={Parameter.Position}" : String.Empty; + var mandatoryText = Parameter.IsMandatory ? "Mandatory" : String.Empty; + var dontShowText = Parameter.DontShow ? "DontShow" : String.Empty; + var vfpText = Parameter.ValueFromPipeline ? "ValueFromPipeline" : String.Empty; + var vfpbpnText = Parameter.ValueFromPipelineByPropertyName ? "ValueFromPipelineByPropertyName" : String.Empty; + var propertyText = new[] { psnText, positionText, mandatoryText, dontShowText, vfpText, vfpbpnText }.JoinIgnoreEmpty(ItemSeparator); + return $"{Indent}[Parameter({propertyText})]{Environment.NewLine}"; + } + } + + internal class AliasOutput + { + public string[] Aliases { get; } + public bool IncludeIndent { get; } + + public AliasOutput(string[] aliases, bool includeIndent = false) + { + Aliases = aliases; + IncludeIndent = includeIndent; + } + + public override string ToString() => Aliases?.Any() ?? false ? $"{(IncludeIndent ? Indent : String.Empty)}[Alias({Aliases.Select(an => $"'{an}'").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class ValidateNotNullOutput + { + public bool HasValidateNotNull { get; } + + public ValidateNotNullOutput(bool hasValidateNotNull) + { + HasValidateNotNull = hasValidateNotNull; + } + + public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; + } + + internal class ArgumentCompleterOutput + { + public CompleterInfo CompleterInfo { get; } + + public ArgumentCompleterOutput(CompleterInfo completerInfo) + { + CompleterInfo = completerInfo; + } + + public override string ToString() => CompleterInfo != null + ? $"{Indent}[ArgumentCompleter({(CompleterInfo.IsTypeCompleter ? $"[{CompleterInfo.Type.Unwrap().ToPsType()}]" : $"{{{CompleterInfo.Script.ToPsSingleLine("; ")}}}")})]{Environment.NewLine}" + : String.Empty; + } + + internal class DefaultInfoOutput + { + public bool HasDefaultInfo { get; } + public DefaultInfo DefaultInfo { get; } + + public DefaultInfoOutput(ParameterGroup parameterGroup) + { + HasDefaultInfo = parameterGroup.HasDefaultInfo; + DefaultInfo = parameterGroup.DefaultInfo; + } + + public override string ToString() + { + var nameText = !String.IsNullOrEmpty(DefaultInfo?.Name) ? $"Name='{DefaultInfo?.Name}'" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(DefaultInfo?.Description) ? $"Description='{DefaultInfo?.Description.ToPsStringLiteral()}'" : String.Empty; + var scriptText = !String.IsNullOrEmpty(DefaultInfo?.Script) ? $"Script='{DefaultInfo?.Script.ToPsSingleLine("; ")}'" : String.Empty; + var propertyText = new[] { nameText, descriptionText, scriptText }.JoinIgnoreEmpty(ItemSeparator); + return HasDefaultInfo ? $"{Indent}[{typeof(DefaultInfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class ParameterTypeOutput + { + public Type ParameterType { get; } + + public ParameterTypeOutput(Type parameterType) + { + ParameterType = parameterType; + } + + public override string ToString() => $"{Indent}[{ParameterType.ToPsType()}]{Environment.NewLine}"; + } + + internal class ParameterNameOutput + { + public string ParameterName { get; } + public bool IsLast { get; } + + public ParameterNameOutput(string parameterName, bool isLast) + { + ParameterName = parameterName; + IsLast = isLast; + } + + public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; + } + + internal class BeginOutput + { + public VariantGroup VariantGroup { get; } + + public BeginOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() => $@"begin {{ +{Indent}try {{ +{Indent}{Indent}$outBuffer = $null +{Indent}{Indent}if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {{ +{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 +{Indent}{Indent}}} +{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} +{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} +{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) +{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}{Indent}}}"); + return sb.ToString(); + } + + private string GetDefaultValuesStatements() + { + var defaultInfos = VariantGroup.ParameterGroups.Where(pg => pg.HasDefaultInfo).Select(pg => pg.DefaultInfo).ToArray(); + var sb = new StringBuilder(); + + foreach (var defaultInfo in defaultInfos) + { + var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); + var parameterName = defaultInfo.ParameterGroup.ParameterName; + sb.AppendLine(); + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + return sb.ToString(); + } + } + + internal class ProcessOutput + { + public override string ToString() => $@"process {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.Process($_) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + } + + internal class EndOutput + { + public override string ToString() => $@"end {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.End() +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} +"; + } + + internal class HelpCommentOutput + { + public VariantGroup VariantGroup { get; } + public CommentInfo CommentInfo { get; } + + public HelpCommentOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + CommentInfo = variantGroup.CommentInfo; + } + + public override string ToString() + { + var inputs = String.Join(Environment.NewLine, CommentInfo.Inputs.Select(i => $".Inputs{Environment.NewLine}{i}")); + var inputsText = !String.IsNullOrEmpty(inputs) ? $"{Environment.NewLine}{inputs}" : String.Empty; + var outputs = String.Join(Environment.NewLine, CommentInfo.Outputs.Select(o => $".Outputs{Environment.NewLine}{o}")); + var outputsText = !String.IsNullOrEmpty(outputs) ? $"{Environment.NewLine}{outputs}" : String.Empty; + var notes = String.Join($"{Environment.NewLine}{Environment.NewLine}", VariantGroup.ComplexInterfaceInfos.Select(cii => cii.ToNoteOutput())); + var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; + var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); + var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; + var examples = ""; + foreach (var example in VariantGroup.HelpInfo.Examples) + { + examples = examples + ".Example" + "\r\n" + example.Code + "\r\n"; + } + return $@"<# +.Synopsis +{CommentInfo.Synopsis.ToDescriptionFormat(false)} +.Description +{CommentInfo.Description.ToDescriptionFormat(false)} +{examples}{inputsText}{outputsText}{notesText} +.Link +{CommentInfo.OnlineVersion}{relatedLinksText} +#> +"; + } + } + + internal class ParameterDescriptionOutput + { + public string Description { get; } + + public ParameterDescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) + ? Description.ToDescriptionFormat(false).NormalizeNewLines() + .Split(new [] { Environment.NewLine }, StringSplitOptions.None) + .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") + : String.Empty; + } + + internal class ProfileOutput + { + public string ProfileName { get; } + + public ProfileOutput(string profileName) + { + ProfileName = profileName; + } + + public override string ToString() => ProfileName != NoProfiles ? $"[{typeof(ProfileAttribute).ToPsAttributeType()}('{ProfileName}')]{Environment.NewLine}" : String.Empty; + } + + internal class DescriptionOutput + { + public string Description { get; } + + public DescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) ? $"[{typeof(DescriptionAttribute).ToPsAttributeType()}('{Description.ToPsStringLiteral()}')]{Environment.NewLine}" : String.Empty; + } + + internal class ParameterCategoryOutput + { + public ParameterCategory Category { get; } + + public ParameterCategoryOutput(ParameterCategory category) + { + Category = category; + } + + public override string ToString() => $"{Indent}[{typeof(CategoryAttribute).ToPsAttributeType()}('{Category}')]{Environment.NewLine}"; + } + + internal class InfoOutput + { + public InfoAttribute Info { get; } + public Type ParameterType { get; } + + public InfoOutput(InfoAttribute info, Type parameterType) + { + Info = info; + ParameterType = parameterType; + } + + public override string ToString() + { + // Rendering of InfoAttribute members that are not used currently + /*var serializedNameText = Info.SerializedName != null ? $"SerializedName='{Info.SerializedName}'" : String.Empty; + var readOnlyText = Info.ReadOnly ? "ReadOnly" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(Info.Description) ? $"Description='{Info.Description.ToPsStringLiteral()}'" : String.Empty;*/ + + var requiredText = Info.Required ? "Required" : String.Empty; + var unwrappedType = ParameterType.Unwrap(); + var hasValidPossibleTypes = Info.PossibleTypes.Any(pt => pt != unwrappedType); + var possibleTypesText = hasValidPossibleTypes + ? $"PossibleTypes=({Info.PossibleTypes.Select(pt => $"[{pt.ToPsType()}]").JoinIgnoreEmpty(ItemSeparator)})" + : String.Empty; + var propertyText = new[] { /*serializedNameText, */requiredText,/* readOnlyText,*/ possibleTypesText/*, descriptionText*/ }.JoinIgnoreEmpty(ItemSeparator); + return hasValidPossibleTypes ? $"{Indent}[{typeof(InfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class PropertySyntaxOutput + { + public string ParameterName { get; } + public Type ParameterType { get; } + public bool IsMandatory { get; } + public int? Position { get; } + + public bool IncludeSpace { get; } + public bool IncludeDash { get; } + + public PropertySyntaxOutput(Parameter parameter) + { + ParameterName = parameter.ParameterName; + ParameterType = parameter.ParameterType; + IsMandatory = parameter.IsMandatory; + Position = parameter.Position; + IncludeSpace = true; + IncludeDash = true; + } + + public PropertySyntaxOutput(ComplexInterfaceInfo complexInterfaceInfo) + { + ParameterName = complexInterfaceInfo.Name; + ParameterType = complexInterfaceInfo.Type; + IsMandatory = complexInterfaceInfo.Required; + Position = null; + IncludeSpace = false; + IncludeDash = false; + } + + public override string ToString() + { + var leftOptional = !IsMandatory ? "[" : String.Empty; + var leftPositional = Position != null ? "[" : String.Empty; + var rightPositional = Position != null ? "]" : String.Empty; + var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty; + var rightOptional = !IsMandatory ? "]" : String.Empty; + var space = IncludeSpace ? " " : String.Empty; + var dash = IncludeDash ? "-" : String.Empty; + return $"{space}{leftOptional}{leftPositional}{dash}{ParameterName}{rightPositional}{type}{rightOptional}"; + } + } + + internal static class PsProxyOutputExtensions + { + public const string NoParameters = "__NoParameters"; + + public const string AllParameterSets = "__AllParameterSets"; + + public const string HalfIndent = " "; + + public const string Indent = HalfIndent + HalfIndent; + + public const string ItemSeparator = ", "; + + public static readonly string ComplexParameterHeader = $"COMPLEX PARAMETER PROPERTIES{Environment.NewLine}{Environment.NewLine}To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.{Environment.NewLine}{Environment.NewLine}"; + + public static string ToPsBool(this bool value) => $"${value.ToString().ToLowerInvariant()}"; + + public static string ToPsType(this Type type) + { + var regex = new Regex(@"^(.*)`{1}\d+(.*)$"); + var typeText = type.ToString(); + var match = regex.Match(typeText); + return match.Success ? $"{match.Groups[1]}{match.Groups[2]}" : typeText; + } + + public static string ToPsAttributeType(this Type type) => type.ToPsType().RemoveEnd("Attribute"); + + // https://stackoverflow.com/a/5284606/294804 + private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; + + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new []{"
", "\r\n", "\n"}); + + public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; + + public static string JoinIgnoreEmpty(this IEnumerable values, string separator) => String.Join(separator, values?.Where(v => !String.IsNullOrEmpty(v))); + + // https://stackoverflow.com/a/41961738/294804 + public static string ToSyntaxTypeName(this Type type) + { + if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) + { + return $"{type.GetGenericArguments().First().ToSyntaxTypeName()}?"; + } + + if (type.IsGenericType) + { + var genericTypes = String.Join(ItemSeparator, type.GetGenericArguments().Select(ToSyntaxTypeName)); + return $"{type.Name.Split('`').First()}<{genericTypes}>"; + } + + return type.Name; + } + + public static OutputTypeOutput ToOutputTypeOutput(this IEnumerable outputTypes) => new OutputTypeOutput(outputTypes); + + public static CmdletBindingOutput ToCmdletBindingOutput(this VariantGroup variantGroup) => new CmdletBindingOutput(variantGroup); + + public static ParameterOutput ToParameterOutput(this Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) => new ParameterOutput(parameter, hasMultipleVariantsInVariantGroup, hasAllVariantsInParameterGroup); + + public static AliasOutput ToAliasOutput(this string[] aliases, bool includeIndent = false) => new AliasOutput(aliases, includeIndent); + + public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); + + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => new ArgumentCompleterOutput(completerInfo); + + public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); + + public static ParameterTypeOutput ToParameterTypeOutput(this Type parameterType) => new ParameterTypeOutput(parameterType); + + public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); + + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + + public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); + + public static ParameterDescriptionOutput ToParameterDescriptionOutput(this string description) => new ParameterDescriptionOutput(description); + + public static ProfileOutput ToProfileOutput(this string profileName) => new ProfileOutput(profileName); + + public static DescriptionOutput ToDescriptionOutput(this string description) => new DescriptionOutput(description); + + public static ParameterCategoryOutput ToParameterCategoryOutput(this ParameterCategory category) => new ParameterCategoryOutput(category); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this Parameter parameter) => new PropertySyntaxOutput(parameter); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this ComplexInterfaceInfo complexInterfaceInfo) => new PropertySyntaxOutput(complexInterfaceInfo); + + public static InfoOutput ToInfoOutput(this InfoAttribute info, Type parameterType) => new InfoOutput(info, parameterType); + + public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) + { + string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => + $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; + + var nested = complexInterfaceInfo.NestedInfos.Select(ni => + { + var nestedIndent = $"{currentIndent}{HalfIndent}"; + return ni.IsComplexInterface + ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) + : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + return String.Join(Environment.NewLine, nested); + } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyTypes.cs new file mode 100644 index 000000000000..e9b8c7890b34 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -0,0 +1,499 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal class ProfileGroup + { + public string ProfileName { get; } + public Variant[] Variants { get; } + public string ProfileFolder { get; } + + public ProfileGroup(Variant[] variants, string profileName = NoProfiles) + { + ProfileName = profileName; + Variants = variants; + ProfileFolder = ProfileName != NoProfiles ? ProfileName : String.Empty; + } + } + + internal class VariantGroup + { + public string ModuleName { get; } + public string CmdletName { get; } + public string CmdletVerb { get; } + public string CmdletNoun { get; } + public string ProfileName { get; } + public Variant[] Variants { get; } + public ParameterGroup[] ParameterGroups { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + + public string[] Aliases { get; } + public PSTypeName[] OutputTypes { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + public string DefaultParameterSetName { get; } + public bool HasMultipleVariants { get; } + public PsHelpInfo HelpInfo { get; } + public bool IsGenerated { get; } + public bool IsInternal { get; } + + public string OutputFolder { get; } + public string FileName { get; } + public string FilePath { get; } + + public CommentInfo CommentInfo { get; } + + public VariantGroup(string moduleName, string cmdletName, Variant[] variants, string outputFolder, string profileName = NoProfiles, bool isTest = false, bool isInternal = false) + { + ModuleName = moduleName; + CmdletName = cmdletName; + var cmdletNameParts = CmdletName.Split('-'); + CmdletVerb = cmdletNameParts.First(); + CmdletNoun = cmdletNameParts.Last(); + ProfileName = profileName; + Variants = variants; + ParameterGroups = Variants.ToParameterGroups().OrderBy(pg => pg.OrderCategory).ThenByDescending(pg => pg.IsMandatory).ToArray(); + var aliasDuplicates = ParameterGroups.SelectMany(pg => pg.Aliases) + //https://stackoverflow.com/a/18547390/294804 + .GroupBy(a => a).Where(g => g.Count() > 1).Select(g => g.Key).ToArray(); + if (aliasDuplicates.Any()) + { + throw new ParsingMetadataException($"The alias(es) [{String.Join(", ", aliasDuplicates)}] are defined on multiple parameters for cmdlet '{CmdletName}', which is not supported."); + } + ComplexInterfaceInfos = ParameterGroups.Where(pg => !pg.DontShow && pg.IsComplexInterface).OrderBy(pg => pg.ParameterName).Select(pg => pg.ComplexInterfaceInfo).ToArray(); + + Aliases = Variants.SelectMany(v => v.Attributes).ToAliasNames().ToArray(); + OutputTypes = Variants.SelectMany(v => v.Info.OutputType).Where(ot => ot.Type != null).GroupBy(ot => ot.Type).Select(otg => otg.First()).ToArray(); + SupportsShouldProcess = Variants.Any(v => v.SupportsShouldProcess); + SupportsPaging = Variants.Any(v => v.SupportsPaging); + DefaultParameterSetName = DetermineDefaultParameterSetName(); + HasMultipleVariants = Variants.Length > 1; + HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); + IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); + IsInternal = isInternal; + + OutputFolder = outputFolder; + FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; + FilePath = Path.Combine(OutputFolder, FileName); + + CommentInfo = new CommentInfo(this); + } + + private string DetermineDefaultParameterSetName() + { + var defaultParameterSet = Variants + .Select(v => v.Metadata.DefaultParameterSetName) + .LastOrDefault(dpsn => dpsn.IsValidDefaultParameterSetName()); + + if (String.IsNullOrEmpty(defaultParameterSet)) + { + var variantParamCountGroups = Variants + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); + var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); + defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; + } + + return defaultParameterSet; + } + } + + internal class Variant + { + public string CmdletName { get; } + public string VariantName { get; } + public CommandInfo Info { get; } + public CommandMetadata Metadata { get; } + public PsHelpInfo HelpInfo { get; } + public bool HasParameterSets { get; } + public bool IsFunction { get; } + public string PrivateModuleName { get; } + public string PrivateCmdletName { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public Attribute[] Attributes { get; } + public Parameter[] Parameters { get; } + public Parameter[] CmdletOnlyParameters { get; } + public bool IsInternal { get; } + public bool IsDoNotExport { get; } + public string[] Profiles { get; } + + public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) + { + CmdletName = cmdletName; + VariantName = variantName; + Info = info; + HelpInfo = helpInfo ?? new PsHelpInfo(); + Metadata = metadata; + HasParameterSets = hasParameterSets; + IsFunction = Info.CommandType == CommandTypes.Function; + PrivateModuleName = Info.Source; + PrivateCmdletName = Metadata.Name; + SupportsShouldProcess = Metadata.SupportsShouldProcess; + SupportsPaging = Metadata.SupportsPaging; + + Attributes = this.ToAttributes(); + Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); + IsInternal = Attributes.OfType().Any(); + IsDoNotExport = Attributes.OfType().Any(); + CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); + Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); + } + } + + internal class ParameterGroup + { + public string ParameterName { get; } + public Parameter[] Parameters { get; } + + public string[] VariantNames { get; } + public string[] AllVariantNames { get; } + public bool HasAllVariants { get; } + public Type ParameterType { get; } + public string Description { get; } + + public string[] Aliases { get; } + public bool HasValidateNotNull { get; } + public CompleterInfo CompleterInfo { get; } + public DefaultInfo DefaultInfo { get; } + public bool HasDefaultInfo { get; } + public ParameterCategory OrderCategory { get; } + public bool DontShow { get; } + public bool IsMandatory { get; } + public bool SupportsWildcards { get; } + public bool IsComplexInterface { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public InfoAttribute InfoAttribute { get; } + + public int? FirstPosition { get; } + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public bool IsInputType { get; } + + public ParameterGroup(string parameterName, Parameter[] parameters, string[] allVariantNames) + { + ParameterName = parameterName; + Parameters = parameters; + + VariantNames = Parameters.Select(p => p.VariantName).ToArray(); + AllVariantNames = allVariantNames; + HasAllVariants = VariantNames.Any(vn => vn == AllParameterSets) || !AllVariantNames.Except(VariantNames).Any(); + var types = Parameters.Select(p => p.ParameterType).Distinct().ToArray(); + if (types.Length > 1) + { + throw new ParsingMetadataException($"The parameter '{ParameterName}' has multiple parameter types [{String.Join(", ", types.Select(t => t.Name))}] defined, which is not supported."); + } + ParameterType = types.First(); + Description = Parameters.Select(p => p.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + + Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); + HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() + ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); + DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) + ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); + HasDefaultInfo = DefaultInfo != null && !String.IsNullOrEmpty(DefaultInfo.Script); + // When DefaultInfo is present, force all parameters from this group to be optional. + if (HasDefaultInfo) + { + foreach (var parameter in Parameters) + { + parameter.IsMandatory = false; + } + } + OrderCategory = Parameters.Select(p => p.OrderCategory).Distinct().DefaultIfEmpty(ParameterCategory.Body).Min(); + DontShow = Parameters.All(p => p.DontShow); + IsMandatory = HasAllVariants && Parameters.Any(p => p.IsMandatory); + SupportsWildcards = Parameters.Any(p => p.SupportsWildcards); + IsComplexInterface = Parameters.Any(p => p.IsComplexInterface); + ComplexInterfaceInfo = Parameters.Where(p => p.IsComplexInterface).Select(p => p.ComplexInterfaceInfo).FirstOrDefault(); + InfoAttribute = Parameters.Select(p => p.InfoAttribute).First(); + + FirstPosition = Parameters.Select(p => p.Position).FirstOrDefault(p => p != null); + ValueFromPipeline = Parameters.Any(p => p.ValueFromPipeline); + ValueFromPipelineByPropertyName = Parameters.Any(p => p.ValueFromPipelineByPropertyName); + IsInputType = ValueFromPipeline || ValueFromPipelineByPropertyName; + } + } + + internal class Parameter + { + public string VariantName { get; } + public string ParameterName { get; } + public ParameterMetadata Metadata { get; } + public PsParameterHelpInfo HelpInfo { get; } + public Type ParameterType { get; } + + public Attribute[] Attributes { get; } + public ParameterCategory[] Categories { get; } + public ParameterCategory OrderCategory { get; } + public PSDefaultValueAttribute DefaultValueAttribute { get; } + public DefaultInfoAttribute DefaultInfoAttribute { get; } + public ParameterAttribute ParameterAttribute { get; } + public bool SupportsWildcards { get; } + public CompleterInfoAttribute CompleterInfoAttribute { get; } + public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } + + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public int? Position { get; } + public bool DontShow { get; } + public bool IsMandatory { get; set; } + + public InfoAttribute InfoAttribute { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public bool IsComplexInterface { get; } + public string Description { get; } + + public Parameter(string variantName, string parameterName, ParameterMetadata metadata, PsParameterHelpInfo helpInfo = null) + { + VariantName = variantName; + ParameterName = parameterName; + Metadata = metadata; + HelpInfo = helpInfo ?? new PsParameterHelpInfo(); + + Attributes = Metadata.Attributes.ToArray(); + ParameterType = Attributes.OfType().FirstOrDefault()?.Type ?? Metadata.ParameterType; + Categories = Attributes.OfType().SelectMany(ca => ca.Categories).Distinct().ToArray(); + OrderCategory = Categories.DefaultIfEmpty(ParameterCategory.Body).Min(); + DefaultValueAttribute = Attributes.OfType().FirstOrDefault(); + DefaultInfoAttribute = Attributes.OfType().FirstOrDefault(); + ParameterAttribute = Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == VariantName || pa.ParameterSetName == AllParameterSets); + if (ParameterAttribute == null) + { + throw new ParsingMetadataException($"The variant '{VariantName}' has multiple parameter sets defined, which is not supported."); + } + SupportsWildcards = Attributes.OfType().Any(); + CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); + ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + + ValueFromPipeline = ParameterAttribute.ValueFromPipeline; + ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; + Position = ParameterAttribute.Position == Int32.MinValue ? (int?)null : ParameterAttribute.Position; + DontShow = ParameterAttribute.DontShow; + IsMandatory = ParameterAttribute.Mandatory; + + var complexParameterName = ParameterName.ToUpperInvariant(); + var complexMessage = $"{Environment.NewLine}To construct, see NOTES section for {complexParameterName} properties and create a hash table."; + var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; + // Remove the complex type message as it will be reinserted if this is a complex type + description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty); + // Make an InfoAttribute for processing only if one isn't provided + InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; + // Set the description if the InfoAttribute does not have one since they are exported without a description + InfoAttribute.Description = String.IsNullOrEmpty(InfoAttribute.Description) ? description : InfoAttribute.Description; + ComplexInterfaceInfo = InfoAttribute.ToComplexInterfaceInfo(complexParameterName, ParameterType, true); + IsComplexInterface = ComplexInterfaceInfo.IsComplexInterface; + Description = $"{description}{(IsComplexInterface ? complexMessage : String.Empty)}"; + } + } + + internal class ComplexInterfaceInfo + { + public InfoAttribute InfoAttribute { get; } + + public string Name { get; } + public Type Type { get; } + public bool Required { get; } + public bool ReadOnly { get; } + public string Description { get; } + + public ComplexInterfaceInfo[] NestedInfos { get; } + public bool IsComplexInterface { get; } + + public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, bool? required, List seenTypes) + { + Name = name; + Type = type; + InfoAttribute = infoAttribute; + + Required = required ?? InfoAttribute.Required; + ReadOnly = InfoAttribute.ReadOnly; + Description = InfoAttribute.Description.ToPsSingleLine(); + + var unwrappedType = Type.Unwrap(); + var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; + (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[]{} : + unwrappedType.GetInterfaces() + .Concat(InfoAttribute.PossibleTypes) + .SelectMany(pt => pt.GetProperties() + .SelectMany(pi => pi.GetCustomAttributes(true).OfType() + .Select(ia => ia.ToComplexInterfaceInfo(pi.Name, pi.PropertyType, seenTypes: seenTypes)))) + .Where(cii => !cii.ReadOnly).OrderByDescending(cii => cii.Required).ToArray(); + // https://stackoverflow.com/a/503359/294804 + var associativeArrayInnerType = Type.GetInterfaces() + .FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>)) + ?.GetTypeInfo().GetGenericArguments().First(); + if (!hasBeenSeen && associativeArrayInnerType != null) + { + var anyInfo = new InfoAttribute { Description = "This indicates any property can be added to this object." }; + NestedInfos = NestedInfos.Prepend(anyInfo.ToComplexInterfaceInfo("(Any)", associativeArrayInnerType)).ToArray(); + } + IsComplexInterface = NestedInfos.Any(); + } + } + + internal class CommentInfo + { + public string Description { get; } + public string Synopsis { get; } + + public string[] Examples { get; } + public string[] Inputs { get; } + public string[] Outputs { get; } + + public string OnlineVersion { get; } + public string[] RelatedLinks { get; } + + private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public CommentInfo(VariantGroup variantGroup) + { + var helpInfo = variantGroup.HelpInfo; + Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() + ?? helpInfo.Description.EmptyIfNull(); + // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. + var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; + Synopsis = synopsis.NullIfEmpty() ?? Description; + + Examples = helpInfo.Examples.Select(rl => rl.Code).ToArray(); + + Inputs = (variantGroup.ParameterGroups.Where(pg => pg.IsInputType).Select(pg => pg.ParameterType.FullName).ToArray().NullIfEmpty() ?? + helpInfo.InputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(it => it.Name).ToArray()) + .Where(i => i != "None").Distinct().OrderBy(i => i).ToArray(); + Outputs = (variantGroup.OutputTypes.Select(ot => ot.Type.FullName).ToArray().NullIfEmpty() ?? + helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) + .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); + + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}"; + RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); + } + } + + internal class CompleterInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public Type Type { get; } + public bool IsTypeCompleter { get; } + + public CompleterInfo(CompleterInfoAttribute infoAttribute) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + } + + public CompleterInfo(ArgumentCompleterAttribute completerAttribute) + { + Script = completerAttribute.ScriptBlock?.ToString(); + if (completerAttribute.Type != null) + { + Type = completerAttribute.Type; + IsTypeCompleter = true; + } + } + } + + internal class DefaultInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public ParameterGroup ParameterGroup { get; } + + public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + ParameterGroup = parameterGroup; + } + + public DefaultInfo(PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) + { + Description = defaultValueAttribute.Help; + ParameterGroup = parameterGroup; + if (defaultValueAttribute.Value != null) + { + Script = defaultValueAttribute.Value.ToString(); + } + } + } + + internal static class PsProxyTypeExtensions + { + public const string NoProfiles = "__NoProfiles"; + + public static bool IsValidDefaultParameterSetName(this string parameterSetName) => + !String.IsNullOrEmpty(parameterSetName) && parameterSetName != AllParameterSets; + + public static Variant[] ToVariants(this CommandInfo info, PsHelpInfo helpInfo) + { + var metadata = new CommandMetadata(info); + var privateCmdletName = metadata.Name.Split('!').First(); + var parts = privateCmdletName.Split('_'); + return parts.Length > 1 + ? new[] { new Variant(parts[0], parts[1], info, metadata, helpInfo: helpInfo) } + // Process multiple parameter sets, so we declare a variant per parameter set. + : info.ParameterSets.Select(ps => new Variant(privateCmdletName, ps.Name, info, metadata, true, helpInfo)).ToArray(); + } + + public static Variant[] ToVariants(this CmdletAndHelpInfo info) => info.CommandInfo.ToVariants(info.HelpInfo); + + public static Variant[] ToVariants(this CommandInfo info, PSObject helpInfo = null) => info.ToVariants(helpInfo?.ToPsHelpInfo()); + + public static Parameter[] ToParameters(this Variant variant) + { + var parameters = variant.Metadata.Parameters.AsEnumerable(); + var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); + if (variant.HasParameterSets) + { + parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); + parameterHelp = parameterHelp.Where(ph => !ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)); + } + return parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))).ToArray(); + } + + public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction + ? ((FunctionInfo)variant.Info).ScriptBlock.Attributes.ToArray() + : variant.Metadata.CommandType.GetCustomAttributes(false).Cast().ToArray(); + + public static IEnumerable ToParameterGroups(this Variant[] variants) + { + var allVariantNames = variants.Select(vg => vg.VariantName).ToArray(); + return variants + .SelectMany(v => v.Parameters) + .GroupBy(p => p.ParameterName, StringComparer.InvariantCultureIgnoreCase) + .Select(pg => new ParameterGroup(pg.Key, pg.Select(p => p).ToArray(), allVariantNames)); + } + + public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute infoAttribute, string name, Type type, bool? required = null, List seenTypes = null) + => new ComplexInterfaceInfo(name, type, infoAttribute, required, seenTypes); + + public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); + public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); + + public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); + public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/PsAttributes.cs b/src/CostManagement/generated/runtime/BuildTime/PsAttributes.cs new file mode 100644 index 000000000000..892c3cb828ba --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/PsAttributes.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement +{ + [AttributeUsage(AttributeTargets.Class)] + public class DescriptionAttribute : Attribute + { + public string Description { get; } + + public DescriptionAttribute(string description) + { + Description = description; + } + } + + [AttributeUsage(AttributeTargets.Class)] + public class DoNotExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class InternalExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class GeneratedAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class DoNotFormatAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class ProfileAttribute : Attribute + { + public string[] Profiles { get; } + + public ProfileAttribute(params string[] profiles) + { + Profiles = profiles; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class CategoryAttribute : Attribute + { + public ParameterCategory[] Categories { get; } + + public CategoryAttribute(params ParameterCategory[] categories) + { + Categories = categories; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class ExportAsAttribute : Attribute + { + public Type Type { get; set; } + + public ExportAsAttribute(Type type) + { + Type = type; + } + } + + public enum ParameterCategory + { + // Note: Order is significant + Uri = 0, + Path, + Query, + Header, + Cookie, + Body, + Azure, + Runtime + } + + [AttributeUsage(AttributeTargets.Property)] + public class OriginAttribute : Attribute + { + public PropertyOrigin Origin { get; } + + public OriginAttribute(PropertyOrigin origin) + { + Origin = origin; + } + } + + public enum PropertyOrigin + { + // Note: Order is significant + Inherited = 0, + Owned, + Inlined + } + + [AttributeUsage(AttributeTargets.Property)] + public class FormatTableAttribute : Attribute + { + public int Index { get; set; } = -1; + public bool HasIndex => Index != -1; + public string Label { get; set; } + public int Width { get; set; } = -1; + public bool HasWidth => Width != -1; + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/PsExtensions.cs b/src/CostManagement/generated/runtime/BuildTime/PsExtensions.cs new file mode 100644 index 000000000000..73998bdf988e --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/PsExtensions.cs @@ -0,0 +1,160 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class PsExtensions + { + // https://stackoverflow.com/a/863944/294804 + // https://stackoverflow.com/a/4452598/294804 + // https://stackoverflow.com/a/28701974/294804 + // Note: This will unwrap nested collections, but we don't generate nested collections. + public static Type Unwrap(this Type type) + { + if (type.IsArray) + { + return type.GetElementType().Unwrap(); + } + + var typeInfo = type.GetTypeInfo(); + if (typeInfo.IsGenericType + && (typeInfo.GetGenericTypeDefinition() == typeof(Nullable<>) || typeof(IEnumerable<>).IsAssignableFrom(type))) + { + return typeInfo.GetGenericArguments().First().Unwrap(); + } + + return type; + } + + // https://stackoverflow.com/a/863944/294804 + private static bool IsSimple(this Type type) + { + var typeInfo = type.GetTypeInfo(); + return typeInfo.IsPrimitive + || typeInfo.IsEnum + || type == typeof(string) + || type == typeof(decimal); + } + + // https://stackoverflow.com/a/32025393/294804 + private static bool HasImplicitConversion(this Type baseType, Type targetType) => + baseType.GetMethods(BindingFlags.Public | BindingFlags.Static) + .Where(mi => mi.Name == "op_Implicit" && mi.ReturnType == targetType) + .Any(mi => mi.GetParameters().FirstOrDefault()?.ParameterType == baseType); + + public static bool IsPsSimple(this Type type) + { + var unwrappedType = type.Unwrap(); + return unwrappedType.IsSimple() + || unwrappedType == typeof(SwitchParameter) + || unwrappedType == typeof(Hashtable) + || unwrappedType == typeof(PSCredential) + || unwrappedType == typeof(ScriptBlock) + || unwrappedType == typeof(DateTime) + || unwrappedType == typeof(Uri) + || unwrappedType.HasImplicitConversion(typeof(string)); + } + + public static string ToPsList(this IEnumerable items) => String.Join(", ", items.Select(i => $"'{i}'")); + + public static IEnumerable ToAliasNames(this IEnumerable attributes) => attributes.OfType().SelectMany(aa => aa.AliasNames).Distinct(); + + public static bool IsArrayAndElementTypeIsT(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return itemType.IsArray && !tType.IsArray && tType.IsAssignableFrom(itemType.GetElementType()); + } + + public static bool IsTArrayAndElementTypeIsItem(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return !itemType.IsArray && tType.IsArray && (tType.GetElementType()?.IsAssignableFrom(itemType) ?? false); + } + + public static bool IsTypeOrArrayOfType(this object item) => item is T || item.IsArrayAndElementTypeIsT() || item.IsTArrayAndElementTypeIsItem(); + + public static T NormalizeArrayType(this object item) + { + if (item is T result) + { + return result; + } + + if (item.IsArrayAndElementTypeIsT()) + { + var array = (T[])Convert.ChangeType(item, typeof(T[])); + return array.FirstOrDefault(); + } + + if (item.IsTArrayAndElementTypeIsItem()) + { + var tType = typeof(T); + var array = Array.CreateInstance(tType.GetElementType(), 1); + array.SetValue(item, 0); + return (T)Convert.ChangeType(array, tType); + } + + return default(T); + } + + public static T GetNestedProperty(this PSObject psObject, params string[] names) => psObject.Properties.GetNestedProperty(names); + + public static T GetNestedProperty(this PSMemberInfoCollection properties, params string[] names) + { + var lastName = names.Last(); + var nestedProperties = names.Take(names.Length - 1).Aggregate(properties, (p, n) => p?.GetProperty(n)?.Properties); + return nestedProperties != null ? nestedProperties.GetProperty(lastName) : default(T); + } + + public static T GetProperty(this PSObject psObject, string name) => psObject.Properties.GetProperty(name); + + public static T GetProperty(this PSMemberInfoCollection properties, string name) + { + switch (properties[name]?.Value) + { + case PSObject psObject when psObject.BaseObject is PSCustomObject && psObject.ImmediateBaseObject.IsTypeOrArrayOfType(): + return psObject.ImmediateBaseObject.NormalizeArrayType(); + case PSObject psObject when psObject.BaseObject.IsTypeOrArrayOfType(): + return psObject.BaseObject.NormalizeArrayType(); + case object value when value.IsTypeOrArrayOfType(): + return value.NormalizeArrayType(); + default: + return default(T); + } + } + + public static IEnumerable RunScript(this PSCmdlet cmdlet, string script) + => PsHelpers.RunScript(cmdlet.InvokeCommand, script); + + public static void RunScript(this PSCmdlet cmdlet, string script) + => cmdlet.RunScript(script); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, string script) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, script); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, string script) + => engineIntrinsics.RunScript(script); + + public static IEnumerable RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => PsHelpers.RunScript(cmdlet.InvokeCommand, block.ToString()); + + public static void RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => cmdlet.RunScript(block.ToString()); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, block.ToString()); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => engineIntrinsics.RunScript(block.ToString()); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/PsHelpers.cs b/src/CostManagement/generated/runtime/BuildTime/PsHelpers.cs new file mode 100644 index 000000000000..1346743e9777 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/PsHelpers.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using Pwsh = System.Management.Automation.PowerShell; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class PsHelpers + { + public static IEnumerable RunScript(string script) + => Pwsh.Create().AddScript(script).Invoke(); + + public static void RunScript(string script) + => RunScript(script); + + public static IEnumerable RunScript(CommandInvocationIntrinsics cii, string script) + => cii.InvokeScript(script).Select(o => o?.BaseObject).Where(o => o != null).OfType(); + + public static void RunScript(CommandInvocationIntrinsics cii, string script) + => RunScript(cii, script); + + public static IEnumerable GetModuleCmdlets(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletsCommand = String.Join(" + ", modulePaths.Select(mp => $"(Get-Command -Module (Import-Module '{mp}' -PassThru))")); + return (cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand)) + .Where(ci => ci.CommandType != CommandTypes.Alias); + } + + public static IEnumerable GetModuleCmdlets(params string[] modulePaths) + => GetModuleCmdlets(null, modulePaths); + + public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) + { + // https://stackoverflow.com/a/40969712/294804 + var getCmdletsCommand = $@" +$currentFunctions = Get-ChildItem function: +Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} +"; + return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); + } + + public static IEnumerable GetScriptCmdlets(string scriptFolder) + => GetScriptCmdlets(null, scriptFolder); + + public static IEnumerable GetScriptHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var importModules = String.Join(Environment.NewLine, modulePaths.Select(mp => $"Import-Module '{mp}'")); + var getHelpCommand = $@" +$currentFunctions = Get-ChildItem function: +{importModules} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} | ForEach-Object {{ Get-Help -Name $_.Name -Full }} +"; + return cmdlet?.RunScript(getHelpCommand) ?? RunScript(getHelpCommand); + } + + public static IEnumerable GetScriptHelpInfo(params string[] modulePaths) + => GetScriptHelpInfo(null, modulePaths); + + public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => + $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" + )); + return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) + .Select(h => new CmdletAndHelpInfo { CommandInfo = (h["CommandInfo"] as PSObject)?.BaseObject as CommandInfo, HelpInfo = h["HelpInfo"] as PSObject }); + } + + public static IEnumerable GetModuleCmdletsAndHelpInfo(params string[] modulePaths) + => GetModuleCmdletsAndHelpInfo(null, modulePaths); + + public static CmdletAndHelpInfo ToCmdletAndHelpInfo(this CommandInfo commandInfo, PSObject helpInfo) => new CmdletAndHelpInfo { CommandInfo = commandInfo, HelpInfo = helpInfo }; + + public const string Psd1Indent = " "; + public const string GuidStart = Psd1Indent + "GUID"; + + public static Guid ReadGuidFromPsd1(string psd1Path) + { + var guid = Guid.NewGuid(); + if (File.Exists(psd1Path)) + { + var currentGuid = File.ReadAllLines(psd1Path) + .FirstOrDefault(l => l.StartsWith(GuidStart))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) + .LastOrDefault()?.Replace("'", String.Empty); + guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; + } + + return guid; + } + } + + internal class CmdletAndHelpInfo + { + public CommandInfo CommandInfo { get; set; } + public PSObject HelpInfo { get; set; } + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/StringExtensions.cs b/src/CostManagement/generated/runtime/BuildTime/StringExtensions.cs new file mode 100644 index 000000000000..f34ebfa8fe73 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/StringExtensions.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class StringExtensions + { + public static string NullIfEmpty(this string text) => String.IsNullOrEmpty(text) ? null : text; + public static string NullIfWhiteSpace(this string text) => String.IsNullOrWhiteSpace(text) ? null : text; + public static string EmptyIfNull(this string text) => text ?? String.Empty; + + public static bool? ToNullableBool(this string text) => String.IsNullOrEmpty(text) ? (bool?)null : Convert.ToBoolean(text.ToLowerInvariant()); + + public static string ToUpperFirstCharacter(this string text) => String.IsNullOrEmpty(text) ? text : $"{text[0].ToString().ToUpperInvariant()}{text.Remove(0, 1)}"; + + public static string ReplaceNewLines(this string value, string replacer = " ", string[] newLineSymbols = null) + => (newLineSymbols ?? new []{ "\r\n", "\n" }).Aggregate(value.EmptyIfNull(), (current, symbol) => current.Replace(symbol, replacer)); + public static string NormalizeNewLines(this string value) => value.ReplaceNewLines("\u00A0").Replace("\u00A0", Environment.NewLine); + } +} diff --git a/src/CostManagement/generated/runtime/BuildTime/XmlExtensions.cs b/src/CostManagement/generated/runtime/BuildTime/XmlExtensions.cs new file mode 100644 index 000000000000..fa20a253c594 --- /dev/null +++ b/src/CostManagement/generated/runtime/BuildTime/XmlExtensions.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class XmlExtensions + { + public static string ToXmlString(this T inputObject, bool excludeDeclaration = false) + { + var serializer = new XmlSerializer(typeof(T)); + //https://stackoverflow.com/a/760290/294804 + //https://stackoverflow.com/a/3732234/294804 + var namespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty }); + var xmlSettings = new XmlWriterSettings { OmitXmlDeclaration = excludeDeclaration, Indent = true }; + using (var stringWriter = new StringWriter()) + using (var xmlWriter = XmlWriter.Create(stringWriter, xmlSettings)) + { + serializer.Serialize(xmlWriter, inputObject, namespaces); + return stringWriter.ToString(); + } + } + } +} diff --git a/src/CostManagement/generated/runtime/CmdInfoHandler.cs b/src/CostManagement/generated/runtime/CmdInfoHandler.cs new file mode 100644 index 000000000000..e325aec5baea --- /dev/null +++ b/src/CostManagement/generated/runtime/CmdInfoHandler.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Management.Automation; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using NextDelegate = Func, Task>, Task>; + using SignalDelegate = Func, Task>; + + public class CmdInfoHandler + { + private readonly string processRecordId; + private readonly string parameterSetName; + private readonly InvocationInfo invocationInfo; + + public CmdInfoHandler(string processRecordId, InvocationInfo invocationInfo, string parameterSetName) + { + this.processRecordId = processRecordId; + this.parameterSetName = parameterSetName; + this.invocationInfo = invocationInfo; + } + + public Task SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next) + { + request.Headers.Add("x-ms-client-request-id", processRecordId); + request.Headers.Add("CommandName", invocationInfo?.InvocationName); + request.Headers.Add("FullCommandName", invocationInfo?.MyCommand?.Name); + request.Headers.Add("ParameterSetName", parameterSetName); + + // continue with pipeline. + return next(request, token, cancel, signal); + } + } +} diff --git a/src/CostManagement/generated/runtime/Conversions/ConversionException.cs b/src/CostManagement/generated/runtime/Conversions/ConversionException.cs new file mode 100644 index 000000000000..c6b1ea23b5c5 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/ConversionException.cs @@ -0,0 +1,17 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class ConversionException : Exception + { + internal ConversionException(string message) + : base(message) { } + + internal ConversionException(JsonNode node, Type targetType) + : base($"Cannot convert '{node.Type}' to a {targetType.Name}") { } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/IJsonConverter.cs b/src/CostManagement/generated/runtime/Conversions/IJsonConverter.cs new file mode 100644 index 000000000000..84e970cd96b2 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/IJsonConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal interface IJsonConverter + { + JsonNode ToJson(object value); + + object FromJson(JsonNode node); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/BinaryConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/BinaryConverter.cs new file mode 100644 index 000000000000..5a945f1e95f2 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/BinaryConverter.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class BinaryConverter : JsonConverter + { + internal override JsonNode ToJson(byte[] value) => new XBinary(value); + + internal override byte[] FromJson(JsonNode node) + { + switch (node.Type) + { + case JsonType.String : return Convert.FromBase64String(node.ToString()); // Base64 Encoded + case JsonType.Binary : return ((XBinary)node).Value; + } + + throw new ConversionException(node, typeof(byte[])); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/BooleanConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/BooleanConverter.cs new file mode 100644 index 000000000000..9e8807ba4293 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/BooleanConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class BooleanConverter : JsonConverter + { + internal override JsonNode ToJson(bool value) => new JsonBoolean(value); + + internal override bool FromJson(JsonNode node) => (bool)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeConverter.cs new file mode 100644 index 000000000000..2a5c22d3d284 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeConverter.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class DateTimeConverter : JsonConverter + { + internal override JsonNode ToJson(DateTime value) + { + return new JsonDate(value); + } + + internal override DateTime FromJson(JsonNode node) => (DateTime)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs new file mode 100644 index 000000000000..d9b0b47965fd --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class DateTimeOffsetConverter : JsonConverter + { + internal override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value); + + internal override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/DecimalConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/DecimalConverter.cs new file mode 100644 index 000000000000..1a5faf42fbf0 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/DecimalConverter.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class DecimalConverter : JsonConverter + { + internal override JsonNode ToJson(decimal value) => new JsonNumber(value.ToString()); + + internal override decimal FromJson(JsonNode node) + { + return (decimal)node; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/DoubleConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/DoubleConverter.cs new file mode 100644 index 000000000000..8962108559ed --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/DoubleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class DoubleConverter : JsonConverter + { + internal override JsonNode ToJson(double value) => new JsonNumber(value); + + internal override double FromJson(JsonNode node) => (double)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/EnumConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/EnumConverter.cs new file mode 100644 index 000000000000..9f971e257aa6 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/EnumConverter.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class EnumConverter : IJsonConverter + { + private readonly Type type; + + internal EnumConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + } + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + + public object FromJson(JsonNode node) + { + if (node.Type == JsonType.Number) + { + return Enum.ToObject(type, (int)node); + } + + return Enum.Parse(type, node.ToString(), ignoreCase: true); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/GuidConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/GuidConverter.cs new file mode 100644 index 000000000000..35a6f80de6e3 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/GuidConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class GuidConverter : JsonConverter + { + internal override JsonNode ToJson(Guid value) => new JsonString(value.ToString()); + + internal override Guid FromJson(JsonNode node) => (Guid)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/HashSet'1Converter.cs new file mode 100644 index 000000000000..875d1c926d88 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/HashSet'1Converter.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class HashSetConverter : JsonConverter> + { + internal override JsonNode ToJson(HashSet value) + { + return new XSet(value); + } + + internal override HashSet FromJson(JsonNode node) + { + var collection = node as ICollection; + + if (collection.Count == 0) return null; + + // TODO: Remove Linq depedency + return new HashSet(collection.Cast()); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/Int16Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/Int16Converter.cs new file mode 100644 index 000000000000..d0121be37064 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/Int16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class Int16Converter : JsonConverter + { + internal override JsonNode ToJson(short value) => new JsonNumber(value); + + internal override short FromJson(JsonNode node) => (short)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/Int32Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/Int32Converter.cs new file mode 100644 index 000000000000..f969317da686 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/Int32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class Int32Converter : JsonConverter + { + internal override JsonNode ToJson(int value) => new JsonNumber(value); + + internal override int FromJson(JsonNode node) => (int)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/Int64Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/Int64Converter.cs new file mode 100644 index 000000000000..df7b24f93530 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/Int64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class Int64Converter : JsonConverter + { + internal override JsonNode ToJson(long value) => new JsonNumber(value); + + internal override long FromJson(JsonNode node) => (long)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/JsonArrayConverter.cs new file mode 100644 index 000000000000..53bb34f79016 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/JsonArrayConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class JsonArrayConverter : JsonConverter + { + internal override JsonNode ToJson(JsonArray value) => value; + + internal override JsonArray FromJson(JsonNode node) => (JsonArray)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/JsonObjectConverter.cs new file mode 100644 index 000000000000..3b39a1b63d26 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/JsonObjectConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class JsonObjectConverter : JsonConverter + { + internal override JsonNode ToJson(JsonObject value) => value; + + internal override JsonObject FromJson(JsonNode node) => (JsonObject)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/SingleConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/SingleConverter.cs new file mode 100644 index 000000000000..a99a41a1e78d --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/SingleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class SingleConverter : JsonConverter + { + internal override JsonNode ToJson(float value) => new JsonNumber(value.ToString()); + + internal override float FromJson(JsonNode node) => (float)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/StringConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/StringConverter.cs new file mode 100644 index 000000000000..aebfc9880a6a --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/StringConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class StringConverter : JsonConverter + { + internal override JsonNode ToJson(string value) => new JsonString(value); + + internal override string FromJson(JsonNode node) => node.ToString(); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/TimeSpanConverter.cs new file mode 100644 index 000000000000..069a72984ab7 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/TimeSpanConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class TimeSpanConverter : JsonConverter + { + internal override JsonNode ToJson(TimeSpan value) => new JsonString(value.ToString()); + + internal override TimeSpan FromJson(JsonNode node) => (TimeSpan)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/UInt16Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/UInt16Converter.cs new file mode 100644 index 000000000000..70e4bfd57e54 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/UInt16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class UInt16Converter : JsonConverter + { + internal override JsonNode ToJson(ushort value) => new JsonNumber(value); + + internal override ushort FromJson(JsonNode node) => (ushort)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/UInt32Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/UInt32Converter.cs new file mode 100644 index 000000000000..84c7d570fa02 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/UInt32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class UInt32Converter : JsonConverter + { + internal override JsonNode ToJson(uint value) => new JsonNumber(value); + + internal override uint FromJson(JsonNode node) => (uint)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/UInt64Converter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/UInt64Converter.cs new file mode 100644 index 000000000000..e9e092133fd1 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/UInt64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class UInt64Converter : JsonConverter + { + internal override JsonNode ToJson(ulong value) => new JsonNumber(value.ToString()); + + internal override ulong FromJson(JsonNode node) => (ulong)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/Instances/UriConverter.cs b/src/CostManagement/generated/runtime/Conversions/Instances/UriConverter.cs new file mode 100644 index 000000000000..3f8331a7ae70 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/Instances/UriConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class UriConverter : JsonConverter + { + internal override JsonNode ToJson(Uri value) => new JsonString(value.AbsoluteUri); + + internal override Uri FromJson(JsonNode node) => (Uri)node; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/JsonConverter.cs b/src/CostManagement/generated/runtime/Conversions/JsonConverter.cs new file mode 100644 index 000000000000..e1811f42d891 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/JsonConverter.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public abstract class JsonConverter : IJsonConverter + { + internal abstract T FromJson(JsonNode node); + + internal abstract JsonNode ToJson(T value); + + #region IConverter + + object IJsonConverter.FromJson(JsonNode node) => FromJson(node); + + JsonNode IJsonConverter.ToJson(object value) => ToJson((T)value); + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/JsonConverterAttribute.cs b/src/CostManagement/generated/runtime/Conversions/JsonConverterAttribute.cs new file mode 100644 index 000000000000..b4258b7602a6 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/JsonConverterAttribute.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class JsonConverterAttribute : Attribute + { + internal JsonConverterAttribute(Type type) + { + Converter = (IJsonConverter)Activator.CreateInstance(type); + } + + internal IJsonConverter Converter { get; } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/JsonConverterFactory.cs b/src/CostManagement/generated/runtime/Conversions/JsonConverterFactory.cs new file mode 100644 index 000000000000..148856740af6 --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/JsonConverterFactory.cs @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class JsonConverterFactory + { + private static readonly Dictionary converters = new Dictionary(); + + static JsonConverterFactory() + { + AddInternal(new BooleanConverter()); + AddInternal(new DateTimeConverter()); + AddInternal(new DateTimeOffsetConverter()); + AddInternal(new BinaryConverter()); + AddInternal(new DecimalConverter()); + AddInternal(new DoubleConverter()); + AddInternal(new GuidConverter()); + AddInternal(new Int16Converter()); + AddInternal(new Int32Converter()); + AddInternal(new Int64Converter()); + AddInternal(new SingleConverter()); + AddInternal(new StringConverter()); + AddInternal(new TimeSpanConverter()); + AddInternal(new UInt16Converter()); + AddInternal(new UInt32Converter()); + AddInternal(new UInt64Converter()); + AddInternal(new UriConverter()); + + // Hash sets + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + + // JSON + + AddInternal(new JsonObjectConverter()); + AddInternal(new JsonArrayConverter()); + } + + internal static Dictionary Instances => converters; + + internal static IJsonConverter Get(Type type) + { + var details = TypeDetails.Get(type); + + if (details.JsonConverter == null) + { + throw new ConversionException($"No converter found for '{type.Name}'."); + } + + return details.JsonConverter; + } + + internal static bool TryGet(Type type, out IJsonConverter converter) + { + var typeDetails = TypeDetails.Get(type); + + converter = typeDetails.JsonConverter; + + return converter != null; + } + + private static void AddInternal(JsonConverter converter) + => converters.Add(typeof(T), converter); + + private static void AddInternal(IJsonConverter converter) + => converters.Add(typeof(T), converter); + + internal static void Add(JsonConverter converter) + { + if (converter == null) + { + throw new ArgumentNullException(nameof(converter)); + } + + AddInternal(converter); + + var type = TypeDetails.Get(); + + type.JsonConverter = converter; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Conversions/StringLikeConverter.cs b/src/CostManagement/generated/runtime/Conversions/StringLikeConverter.cs new file mode 100644 index 000000000000..9075cc72c2ec --- /dev/null +++ b/src/CostManagement/generated/runtime/Conversions/StringLikeConverter.cs @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class StringLikeConverter : IJsonConverter + { + private readonly Type type; + private readonly MethodInfo parseMethod; + + internal StringLikeConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + this.parseMethod = StringLikeHelper.GetParseMethod(type); + } + + public object FromJson(JsonNode node) => + parseMethod.Invoke(null, new[] { node.ToString() }); + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + } + + internal static class StringLikeHelper + { + private static readonly Type[] parseMethodParamaterTypes = new[] { typeof(string) }; + + internal static bool IsStringLike(Type type) + { + return GetParseMethod(type) != null; + } + + internal static MethodInfo GetParseMethod(Type type) + { + MethodInfo method = type.GetMethod("Parse", parseMethodParamaterTypes); + + if (method?.IsPublic != true) return null; + + return method; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/IJsonSerializable.cs b/src/CostManagement/generated/runtime/Customizations/IJsonSerializable.cs new file mode 100644 index 000000000000..6ac43b7a9a49 --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/IJsonSerializable.cs @@ -0,0 +1,249 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json; +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + public interface IJsonSerializable + { + JsonNode ToJson(JsonObject container = null, SerializationMode serializationMode = SerializationMode.None); + } + internal static class JsonSerializable + { + /// + /// Serializes an enumerable and returns a JsonNode. + /// + /// an IEnumerable collection of items + /// A JsonNode that contains the collection of items serialized. + private static JsonNode ToJsonValue(System.Collections.IEnumerable enumerable) + { + if (enumerable != null) + { + // is it a byte array of some kind? + if (enumerable is System.Collections.Generic.IEnumerable byteEnumerable) + { + return new XBinary(System.Linq.Enumerable.ToArray(byteEnumerable)); + } + + var hasValues = false; + // just create an array of value nodes. + var result = new XNodeArray(); + foreach (var each in enumerable) + { + // we had at least one value. + hasValues = true; + + // try to serialize it. + var node = ToJsonValue(each); + if (null != node) + { + result.Add(node); + } + } + + // if we were able to add values, (or it was just empty), return it. + if (result.Count > 0 || !hasValues) + { + return result; + } + } + + // we couldn't serialize the values. Sorry. + return null; + } + + /// + /// Serializes a valuetype to a JsonNode. + /// + /// a ValueType (ie, a primitive, enum or struct) to be serialized + /// a JsonNode with the serialized value + private static JsonNode ToJsonValue(ValueType vValue) + { + // numeric type + if (vValue is SByte || vValue is Int16 || vValue is Int32 || vValue is Int64 || vValue is Byte || vValue is UInt16 || vValue is UInt32 || vValue is UInt64 || vValue is decimal || vValue is float || vValue is double) + { + return new JsonNumber(vValue.ToString()); + } + + // boolean type + if (vValue is bool bValue) + { + return new JsonBoolean(bValue); + } + + // dates + if (vValue is DateTime dtValue) + { + return new JsonDate(dtValue); + } + + // sorry, no idea. + return null; + } + /// + /// Attempts to serialize an object by using ToJson() or ToJsonString() if they exist. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + private static JsonNode TryToJsonValue(dynamic oValue) + { + object jsonValue = null; + dynamic v = oValue; + try + { + jsonValue = v.ToJson().ToString(); + } + catch + { + // no harm... + try + { + jsonValue = v.ToJsonString().ToString(); + } + catch + { + // no worries here either. + } + } + + // if we got something out, let's use it. + if (null != jsonValue) + { + // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? + return new JsonNumber(jsonValue.ToString()); + } + + return null; + } + + /// + /// Serialize an object by using a variety of methods. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + internal static JsonNode ToJsonValue(object value) + { + // things that implement our interface are preferred. + if (value is Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IJsonSerializable jsonSerializable) + { + return jsonSerializable.ToJson(); + } + + // strings are easy. + if (value is string || value is char) + { + return new JsonString(value.ToString()); + } + + // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) + if (value is System.ValueType vValue) + { + return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); + } + + // dictionaries are objects that should be able to serialize + if (value is System.Collections.Generic.IDictionary dictionary) + { + return Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.ToJson(dictionary, null); + } + + // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) + if (value is System.Collections.IEnumerable enumerableValue) + { + // some kind of enumerable value + return ToJsonValue(enumerableValue) ?? TryToJsonValue(value) ?? new JsonString(value.ToString()); + } + + // at this point, we're going to fallback to a string literal here, since we really have no idea what it is. + return new JsonString(value.ToString()); + } + + internal static JsonObject ToJson(System.Collections.Generic.Dictionary dictionary, JsonObject container) => ToJson((System.Collections.Generic.IDictionary)dictionary, container); + + /// + /// Serializes a dictionary into a JsonObject container. + /// + /// The dictionary to serailize + /// the container to serialize the dictionary into + /// the container + internal static JsonObject ToJson(System.Collections.Generic.IDictionary dictionary, JsonObject container) + { + container = container ?? new JsonObject(); + if (dictionary != null && dictionary.Count > 0) + { + foreach (var key in dictionary) + { + // currently, we don't serialize null values. + if (null != key.Value) + { + container.Add(key.Key, ToJsonValue(key.Value)); + continue; + } + } + } + return container; + } + + internal static Func> DeserializeDictionary(Func> dictionaryFactory) + { + return (node) => FromJson(node, dictionaryFactory(), (object)(DeserializeDictionary(dictionaryFactory)) as Func); + } + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.Dictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) => FromJson(json, (System.Collections.Generic.IDictionary)container, objectFactory, excludes); + + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.IDictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) + { + if (null == json) + { + return container; + } + + foreach (var key in json.Keys) + { + if (true == excludes?.Contains(key)) + { + continue; + } + + var value = json[key]; + try + { + switch (value.Type) + { + case JsonType.Null: + // skip null values. + continue; + + case JsonType.Array: + case JsonType.Boolean: + case JsonType.Date: + case JsonType.Binary: + case JsonType.Number: + case JsonType.String: + container.Add(key, (V)value.ToValue()); + break; + case JsonType.Object: + if (objectFactory != null) + { + var v = objectFactory(value as JsonObject); + if (null != v) + { + container.Add(key, v); + } + } + break; + } + } + catch + { + } + } + return container; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonArray.cs b/src/CostManagement/generated/runtime/Customizations/JsonArray.cs new file mode 100644 index 000000000000..5509a376c543 --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonArray.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public partial class JsonArray + { + internal override object ToValue() => Count == 0 ? new object[0] : System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(this, each => each.ToValue())); + } + + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonBoolean.cs b/src/CostManagement/generated/runtime/Customizations/JsonBoolean.cs new file mode 100644 index 000000000000..7da9fb8545dc --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonBoolean.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal partial class JsonBoolean + { + internal static JsonBoolean Create(bool? value) => value is bool b ? new JsonBoolean(b) : null; + internal bool ToBoolean() => Value; + + internal override object ToValue() => Value; + } + + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonNode.cs b/src/CostManagement/generated/runtime/Customizations/JsonNode.cs new file mode 100644 index 000000000000..7eadf585de5e --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonNode.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonNode + { + /// + /// Returns the content of this node as the underlying value. + /// Will default to the string representation if not overridden in child classes. + /// + /// an object with the underlying value of the node. + internal virtual object ToValue() { + return this.ToString(); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonNumber.cs b/src/CostManagement/generated/runtime/Customizations/JsonNumber.cs new file mode 100644 index 000000000000..ad8295dfef94 --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonNumber.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System; + + public partial class JsonNumber + { + internal static readonly DateTime EpochDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); + private static long ToUnixTime(DateTime dateTime) + { + return (long)dateTime.Subtract(EpochDate).TotalSeconds; + } + private static DateTime FromUnixTime(long totalSeconds) + { + return EpochDate.AddSeconds(totalSeconds); + } + internal byte ToByte() => this; + internal int ToInt() => this; + internal long ToLong() => this; + internal short ToShort() => this; + internal UInt16 ToUInt16() => this; + internal UInt32 ToUInt32() => this; + internal UInt64 ToUInt64() => this; + internal decimal ToDecimal() => this; + internal double ToDouble() => this; + internal float ToFloat() => this; + + internal static JsonNumber Create(int? value) => value is int n ? new JsonNumber(n) : null; + internal static JsonNumber Create(long? value) => value is long n ? new JsonNumber(n) : null; + internal static JsonNumber Create(float? value) => value is float n ? new JsonNumber(n) : null; + internal static JsonNumber Create(double? value) => value is double n ? new JsonNumber(n) : null; + internal static JsonNumber Create(decimal? value) => value is decimal n ? new JsonNumber(n) : null; + internal static JsonNumber Create(DateTime? value) => value is DateTime date ? new JsonNumber(ToUnixTime(date)) : null; + + public static implicit operator DateTime(JsonNumber number) => FromUnixTime(number); + internal DateTime ToDateTime() => this; + + internal JsonNumber(decimal value) + { + this.value = value.ToString(); + } + internal override object ToValue() + { + if (IsInteger) + { + if (int.TryParse(this.value, out int iValue)) + { + return iValue; + } + if (long.TryParse(this.value, out long lValue)) + { + return lValue; + } + } + else + { + if (float.TryParse(this.value, out float fValue)) + { + return fValue; + } + if (double.TryParse(this.value, out double dValue)) + { + return dValue; + } + if (decimal.TryParse(this.value, out decimal dcValue)) + { + return dcValue; + } + } + return null; + } + } + + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonObject.cs b/src/CostManagement/generated/runtime/Customizations/JsonObject.cs new file mode 100644 index 000000000000..1ac64bbb6e4b --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonObject.cs @@ -0,0 +1,183 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonObject + { + internal override object ToValue() => Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.JsonSerializable.FromJson(this, new System.Collections.Generic.Dictionary(), (obj) => obj.ToValue()); + + internal void SafeAdd(string name, Func valueFn) + { + if (valueFn != null) + { + var value = valueFn(); + if (null != value) + { + items.Add(name, value); + } + } + } + + internal void SafeAdd(string name, JsonNode value) + { + if (null != value) + { + items.Add(name, value); + } + } + + internal T NullableProperty(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; + } + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + //throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal JsonObject Property(string propertyName) + { + return PropertyT(propertyName); + } + + internal T PropertyT(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; // we're going to assume that the consumer knows what to do if null is explicity returned? + } + + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + // throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal int NumberProperty(string propertyName, ref int output) => output = this.PropertyT(propertyName)?.ToInt() ?? output; + internal float NumberProperty(string propertyName, ref float output) => output = this.PropertyT(propertyName)?.ToFloat() ?? output; + internal byte NumberProperty(string propertyName, ref byte output) => output = this.PropertyT(propertyName)?.ToByte() ?? output; + internal long NumberProperty(string propertyName, ref long output) => output = this.PropertyT(propertyName)?.ToLong() ?? output; + internal double NumberProperty(string propertyName, ref double output) => output = this.PropertyT(propertyName)?.ToDouble() ?? output; + internal decimal NumberProperty(string propertyName, ref decimal output) => output = this.PropertyT(propertyName)?.ToDecimal() ?? output; + internal short NumberProperty(string propertyName, ref short output) => output = this.PropertyT(propertyName)?.ToShort() ?? output; + internal DateTime NumberProperty(string propertyName, ref DateTime output) => output = this.PropertyT(propertyName)?.ToDateTime() ?? output; + + internal int? NumberProperty(string propertyName, ref int? output) => output = this.NullableProperty(propertyName)?.ToInt() ?? null; + internal float? NumberProperty(string propertyName, ref float? output) => output = this.NullableProperty(propertyName)?.ToFloat() ?? null; + internal byte? NumberProperty(string propertyName, ref byte? output) => output = this.NullableProperty(propertyName)?.ToByte() ?? null; + internal long? NumberProperty(string propertyName, ref long? output) => output = this.NullableProperty(propertyName)?.ToLong() ?? null; + internal double? NumberProperty(string propertyName, ref double? output) => output = this.NullableProperty(propertyName)?.ToDouble() ?? null; + internal decimal? NumberProperty(string propertyName, ref decimal? output) => output = this.NullableProperty(propertyName)?.ToDecimal() ?? null; + internal short? NumberProperty(string propertyName, ref short? output) => output = this.NullableProperty(propertyName)?.ToShort() ?? null; + + internal DateTime? NumberProperty(string propertyName, ref DateTime? output) => output = this.NullableProperty(propertyName)?.ToDateTime() ?? null; + + + internal string StringProperty(string propertyName) => this.PropertyT(propertyName)?.ToString(); + internal string StringProperty(string propertyName, ref string output) => output = this.PropertyT(propertyName)?.ToString() ?? output; + internal char StringProperty(string propertyName, ref char output) => output = this.PropertyT(propertyName)?.ToChar() ?? output; + internal char? StringProperty(string propertyName, ref char? output) => output = this.PropertyT(propertyName)?.ToChar() ?? null; + + internal DateTime StringProperty(string propertyName, ref DateTime output) => DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out output) ? output : output; + internal DateTime? StringProperty(string propertyName, ref DateTime? output) => output = DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out var o) ? o : output; + + + internal bool BooleanProperty(string propertyName, ref bool output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? output; + internal bool? BooleanProperty(string propertyName, ref bool? output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? null; + + internal T[] ArrayProperty(string propertyName, ref T[] output, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + } + return output; + } + internal T[] ArrayProperty(string propertyName, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + var output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + return output; + } + return new T[0]; + } + internal void IterateArrayProperty(string propertyName, Action deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + for (var i = 0; i < array.Count; i++) + { + deserializer(array[i]); + } + } + } + + internal Dictionary DictionaryProperty(string propertyName, ref Dictionary output, Func deserializer) + { + var dictionary = this.PropertyT(propertyName); + if (output == null) + { + output = new Dictionary(); + } + else + { + output.Clear(); + } + if (dictionary != null) + { + foreach (var key in dictionary.Keys) + { + output[key] = deserializer(dictionary[key]); + } + } + return output; + } + + internal static JsonObject Create(IDictionary source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new JsonObject(); + + foreach (var key in source.Keys) + { + result.SafeAdd(key, selector(source[key])); + } + return result; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/JsonString.cs b/src/CostManagement/generated/runtime/Customizations/JsonString.cs new file mode 100644 index 000000000000..3032c67a5556 --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/JsonString.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System; + using System.Globalization; + using System.Linq; + + public partial class JsonString + { + internal static string DateFormat = "yyyy-MM-dd"; + internal static string DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; + internal static string DateTimeRfc1123Format = "R"; + + internal static JsonString Create(string value) => value == null ? null : new JsonString(value); + internal static JsonString Create(char? value) => value is char c ? new JsonString(c.ToString()) : null; + + internal static JsonString CreateDate(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTime(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTimeRfc1123(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeRfc1123Format, CultureInfo.CurrentCulture)) : null; + + internal char ToChar() => this.Value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char(JsonString value) => value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char? (JsonString value) => value?.ToString()?.FirstOrDefault(); + + public static implicit operator DateTime(JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime); + public static implicit operator DateTime? (JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime?); + + } + + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Customizations/XNodeArray.cs b/src/CostManagement/generated/runtime/Customizations/XNodeArray.cs new file mode 100644 index 000000000000..b7b44770348d --- /dev/null +++ b/src/CostManagement/generated/runtime/Customizations/XNodeArray.cs @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System; + using System.Linq; + + public partial class XNodeArray + { + internal static XNodeArray Create(T[] source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new XNodeArray(); + foreach (var item in source.Select(selector)) + { + result.SafeAdd(item); + } + return result; + } + internal void SafeAdd(JsonNode item) + { + if (item != null) + { + items.Add(item); + } + } + internal void SafeAdd(Func itemFn) + { + if (itemFn != null) + { + var item = itemFn(); + if (item != null) + { + items.Add(item); + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Debugging.cs b/src/CostManagement/generated/runtime/Debugging.cs new file mode 100644 index 000000000000..65ce31ce5a4d --- /dev/null +++ b/src/CostManagement/generated/runtime/Debugging.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + internal static class AttachDebugger + { + internal static void Break() + { + while (!System.Diagnostics.Debugger.IsAttached) + { + System.Console.Error.WriteLine($"Waiting for debugger to attach to process {System.Diagnostics.Process.GetCurrentProcess().Id}"); + for (int i = 0; i < 50; i++) + { + if (System.Diagnostics.Debugger.IsAttached) + { + break; + } + System.Threading.Thread.Sleep(100); + System.Console.Error.Write("."); + } + System.Console.Error.WriteLine(); + } + System.Diagnostics.Debugger.Break(); + } + } +} diff --git a/src/CostManagement/generated/runtime/DictionaryExtensions.cs b/src/CostManagement/generated/runtime/DictionaryExtensions.cs new file mode 100644 index 000000000000..57300be52bf7 --- /dev/null +++ b/src/CostManagement/generated/runtime/DictionaryExtensions.cs @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + internal static class DictionaryExtensions + { + internal static void HashTableToDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) + { + foreach (var each in hashtable.Keys) + { + var key = each.ToString(); + var value = hashtable[key]; + if (null != value) + { + if (value is System.Collections.Hashtable nested) + { + HashTableToDictionary(nested, new System.Collections.Generic.Dictionary()); + } + else + { + try + { + dictionary[key] = (V)value; + } + catch + { + // Values getting dropped; not compatible with target dictionary. Not sure what to do here. + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/EventData.cs b/src/CostManagement/generated/runtime/EventData.cs new file mode 100644 index 000000000000..55c5d8b6a792 --- /dev/null +++ b/src/CostManagement/generated/runtime/EventData.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + + using System; + using System.Threading; + + ///Represents the data in signaled event. + public partial class EventData + { + /// + /// The type of the event being signaled + /// + public string Id; + + /// + /// The user-ready message from the event. + /// + public string Message; + + /// + /// When the event is about a parameter, this is the parameter name. + /// Used in Validation Events + /// + public string Parameter; + + /// + /// This represents a numeric value associated with the event. + /// Use for progress-style events + /// + public double Value; + + /// + /// Any extended data for an event should be serialized and stored here. + /// + public string ExtendedData; + + /// + /// If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) + /// { + /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); + /// } + /// + /// + public object RequestMessage; + + /// + /// If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.ResponseMessage is HttpResponseMessage httpResponse){ + /// var flavor = httpResponse.Headers.GetValue("x-request-flavor"); + /// } + /// + /// + public object ResponseMessage; + + /// + /// Cancellation method for this event. + /// + /// If the event consumer wishes to cancel the request that initiated this event, call Cancel() + /// + /// + /// The original initiator of the request must provide the implementation of this. + /// + public System.Action Cancel; + } + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/EventDataExtensions.cs b/src/CostManagement/generated/runtime/EventDataExtensions.cs new file mode 100644 index 000000000000..e6dc3bd4f1e5 --- /dev/null +++ b/src/CostManagement/generated/runtime/EventDataExtensions.cs @@ -0,0 +1,94 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System; + + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] + /// + /// PowerShell-specific data on top of the llc# EventData + /// + /// + /// In PowerShell, we add on the EventDataConverter to support sending events between modules. + /// Obviously, this code would need to be duplcated on both modules. + /// This is preferable to sharing a common library, as versioning makes that problematic. + /// + public partial class EventData : EventArgs + { + } + + /// + /// A PowerShell PSTypeConverter to adapt an EventData object that has been passed. + /// Usually used between modules. + /// + public class EventDataConverter : System.Management.Automation.PSTypeConverter + { + public override bool CanConvertTo(object sourceValue, Type destinationType) => false; + public override object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => null; + public override bool CanConvertFrom(dynamic sourceValue, Type destinationType) => destinationType == typeof(EventData) && CanConvertFrom(sourceValue); + public override object ConvertFrom(dynamic sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Verifies that a given object has the required members to convert it to the target type (EventData) + /// + /// Uses a dynamic type so that it is able to use the simplest code without excessive checking. + /// + /// The instance to verify + /// True, if the object has all the required parameters. + public static bool CanConvertFrom(dynamic sourceValue) + { + try + { + // check if this has *required* parameters... + sourceValue?.Id?.GetType(); + sourceValue?.Message?.GetType(); + sourceValue?.Cancel?.GetType(); + + // remaining parameters are not *required*, + // and if they have values, it will copy them at conversion time. + } + catch + { + // if anything throws an exception (because it's null, or doesn't have that member) + return false; + } + return true; + } + + /// + /// Returns result of the delegate as the expected type, or default(T) + /// + /// This isolates any exceptions from the consumer. + /// + /// A delegate that returns a value + /// The desired output type + /// The value from the function if the type is correct + private static T To(Func srcValue) + { + try { return srcValue(); } + catch { return default(T); } + } + + /// + /// Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values. + /// + /// the incoming object + /// EventData + public static EventData ConvertFrom(dynamic sourceValue) + { + return new EventData + { + Id = To(() => sourceValue.Id), + Message = To(() => sourceValue.Message), + Parameter = To(() => sourceValue.Parameter), + Value = To(() => sourceValue.Value), + RequestMessage = To(() => sourceValue.RequestMessage), + ResponseMessage = To(() => sourceValue.ResponseMessage), + Cancel = To(() => sourceValue.Cancel) + }; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/EventListener.cs b/src/CostManagement/generated/runtime/EventListener.cs new file mode 100644 index 000000000000..1f591cb02186 --- /dev/null +++ b/src/CostManagement/generated/runtime/EventListener.cs @@ -0,0 +1,247 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public interface IValidates + { + Task Validate(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener listener); + } + + /// + /// The IEventListener Interface defines the communication mechanism for Signaling events during a remote call. + /// + /// + /// The interface is designed to be as minimal as possible, allow for quick peeking of the event type (id) + /// and the cancellation status and provides a delegate for retrieving the event details themselves. + /// + public interface IEventListener + { + Task Signal(string id, CancellationToken token, GetEventData createMessage); + CancellationToken Token { get; } + System.Action Cancel { get; } + } + + internal static partial class Extensions + { + public static Task Signal(this IEventListener instance, string id, CancellationToken token, Func createMessage) => instance.Signal(id, token, createMessage); + public static Task Signal(this IEventListener instance, string id, CancellationToken token) => instance.Signal(id, token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, EventData message) => instance.Signal(id, token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, Func createMessage) => instance.Signal(id, instance.Token, createMessage); + public static Task Signal(this IEventListener instance, string id) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, EventData message) => instance.Signal(id, instance.Token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, System.Uri uri) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = uri.ToString(), Cancel = instance.Cancel }); + + public static async Task AssertNotNull(this IEventListener instance, string parameterName, object value) + { + if (value == null) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' should not be null", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMinimumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length < length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is less than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMaximumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length > length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is greater than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + + public static async Task AssertRegEx(this IEventListener instance, string parameterName, string value, string regularExpression) + { + if (value != null && !System.Text.RegularExpressions.Regex.Match(value, regularExpression).Success) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' does not validate against pattern /{regularExpression}/", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertEnum(this IEventListener instance, string parameterName, string value, params string[] values) + { + if (!values.Any(each => each.Equals(value))) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' is not one of ({values.Aggregate((c, e) => $"'{e}',{c}")}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertObjectIsValid(this IEventListener instance, string parameterName, object inst) + { + await (inst as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IValidates)?.Validate(instance); + } + + public static async Task AssertIsLessThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) >= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) <= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsLessThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) > 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) < 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, Int64? value, Int64 multiple) + { + if (null != value && value % multiple != 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, double? value, double multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, decimal? value, decimal multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + } + + /// + /// An Implementation of the IEventListener that supports subscribing to events and dispatching them + /// (used for manually using the lowlevel interface) + /// + public class EventListener : CancellationTokenSource, IEnumerable>, IEventListener + { + private Dictionary calls = new Dictionary(); + public IEnumerator> GetEnumerator() => calls.GetEnumerator(); + IEnumerator IEnumerable.GetEnumerator() => calls.GetEnumerator(); + public EventListener() + { + } + + public new Action Cancel => base.Cancel; + private Event tracer; + + public EventListener(params (string name, Event callback)[] initializer) + { + foreach (var each in initializer) + { + Add(each.name, each.callback); + } + } + + public void Add(string name, SynchEvent callback) + { + Add(name, (message) => { callback(message); return Task.CompletedTask; }); + } + + public void Add(string name, Event callback) + { + if (callback != null) + { + if (string.IsNullOrEmpty(name)) + { + if (calls.ContainsKey(name)) + { + tracer += callback; + } + else + { + tracer = callback; + } + } + else + { + if (calls.ContainsKey(name)) + { + calls[name ?? System.String.Empty] += callback; + } + else + { + calls[name ?? System.String.Empty] = callback; + } + } + } + } + + + public async Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + using (NoSynchronizationContext) + { + if (!string.IsNullOrEmpty(id) && (calls.TryGetValue(id, out Event listener) || tracer != null)) + { + var message = createMessage(); + message.Id = id; + + await listener?.Invoke(message); + await tracer?.Invoke(message); + + if (token.IsCancellationRequested) + { + throw new OperationCanceledException($"Canceled by event {id} ", this.Token); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Events.cs b/src/CostManagement/generated/runtime/Events.cs new file mode 100644 index 000000000000..8de84b629dc3 --- /dev/null +++ b/src/CostManagement/generated/runtime/Events.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + public static partial class Events + { + public const string Log = nameof(Log); + public const string Validation = nameof(Validation); + public const string ValidationWarning = nameof(ValidationWarning); + public const string AfterValidation = nameof(AfterValidation); + public const string RequestCreated = nameof(RequestCreated); + public const string ResponseCreated = nameof(ResponseCreated); + public const string URLCreated = nameof(URLCreated); + public const string Finally = nameof(Finally); + public const string HeaderParametersAdded = nameof(HeaderParametersAdded); + public const string BodyContentSet = nameof(BodyContentSet); + public const string BeforeCall = nameof(BeforeCall); + public const string BeforeResponseDispatch = nameof(BeforeResponseDispatch); + public const string FollowingNextLink = nameof(FollowingNextLink); + public const string DelayBeforePolling = nameof(DelayBeforePolling); + public const string Polling = nameof(Polling); + + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/EventsExtensions.cs b/src/CostManagement/generated/runtime/EventsExtensions.cs new file mode 100644 index 000000000000..21fd63a7beed --- /dev/null +++ b/src/CostManagement/generated/runtime/EventsExtensions.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + public static partial class Events + { + public const string CmdletProcessRecordStart = nameof(CmdletProcessRecordStart); + public const string CmdletProcessRecordAsyncStart = nameof(CmdletProcessRecordAsyncStart); + public const string CmdletException = nameof(CmdletException); + public const string CmdletGetPipeline = nameof(CmdletGetPipeline); + public const string CmdletBeforeAPICall = nameof(CmdletBeforeAPICall); + public const string CmdletBeginProcessing = nameof(CmdletBeginProcessing); + public const string CmdletEndProcessing = nameof(CmdletEndProcessing); + public const string CmdletProcessRecordEnd = nameof(CmdletProcessRecordEnd); + public const string CmdletProcessRecordAsyncEnd = nameof(CmdletProcessRecordAsyncEnd); + public const string CmdletAfterAPICall = nameof(CmdletAfterAPICall); + + public const string Verbose = nameof(Verbose); + public const string Debug = nameof(Debug); + public const string Information = nameof(Information); + public const string Error = nameof(Error); + public const string Warning = nameof(Warning); + } + +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Extensions.cs b/src/CostManagement/generated/runtime/Extensions.cs new file mode 100644 index 000000000000..23f26f5a7b8a --- /dev/null +++ b/src/CostManagement/generated/runtime/Extensions.cs @@ -0,0 +1,111 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System.Linq; + + internal static partial class Extensions + { + + public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class + { + (instance as IHeaderSerializable)?.ReadHeaders(headers); + return instance; + } + + internal static bool If(T input, out T output) + { + if (null == input) + { + output = default(T); + return false; + } + output = input; + return true; + } + + internal static void AddIf(T value, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(value); + } + } + + internal static void AddIf(T value, string serializedName, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(serializedName, value); + } + } + + /// + /// Returns the first header value as a string from an HttpReponseMessage. + /// + /// the HttpResponseMessage to fetch a header from + /// the header name + /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => headerName == each.Key).Value?.FirstOrDefault() ?? string.Empty; + + /// + /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, + /// will restore the synchonization context to the original value. + /// + /// This is used a less-invasive means to ensure that code in the library that doesn't + /// need to be continued in the original context doesn't have to have ConfigureAwait(false) + /// on every single await + /// + /// If the SynchronizationContext is null when this is used, the resulting IDisposable + /// will not do anything (this prevents excessive re-setting of the SynchronizationContext) + /// + /// Usage: + /// + /// using(NoSynchronizationContext) { + /// await SomeAsyncOperation(); + /// await SomeOtherOperation(); + /// } + /// + /// + /// + /// An IDisposable that will return the SynchronizationContext to original state + internal static System.IDisposable NoSynchronizationContext => System.Threading.SynchronizationContext.Current == null ? Dummy : new NoSyncContext(); + + /// + /// An instance of the Dummy IDispoable. + /// + /// + internal static System.IDisposable Dummy = new DummyDisposable(); + + /// + /// An IDisposable that does absolutely nothing. + /// + internal class DummyDisposable : System.IDisposable + { + public void Dispose() + { + } + } + /// + /// An IDisposable that saves the SynchronizationContext,sets it to null and + /// restores it to the original upon Dispose(). + /// + /// NOTE: This is designed to be less invasive than using .ConfigureAwait(false) + /// on every single await in library code (ie, places where we know we don't need + /// to continue in the same context as we went async) + /// + internal class NoSyncContext : System.IDisposable + { + private System.Threading.SynchronizationContext original = System.Threading.SynchronizationContext.Current; + internal NoSyncContext() + { + System.Threading.SynchronizationContext.SetSynchronizationContext(null); + } + public void Dispose() => System.Threading.SynchronizationContext.SetSynchronizationContext(original); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs b/src/CostManagement/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs new file mode 100644 index 000000000000..22398d16eaba --- /dev/null +++ b/src/CostManagement/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal static class StringBuilderExtensions + { + /// + /// Extracts the buffered value and resets the buffer + /// + internal static string Extract(this StringBuilder builder) + { + var text = builder.ToString(); + + builder.Clear(); + + return text; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Helpers/Extensions/TypeExtensions.cs b/src/CostManagement/generated/runtime/Helpers/Extensions/TypeExtensions.cs new file mode 100644 index 000000000000..3427f611b3cf --- /dev/null +++ b/src/CostManagement/generated/runtime/Helpers/Extensions/TypeExtensions.cs @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal static class TypeExtensions + { + internal static bool IsNullable(this Type type) => + type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)); + + internal static Type GetOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition() == openGenericInterfaceType) + { + return candidateType; + } + + // Check if it references it's own converter.... + + foreach (Type interfaceType in candidateType.GetInterfaces()) + { + if (interfaceType.IsGenericType + && interfaceType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return interfaceType; + } + } + + return null; + } + + // Author: Sebastian Good + // http://stackoverflow.com/questions/503263/how-to-determine-if-a-type-implements-a-specific-generic-interface-type + internal static bool ImplementsOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + if (candidateType.Equals(openGenericInterfaceType)) + { + return true; + } + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return true; + } + + foreach (Type i in candidateType.GetInterfaces()) + { + if (i.IsGenericType && i.ImplementsOpenGenericInterface(openGenericInterfaceType)) + { + return true; + } + } + + return false; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Helpers/Seperator.cs b/src/CostManagement/generated/runtime/Helpers/Seperator.cs new file mode 100644 index 000000000000..dfa4e994bd86 --- /dev/null +++ b/src/CostManagement/generated/runtime/Helpers/Seperator.cs @@ -0,0 +1,11 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal static class Seperator + { + internal static readonly char[] Dash = { '-' }; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Helpers/TypeDetails.cs b/src/CostManagement/generated/runtime/Helpers/TypeDetails.cs new file mode 100644 index 000000000000..d0b5ccfe9334 --- /dev/null +++ b/src/CostManagement/generated/runtime/Helpers/TypeDetails.cs @@ -0,0 +1,116 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + + + + internal class TypeDetails + { + private readonly Type info; + + internal TypeDetails(Type info) + { + this.info = info ?? throw new ArgumentNullException(nameof(info)); + } + + internal Type NonNullType { get; set; } + + internal object DefaultValue { get; set; } + + internal bool IsNullable { get; set; } + + internal bool IsList { get; set; } + + internal bool IsStringLike { get; set; } + + internal bool IsEnum => info.IsEnum; + + internal bool IsArray => info.IsArray; + + internal bool IsValueType => info.IsValueType; + + internal Type ElementType { get; set; } + + internal IJsonConverter JsonConverter { get; set; } + + #region Creation + + private static readonly ConcurrentDictionary cache = new ConcurrentDictionary(); + + internal static TypeDetails Get() => Get(typeof(T)); + + internal static TypeDetails Get(Type type) => cache.GetOrAdd(type, Create); + + private static TypeDetails Create(Type type) + { + var isGenericList = !type.IsPrimitive && type.ImplementsOpenGenericInterface(typeof(IList<>)); + var isList = !type.IsPrimitive && (isGenericList || typeof(IList).IsAssignableFrom(type)); + + var isNullable = type.IsNullable(); + + Type elementType; + + if (type.IsArray) + { + elementType = type.GetElementType(); + } + else if (isGenericList) + { + var iList = type.GetOpenGenericInterface(typeof(IList<>)); + + elementType = iList.GetGenericArguments()[0]; + } + else + { + elementType = null; + } + + var nonNullType = isNullable ? type.GetGenericArguments()[0] : type; + + var isStringLike = false; + + IJsonConverter converter; + + var jsonConverterAttribute = type.GetCustomAttribute(); + + if (jsonConverterAttribute != null) + { + converter = jsonConverterAttribute.Converter; + } + else if (nonNullType.IsEnum) + { + converter = new EnumConverter(nonNullType); + } + else if (JsonConverterFactory.Instances.TryGetValue(nonNullType, out converter)) + { + } + else if (StringLikeHelper.IsStringLike(nonNullType)) + { + isStringLike = true; + + converter = new StringLikeConverter(nonNullType); + } + + return new TypeDetails(nonNullType) { + NonNullType = nonNullType, + DefaultValue = type.IsValueType ? Activator.CreateInstance(type) : null, + IsNullable = isNullable, + IsList = isList, + IsStringLike = isStringLike, + ElementType = elementType, + JsonConverter = converter + }; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Helpers/XHelper.cs b/src/CostManagement/generated/runtime/Helpers/XHelper.cs new file mode 100644 index 000000000000..3f888db77189 --- /dev/null +++ b/src/CostManagement/generated/runtime/Helpers/XHelper.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal static class XHelper + { + internal static JsonNode Create(JsonType type, TypeCode code, object value) + { + switch (type) + { + case JsonType.Binary : return new XBinary((byte[])value); + case JsonType.Boolean : return new JsonBoolean((bool)value); + case JsonType.Number : return new JsonNumber(value.ToString()); + case JsonType.String : return new JsonString((string)value); + } + + throw new Exception($"JsonType '{type}' does not have a fast conversion"); + } + + internal static bool TryGetElementType(TypeCode code, out JsonType type) + { + switch (code) + { + case TypeCode.Boolean : type = JsonType.Boolean; return true; + case TypeCode.Byte : type = JsonType.Number; return true; + case TypeCode.DateTime : type = JsonType.Date; return true; + case TypeCode.Decimal : type = JsonType.Number; return true; + case TypeCode.Double : type = JsonType.Number; return true; + case TypeCode.Empty : type = JsonType.Null; return true; + case TypeCode.Int16 : type = JsonType.Number; return true; + case TypeCode.Int32 : type = JsonType.Number; return true; + case TypeCode.Int64 : type = JsonType.Number; return true; + case TypeCode.SByte : type = JsonType.Number; return true; + case TypeCode.Single : type = JsonType.Number; return true; + case TypeCode.String : type = JsonType.String; return true; + case TypeCode.UInt16 : type = JsonType.Number; return true; + case TypeCode.UInt32 : type = JsonType.Number; return true; + case TypeCode.UInt64 : type = JsonType.Number; return true; + } + + type = default; + + return false; + } + + internal static JsonType GetElementType(TypeCode code) + { + switch (code) + { + case TypeCode.Boolean : return JsonType.Boolean; + case TypeCode.Byte : return JsonType.Number; + case TypeCode.DateTime : return JsonType.Date; + case TypeCode.Decimal : return JsonType.Number; + case TypeCode.Double : return JsonType.Number; + case TypeCode.Empty : return JsonType.Null; + case TypeCode.Int16 : return JsonType.Number; + case TypeCode.Int32 : return JsonType.Number; + case TypeCode.Int64 : return JsonType.Number; + case TypeCode.SByte : return JsonType.Number; + case TypeCode.Single : return JsonType.Number; + case TypeCode.String : return JsonType.String; + case TypeCode.UInt16 : return JsonType.Number; + case TypeCode.UInt32 : return JsonType.Number; + case TypeCode.UInt64 : return JsonType.Number; + default : return JsonType.Object; + } + + throw new Exception($"TypeCode '{code}' does not have a fast converter"); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/HttpPipeline.cs b/src/CostManagement/generated/runtime/HttpPipeline.cs new file mode 100644 index 000000000000..4e91d94419e6 --- /dev/null +++ b/src/CostManagement/generated/runtime/HttpPipeline.cs @@ -0,0 +1,88 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + using GetEventData = System.Func; + using NextDelegate = System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + + using SignalDelegate = System.Func, System.Threading.Tasks.Task>; + using GetParameterDelegate = System.Func, string, object>; + using SendAsyncStepDelegate = System.Func, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + using PipelineChangeDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>; + using ModuleLoadPipelineDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = System.Action, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + +/* + public class DelegateBasedEventListener : IEventListener + { + private EventListenerDelegate _listener; + public DelegateBasedEventListener(EventListenerDelegate listener) + { + _listener = listener; + } + public CancellationToken Token => CancellationToken.None; + public System.Action Cancel => () => { }; + + + public Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + return _listener(id, token, () => createMessage()); + } + } +*/ + /// + /// This is a necessary extension to the SendAsyncFactory to support the 'generic' delegate format. + /// + public partial class SendAsyncFactory + { + /// + /// This translates a generic-defined delegate for a listener into one that fits our ISendAsync pattern. + /// (Provided to support out-of-module delegation for Azure Cmdlets) + /// + /// The Pipeline Step as a delegate + public SendAsyncFactory(SendAsyncStepDelegate step) => this.implementation = (request, listener, next) => + step( + request, + listener.Token, + listener.Cancel, + (id, token, getEventData) => listener.Signal(id, token, () => { + var data = EventDataConverter.ConvertFrom( getEventData() ) as EventData; + data.Id = id; + data.Cancel = listener.Cancel; + data.RequestMessage = request; + return data; + }), + (req, token, cancel, listenerDelegate) => next.SendAsync(req, listener)); + } + + public partial class HttpPipeline : ISendAsync + { + public HttpPipeline Append(SendAsyncStepDelegate item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStepDelegate item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + } +} diff --git a/src/CostManagement/generated/runtime/HttpPipelineMocking.ps1 b/src/CostManagement/generated/runtime/HttpPipelineMocking.ps1 new file mode 100644 index 000000000000..5a9de0253df3 --- /dev/null +++ b/src/CostManagement/generated/runtime/HttpPipelineMocking.ps1 @@ -0,0 +1,110 @@ +$ErrorActionPreference = "Stop" + +# get the recording path +if (-not $TestRecordingFile) { + $TestRecordingFile = Join-Path $PSScriptRoot 'recording.json' +} + +# create the Http Pipeline Recorder +$Mock = New-Object -Type Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PipelineMock $TestRecordingFile + +# set the recorder to the appropriate mode (default to 'live') +Write-Host -ForegroundColor Green "Running '$TestMode' mode..." +switch ($TestMode) { + 'record' { + Write-Host -ForegroundColor Green "Recording to $TestRecordingFile" + $Mock.SetRecord() + $null = erase -ea 0 $TestRecordingFile + } + 'playback' { + if (-not (Test-Path $TestRecordingFile)) { + Write-Host -fore:yellow "Recording file '$TestRecordingFile' is not present. Tests expecting recorded responses will fail" + } else { + Write-Host -ForegroundColor Green "Using recording $TestRecordingFile" + } + $Mock.SetPlayback() + $Mock.ForceResponseHeaders["Retry-After"] = "0"; + } + default: { + $Mock.SetLive() + } +} + +# overrides for Pester Describe/Context/It + +function Describe( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushDescription($Name) + try { + return pester\Describe -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopDescription() + } +} + +function Context( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushContext($Name) + try { + return pester\Context -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopContext() + } +} + +function It { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test = { }, + + [System.Collections.IDictionary[]] $TestCases, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + $Mock.PushScenario($Name) + + try { + if ($skip) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Skip + } + if ($pending) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Pending + } + return pester\It -Name $Name -Test $Test -TestCases $TestCases + } + finally { + $null = $Mock.PopScenario() + } +} + +# set the HttpPipelineAppend for all the cmdlets +$PSDefaultParameterValues["*:HttpPipelinePrepend"] = $Mock diff --git a/src/CostManagement/generated/runtime/IAssociativeArray.cs b/src/CostManagement/generated/runtime/IAssociativeArray.cs new file mode 100644 index 000000000000..c7367086b998 --- /dev/null +++ b/src/CostManagement/generated/runtime/IAssociativeArray.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter + public interface IAssociativeArray + { + System.Collections.Generic.IEnumerable Keys { get; } + System.Collections.Generic.IEnumerable Values { get; } + System.Collections.Generic.IDictionary AdditionalProperties { get; } + T this[string index] { get; set; } + int Count { get; } + void Add(string key, T value); + bool ContainsKey(string key); + bool Remove(string key); + bool TryGetValue(string key, out T value); + void Clear(); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/IHeaderSerializable.cs b/src/CostManagement/generated/runtime/IHeaderSerializable.cs new file mode 100644 index 000000000000..e2f425cec9cf --- /dev/null +++ b/src/CostManagement/generated/runtime/IHeaderSerializable.cs @@ -0,0 +1,14 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + public interface IHeaderSerializable + { + void ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/ISendAsync.cs b/src/CostManagement/generated/runtime/ISendAsync.cs new file mode 100644 index 000000000000..3e0b67474abb --- /dev/null +++ b/src/CostManagement/generated/runtime/ISendAsync.cs @@ -0,0 +1,296 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + /// + /// The interface for sending an HTTP request across the wire. + /// + public interface ISendAsync + { + Task SendAsync(HttpRequestMessage request, IEventListener callback); + } + + public class SendAsyncTerminalFactory : ISendAsyncTerminalFactory, ISendAsync + { + SendAsync implementation; + + public SendAsyncTerminalFactory(SendAsync implementation) => this.implementation = implementation; + public SendAsyncTerminalFactory(ISendAsync implementation) => this.implementation = implementation.SendAsync; + public ISendAsync Create() => this; + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback); + } + + public partial class SendAsyncFactory : ISendAsyncFactory + { + public class Sender : ISendAsync + { + internal ISendAsync next; + internal SendAsyncStep implementation; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback, next); + } + SendAsyncStep implementation; + + public SendAsyncFactory(SendAsyncStep implementation) => this.implementation = implementation; + public ISendAsync Create(ISendAsync next) => new Sender { next = next, implementation = implementation }; + + } + + public class HttpClientFactory : ISendAsyncTerminalFactory, ISendAsync + { + HttpClient client; + public HttpClientFactory() : this(new HttpClient()) + { + } + public HttpClientFactory(HttpClient client) => this.client = client; + public ISendAsync Create() => this; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, callback.Token); + } + + public interface ISendAsyncFactory + { + ISendAsync Create(ISendAsync next); + } + + public interface ISendAsyncTerminalFactory + { + ISendAsync Create(); + } + + public partial class HttpPipeline : ISendAsync + { + private ISendAsync pipeline; + private ISendAsyncTerminalFactory terminal; + private List steps = new List(); + + public HttpPipeline() : this(new HttpClientFactory()) + { + } + + public HttpPipeline(ISendAsyncTerminalFactory terminalStep) + { + if (terminalStep == null) + { + throw new System.ArgumentNullException(nameof(terminalStep), "Terminal Step Factory in HttpPipeline may not be null"); + } + TerminalFactory = terminalStep; + } + + /// + /// Returns an HttpPipeline with the current state of this pipeline. + /// + public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; + + public ISendAsyncTerminalFactory TerminalFactory + { + get => terminal; + set + { + if (value == null) + { + throw new System.ArgumentNullException("TerminalFactory in HttpPipeline may not be null"); + } + terminal = value; + } + } + + public ISendAsync Pipeline + { + get + { + // if the pipeline has been created and not invalidated, return it. + if (this.pipeline != null) + { + return this.pipeline; + } + + // create the pipeline from scratch. + var next = terminal.Create(); + foreach (var factory in steps) + { + // skip factories that return null. + next = factory.Create(next) ?? next; + } + return this.pipeline = next; + } + } + + public int Count => steps.Count; + + public HttpPipeline Prepend(ISendAsyncFactory item) + { + if (item != null) + { + steps.Add(item); + pipeline = null; + } + return this; + } + + public HttpPipeline Append(SendAsyncStep item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStep item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Append(ISendAsyncFactory item) + { + if (item != null) + { + steps.Insert(0, item); + pipeline = null; + } + return this; + } + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(item); + } + } + return this; + } + + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(item); + } + } + return this; + } + + // you can use this as the ISendAsync Implementation + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => Pipeline.SendAsync(request, callback); + } + + internal static partial class Extensions + { + internal static HttpRequestMessage CloneAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.Clone(requestUri, method); + } + } + + internal static Task CloneWithContentAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.CloneWithContent(requestUri, method); + } + } + + /// + /// Clones an HttpRequestMessage (without the content) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = new HttpRequestMessage + { + Method = method ?? original.Method, + RequestUri = requestUri ?? original.RequestUri, + Version = original.Version, + }; + + foreach (KeyValuePair prop in original.Properties) + { + clone.Properties.Add(prop); + } + + foreach (KeyValuePair> header in original.Headers) + { + /* + **temporarily skip cloning telemetry related headers** + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } + } + + return clone; + } + + /// + /// Clones an HttpRequestMessage (including the content stream and content headers) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = original.Clone(requestUri, method); + var stream = new System.IO.MemoryStream(); + if (original.Content != null) + { + await original.Content.CopyToAsync(stream).ConfigureAwait(false); + stream.Position = 0; + clone.Content = new StreamContent(stream); + if (original.Content.Headers != null) + { + foreach (var h in original.Content.Headers) + { + clone.Content.Headers.Add(h.Key, h.Value); + } + } + } + return clone; + } + } +} diff --git a/src/CostManagement/generated/runtime/InfoAttribute.cs b/src/CostManagement/generated/runtime/InfoAttribute.cs new file mode 100644 index 000000000000..b6c01cb49533 --- /dev/null +++ b/src/CostManagement/generated/runtime/InfoAttribute.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System; + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)] + public class InfoAttribute : Attribute + { + public bool Required { get; set; } = false; + public bool ReadOnly { get; set; } = false; + public Type[] PossibleTypes { get; set; } = new Type[0]; + public string Description { get; set; } = ""; + public string SerializedName { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class CompleterInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class DefaultInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Iso/IsoDate.cs b/src/CostManagement/generated/runtime/Iso/IsoDate.cs new file mode 100644 index 000000000000..32a0fe05a2d5 --- /dev/null +++ b/src/CostManagement/generated/runtime/Iso/IsoDate.cs @@ -0,0 +1,214 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal struct IsoDate + { + internal int Year { get; set; } // 0-3000 + + internal int Month { get; set; } // 1-12 + + internal int Day { get; set; } // 1-31 + + internal int Hour { get; set; } // 0-24 + + internal int Minute { get; set; } // 0-60 (60 is a special case) + + internal int Second { get; set; } // 0-60 (60 is used for leap seconds) + + internal double Millisecond { get; set; } // 0-999.9... + + internal TimeSpan Offset { get; set; } + + internal DateTimeKind Kind { get; set; } + + internal TimeSpan TimeOfDay => new TimeSpan(Hour, Minute, Second); + + internal DateTime ToDateTime() + { + if (Kind == DateTimeKind.Utc || Offset == TimeSpan.Zero) + { + return new DateTime(Year, Month, Day, Hour, Minute, Second, (int)Millisecond, DateTimeKind.Utc); + } + + return ToDateTimeOffset().DateTime; + } + + internal DateTimeOffset ToDateTimeOffset() + { + return new DateTimeOffset( + Year, + Month, + Day, + Hour, + Minute, + Second, + (int)Millisecond, + Offset + ); + } + + internal DateTime ToUtcDateTime() + { + return ToDateTimeOffset().UtcDateTime; + } + + public override string ToString() + { + var sb = new StringBuilder(); + + // yyyy-MM-dd + sb.Append($"{Year}-{Month:00}-{Day:00}"); + + if (TimeOfDay > new TimeSpan(0)) + { + sb.Append($"T{Hour:00}:{Minute:00}"); + + if (TimeOfDay.Seconds > 0) + { + sb.Append($":{Second:00}"); + } + } + + if (Offset.Ticks == 0) + { + sb.Append('Z'); // UTC + } + else + { + if (Offset.Ticks >= 0) + { + sb.Append('+'); + } + + sb.Append($"{Offset.Hours:00}:{Offset.Minutes:00}"); + } + + return sb.ToString(); + } + + internal static IsoDate FromDateTimeOffset(DateTimeOffset date) + { + return new IsoDate { + Year = date.Year, + Month = date.Month, + Day = date.Day, + Hour = date.Hour, + Minute = date.Minute, + Second = date.Second, + Offset = date.Offset, + Kind = date.Offset == TimeSpan.Zero ? DateTimeKind.Utc : DateTimeKind.Unspecified + }; + } + + private static readonly char[] timeSeperators = { ':', '.' }; + + internal static IsoDate Parse(string text) + { + var tzIndex = -1; + var timeIndex = text.IndexOf('T'); + + var builder = new IsoDate { Day = 1, Month = 1 }; + + // TODO: strip the time zone offset off the end + string dateTime = text; + string timeZone = null; + + if (dateTime.IndexOf('Z') > -1) + { + tzIndex = dateTime.LastIndexOf('Z'); + + builder.Kind = DateTimeKind.Utc; + } + else if (dateTime.LastIndexOf('+') > 10) + { + tzIndex = dateTime.LastIndexOf('+'); + } + else if (dateTime.LastIndexOf('-') > 10) + { + tzIndex = dateTime.LastIndexOf('-'); + } + + if (tzIndex > -1) + { + timeZone = dateTime.Substring(tzIndex); + dateTime = dateTime.Substring(0, tzIndex); + } + + string date = (timeIndex == -1) ? dateTime : dateTime.Substring(0, timeIndex); + + var dateParts = date.Split(Seperator.Dash); // '-' + + for (int i = 0; i < dateParts.Length; i++) + { + var part = dateParts[i]; + + switch (i) + { + case 0: builder.Year = int.Parse(part); break; + case 1: builder.Month = int.Parse(part); break; + case 2: builder.Day = int.Parse(part); break; + } + } + + if (timeIndex > -1) + { + string[] timeParts = dateTime.Substring(timeIndex + 1).Split(timeSeperators); + + for (int i = 0; i < timeParts.Length; i++) + { + var part = timeParts[i]; + + switch (i) + { + case 0: builder.Hour = int.Parse(part); break; + case 1: builder.Minute = int.Parse(part); break; + case 2: builder.Second = int.Parse(part); break; + case 3: builder.Millisecond = double.Parse("0." + part) * 1000; break; + } + } + } + + if (timeZone != null && timeZone != "Z") + { + var hours = int.Parse(timeZone.Substring(1, 2)); + var minutes = int.Parse(timeZone.Substring(4, 2)); + + if (timeZone[0] == '-') + { + hours = -hours; + minutes = -minutes; + } + + builder.Offset = new TimeSpan(hours, minutes, 0); + } + + return builder; + } + } + + /* + YYYY # eg 1997 + YYYY-MM # eg 1997-07 + YYYY-MM-DD # eg 1997-07-16 + YYYY-MM-DDThh:mmTZD # eg 1997-07-16T19:20+01:00 + YYYY-MM-DDThh:mm:ssTZD # eg 1997-07-16T19:20:30+01:00 + YYYY-MM-DDThh:mm:ss.sTZD # eg 1997-07-16T19:20:30.45+01:00 + + where: + + YYYY = four-digit year + MM = two-digit month (01=January, etc.) + DD = two-digit day of month (01 through 31) + hh = two digits of hour (00 through 23) (am/pm NOT allowed) + mm = two digits of minute (00 through 59) + ss = two digits of second (00 through 59) + s = one or more digits representing a decimal fraction of a second + TZD = time zone designator (Z or +hh:mm or -hh:mm) + */ +} diff --git a/src/CostManagement/generated/runtime/JsonType.cs b/src/CostManagement/generated/runtime/JsonType.cs new file mode 100644 index 000000000000..d605c8b473d9 --- /dev/null +++ b/src/CostManagement/generated/runtime/JsonType.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal enum JsonType + { + Null = 0, + Object = 1, + Array = 2, + Binary = 3, + Boolean = 4, + Date = 5, + Number = 6, + String = 7 + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Method.cs b/src/CostManagement/generated/runtime/Method.cs new file mode 100644 index 000000000000..fcfc98f97de1 --- /dev/null +++ b/src/CostManagement/generated/runtime/Method.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + internal static class Method + { + internal static System.Net.Http.HttpMethod Get = System.Net.Http.HttpMethod.Get; + internal static System.Net.Http.HttpMethod Put = System.Net.Http.HttpMethod.Put; + internal static System.Net.Http.HttpMethod Head = System.Net.Http.HttpMethod.Head; + internal static System.Net.Http.HttpMethod Post = System.Net.Http.HttpMethod.Post; + internal static System.Net.Http.HttpMethod Delete = System.Net.Http.HttpMethod.Delete; + internal static System.Net.Http.HttpMethod Options = System.Net.Http.HttpMethod.Options; + internal static System.Net.Http.HttpMethod Trace = System.Net.Http.HttpMethod.Trace; + internal static System.Net.Http.HttpMethod Patch = new System.Net.Http.HttpMethod("PATCH"); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Models/JsonMember.cs b/src/CostManagement/generated/runtime/Models/JsonMember.cs new file mode 100644 index 000000000000..1e73a542f958 --- /dev/null +++ b/src/CostManagement/generated/runtime/Models/JsonMember.cs @@ -0,0 +1,83 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; +using System.Runtime.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + + + internal sealed class JsonMember + { + private readonly TypeDetails type; + + private readonly Func getter; + private readonly Action setter; + + internal JsonMember(PropertyInfo property, int defaultOrder) + { + getter = property.GetValue; + setter = property.SetValue; + + var dataMember = property.GetCustomAttribute(); + + Name = dataMember?.Name ?? property.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(property.PropertyType); + + CanRead = property.CanRead; + } + + internal JsonMember(FieldInfo field, int defaultOrder) + { + getter = field.GetValue; + setter = field.SetValue; + + var dataMember = field.GetCustomAttribute(); + + Name = dataMember?.Name ?? field.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(field.FieldType); + + CanRead = true; + } + + internal string Name { get; } + + internal int Order { get; } + + internal TypeDetails TypeDetails => type; + + internal Type Type => type.NonNullType; + + internal bool IsList => type.IsList; + + // Arrays, Sets, ... + internal Type ElementType => type.ElementType; + + internal IJsonConverter Converter => type.JsonConverter; + + internal bool EmitDefaultValue { get; } + + internal bool IsStringLike => type.IsStringLike; + + internal object DefaultValue => type.DefaultValue; + + internal bool CanRead { get; } + + #region Helpers + + internal object GetValue(object instance) => getter(instance); + + internal void SetValue(object instance, object value) => setter(instance, value); + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Models/JsonModel.cs b/src/CostManagement/generated/runtime/Models/JsonModel.cs new file mode 100644 index 000000000000..ede77bcfcbec --- /dev/null +++ b/src/CostManagement/generated/runtime/Models/JsonModel.cs @@ -0,0 +1,89 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class JsonModel + { + private Dictionary map; + private readonly object _sync = new object(); + + private JsonModel(Type type, List members) + { + Type = type ?? throw new ArgumentNullException(nameof(type)); + Members = members ?? throw new ArgumentNullException(nameof(members)); + } + + internal string Name => Type.Name; + + internal Type Type { get; } + + internal List Members { get; } + + internal JsonMember this[string name] + { + get + { + if (map == null) + { + lock (_sync) + { + if (map == null) + { + map = new Dictionary(); + + foreach (JsonMember m in Members) + { + map[m.Name.ToLower()] = m; + } + } + } + } + + + map.TryGetValue(name.ToLower(), out JsonMember member); + + return member; + } + } + + internal static JsonModel FromType(Type type) + { + var members = new List(); + + int i = 0; + + // BindingFlags.Instance | BindingFlags.Public + + foreach (var member in type.GetFields()) + { + if (member.IsStatic) continue; + + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + foreach (var member in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) + { + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + members.Sort((a, b) => a.Order.CompareTo(b.Order)); // inline sort + + return new JsonModel(type, members); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Models/JsonModelCache.cs b/src/CostManagement/generated/runtime/Models/JsonModelCache.cs new file mode 100644 index 000000000000..eb5ef6f5c541 --- /dev/null +++ b/src/CostManagement/generated/runtime/Models/JsonModelCache.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Runtime.CompilerServices; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal static class JsonModelCache + { + private static readonly ConditionalWeakTable cache + = new ConditionalWeakTable(); + + internal static JsonModel Get(Type type) => cache.GetValue(type, Create); + + private static JsonModel Create(Type type) => JsonModel.FromType(type); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/Collections/JsonArray.cs b/src/CostManagement/generated/runtime/Nodes/Collections/JsonArray.cs new file mode 100644 index 000000000000..9a9729797c28 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/Collections/JsonArray.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public abstract partial class JsonArray : JsonNode, IEnumerable + { + internal override JsonType Type => JsonType.Array; + + internal abstract JsonType? ElementType { get; } + + public abstract int Count { get; } + + internal virtual bool IsSet => false; + + internal bool IsEmpty => Count == 0; + + #region IEnumerable + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion + + #region Static Helpers + + internal static JsonArray Create(short[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(int[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(long[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(decimal[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(float[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(string[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(XBinary[] values) + => new XImmutableArray(values); + + #endregion + + internal static new JsonArray Parse(string text) + => (JsonArray)JsonNode.Parse(text); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/Collections/XImmutableArray.cs b/src/CostManagement/generated/runtime/Nodes/Collections/XImmutableArray.cs new file mode 100644 index 000000000000..511890d012a2 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/Collections/XImmutableArray.cs @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed class XImmutableArray : JsonArray, IEnumerable + { + private readonly T[] values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XImmutableArray(T[] values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Length; + + public bool IsReadOnly => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + #region Static Constructor + + internal XImmutableArray Create(T[] items) + { + return new XImmutableArray(items); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/Collections/XList.cs b/src/CostManagement/generated/runtime/Nodes/Collections/XList.cs new file mode 100644 index 000000000000..13de4939d351 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/Collections/XList.cs @@ -0,0 +1,64 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed class XList : JsonArray, IEnumerable + { + private readonly IList values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XList(IList values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Count; + + public bool IsReadOnly => values.IsReadOnly; + + #region IList + + public void Add(T value) + { + values.Add(value); + } + + public bool Contains(T value) => values.Contains(value); + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/Collections/XNodeArray.cs b/src/CostManagement/generated/runtime/Nodes/Collections/XNodeArray.cs new file mode 100644 index 000000000000..bf091791b250 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/Collections/XNodeArray.cs @@ -0,0 +1,68 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed partial class XNodeArray : JsonArray, ICollection + { + private readonly List items; + + internal XNodeArray() + { + items = new List(); + } + + internal XNodeArray(params JsonNode[] values) + { + items = new List(values); + } + + public override JsonNode this[int index] => items[index]; + + internal override JsonType? ElementType => null; + + public bool IsReadOnly => false; + + public override int Count => items.Count; + + #region ICollection Members + + public void Add(JsonNode item) + { + items.Add(item); + } + + void ICollection.Clear() + { + items.Clear(); + } + + public bool Contains(JsonNode item) => items.Contains(item); + + void ICollection.CopyTo(JsonNode[] array, int arrayIndex) + { + items.CopyTo(array, arrayIndex); + } + + public bool Remove(JsonNode item) + { + return items.Remove(item); + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/Collections/XSet.cs b/src/CostManagement/generated/runtime/Nodes/Collections/XSet.cs new file mode 100644 index 000000000000..fe8c0dcad333 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/Collections/XSet.cs @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed class XSet : JsonArray, IEnumerable + { + private readonly HashSet values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XSet(IEnumerable values) + : this(new HashSet(values)) + { } + + internal XSet(HashSet values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + internal override JsonType Type => JsonType.Array; + + internal override JsonType? ElementType => elementType; + + public bool IsReadOnly => true; + + public override int Count => values.Count; + + internal override bool IsSet => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + internal HashSet AsHashSet() => values; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonBoolean.cs b/src/CostManagement/generated/runtime/Nodes/JsonBoolean.cs new file mode 100644 index 000000000000..ab0e316f2d8a --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonBoolean.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed partial class JsonBoolean : JsonNode + { + internal static readonly JsonBoolean True = new JsonBoolean(true); + internal static readonly JsonBoolean False = new JsonBoolean(false); + + internal JsonBoolean(bool value) + { + Value = value; + } + + internal bool Value { get; } + + internal override JsonType Type => JsonType.Boolean; + + internal static new JsonBoolean Parse(string text) + { + switch (text) + { + case "false": return False; + case "true": return True; + + default: throw new ArgumentException($"Expected true or false. Was {text}."); + } + } + + #region Implicit Casts + + public static implicit operator bool(JsonBoolean data) => data.Value; + + public static implicit operator JsonBoolean(bool data) => new JsonBoolean(data); + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonDate.cs b/src/CostManagement/generated/runtime/Nodes/JsonDate.cs new file mode 100644 index 000000000000..d93a5264f8cd --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonDate.cs @@ -0,0 +1,173 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + + + internal sealed partial class JsonDate : JsonNode, IEquatable, IComparable + { + internal static bool AssumeUtcWhenKindIsUnspecified = true; + + private readonly DateTimeOffset value; + + internal JsonDate(DateTime value) + { + if (value.Kind == DateTimeKind.Unspecified && AssumeUtcWhenKindIsUnspecified) + { + value = DateTime.SpecifyKind(value, DateTimeKind.Utc); + } + + this.value = value; + } + + internal JsonDate(DateTimeOffset value) + { + this.value = value; + } + + internal override JsonType Type => JsonType.Date; + + #region Helpers + + internal DateTimeOffset ToDateTimeOffset() + { + return value; + } + + internal DateTime ToDateTime() + { + if (value.Offset == TimeSpan.Zero) + { + return value.UtcDateTime; + } + + return value.DateTime; + } + + internal DateTime ToUtcDateTime() => value.UtcDateTime; + + internal int ToUnixTimeSeconds() + { + return (int)value.ToUnixTimeSeconds(); + } + + internal long ToUnixTimeMilliseconds() + { + return (int)value.ToUnixTimeMilliseconds(); + } + + internal string ToIsoString() + { + return IsoDate.FromDateTimeOffset(value).ToString(); + } + + #endregion + + public override string ToString() + { + return ToIsoString(); + } + + internal static new JsonDate Parse(string text) + { + if (text == null) throw new ArgumentNullException(nameof(text)); + + // TODO support: unixtimeseconds.partialseconds + + if (text.Length > 4 && _IsNumber(text)) // UnixTime + { + var date = DateTimeOffset.FromUnixTimeSeconds(long.Parse(text)); + + return new JsonDate(date); + } + else if (text.Length <= 4 || text[4] == '-') // ISO: 2012- + { + return new JsonDate(IsoDate.Parse(text).ToDateTimeOffset()); + } + else + { + // NOT ISO ENCODED + // "Thu, 5 Apr 2012 16:59:01 +0200", + return new JsonDate(DateTimeOffset.Parse(text)); + } + } + + private static bool _IsNumber(string text) + { + foreach (var c in text) + { + if (!char.IsDigit(c)) return false; + } + + return true; + } + + internal static JsonDate FromUnixTime(int seconds) + { + return new JsonDate(DateTimeOffset.FromUnixTimeSeconds(seconds)); + } + + internal static JsonDate FromUnixTime(double seconds) + { + var milliseconds = (long)(seconds * 1000d); + + return new JsonDate(DateTimeOffset.FromUnixTimeMilliseconds(milliseconds)); + } + + #region Implicit Casts + + public static implicit operator DateTimeOffset(JsonDate value) + => value.ToDateTimeOffset(); + + public static implicit operator DateTime(JsonDate value) + => value.ToDateTime(); + + // From Date + public static implicit operator JsonDate(DateTimeOffset value) + { + return new JsonDate(value); + } + + public static implicit operator JsonDate(DateTime value) + { + return new JsonDate(value); + } + + // From String + public static implicit operator JsonDate(string value) + { + return Parse(value); + } + + #endregion + + #region Equality + + public override bool Equals(object obj) + { + return obj is JsonDate date && date.value == this.value; + } + + public bool Equals(JsonDate other) + { + return this.value == other.value; + } + + public override int GetHashCode() => value.GetHashCode(); + + #endregion + + #region IComparable Members + + int IComparable.CompareTo(JsonDate other) + { + return value.CompareTo(other.value); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonNode.cs b/src/CostManagement/generated/runtime/Nodes/JsonNode.cs new file mode 100644 index 000000000000..12238d24c10b --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonNode.cs @@ -0,0 +1,250 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + + + public abstract partial class JsonNode + { + internal abstract JsonType Type { get; } + + public virtual JsonNode this[int index] => throw new NotImplementedException(); + + public virtual JsonNode this[string name] + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + #region Type Helpers + + internal bool IsArray => Type == JsonType.Array; + + internal bool IsDate => Type == JsonType.Date; + + internal bool IsObject => Type == JsonType.Object; + + internal bool IsNumber => Type == JsonType.Number; + + internal bool IsNull => Type == JsonType.Null; + + #endregion + + internal void WriteTo(TextWriter textWriter, bool pretty = true) + { + var writer = new JsonWriter(textWriter, pretty); + + writer.WriteNode(this); + } + + internal T As() + where T : new() + => new JsonSerializer().Deseralize((JsonObject)this); + + internal T[] ToArrayOf() + { + return (T[])new JsonSerializer().DeserializeArray(typeof(T[]), (JsonArray)this); + } + + #region ToString Overrides + + public override string ToString() => ToString(pretty: true); + + internal string ToString(bool pretty) + { + var sb = new StringBuilder(); + + using (var writer = new StringWriter(sb)) + { + WriteTo(writer, pretty); + + return sb.ToString(); + } + } + + #endregion + + #region Static Constructors + + internal static JsonNode Parse(string text) + { + return Parse(new SourceReader(new StringReader(text))); + } + + internal static JsonNode Parse(TextReader textReader) + => Parse(new SourceReader(textReader)); + + private static JsonNode Parse(SourceReader sourceReader) + { + using (var parser = new JsonParser(sourceReader)) + { + return parser.ReadNode(); + } + } + + internal static JsonNode FromObject(object instance) + => new JsonSerializer().Serialize(instance); + + #endregion + + #region Implict Casts + + public static implicit operator string(JsonNode node) => node.ToString(); + + #endregion + + #region Explict Casts + + public static explicit operator DateTime(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date: + return ((JsonDate)node).ToDateTime(); + + case JsonType.String: + return JsonDate.Parse(node.ToString()).ToDateTime(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num).UtcDateTime; + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)).UtcDateTime; + } + } + + throw new ConversionException(node, typeof(DateTime)); + } + + public static explicit operator DateTimeOffset(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date : return ((JsonDate)node).ToDateTimeOffset(); + case JsonType.String : return JsonDate.Parse(node.ToString()).ToDateTimeOffset(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num); + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)); + } + + } + + throw new ConversionException(node, typeof(DateTimeOffset)); + } + + public static explicit operator float(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return float.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(float)); + } + + public static explicit operator double(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return double.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(double)); + } + + public static explicit operator decimal(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return decimal.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(decimal)); + } + + public static explicit operator Guid(JsonNode node) + => new Guid(node.ToString()); + + public static explicit operator short(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return short.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(short)); + } + + public static explicit operator int(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return int.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(int)); + } + + public static explicit operator long(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return long.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(long)); + } + + public static explicit operator bool(JsonNode node) + => ((JsonBoolean)node).Value; + + public static explicit operator ushort(JsonNode node) + => (JsonNumber)node; + + public static explicit operator uint(JsonNode node) + => (JsonNumber)node; + + public static explicit operator ulong(JsonNode node) + => (JsonNumber)node; + + public static explicit operator TimeSpan(JsonNode node) + => TimeSpan.Parse(node.ToString()); + + public static explicit operator Uri(JsonNode node) + { + if (node.Type == JsonType.String) + { + return new Uri(node.ToString()); + } + + throw new ConversionException(node, typeof(Uri)); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonNumber.cs b/src/CostManagement/generated/runtime/Nodes/JsonNumber.cs new file mode 100644 index 000000000000..9d2c7546e73c --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonNumber.cs @@ -0,0 +1,109 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed partial class JsonNumber : JsonNode + { + private readonly string value; + private readonly bool overflows = false; + + internal JsonNumber(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal JsonNumber(int value) + { + this.value = value.ToString(); + } + + internal JsonNumber(long value) + { + this.value = value.ToString(); + + if (value > 9007199254740991) + { + overflows = true; + } + } + + internal JsonNumber(float value) + { + this.value = value.ToString(); + } + + internal JsonNumber(double value) + { + this.value = value.ToString(); + } + + internal override JsonType Type => JsonType.Number; + + internal string Value => value; + + #region Helpers + + internal bool Overflows => overflows; + + internal bool IsInteger => !value.Contains("."); + + internal bool IsFloat => value.Contains("."); + + #endregion + + #region Casting + + public static implicit operator byte(JsonNumber number) + => byte.Parse(number.Value); + + public static implicit operator short(JsonNumber number) + => short.Parse(number.Value); + + public static implicit operator int(JsonNumber number) + => int.Parse(number.Value); + + public static implicit operator long(JsonNumber number) + => long.Parse(number.value); + + public static implicit operator UInt16(JsonNumber number) + => ushort.Parse(number.Value); + + public static implicit operator UInt32(JsonNumber number) + => uint.Parse(number.Value); + + public static implicit operator UInt64(JsonNumber number) + => ulong.Parse(number.Value); + + public static implicit operator decimal(JsonNumber number) + => decimal.Parse(number.Value); + + public static implicit operator Double(JsonNumber number) + => double.Parse(number.value); + + public static implicit operator float(JsonNumber number) + => float.Parse(number.value); + + public static implicit operator JsonNumber(short data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(int data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(long data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(Single data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(double data) + => new JsonNumber(data.ToString()); + + #endregion + + public override string ToString() => value; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonObject.cs b/src/CostManagement/generated/runtime/Nodes/JsonObject.cs new file mode 100644 index 000000000000..31c3a5960d72 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonObject.cs @@ -0,0 +1,172 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public partial class JsonObject : JsonNode, IDictionary + { + private readonly Dictionary items; + + internal JsonObject() + { + items = new Dictionary(); + } + + internal JsonObject(IEnumerable> properties) + { + if (properties == null) throw new ArgumentNullException(nameof(properties)); + + items = new Dictionary(); + + foreach (var field in properties) + { + items.Add(field.Key, field.Value); + } + } + + #region IDictionary Constructors + + internal JsonObject(IDictionary dic) + { + items = new Dictionary(dic.Count); + + foreach (var pair in dic) + { + Add(pair.Key, pair.Value); + } + } + + #endregion + + internal override JsonType Type => JsonType.Object; + + #region Add Overloads + + public void Add(string name, JsonNode value) => + items.Add(name, value); + + public void Add(string name, byte[] value) => + items.Add(name, new XBinary(value)); + + public void Add(string name, DateTime value) => + items.Add(name, new JsonDate(value)); + + public void Add(string name, int value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, long value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, float value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, double value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, string value) => + items.Add(name, new JsonString(value)); + + public void Add(string name, bool value) => + items.Add(name, new JsonBoolean(value)); + + public void Add(string name, Uri url) => + items.Add(name, new JsonString(url.AbsoluteUri)); + + public void Add(string name, string[] values) => + items.Add(name, new XImmutableArray(values)); + + public void Add(string name, int[] values) => + items.Add(name, new XImmutableArray(values)); + + #endregion + + #region ICollection> Members + + void ICollection>.Add(KeyValuePair item) + { + items.Add(item.Key, item.Value); + } + + void ICollection>.Clear() + { + items.Clear(); + } + + bool ICollection>.Contains(KeyValuePair item) => + throw new NotImplementedException(); + + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => + throw new NotImplementedException(); + + + int ICollection>.Count => items.Count; + + bool ICollection>.IsReadOnly => false; + + bool ICollection>.Remove(KeyValuePair item) => + throw new NotImplementedException(); + + #endregion + + #region IDictionary Members + + public bool ContainsKey(string key) => items.ContainsKey(key); + + public ICollection Keys => items.Keys; + + public bool Remove(string key) => items.Remove(key); + + public bool TryGetValue(string key, out JsonNode value) => + items.TryGetValue(key, out value); + + public ICollection Values => items.Values; + + public override JsonNode this[string key] + { + get => items[key]; + set => items[key] = value; + } + + #endregion + + #region IEnumerable + + IEnumerator> IEnumerable>.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + + #region Helpers + + internal static new JsonObject FromObject(object instance) => + (JsonObject)new JsonSerializer().Serialize(instance); + + #endregion + + #region Static Constructors + + internal static JsonObject FromStream(Stream stream) + { + using (var tr = new StreamReader(stream)) + { + return (JsonObject)Parse(tr); + } + } + + internal static new JsonObject Parse(string text) + { + return (JsonObject)JsonNode.Parse(text); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/JsonString.cs b/src/CostManagement/generated/runtime/Nodes/JsonString.cs new file mode 100644 index 000000000000..59c40138acc3 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/JsonString.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed partial class JsonString : JsonNode, IEquatable + { + private readonly string value; + + internal JsonString(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal override JsonType Type => JsonType.String; + + internal string Value => value; + + internal int Length => value.Length; + + #region #region Implicit Casts + + public static implicit operator string(JsonString data) => data.Value; + + public static implicit operator JsonString(string value) => new JsonString(value); + + #endregion + + public override int GetHashCode() => value.GetHashCode(); + + public override string ToString() => value; + + #region IEquatable + + bool IEquatable.Equals(JsonString other) => this.Value == other.Value; + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/XBinary.cs b/src/CostManagement/generated/runtime/Nodes/XBinary.cs new file mode 100644 index 000000000000..106fe5020ebd --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/XBinary.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed class XBinary : JsonNode + { + private readonly byte[] _value; + private readonly string _base64; + + internal XBinary(byte[] value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal XBinary(string base64EncodedString) + { + _base64 = base64EncodedString ?? throw new ArgumentNullException(nameof(base64EncodedString)); + } + + internal override JsonType Type => JsonType.Binary; + + internal byte[] Value => _value ?? Convert.FromBase64String(_base64); + + #region #region Implicit Casts + + public static implicit operator byte[] (XBinary data) => data.Value; + + public static implicit operator XBinary(byte[] data) => new XBinary(data); + + #endregion + + public override int GetHashCode() => Value.GetHashCode(); + + public override string ToString() => _base64 ?? Convert.ToBase64String(_value); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Nodes/XNull.cs b/src/CostManagement/generated/runtime/Nodes/XNull.cs new file mode 100644 index 000000000000..d1d686344d38 --- /dev/null +++ b/src/CostManagement/generated/runtime/Nodes/XNull.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal sealed class XNull : JsonNode + { + internal static readonly XNull Instance = new XNull(); + + private XNull() { } + + internal override JsonType Type => JsonType.Null; + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/Exceptions/ParseException.cs b/src/CostManagement/generated/runtime/Parser/Exceptions/ParseException.cs new file mode 100644 index 000000000000..722a9b8bcb17 --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/Exceptions/ParseException.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class ParserException : Exception + { + internal ParserException(string message) + : base(message) + { } + + internal ParserException(string message, SourceLocation location) + : base(message) + { + + Location = location; + } + + internal SourceLocation Location { get; } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/JsonParser.cs b/src/CostManagement/generated/runtime/Parser/JsonParser.cs new file mode 100644 index 000000000000..e9c62b0a7441 --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/JsonParser.cs @@ -0,0 +1,180 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public class JsonParser : IDisposable + { + private readonly TokenReader reader; + + internal JsonParser(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonParser(SourceReader sourceReader) + { + if (sourceReader == null) + throw new ArgumentNullException(nameof(sourceReader)); + + this.reader = new TokenReader(new JsonTokenizer(sourceReader)); + + this.reader.Next(); // Start with the first token + } + + internal IEnumerable ReadNodes() + { + JsonNode node; + + while ((node = ReadNode()) != null) yield return node; + } + + internal JsonNode ReadNode() + { + if (reader.Current.Kind == TokenKind.Eof || reader.Current.IsTerminator) + { + return null; + } + + switch (reader.Current.Kind) + { + case TokenKind.LeftBrace : return ReadObject(); // { + case TokenKind.LeftBracket : return ReadArray(); // [ + + default: throw new ParserException($"Expected '{{' or '['. Was {reader.Current}."); + } + } + + private JsonNode ReadFieldValue() + { + // Boolean, Date, Null, Number, String, Uri + if (reader.Current.IsLiteral) + { + return ReadLiteral(); + } + else + { + switch (reader.Current.Kind) + { + case TokenKind.LeftBracket: return ReadArray(); + case TokenKind.LeftBrace : return ReadObject(); + + default: throw new ParserException($"Unexpected token reading field value. Was {reader.Current}."); + } + } + } + + private JsonNode ReadLiteral() + { + var literal = reader.Current; + + reader.Next(); // Read the literal token + + switch (literal.Kind) + { + case TokenKind.Boolean : return JsonBoolean.Parse(literal.Value); + case TokenKind.Null : return XNull.Instance; + case TokenKind.Number : return new JsonNumber(literal.Value); + case TokenKind.String : return new JsonString(literal.Value); + + default: throw new ParserException($"Unexpected token reading literal. Was {literal}."); + } + } + + internal JsonObject ReadObject() + { + reader.Ensure(TokenKind.LeftBrace, "object"); + + reader.Next(); // Read '{' (Object start) + + var jsonObject = new JsonObject(); + + // Read the object's fields until we reach the end of the object ('}') + while (reader.Current.Kind != TokenKind.RightBrace) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read ',' (Seperator) + } + + // Ensure we have a field name + reader.Ensure(TokenKind.String, "Expected field name"); + + var field = ReadField(); + + jsonObject.Add(field.Key, field.Value); + } + + reader.Next(); // Read '}' (Object end) + + return jsonObject; + } + + + // TODO: Use ValueTuple in C#7 + private KeyValuePair ReadField() + { + var fieldName = reader.Current.Value; + + reader.Next(); // Read the field name + + reader.Ensure(TokenKind.Colon, "field"); + + reader.Next(); // Read ':' (Field value indicator) + + return new KeyValuePair(fieldName, ReadFieldValue()); + } + + + internal JsonArray ReadArray() + { + reader.Ensure(TokenKind.LeftBracket, "array"); + + var array = new XNodeArray(); + + reader.Next(); // Read the '[' (Array start) + + // Read the array's items + while (reader.Current.Kind != TokenKind.RightBracket) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read the ',' (Seperator) + } + + if (reader.Current.IsLiteral) + { + array.Add(ReadLiteral()); // Boolean, Date, Number, Null, String, Uri + } + else if (reader.Current.Kind == TokenKind.LeftBracket) + { + array.Add(ReadArray()); // Array + } + else if (reader.Current.Kind == TokenKind.LeftBrace) + { + array.Add(ReadObject()); // Object + } + else + { + throw new ParserException($"Expected comma, literal, or object. Was {reader.Current}."); + } + } + + reader.Next(); // Read the ']' (Array end) + + return array; + } + + #region IDisposable + + public void Dispose() + { + reader.Dispose(); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/JsonToken.cs b/src/CostManagement/generated/runtime/Parser/JsonToken.cs new file mode 100644 index 000000000000..3855c26301ac --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/JsonToken.cs @@ -0,0 +1,66 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal enum TokenKind + { + LeftBrace, // { Object start + RightBrace, // } Object end + + LeftBracket, // [ Array start + RightBracket, // ] Array end + + Comma, // , Comma + Colon, // : Value indicator + Dot, // . Access field indicator + Terminator, // \0 Stream terminator + + Boolean = 31, // true or false + Null = 33, // null + Number = 34, // i.e. -1.93, -1, 0, 1, 1.1 + String = 35, // i.e. "text" + + Eof = 50 + } + + internal /* readonly */ struct JsonToken + { + internal static readonly JsonToken BraceOpen = new JsonToken(TokenKind.LeftBrace, "{"); + internal static readonly JsonToken BraceClose = new JsonToken(TokenKind.RightBrace, "}"); + + internal static readonly JsonToken BracketOpen = new JsonToken(TokenKind.LeftBracket, "["); + internal static readonly JsonToken BracketClose = new JsonToken(TokenKind.RightBracket, "]"); + + internal static readonly JsonToken Colon = new JsonToken(TokenKind.Colon, ":"); + internal static readonly JsonToken Comma = new JsonToken(TokenKind.Comma, ","); + internal static readonly JsonToken Terminator = new JsonToken(TokenKind.Terminator, "\0"); + + internal static readonly JsonToken True = new JsonToken(TokenKind.Boolean, "true"); + internal static readonly JsonToken False = new JsonToken(TokenKind.Boolean, "false"); + internal static readonly JsonToken Null = new JsonToken(TokenKind.Null, "null"); + + internal static readonly JsonToken Eof = new JsonToken(TokenKind.Eof, null); + + internal JsonToken(TokenKind kind, string value) + { + Kind = kind; + Value = value; + } + + internal readonly TokenKind Kind; + + internal readonly string Value; + + public override string ToString() => Kind + ": " + Value; + + #region Helpers + + internal bool IsLiteral => (byte)Kind > 30 && (byte)Kind < 40; + + internal bool IsTerminator => Kind == TokenKind.Terminator; + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/JsonTokenizer.cs b/src/CostManagement/generated/runtime/Parser/JsonTokenizer.cs new file mode 100644 index 000000000000..866684eb5f4f --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/JsonTokenizer.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + using System.IO; + + + public class JsonTokenizer : IDisposable + { + private readonly StringBuilder sb = new StringBuilder(); + + private readonly SourceReader reader; + + internal JsonTokenizer(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonTokenizer(SourceReader reader) + { + this.reader = reader; + + reader.Next(); // Start with the first char + } + + internal JsonToken ReadNext() + { + reader.SkipWhitespace(); + + if (reader.IsEof) return JsonToken.Eof; + + switch (reader.Current) + { + case '"': return ReadQuotedString(); + + // Symbols + case '[' : reader.Next(); return JsonToken.BracketOpen; // Array start + case ']' : reader.Next(); return JsonToken.BracketClose; // Array end + case ',' : reader.Next(); return JsonToken.Comma; // Value seperator + case ':' : reader.Next(); return JsonToken.Colon; // Field value indicator + case '{' : reader.Next(); return JsonToken.BraceOpen; // Object start + case '}' : reader.Next(); return JsonToken.BraceClose; // Object end + case '\0' : reader.Next(); return JsonToken.Terminator; // Stream terminiator + + default: return ReadLiteral(); + } + } + + private JsonToken ReadQuotedString() + { + Expect('"', "quoted string indicator"); + + reader.Next(); // Read '"' (Starting quote) + + // Read until we reach an unescaped quote char + while (reader.Current != '"') + { + EnsureNotEof("quoted string"); + + if (reader.Current == '\\') + { + char escapedCharacter = reader.ReadEscapeCode(); + + sb.Append(escapedCharacter); + + continue; + } + + StoreCurrentCharacterAndReadNext(); + } + + reader.Next(); // Read '"' (Ending quote) + + return new JsonToken(TokenKind.String, value: sb.Extract()); + } + + private JsonToken ReadLiteral() + { + if (char.IsDigit(reader.Current) || + reader.Current == '-' || + reader.Current == '+') + { + return ReadNumber(); + } + + return ReadIdentifer(); + } + + private JsonToken ReadNumber() + { + // Read until we hit a non-numeric character + // -6.247737e-06 + // E + + while (char.IsDigit(reader.Current) + || reader.Current == '.' + || reader.Current == 'e' + || reader.Current == 'E' + || reader.Current == '-' + || reader.Current == '+') + { + StoreCurrentCharacterAndReadNext(); + } + + return new JsonToken(TokenKind.Number, value: sb.Extract()); + } + + int count = 0; + + private JsonToken ReadIdentifer() + { + count++; + + if (!char.IsLetter(reader.Current)) + { + throw new ParserException( + message : $"Expected literal (number, boolean, or null). Was '{reader.Current}'.", + location : reader.Location + ); + } + + // Read letters, numbers, and underscores '_' + while (char.IsLetterOrDigit(reader.Current) || reader.Current == '_') + { + StoreCurrentCharacterAndReadNext(); + } + + string text = sb.Extract(); + + switch (text) + { + case "true": return JsonToken.True; + case "false": return JsonToken.False; + case "null": return JsonToken.Null; + + default: return new JsonToken(TokenKind.String, text); + } + } + + private void Expect(char character, string description) + { + if (reader.Current != character) + { + throw new ParserException( + message: $"Expected {description} ('{character}'). Was '{reader.Current}'.", + location: reader.Location + ); + } + } + + private void EnsureNotEof(string tokenType) + { + if (reader.IsEof) + { + throw new ParserException( + message: $"Unexpected EOF while reading {tokenType}.", + location: reader.Location + ); + } + } + + private void StoreCurrentCharacterAndReadNext() + { + sb.Append(reader.Current); + + reader.Next(); + } + + public void Dispose() + { + reader.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/Location.cs b/src/CostManagement/generated/runtime/Parser/Location.cs new file mode 100644 index 000000000000..674150baf313 --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/Location.cs @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal struct SourceLocation + { + private int line; + private int column; + private int position; + + internal SourceLocation(int line = 0, int column = 0, int position = 0) + { + this.line = line; + this.column = column; + this.position = position; + } + + internal int Line => line; + + internal int Column => column; + + internal int Position => position; + + internal void Advance() + { + this.column++; + this.position++; + } + + internal void MarkNewLine() + { + this.line++; + this.column = 0; + } + + internal SourceLocation Clone() + { + return new SourceLocation(line, column, position); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/Readers/SourceReader.cs b/src/CostManagement/generated/runtime/Parser/Readers/SourceReader.cs new file mode 100644 index 000000000000..9f587757f077 --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/Readers/SourceReader.cs @@ -0,0 +1,130 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Globalization; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public sealed class SourceReader : IDisposable + { + private readonly TextReader source; + + private char current; + + private readonly SourceLocation location = new SourceLocation(); + + private bool isEof = false; + + internal SourceReader(TextReader textReader) + { + this.source = textReader ?? throw new ArgumentNullException(nameof(textReader)); + } + + /// + /// Advances to the next character + /// + internal void Next() + { + // Advance to the new line when we see a new line '\n'. + // A new line may be prefixed by a carriage return '\r'. + + if (current == '\n') + { + location.MarkNewLine(); + } + + int charCode = source.Read(); // -1 for end + + if (charCode >= 0) + { + current = (char)charCode; + } + else + { + // If we've already marked this as the EOF, throw an exception + if (isEof) + { + throw new EndOfStreamException("Cannot advance past end of stream."); + } + + isEof = true; + + current = '\0'; + } + + location.Advance(); + } + + internal void SkipWhitespace() + { + while (char.IsWhiteSpace(current)) + { + Next(); + } + } + + internal char ReadEscapeCode() + { + Next(); + + char escapedChar = current; + + Next(); // Consume escaped character + + switch (escapedChar) + { + // Special escape codes + case '"': return '"'; // " (Quotation mark) U+0022 + case '/': return '/'; // / (Solidus) U+002F + case '\\': return '\\'; // \ (Reverse solidus) U+005C + + // Control Characters + case '0': return '\0'; // Nul (0) U+0000 + case 'a': return '\a'; // Alert (7) + case 'b': return '\b'; // Backspace (8) U+0008 + case 'f': return '\f'; // Form feed (12) U+000C + case 'n': return '\n'; // Line feed (10) U+000A + case 'r': return '\r'; // Carriage return (13) U+000D + case 't': return '\t'; // Horizontal tab (9) U+0009 + case 'v': return '\v'; // Vertical tab + + // Unicode escape sequence + case 'u': return ReadUnicodeEscapeSequence(); // U+XXXX + + default: throw new Exception($"Unrecognized escape sequence '\\{escapedChar}'"); + } + } + + private readonly char[] hexCode = new char[4]; + + private char ReadUnicodeEscapeSequence() + { + hexCode[0] = current; Next(); + hexCode[1] = current; Next(); + hexCode[2] = current; Next(); + hexCode[3] = current; Next(); + + return Convert.ToChar(int.Parse( + s : new string(hexCode), + style : NumberStyles.HexNumber, + provider: NumberFormatInfo.InvariantInfo + )); + } + + internal char Current => current; + + internal bool IsEof => isEof; + + internal char Peek() => (char)source.Peek(); + + internal SourceLocation Location => location; + + public void Dispose() + { + source.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Parser/TokenReader.cs b/src/CostManagement/generated/runtime/Parser/TokenReader.cs new file mode 100644 index 000000000000..9e8ba7be9fb2 --- /dev/null +++ b/src/CostManagement/generated/runtime/Parser/TokenReader.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + public class TokenReader : IDisposable + { + private readonly JsonTokenizer tokenizer; + private JsonToken current; + + internal TokenReader(JsonTokenizer tokenizer) + { + this.tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); + } + + internal void Next() + { + current = tokenizer.ReadNext(); + } + + internal JsonToken Current => current; + + internal void Ensure(TokenKind kind, string readerName) + { + if (current.Kind != kind) + { + throw new ParserException($"Expected {kind} while reading {readerName}). Was {current}."); + } + } + + public void Dispose() + { + tokenizer.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/PipelineMocking.cs b/src/CostManagement/generated/runtime/PipelineMocking.cs new file mode 100644 index 000000000000..13f67f13938e --- /dev/null +++ b/src/CostManagement/generated/runtime/PipelineMocking.cs @@ -0,0 +1,254 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System.Threading.Tasks; + using System.Collections.Generic; + using System.Net.Http; + using System.Linq; + using System.Net; + using Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json; + + public enum MockMode + { + Live, + Record, + Playback, + + } + + public class PipelineMock + { + + private System.Collections.Generic.Stack scenario = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack context = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack description = new System.Collections.Generic.Stack(); + + private readonly string recordingPath; + private int counter = 0; + + public static implicit operator Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep(PipelineMock instance) => instance.SendAsync; + + public MockMode Mode { get; set; } = MockMode.Live; + public PipelineMock(string recordingPath) + { + this.recordingPath = recordingPath; + } + + public void PushContext(string text) => context.Push(text); + + public void PushDescription(string text) => description.Push(text); + + + public void PushScenario(string it) + { + // reset counter too + counter = 0; + + scenario.Push(it); + } + + public void PopContext() => context.Pop(); + + public void PopDescription() => description.Pop(); + + public void PopScenario() => scenario.Pop(); + + public void SetRecord() => Mode = MockMode.Record; + + public void SetPlayback() => Mode = MockMode.Playback; + + public void SetLive() => Mode = MockMode.Live; + + public string Scenario => (scenario.Count > 0 ? scenario.Peek() : "[NoScenario]"); + public string Description => (description.Count > 0 ? description.Peek() : "[NoDescription]"); + public string Context => (context.Count > 0 ? context.Peek() : "[NoContext]"); + + /// + /// Headers that we substitute out blank values for in the recordings + /// Add additional headers as necessary + /// + public static HashSet Blacklist = new HashSet(System.StringComparer.CurrentCultureIgnoreCase) { + "Authorization", + }; + + public Dictionary ForceResponseHeaders = new Dictionary(); + + internal static XImmutableArray Removed = new XImmutableArray(new string[] { "[Filtered]" }); + + internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); + + internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + + internal static JsonNode SerializeContent(byte[] content) + { + if (null == content || content.Length == 0) + { + return XNull.Instance; + } + var first = content[0]; + var last = content[content.Length - 1]; + + // plaintext for JSON/SGML/XML/HTML/STRINGS/ARRAYS + if ((first == '{' && last == '}') || (first == '<' && last == '>') || (first == '[' && last == ']') || (first == '"' && last == '"')) + { + return new JsonString(System.Text.Encoding.UTF8.GetString(content)); + } + + // base64 for everyone else + return new JsonString(System.Convert.ToBase64String(content)); + } + + internal static byte[] DeserializeContent(string content) + { + if (string.IsNullOrWhiteSpace(content)) + { + return new byte[0]; + } + + if (content.EndsWith("==")) + { + try + { + return System.Convert.FromBase64String(content); + } + catch + { + // hmm. didn't work, return it as a string I guess. + } + } + return System.Text.Encoding.UTF8.GetBytes(content); + } + + public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) + { + var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + messages[rqKey] = new JsonObject { + { "Request",new JsonObject { + { "Method", request.Method.Method }, + { "RequestUri", request.RequestUri }, + { "Content", SerializeContent( request.Content) }, + { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, + { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} + } }, + {"Response", new JsonObject { + { "StatusCode", (int)response.StatusCode}, + { "Headers", new JsonObject(FilterHeaders(response.Headers))}, + { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, + { "Content", SerializeContent(response.Content) }, + }} + }; + System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); + } + + private JsonObject Load() + { + if (System.IO.File.Exists(this.recordingPath)) + { + try + { + return JsonObject.FromStream(System.IO.File.OpenRead(this.recordingPath)); + } + catch + { + throw new System.Exception($"Invalid recording file: '{recordingPath}'"); + } + } + + throw new System.ArgumentException($"Missing recording file: '{recordingPath}'", nameof(recordingPath)); + } + + public HttpResponseMessage LoadMessage(string rqKey) + { + var responses = Load(); + var message = responses.Property(rqKey); + + if (null == message) + { + throw new System.ArgumentException($"Missing Request '{rqKey}' in recording file", nameof(rqKey)); + } + + var sc = 0; + var reqMessage = message.Property("Request"); + var respMessage = message.Property("Response"); + + // --------------------------- deserialize response ---------------------------------------------------------------- + var response = new HttpResponseMessage + { + StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + }; + + foreach (var each in respMessage.Property("Headers")) + { + response.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + foreach (var frh in ForceResponseHeaders) + { + response.Headers.Remove(frh.Key); + response.Headers.TryAddWithoutValidation(frh.Key, frh.Value); + } + + foreach (var each in respMessage.Property("ContentHeaders")) + { + response.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + // --------------------------- deserialize request ---------------------------------------------------------------- + response.RequestMessage = new HttpRequestMessage + { + Method = new HttpMethod(reqMessage.StringProperty("Method")), + RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + }; + + foreach (var each in reqMessage.Property("Headers")) + { + response.RequestMessage.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + foreach (var each in reqMessage.Property("ContentHeaders")) + { + response.RequestMessage.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + return response; + } + + public async Task SendAsync(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + counter++; + var rqkey = $"{Description}+{Context}+{Scenario}+${request.Method.Method}+{request.RequestUri}+{counter}"; + + switch (Mode) + { + case MockMode.Record: + //Add following code since the request.Content will be released after sendAsync + var requestClone = request; + if (requestClone.Content != null) + { + requestClone = await request.CloneWithContent(request.RequestUri, request.Method); + } + // make the call + var response = await next.SendAsync(request, callback); + + // save the message to the recording file + SaveMessage(rqkey, requestClone, response); + + // return the response. + return response; + + case MockMode.Playback: + // load and return the response. + return LoadMessage(rqkey); + + default: + // pass-thru, do nothing + return await next.SendAsync(request, callback); + } + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Response.cs b/src/CostManagement/generated/runtime/Response.cs new file mode 100644 index 000000000000..6116bb572da9 --- /dev/null +++ b/src/CostManagement/generated/runtime/Response.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System; + using System.Threading.Tasks; + public class Response : EventData + { + public Response() : base() + { + } + } + + public class Response : Response + { + private Func> _resultDelegate; + private Task _resultValue; + + public Response(T value) : base() => _resultValue = Task.FromResult(value); + public Response(Func value) : base() => _resultDelegate = () => Task.FromResult(value()); + public Response(Func> value) : base() => _resultDelegate = value; + public Task Result => _resultValue ?? (_resultValue = this._resultDelegate()); + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Serialization/JsonSerializer.cs b/src/CostManagement/generated/runtime/Serialization/JsonSerializer.cs new file mode 100644 index 000000000000..5a0e0ab2a4e2 --- /dev/null +++ b/src/CostManagement/generated/runtime/Serialization/JsonSerializer.cs @@ -0,0 +1,350 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class JsonSerializer + { + private int depth = 0; + + private SerializationOptions options = new SerializationOptions(); + + #region Deserialization + + internal T Deseralize(JsonObject json) + where T : new() + { + var contract = JsonModelCache.Get(typeof(T)); + + return (T)DeserializeObject(contract, json); + } + + internal object DeserializeObject(JsonModel contract, JsonObject json) + { + var instance = Activator.CreateInstance(contract.Type); + + depth++; + + // Ensure we don't recurse forever + if (depth > 5) throw new Exception("Depth greater than 5"); + + foreach (var field in json) + { + var member = contract[field.Key]; + + if (member != null) + { + var value = DeserializeValue(member, field.Value); + + member.SetValue(instance, value); + } + } + + depth--; + + return instance; + } + + private object DeserializeValue(JsonMember member, JsonNode value) + { + if (value.Type == JsonType.Null) return null; + + var type = member.Type; + + if (member.IsStringLike && value.Type != JsonType.String) + { + // Take the long path... + return DeserializeObject(JsonModelCache.Get(type), (JsonObject)value); + } + else if (member.Converter != null) + { + return member.Converter.FromJson(value); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (member.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + private object DeserializeValue(Type type, JsonNode value) + { + if (type == null) throw new ArgumentNullException(nameof(type)); + + if (value.Type == JsonType.Null) return null; + + var typeDetails = TypeDetails.Get(type); + + if (typeDetails.JsonConverter != null) + { + return typeDetails.JsonConverter.FromJson(value); + } + else if (typeDetails.IsEnum) + { + return Enum.Parse(type, value.ToString(), ignoreCase: true); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (typeDetails.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + internal Array DeserializeArray(Type type, JsonArray elements) + { + var elementType = type.GetElementType(); + + var elementTypeDetails = TypeDetails.Get(elementType); + + var array = Array.CreateInstance(elementType, elements.Count); + + int i = 0; + + if (elementTypeDetails.JsonConverter != null) + { + foreach (var value in elements) + { + array.SetValue(elementTypeDetails.JsonConverter.FromJson(value), i); + + i++; + } + } + else + { + foreach (var value in elements) + { + array.SetValue(DeserializeValue(elementType, value), i); + + i++; + } + } + + return array; + } + + internal IList DeserializeList(Type type, JsonArray jsonArray) + { + // TODO: Handle non-generic types + if (!type.IsGenericType) + throw new ArgumentException("Must be a generic type", nameof(type)); + + var elementType = type.GetGenericArguments()[0]; + + IList list; + + if (type.IsInterface) + { + // Create a concrete generic list + list = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); + } + else + { + list = (IList)Activator.CreateInstance(type); + } + + foreach (var value in jsonArray) + { + list.Add(DeserializeValue(elementType, value)); + } + + return list; + } + + #endregion + + #region Serialization + + internal JsonNode Serialize(object instance) => + Serialize(instance, SerializationOptions.Default); + + internal JsonNode Serialize(object instance, string[] include) => + Serialize(instance, new SerializationOptions { Include = include }); + + internal JsonNode Serialize(object instance, SerializationOptions options) + { + this.options = options; + + if (instance == null) + { + return XNull.Instance; + } + + return ReadValue(instance.GetType(), instance); + } + + #region Readers + + internal JsonArray ReadArray(IEnumerable collection) + { + var array = new XNodeArray(); + + foreach (var item in collection) + { + array.Add(ReadValue(item.GetType(), item)); + } + + return array; + } + + internal IEnumerable> ReadProperties(object instance) + { + var contract = JsonModelCache.Get(instance.GetType()); + + foreach (var member in contract.Members) + { + string name = member.Name; + + if (options.PropertyNameTransformer != null) + { + name = options.PropertyNameTransformer.Invoke(name); + } + + // Skip the field if it's not included + if ((depth == 1 && !options.IsIncluded(name))) + { + continue; + } + + var value = member.GetValue(instance); + + if (!member.EmitDefaultValue && (value == null || (member.IsList && ((IList)value).Count == 0) || value.Equals(member.DefaultValue))) + { + continue; + } + else if (options.IgnoreNullValues && value == null) // Ignore null values + { + continue; + } + + // Transform the value if there is one + if (options.Transformations != null) + { + var transform = options.GetTransformation(name); + + if (transform != null) + { + value = transform.Transformer(value); + } + } + + yield return new KeyValuePair(name, ReadValue(member.TypeDetails, value)); + } + } + + private JsonObject ReadObject(object instance) + { + depth++; + + // TODO: Guard against a self referencing graph + if (depth > options.MaxDepth) + { + depth--; + + return new JsonObject(); + } + + var node = new JsonObject(ReadProperties(instance)); + + depth--; + + return node; + } + + private JsonNode ReadValue(Type type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + var member = TypeDetails.Get(type); + + return ReadValue(member, value); + } + + private JsonNode ReadValue(TypeDetails type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + if (type.JsonConverter != null) + { + return type.JsonConverter.ToJson(value); + } + else if (type.IsArray) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateArray((string[])value); + case TypeCode.UInt16: return CreateArray((ushort[])value); + case TypeCode.UInt32: return CreateArray((uint[])value); + case TypeCode.UInt64: return CreateArray((ulong[])value); + case TypeCode.Int16: return CreateArray((short[])value); + case TypeCode.Int32: return CreateArray((int[])value); + case TypeCode.Int64: return CreateArray((long[])value); + case TypeCode.Single: return CreateArray((float[])value); + case TypeCode.Double: return CreateArray((double[])value); + default: return ReadArray((IEnumerable)value); + } + } + else if (value is IEnumerable) + { + if (type.IsList && type.ElementType != null) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateList(value); + case TypeCode.UInt16: return CreateList(value); + case TypeCode.UInt32: return CreateList(value); + case TypeCode.UInt64: return CreateList(value); + case TypeCode.Int16: return CreateList(value); + case TypeCode.Int32: return CreateList(value); + case TypeCode.Int64: return CreateList(value); + case TypeCode.Single: return CreateList(value); + case TypeCode.Double: return CreateList(value); + } + } + + return ReadArray((IEnumerable)value); + } + else + { + // Complex object + return ReadObject(value); + } + } + + private XList CreateList(object value) => new XList((IList)value); + + private XImmutableArray CreateArray(T[] array) => new XImmutableArray(array); + + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Serialization/PropertyTransformation.cs b/src/CostManagement/generated/runtime/Serialization/PropertyTransformation.cs new file mode 100644 index 000000000000..760e85700cd9 --- /dev/null +++ b/src/CostManagement/generated/runtime/Serialization/PropertyTransformation.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class PropertyTransformation + { + internal PropertyTransformation(string name, Func transformer) + { + Name = name ?? throw new ArgumentNullException(nameof(name)); + Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); + } + + internal string Name { get; } + + internal Func Transformer { get; } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Serialization/SerializationOptions.cs b/src/CostManagement/generated/runtime/Serialization/SerializationOptions.cs new file mode 100644 index 000000000000..6570df1b5497 --- /dev/null +++ b/src/CostManagement/generated/runtime/Serialization/SerializationOptions.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class SerializationOptions + { + internal static readonly SerializationOptions Default = new SerializationOptions(); + + internal SerializationOptions() { } + + internal SerializationOptions( + string[] include = null, + bool ingoreNullValues = false) + { + Include = include; + IgnoreNullValues = ingoreNullValues; + } + + internal string[] Include { get; set; } + + internal string[] Exclude { get; set; } + + internal bool IgnoreNullValues { get; set; } + + internal PropertyTransformation[] Transformations { get; set; } + + internal Func PropertyNameTransformer { get; set; } + + internal int MaxDepth { get; set; } = 5; + + internal bool IsIncluded(string name) + { + if (Exclude != null) + { + return !Exclude.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + else if (Include != null) + { + return Include.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + + return true; + } + + internal PropertyTransformation GetTransformation(string propertyName) + { + if (Transformations == null) return null; + + foreach (var t in Transformations) + { + if (t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)) + { + return t; + } + } + + return null; + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/SerializationMode.cs b/src/CostManagement/generated/runtime/SerializationMode.cs new file mode 100644 index 000000000000..7fcf21e67c94 --- /dev/null +++ b/src/CostManagement/generated/runtime/SerializationMode.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + [System.Flags] + public enum SerializationMode + { + None = 0, + IncludeHeaders = 1 << 0, + IncludeReadOnly = 1 << 1, + + IncludeAll = IncludeHeaders | IncludeReadOnly + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/TypeConverterExtensions.cs b/src/CostManagement/generated/runtime/TypeConverterExtensions.cs new file mode 100644 index 000000000000..124474835e2b --- /dev/null +++ b/src/CostManagement/generated/runtime/TypeConverterExtensions.cs @@ -0,0 +1,190 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Linq; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.PowerShell +{ + internal static class TypeConverterExtensions + { + internal static T[] SelectToArray(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0]; // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result.ToArray(); + } + + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Management.Automation.PSObject instance) + { + if (null != instance) + { + foreach (var each in instance.Properties) + { + yield return each; + } + } + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.Generic.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys.OfType() + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Management.Automation.PSObject instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + // new global::System.Collections.Generic.HashSet(System.StringComparer.InvariantCultureIgnoreCase) + return (null == instance || !instance.Properties.Any()) ? + Enumerable.Empty>() : + instance.Properties + .Where(property => + !(true == exclusions?.Contains(property.Name)) + && (false != inclusions?.Contains(property.Name))) + .Select(property => new System.Collections.Generic.KeyValuePair(property.Name, property.Value)); + } + + + internal static T GetValueForProperty(this System.Collections.Generic.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys, each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + internal static T GetValueForProperty(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + + internal static T GetValueForProperty(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func converter) + { + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return property == null ? defaultValue : (T)converter(property.Value); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + } +} diff --git a/src/CostManagement/generated/runtime/UndeclaredResponseException.cs b/src/CostManagement/generated/runtime/UndeclaredResponseException.cs new file mode 100644 index 000000000000..a0e434083dd7 --- /dev/null +++ b/src/CostManagement/generated/runtime/UndeclaredResponseException.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System; + using System.Net.Http; + using System.Net.Http.Headers; + using static Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Extensions; + + public class RestException : Exception, IDisposable + { + public System.Net.HttpStatusCode StatusCode { get; set; } + public string Code { get; protected set; } + protected string message; + public HttpRequestMessage RequestMessage { get; protected set; } + public HttpResponseHeaders ResponseHeaders { get; protected set; } + + public string ResponseBody { get; protected set; } + public string ClientRequestId { get; protected set; } + public string RequestId { get; protected set; } + + public override string Message => message; + public string Action { get; protected set; } + + public RestException(System.Net.Http.HttpResponseMessage response) + { + StatusCode = response.StatusCode; + //CloneWithContent will not work here since the content is disposed after sendAsync + //Besides, it seems there is no need for the request content cloned here. + RequestMessage = response.RequestMessage.Clone(); + ResponseBody = response.Content.ReadAsStringAsync().Result; + ResponseHeaders = response.Headers; + + RequestId = response.GetFirstHeader("x-ms-request-id"); + ClientRequestId = response.GetFirstHeader("x-ms-client-request-id"); + + try + { + // try to parse the body as JSON, and see if a code and message are in there. + var json = Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json.JsonObject; + + // see if there is an error block in the body + json = json.Property("error") ?? json; + + { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } + { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } + { Action = If(json?.PropertyT("action"), out var a) ? (string)a : (string)Action; } + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // couldn't get the code/message from the body response. + // we'll create one below. + } +#endif + if (string.IsNullOrEmpty(message)) + { + if (StatusCode >= System.Net.HttpStatusCode.BadRequest && StatusCode < System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Request Error, Status: {StatusCode}"; + } + else if (StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Server Error, Status: {StatusCode}"; + } + else + { + message = $"The server responded with an unrecognized response, Status: {StatusCode}"; + } + } + } + + public void Dispose() + { + ((IDisposable)RequestMessage).Dispose(); + } + } + + public class RestException : RestException + { + public T Error { get; protected set; } + public RestException(System.Net.Http.HttpResponseMessage response, T error) : base(response) + { + Error = error; + } + } + + + public class UndeclaredResponseException : RestException + { + public UndeclaredResponseException(System.Net.Http.HttpResponseMessage response) : base(response) + { + + } + } +} \ No newline at end of file diff --git a/src/CostManagement/generated/runtime/Writers/JsonWriter.cs b/src/CostManagement/generated/runtime/Writers/JsonWriter.cs new file mode 100644 index 000000000000..5f928b30827b --- /dev/null +++ b/src/CostManagement/generated/runtime/Writers/JsonWriter.cs @@ -0,0 +1,223 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Web; + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Json +{ + internal class JsonWriter + { + const string indentation = " "; // 2 spaces + + private readonly bool pretty; + private readonly TextWriter writer; + + protected int currentLevel = 0; + + internal JsonWriter(TextWriter writer, bool pretty = true) + { + this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); + this.pretty = pretty; + } + + internal void WriteNode(JsonNode node) + { + switch (node.Type) + { + case JsonType.Array: WriteArray((IEnumerable)node); break; + case JsonType.Object: WriteObject((JsonObject)node); break; + + // Primitives + case JsonType.Binary: WriteBinary((XBinary)node); break; + case JsonType.Boolean: WriteBoolean((bool)node); break; + case JsonType.Date: WriteDate((JsonDate)node); break; + case JsonType.Null: WriteNull(); break; + case JsonType.Number: WriteNumber((JsonNumber)node); break; + case JsonType.String: WriteString(node); break; + } + } + + internal void WriteArray(IEnumerable array) + { + currentLevel++; + + writer.Write('['); + + bool doIndentation = false; + + if (pretty) + { + foreach (var node in array) + { + if (node.Type == JsonType.Object || node.Type == JsonType.Array) + { + doIndentation = true; + + break; + } + } + } + + bool isFirst = true; + + foreach (JsonNode node in array) + { + if (!isFirst) writer.Write(','); + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + WriteNode(node); + + isFirst = false; + } + + currentLevel--; + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + writer.Write(']'); + } + + internal void WriteIndent() + { + if (pretty) + { + writer.Write(Environment.NewLine); + + for (int level = 0; level < currentLevel; level++) + { + writer.Write(indentation); + } + } + } + + internal void WriteObject(JsonObject obj) + { + currentLevel++; + + writer.Write('{'); + + bool isFirst = true; + + foreach (var field in obj) + { + if (!isFirst) writer.Write(','); + + WriteIndent(); + + WriteFieldName(field.Key); + + writer.Write(':'); + + if (pretty) + { + writer.Write(' '); + } + + // Write the field value + WriteNode(field.Value); + + isFirst = false; + } + + currentLevel--; + + WriteIndent(); + + writer.Write('}'); + } + + internal void WriteFieldName(string fieldName) + { + writer.Write('"'); + writer.Write(HttpUtility.JavaScriptStringEncode(fieldName)); + writer.Write('"'); + } + + #region Primitives + + internal void WriteBinary(XBinary value) + { + writer.Write('"'); + writer.Write(value.ToString()); + writer.Write('"'); + } + + internal void WriteBoolean(bool value) + { + writer.Write(value ? "true" : "false"); + } + + internal void WriteDate(JsonDate date) + { + if (date.ToDateTime().Year == 1) + { + WriteNull(); + } + else + { + writer.Write('"'); + writer.Write(date.ToIsoString()); + writer.Write('"'); + } + } + + internal void WriteNull() + { + writer.Write("null"); + } + + internal void WriteNumber(JsonNumber number) + { + if (number.Overflows) + { + writer.Write('"'); + writer.Write(number.Value); + writer.Write('"'); + } + else + { + writer.Write(number.Value); + } + } + + internal void WriteString(string text) + { + if (text == null) + { + WriteNull(); + } + else + { + writer.Write('"'); + + writer.Write(HttpUtility.JavaScriptStringEncode(text)); + + writer.Write('"'); + } + } + + #endregion + } +} + + +// TODO: Replace with System.Text.Json when available diff --git a/src/CostManagement/generated/runtime/delegates.cs b/src/CostManagement/generated/runtime/delegates.cs new file mode 100644 index 000000000000..5b8571919c4d --- /dev/null +++ b/src/CostManagement/generated/runtime/delegates.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData=System.Func; + + public delegate Task SendAsync(HttpRequestMessage request, IEventListener callback); + public delegate Task SendAsyncStep(HttpRequestMessage request, IEventListener callback, ISendAsync next); + public delegate Task SignalEvent(string id, CancellationToken token, GetEventData getEventData); + public delegate Task Event(EventData message); + public delegate void SynchEvent(EventData message); + public delegate Task OnResponse(Response message); + public delegate Task OnResponse(Response message); +} \ No newline at end of file diff --git a/src/CostManagement/help/Az.CostManagement.md b/src/CostManagement/help/Az.CostManagement.md new file mode 100644 index 000000000000..517827181467 --- /dev/null +++ b/src/CostManagement/help/Az.CostManagement.md @@ -0,0 +1,46 @@ +--- +Module Name: Az.CostManagement +Module Guid: 4cd9af10-559e-4fb9-8dcd-d3e8eb9e03b7 +Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.CostManagement Module +## Description +Microsoft Azure PowerShell: Cost cmdlets + +## Az.CostManagement Cmdlets +### [Get-AzCostManagementExport](Get-AzCostManagementExport.md) +The operation to get the export for the defined scope by export name. + +### [Get-AzCostManagementExportExecutionHistory](Get-AzCostManagementExportExecutionHistory.md) +The operation to get the execution history of an export for the defined scope and export name. + +### [Invoke-AzCostManagementExecuteExport](Invoke-AzCostManagementExecuteExport.md) +The operation to execute an export. + +### [Invoke-AzCostManagementQuery](Invoke-AzCostManagementQuery.md) +Query the usage data for scope defined. + +### [New-AzCostManagementExport](New-AzCostManagementExport.md) +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + +### [New-AzCostManagementQueryComparisonExpressionObject](New-AzCostManagementQueryComparisonExpressionObject.md) +Create a in-memory object for QueryComparisonExpression + +### [New-AzCostManagementQueryFilterObject](New-AzCostManagementQueryFilterObject.md) +Create a in-memory object for QueryFilter + +### [Remove-AzCostManagementExport](Remove-AzCostManagementExport.md) +The operation to delete a export. + +### [Update-AzCostManagementExport](Update-AzCostManagementExport.md) +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + diff --git a/src/CostManagement/help/Get-AzCostManagementExport.md b/src/CostManagement/help/Get-AzCostManagementExport.md new file mode 100644 index 000000000000..0e448b2a32fe --- /dev/null +++ b/src/CostManagement/help/Get-AzCostManagementExport.md @@ -0,0 +1,171 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexport +schema: 2.0.0 +--- + +# Get-AzCostManagementExport + +## SYNOPSIS +The operation to get the export for the defined scope by export name. + +## SYNTAX + +### List (Default) +``` +Get-AzCostManagementExport -Scope [-Expand ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzCostManagementExport -Name -Scope [-Expand ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzCostManagementExport -InputObject [-Expand ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +The operation to get the export for the defined scope by export name. + +## EXAMPLES + +### Example 1: Get all AzCostManagementExports by scope +```powershell +PS C:\> Get-AzCostManagementExport -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +"************" TestExport1 Microsoft.CostManagement/exports +"************" TestExport2 Microsoft.CostManagement/exports +``` + +Get all AzCostManagementExports by Scope + +### Example 2: Get AzCostManagementExport by Name and scope +```powershell +PS C:\> Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' + +ETag Name Type +---- ---- ---- +"************" TestExport Microsoft.CostManagement/exports +``` + +Get AzCostManagementExport by Name and scope + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expand +May be used to expand the properties within an export. +Currently only 'runHistory' is supported and will return information for the last 10 executions of the export. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Export Name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ExportName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[AlertId ]`: Alert ID + - `[ExportName ]`: Export Name. + - `[ExternalCloudProviderId ]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + - `[ExternalCloudProviderType ]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + - `[Id ]`: Resource identity path + - `[Scope ]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + - `[ViewName ]`: View name + +## RELATED LINKS + diff --git a/src/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md b/src/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md new file mode 100644 index 000000000000..ffafcc7d5381 --- /dev/null +++ b/src/CostManagement/help/Get-AzCostManagementExportExecutionHistory.md @@ -0,0 +1,150 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementexportexecutionhistory +schema: 2.0.0 +--- + +# Get-AzCostManagementExportExecutionHistory + +## SYNOPSIS +The operation to get the execution history of an export for the defined scope and export name. + +## SYNTAX + +### Get (Default) +``` +Get-AzCostManagementExportExecutionHistory -ExportName -Scope [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzCostManagementExportExecutionHistory -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +The operation to get the execution history of an export for the defined scope and export name. + +## EXAMPLES + +### Example 1: Get AzCostManagementExportExecutionHistory +```powershell +PS C:\> Get-AzCostManagementExportExecutionHistory -ExportName 'TestExport' -Scope 'subscriptions/**********' + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +``` + +Get AzCostManagementExportExecutionHistory By ExportName and Scope + +### Example 2: Get AzCostManagementExportExecutionHistory by InputObject +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Get-AzCostManagementExportExecutionHistory -InputObject $getExport + +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName +------------- ------------------- ----------------- ------ -------- +Scheduled 2020/6/11 12:03:20 2020/6/11 12:03:43 Completed ad-hoc/TestExport/20200601-20200630/TestExport_00000000-0000-0000-0000-000000000000.csv +Scheduled 2020/6/12 12:03:37 2020/6/12 12:03:48 Completed ad-hoc/TestExport/20200601-20200630/ +``` + +Get AzCostManagementExportExecutionHistory By InputObject + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExportName +Export Name. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExportExecution + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[AlertId ]`: Alert ID + - `[ExportName ]`: Export Name. + - `[ExternalCloudProviderId ]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + - `[ExternalCloudProviderType ]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + - `[Id ]`: Resource identity path + - `[Scope ]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + - `[ViewName ]`: View name + +## RELATED LINKS + diff --git a/src/CostManagement/help/Invoke-AzCostManagementExecuteExport.md b/src/CostManagement/help/Invoke-AzCostManagementExecuteExport.md new file mode 100644 index 000000000000..f9c775b6ec69 --- /dev/null +++ b/src/CostManagement/help/Invoke-AzCostManagementExecuteExport.md @@ -0,0 +1,188 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementexecuteexport +schema: 2.0.0 +--- + +# Invoke-AzCostManagementExecuteExport + +## SYNOPSIS +The operation to execute an export. + +## SYNTAX + +### Execute (Default) +``` +Invoke-AzCostManagementExecuteExport -ExportName -Scope [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ExecuteViaIdentity +``` +Invoke-AzCostManagementExecuteExport -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The operation to execute an export. + +## EXAMPLES + +### Example 1: Invoke Export by ExportName and Scope +```powershell +PS C:\> Invoke-AzCostManagementExecuteExport -ExportName 'TestExport' -Scope 'subscriptions/**********' + +``` + +Invoke Export by ExportName and Scope + +### Example 2: Invoke Export by InputObject +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********' +Invoke-AzCostManagementExecuteExport -InputObject $getExport + +``` + +Invoke Export by InputObject + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExportName +Export Name. + +```yaml +Type: System.String +Parameter Sets: Execute +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +Parameter Sets: ExecuteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: Execute +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[AlertId ]`: Alert ID + - `[ExportName ]`: Export Name. + - `[ExternalCloudProviderId ]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + - `[ExternalCloudProviderType ]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + - `[Id ]`: Resource identity path + - `[Scope ]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + - `[ViewName ]`: View name + +## RELATED LINKS + diff --git a/src/CostManagement/help/Invoke-AzCostManagementQuery.md b/src/CostManagement/help/Invoke-AzCostManagementQuery.md new file mode 100644 index 000000000000..689b8333c326 --- /dev/null +++ b/src/CostManagement/help/Invoke-AzCostManagementQuery.md @@ -0,0 +1,325 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/invoke-azcostmanagementquery +schema: 2.0.0 +--- + +# Invoke-AzCostManagementQuery + +## SYNOPSIS +Query the usage data for scope defined. + +## SYNTAX + +### UsageExpanded (Default) +``` +Invoke-AzCostManagementQuery -Scope -Timeframe -Type + [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] + [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] + [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UsageExpanded1 +``` +Invoke-AzCostManagementQuery -ExternalCloudProviderId + -ExternalCloudProviderType -Timeframe -Type + [-ConfigurationColumn ] [-DatasetAggregation ] [-DatasetFilter ] + [-DatasetGranularity ] [-DatasetGrouping ] [-TimePeriodFrom ] + [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Query the usage data for scope defined. + +## EXAMPLES + +### Example 1: Invoke AzCostManagementQuery by Scope +```powershell +PS C:\> Invoke-AzCostManagementQuery -Scope "/subscriptions/***********" -Timeframe MonthToDate -Type Usage -DatasetGranularity 'Daily' + +Column Row +------ --- +{UsageDate, Currency} {20201101 USD, 20201102 USD, 20201103 USD, 20201104 USD…} +``` + +Invoke AzCostManagementQuery by Scope + +### Example 2: Invoke AzCostManagementQuery by Scope with Dimensions +```powershell +PS C:\> $dimensions = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator 'In' -Value 'API' +$filter = New-AzCostManagementQueryFilterObject -Dimensions $dimensions +Invoke-AzCostManagementQuery -Type Usage -Scope "subscriptions/***********" -DatasetGranularity 'Monthly' -DatasetFilter $filter -Timeframe MonthToDate -Debug + + +Column Row +------ --- +{BillingMonth, Currency} {} +``` + +Invoke AzCostManagementQuery by Scope with Dimensions + +## PARAMETERS + +### -ConfigurationColumn +Array of column names to be included in the query. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatasetAggregation +Dictionary of aggregation expression to use in the query. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatasetFilter +Has filter expression to use in the query. +To construct, see NOTES section for DATASETFILTER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatasetGranularity +The granularity of rows in the query. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatasetGrouping +Array of group by expression to use in the query. +To construct, see NOTES section for DATASETGROUPING properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryGrouping[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExternalCloudProviderId +This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + +```yaml +Type: System.String +Parameter Sets: UsageExpanded1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExternalCloudProviderType +The external cloud provider type associated with dimension/query operations. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExternalCloudProviderType +Parameter Sets: UsageExpanded1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This includes 'subscriptions/{subscriptionId}/' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. + +```yaml +Type: System.String +Parameter Sets: UsageExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Timeframe +The time frame for pulling data for the query. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodFrom +The start date to pull data from. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodTo +The end date to pull data to. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +The type of the query. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryResult + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +DATASETFILTER : Has filter expression to use in the query. + - `[And ]`: The logical "AND" expression. Must have at least 2 items. + - `[Dimensions ]`: Has comparison expression for a dimension + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + - `[Not ]`: The logical "NOT" expression. + - `[Or ]`: The logical "OR" expression. Must have at least 2 items. + - `[Tag ]`: Has comparison expression for a tag + +DATASETGROUPING : Array of group by expression to use in the query. + - `Name `: The name of the column to group. + - `Type `: Has type of the column to group. + +## RELATED LINKS + diff --git a/src/CostManagement/help/New-AzCostManagementExport.md b/src/CostManagement/help/New-AzCostManagementExport.md new file mode 100644 index 000000000000..6f61f45cd5e3 --- /dev/null +++ b/src/CostManagement/help/New-AzCostManagementExport.md @@ -0,0 +1,355 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport +schema: 2.0.0 +--- + +# New-AzCostManagementExport + +## SYNOPSIS +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + +## SYNTAX + +``` +New-AzCostManagementExport -Name -Scope [-ConfigurationColumn ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] + [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + +## EXAMPLES + +### Example 1: Create an AzCostManagementExport +```powershell +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports +``` + +Create an AzCostManagementExport + +## PARAMETERS + +### -ConfigurationColumn +Array of column names to be included in the export. +If not provided then the export will include all available columns. +The available columns can vary by customer channel (see examples). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataSetGranularity +The granularity of rows in the export. +Currently only 'Daily' is supported. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefinitionTimeframe +The time frame for pulling data for the export. +If custom, then a specific time period must be provided. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefinitionType +The type of the export. +Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationContainer +The name of the container where exports will be uploaded. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationResourceId +The resource id of the storage account where exports will be delivered. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationRootFolderPath +The name of the directory where exports will be uploaded. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Format +The format of the export being delivered. +Currently only 'Csv' is supported. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Export Name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ExportName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RecurrencePeriodFrom +The start date of recurrence. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RecurrencePeriodTo +The end date of recurrence. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleRecurrence +The schedule recurrence. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleStatus +The status of the export's schedule. +If 'Inactive', the export's schedule is paused. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodFrom +The start date for export data. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodTo +The end date for export data. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md b/src/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md new file mode 100644 index 000000000000..9d238d9a8aeb --- /dev/null +++ b/src/CostManagement/help/New-AzCostManagementQueryComparisonExpressionObject.md @@ -0,0 +1,97 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryComparisonExpressionObject +schema: 2.0.0 +--- + +# New-AzCostManagementQueryComparisonExpressionObject + +## SYNOPSIS +Create a in-memory object for QueryComparisonExpression + +## SYNTAX + +``` +New-AzCostManagementQueryComparisonExpressionObject -Name -Operator -Value + [] +``` + +## DESCRIPTION +Create a in-memory object for QueryComparisonExpression + +## EXAMPLES + +### Example 1: Create a comparison expression object of query for cost management export +```powershell +PS C:\> New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + +Name Operator Value +---- -------- ----- +ResourceLocation In {East US, West Europe} +``` + +This command creates a comparison expression object of query for cost management export. + +## PARAMETERS + +### -Name +The name of the column to use in comparison. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Operator +The operator to use for comparison. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.OperatorType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Value +Array of values to use for comparison. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryComparisonExpression + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/CostManagement/help/New-AzCostManagementQueryFilterObject.md b/src/CostManagement/help/New-AzCostManagementQueryFilterObject.md new file mode 100644 index 000000000000..12170474f4ce --- /dev/null +++ b/src/CostManagement/help/New-AzCostManagementQueryFilterObject.md @@ -0,0 +1,183 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.CostManagement/new-AzCostManagementQueryFilterObject +schema: 2.0.0 +--- + +# New-AzCostManagementQueryFilterObject + +## SYNOPSIS +Create a in-memory object for QueryFilter + +## SYNTAX + +``` +New-AzCostManagementQueryFilterObject [-And ] [-Dimensions ] + [-Not ] [-Or ] [-Tag ] [] +``` + +## DESCRIPTION +Create a in-memory object for QueryFilter + +## EXAMPLES + +### Example 1: Create a filter object of query for cost management export +```powershell +PS C:\> $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') +PS C:\> $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') +PS C:\> New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + +And : +Dimension : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +Not : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter +Or : {Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter, Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryFilter} +Tag : Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20200601.QueryComparisonExpression +``` + +this command creates a filter object of query for cost management export. + +## PARAMETERS + +### -And +The logical "AND" expression. +Must have at least 2 items. +To construct, see NOTES section for AND properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Dimensions +Has comparison expression for a dimensions. +To construct, see NOTES section for DIMENSIONS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Not +The logical "NOT" expression. +To construct, see NOTES section for NOT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Or +The logical "OR" expression. +Must have at least 2 items. +To construct, see NOTES section for OR properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryFilter[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Has comparison expression for a tag. +To construct, see NOTES section for TAG properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IQueryComparisonExpression +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.QueryFilter + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +AND : The logical "AND" expression. Must have at least 2 items. + - `[And ]`: The logical "AND" expression. Must have at least 2 items. + - `[Dimensions ]`: Has comparison expression for a dimension + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + - `[Not ]`: The logical "NOT" expression. + - `[Or ]`: The logical "OR" expression. Must have at least 2 items. + - `[Tag ]`: Has comparison expression for a tag + +DIMENSIONS : Has comparison expression for a dimensions. + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + +NOT : The logical "NOT" expression. + - `[And ]`: The logical "AND" expression. Must have at least 2 items. + - `[Dimensions ]`: Has comparison expression for a dimension + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + - `[Not ]`: The logical "NOT" expression. + - `[Or ]`: The logical "OR" expression. Must have at least 2 items. + - `[Tag ]`: Has comparison expression for a tag + +OR : The logical "OR" expression. Must have at least 2 items. + - `[And ]`: The logical "AND" expression. Must have at least 2 items. + - `[Dimensions ]`: Has comparison expression for a dimension + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + - `[Not ]`: The logical "NOT" expression. + - `[Or ]`: The logical "OR" expression. Must have at least 2 items. + - `[Tag ]`: Has comparison expression for a tag + +TAG : Has comparison expression for a tag. + - `Name `: The name of the column to use in comparison. + - `Operator `: The operator to use for comparison. + - `Value `: Array of values to use for comparison + +## RELATED LINKS + diff --git a/src/CostManagement/help/Remove-AzCostManagementExport.md b/src/CostManagement/help/Remove-AzCostManagementExport.md new file mode 100644 index 000000000000..145b0c8a8a17 --- /dev/null +++ b/src/CostManagement/help/Remove-AzCostManagementExport.md @@ -0,0 +1,190 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/remove-azcostmanagementexport +schema: 2.0.0 +--- + +# Remove-AzCostManagementExport + +## SYNOPSIS +The operation to delete a export. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzCostManagementExport -Name -Scope [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzCostManagementExport -InputObject [-DefaultProfile ] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The operation to delete a export. + +## EXAMPLES + +### Example 1: Delete the AzCostManagementExport by Scope and Name +```powershell +PS C:\> Remove-AzCostManagementExport -Scope 'subscriptions/********' -name 'TestExportDatasetAggregationInfoYouri' + + +``` + +Delete the AzCostManagementExport By Scope and ExportName + +### Example 2: Delete the AzCostManagementExport by Export Object +```powershell +PS C:\> $getExport = Get-AzCostManagementExport -Scope 'subscriptions/*********' -name 'TestExportDatasetAggregationYouori' +Remove-AzCostManagementExport -InputObject $getExport + + +``` + +Delete the AzCostManagementExport By InputObject + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Export Name. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ExportName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[AlertId ]`: Alert ID + - `[ExportName ]`: Export Name. + - `[ExternalCloudProviderId ]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + - `[ExternalCloudProviderType ]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + - `[Id ]`: Resource identity path + - `[Scope ]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + - `[ViewName ]`: View name + +## RELATED LINKS + diff --git a/src/CostManagement/help/Update-AzCostManagementExport.md b/src/CostManagement/help/Update-AzCostManagementExport.md new file mode 100644 index 000000000000..e1f66ce4e5c0 --- /dev/null +++ b/src/CostManagement/help/Update-AzCostManagementExport.md @@ -0,0 +1,426 @@ +--- +external help file: +Module Name: Az.CostManagement +online version: https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +schema: 2.0.0 +--- + +# Update-AzCostManagementExport + +## SYNOPSIS +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzCostManagementExport -Name -Scope [-ConfigurationColumn ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] + [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzCostManagementExport -InputObject [-ConfigurationColumn ] + [-DataSetGranularity ] [-DefinitionTimeframe ] [-DefinitionType ] + [-DestinationContainer ] [-DestinationResourceId ] [-DestinationRootFolderPath ] + [-ETag ] [-Format ] [-RecurrencePeriodFrom ] [-RecurrencePeriodTo ] + [-ScheduleRecurrence ] [-ScheduleStatus ] [-TimePeriodFrom ] + [-TimePeriodTo ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. + +## EXAMPLES + +### Example 1: Update AzCostManagementExport by scope and name +```powershell +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +``` + +Update AzCostManagementExport by Scope and name + +### Example 2: Update AzCostManagementExport by InputObject +```powershell +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +``` + +Update AzCostManagementExport by InputObject + +## PARAMETERS + +### -ConfigurationColumn +Array of column names to be included in the export. +If not provided then the export will include all available columns. +The available columns can vary by customer channel (see examples). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataSetGranularity +The granularity of rows in the export. +Currently only 'Daily' is supported. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefinitionTimeframe +The time frame for pulling data for the export. +If custom, then a specific time period must be provided. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefinitionType +The type of the export. +Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationContainer +The name of the container where exports will be uploaded. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationResourceId +The resource id of the storage account where exports will be delivered. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DestinationRootFolderPath +The name of the directory where exports will be uploaded. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ETag +eTag of the resource. +To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Format +The format of the export being delivered. +Currently only 'Csv' is supported. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Export Name. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ExportName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RecurrencePeriodFrom +The start date of recurrence. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RecurrencePeriodTo +The end date of recurrence. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleRecurrence +The schedule recurrence. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleStatus +The status of the export's schedule. +If 'Inactive', the export's schedule is paused. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Scope +This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodFrom +The start date for export data. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimePeriodTo +The end date for export data. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[AlertId ]`: Alert ID + - `[ExportName ]`: Export Name. + - `[ExternalCloudProviderId ]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + - `[ExternalCloudProviderType ]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + - `[Id ]`: Resource identity path + - `[Scope ]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + - `[ViewName ]`: View name + +## RELATED LINKS + diff --git a/src/CostManagement/how-to.md b/src/CostManagement/how-to.md new file mode 100644 index 000000000000..8ac954c6b92a --- /dev/null +++ b/src/CostManagement/how-to.md @@ -0,0 +1,58 @@ +# How-To +This document describes how to develop for `Az.CostManagement`. + +## Building `Az.CostManagement` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [readme.md](exports/readme.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [readme.md](custom/readme.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. + +## Testing `Az.CostManagement` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. + +## Packing `Az.CostManagement` +To pack `Az.CostManagement` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.CostManagement`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.CostManagement.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.CostManagement.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.CostManagement`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.CostManagement` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/CostManagement/internal/Az.CostManagement.internal.psm1 b/src/CostManagement/internal/Az.CostManagement.internal.psm1 new file mode 100644 index 000000000000..3422b1a9e074 --- /dev/null +++ b/src/CostManagement/internal/Az.CostManagement.internal.psm1 @@ -0,0 +1,38 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.CostManagement.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Module]::Instance + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = $PSScriptRoot + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } +# endregion diff --git a/src/CostManagement/internal/Get-AzCostManagementOperation.ps1 b/src/CostManagement/internal/Get-AzCostManagementOperation.ps1 new file mode 100644 index 000000000000..7586e7847bcf --- /dev/null +++ b/src/CostManagement/internal/Get-AzCostManagementOperation.ps1 @@ -0,0 +1,121 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Lists all of the available cost management REST API operations. +.Description +Lists all of the available cost management REST API operations. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementoperation +#> +function Get-AzCostManagementOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.CostManagement.private\Get-AzCostManagementOperation_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/internal/New-AzCostManagementExport.ps1 b/src/CostManagement/internal/New-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..659790547dec --- /dev/null +++ b/src/CostManagement/internal/New-AzCostManagementExport.ps1 @@ -0,0 +1,242 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport +#> +function New-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CostManagement.private\New-AzCostManagementExport_CreateExpanded'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/internal/ProxyCmdletDefinitions.ps1 b/src/CostManagement/internal/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..0945b1038fca --- /dev/null +++ b/src/CostManagement/internal/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,635 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Lists all of the available cost management REST API operations. +.Description +Lists all of the available cost management REST API operations. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/get-azcostmanagementoperation +#> +function Get-AzCostManagementOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.CostManagement.private\Get-AzCostManagementOperation_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> New-AzCostManagementExport -Scope "subscriptions/***********" -Name "CostManagementExportTest" -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-10-31T20:00:00Z" -RecurrencePeriodTo "2020-11-30T00:00:00Z" -Format "Csv" -DestinationResourceId "/subscriptions/*************/resourceGroups/ResourceGroupTest/providers/Microsoft.Storage/storageAccounts/storageAccountTest" ` -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfosagdhaghj Microsoft.CostManagement/exports + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport +#> +function New-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.CostManagement.private\New-AzCostManagementExport_CreateExpanded'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +.Example +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +#> +function Update-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.CostManagement.private\Update-AzCostManagementExport_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.CostManagement.private\Update-AzCostManagementExport_UpdateViaIdentityExpanded'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/internal/Update-AzCostManagementExport.ps1 b/src/CostManagement/internal/Update-AzCostManagementExport.ps1 new file mode 100644 index 000000000000..5979b01c5e91 --- /dev/null +++ b/src/CostManagement/internal/Update-AzCostManagementExport.ps1 @@ -0,0 +1,272 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Description +The operation to create or update a export. +Update operation requires latest eTag to be set in the request. +You may obtain the latest eTag by performing a get operation. +Create operation does not require eTag. +.Example +PS C:\> Update-AzCostManagementExport -Scope "subscriptions//*********" -Name "TestExport" -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports +.Example +PS C:\> $oldExport = Get-AzCostManagementExport -Scope "subscriptions/*********" -Name "TestExport" +Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + +ETag Name Type +---- ---- ---- +"********" TestExportDatasetAggregationInfo Microsoft.CostManagement/exports + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AlertId ]: Alert ID + [ExportName ]: Export Name. + [ExternalCloudProviderId ]: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. + [ExternalCloudProviderType ]: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. + [Id ]: Resource identity path + [Scope ]: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. + [ViewName ]: View name +.Link +https://docs.microsoft.com/en-us/powershell/module/az.costmanagement/update-azcostmanagementexport +#> +function Update-AzCostManagementExport { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20200601.IExport])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ExportName')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # Export Name. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [System.String] + # This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + ${Scope}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.ICostManagementIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String[]] + # Array of column names to be included in the export. + # If not provided then the export will include all available columns. + # The available columns can vary by customer channel (see examples). + ${ConfigurationColumn}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.GranularityType] + # The granularity of rows in the export. + # Currently only 'Daily' is supported. + ${DataSetGranularity}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.TimeframeType] + # The time frame for pulling data for the export. + # If custom, then a specific time period must be provided. + ${DefinitionTimeframe}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.ExportType] + # The type of the export. + # Note that 'Usage' is equivalent to 'ActualCost' and is applicable to exports that do not yet provide data for charges or amortization for service reservations. + ${DefinitionType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the container where exports will be uploaded. + ${DestinationContainer}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The resource id of the storage account where exports will be delivered. + ${DestinationResourceId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # The name of the directory where exports will be uploaded. + ${DestinationRootFolderPath}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.String] + # eTag of the resource. + # To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. + ${ETag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.FormatType] + # The format of the export being delivered. + # Currently only 'Csv' is supported. + ${Format}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date of recurrence. + ${RecurrencePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date of recurrence. + ${RecurrencePeriodTo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.RecurrenceType] + # The schedule recurrence. + ${ScheduleRecurrence}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType])] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Support.StatusType] + # The status of the export's schedule. + # If 'Inactive', the export's schedule is paused. + ${ScheduleStatus}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The start date for export data. + ${TimePeriodFrom}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Body')] + [System.DateTime] + # The end date for export data. + ${TimePeriodTo}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.CostManagement.private\Update-AzCostManagementExport_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.CostManagement.private\Update-AzCostManagementExport_UpdateViaIdentityExpanded'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/CostManagement/internal/readme.md b/src/CostManagement/internal/readme.md new file mode 100644 index 000000000000..8273f7bf9ce4 --- /dev/null +++ b/src/CostManagement/internal/readme.md @@ -0,0 +1,14 @@ +# Internal +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The `Az.CostManagement.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.CostManagement`. Instead, this sub-module is imported by the `..\custom\Az.CostManagement.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.CostManagement.internal\Get-Example` would call an internal cmdlet named `Get-Example`. + +## Purpose +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.CostManagement`. \ No newline at end of file diff --git a/src/CostManagement/pack-module.ps1 b/src/CostManagement/pack-module.ps1 new file mode 100644 index 000000000000..c22fad33d87b --- /dev/null +++ b/src/CostManagement/pack-module.ps1 @@ -0,0 +1,16 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +Write-Host -ForegroundColor Green 'Packing module...' +dotnet pack $PSScriptRoot --no-build /nologo +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CostManagement/readme.md b/src/CostManagement/readme.md new file mode 100644 index 000000000000..ba8f2210d58a --- /dev/null +++ b/src/CostManagement/readme.md @@ -0,0 +1,197 @@ + +# Az.CostManagement +This directory contains the PowerShell module for the Cost service. + +--- +## Status +[![Az.CostManagement](https://img.shields.io/powershellgallery/v/Az.CostManagement.svg?style=flat-square&label=Az.CostManagement "Az.CostManagement")](https://www.powershellgallery.com/packages/Az.CostManagement/) + +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.CostManagement`, see [how-to.md](how-to.md). + + +--- +## Generation Requirements +Use of the beta version of `autorest.powershell` generator requires the following: +- [NodeJS LTS](https://nodejs.org) (10.15.x LTS preferred) + - **Note**: It *will not work* with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes. +> If you want an easy way to install and update Node, [NVS - Node Version Switcher](../nodejs/installing-via-nvs.md) or [NVM - Node Version Manager](../nodejs/installing-via-nvm.md) is recommended. +- [AutoRest](https://aka.ms/autorest) v3 beta
`npm install -g autorest@beta`
  +- PowerShell 6.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g pwsh`
  +- .NET Core SDK 2.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g dotnet-sdk-2.2`
  +## Run Generation +In this directory, run AutoRest: +> `autorest` +--- +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +Branch: 2cb80cf6668074c84cf02cf45b6bb897eff47e9b +require: + - $(this-folder)/../readme.azure.noprofile.md +input-file: + - $(repo)/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json + - $(repo)/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.exports.json +title: CostManagement +module-version: 0.1.0 + +service-name: CostManagement + +identity-correction-for-post: true + +directive: + - where: + variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + remove: true + - from: source-file-csharp + where: $ + transform: $ = $.replace(/AlertCategory System/, 'AlertCategory System1'); + - from: source-file-csharp + where: $ + transform: $ = $.replace(/internal partial interface/, 'public partial interface'); + - where: + verb: Set + set: + verb: Update + - where: + subject: UsageQuery + verb: invoke + remove: true + - where: + subject: ByDimensionExternalCloudProviderType|CloudForecast|DismissAlert|Forecast + verb: Invoke + remove: true + - where: + subject: Export|ExportExecutionHistory|ExportExecution + parameter-name: Scope + set: + parameter-name: Scope + parameter-description: This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'. + - where: + subject: Export + verb: New + hide: true + - where: + subject: Export + verb: Update + hide: true + - from: source-file-csharp + where: $ + transform: $ = $.replace(/\/runHistory\$/g, "$"); + - where: + subject: Alert|AlertExternal|Dimension|View + remove: true + - from: source-file-csharp + where: $ + transform: $ = $.replace(/\^\/\(\?\[\^\/\]\+\)/g, "(?.+)"); + - where: + model-name: QueryResult + set: + format-table: + properties: + - NextLink + - Column + - Row + - where: + model-name: ExportExecution + set: + format-table: + properties: + - ExecutionType + - ProcessingStartTime + - ProcessingEndTime + - RunSetting + - Status + - FileName + - from: swagger-document + where: $.definitions.AlertProperties.properties.details.properties.resourceGroupFilter.items + transform: >- + return { + "type": "string" + } + - from: swagger-document + where: $.definitions.AlertProperties.properties.details.properties.resourceFilter.items + transform: >- + return { + "type": "string" + } + - from: swagger-document + where: $.definitions.AlertProperties.properties.details.properties.meterFilter.items + transform: >- + return { + "type": "string" + } + - from: swagger-document + where: $.definitions.QueryProperties.properties.rows.items.items + transform: >- + return { + "type": "string" + } + - from: swagger-document + where: $.definitions.QueryFilter.properties + transform: >- + return { + "and": { + "description": "The logical \"AND\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/QueryFilter" + }, + "minItems": 2 + }, + "or": { + "description": "The logical \"OR\" expression. Must have at least 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/QueryFilter" + }, + "minItems": 2 + }, + "not": { + "description": "The logical \"NOT\" expression.", + "$ref": "#/definitions/QueryFilter" + }, + "dimensions": { + "description": "Has comparison expression for a dimension", + "$ref": "#/definitions/QueryComparisonExpression" + }, + "tag": { + "description": "Has comparison expression for a tag", + "$ref": "#/definitions/QueryComparisonExpression" + } + } + - where: + model-name: QueryFilter + property-name: Dimension + set: + property-name: Dimensions + - where: + model-name: QueryResult + set: + format-table: + properties: + - Column + - Row + - no-inline: + - QueryFilter + - ReportConfigFilter +``` diff --git a/src/CostManagement/run-module.ps1 b/src/CostManagement/run-module.ps1 new file mode 100644 index 000000000000..879e57c24b9b --- /dev/null +++ b/src/CostManagement/run-module.ps1 @@ -0,0 +1,59 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Code) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$isAzure = $true +if($isAzure) { + . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CostManagement.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +function Prompt { + Write-Host -NoNewline -ForegroundColor Green "PS $(Get-Location)" + Write-Host -NoNewline -ForegroundColor Gray ' [' + Write-Host -NoNewline -ForegroundColor White -BackgroundColor DarkCyan $moduleName + ']> ' +} + +# where we would find the launch.json file +$vscodeDirectory = New-Item -ItemType Directory -Force -Path (Join-Path $PSScriptRoot '.vscode') +$launchJson = Join-Path $vscodeDirectory 'launch.json' + +# if there is a launch.json file, let's just assume -Code, and update the file +if(($Code) -or (test-Path $launchJson) ) { + $launchContent = '{ "version": "0.2.0", "configurations":[{ "name":"Attach to PowerShell", "type":"coreclr", "request":"attach", "processId":"' + ([System.Diagnostics.Process]::GetCurrentProcess().Id) + '", "justMyCode":false }] }' + Set-Content -Path $launchJson -Value $launchContent + if($Code) { + # only launch vscode if they say -code + code $PSScriptRoot + } +} + +Import-Module -Name $modulePath \ No newline at end of file diff --git a/src/CostManagement/test-module.ps1 b/src/CostManagement/test-module.ps1 new file mode 100644 index 000000000000..b6b48052f0dd --- /dev/null +++ b/src/CostManagement/test-module.ps1 @@ -0,0 +1,68 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$ProgressPreference = 'SilentlyContinue' +$baseName = $PSScriptRoot.BaseName +$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule +. ("$PSScriptRoot\test\utils.ps1") + +if ($requireResourceModule) { + $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') + Import-Module -Name $resourceModulePSD.FullName +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.CostManagement.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +Import-Module -Name Pester +Import-Module -Name $modulePath + +$TestMode = 'playback' +if($Live) { + $TestMode = 'live' +} +if($Record) { + $TestMode = 'record' +} +try { + if ($TestMode -ne 'playback') { + setupEnv + } + $testFolder = Join-Path $PSScriptRoot 'test' + Invoke-Pester -Script @{ Path = $testFolder } -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") +} +Finally +{ + if ($TestMode -ne 'playback') { + cleanupEnv + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/CostManagement/test/Az.Cost-TestResults.xml b/src/CostManagement/test/Az.Cost-TestResults.xml new file mode 100644 index 000000000000..f4779bc6f02e --- /dev/null +++ b/src/CostManagement/test/Az.Cost-TestResults.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/CostManagement/test/Get-AzCostManagementExport.Recording.json b/src/CostManagement/test/Get-AzCostManagementExport.Recording.json new file mode 100644 index 000000000000..18018b228439 --- /dev/null +++ b/src/CostManagement/test/Get-AzCostManagementExport.Recording.json @@ -0,0 +1,170 @@ +{ + "Get-AzCostManagementExport+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "019f78ea-6d5d-4526-96b6-759794f5b56e" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "7c853323-98ff-444b-8cf2-ff9e08faef47" ], + "x-ms-request-id": [ "1d220c16-222c-493d-ba84-78097dee9e30" ], + "x-ms-correlation-request-id": [ "e86dfb49-a45f-4671-9088-43db287b2aa2" ], + "x-ms-client-request-id": [ "019f78ea-6d5d-4526-96b6-759794f5b56e" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T070127Z:e86dfb49-a45f-4671-9088-43db287b2aa2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:01:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30290" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport\",\"name\":\"TestExport\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb46c1f5154\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T00:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport1\",\"name\":\"TestExport1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb4a3f75019\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T20:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport2\",\"name\":\"TestExport2\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f5dda56551\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport3\",\"name\":\"TestExport3\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f6069c44bb\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T02\",\"name\":\"LucasExport-T02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f8ec7b1149\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T03\",\"name\":\"LucasExport-T03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f918708873\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExportT06\",\"name\":\"LucasExportT06\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f9d2f5df21\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-27T20:00:00+00:00\",\"to\":\"2020-06-28T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t01\",\"name\":\"ps-costext-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649ff52ae2bb7\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-24T00:00:00+00:00\",\"to\":\"2020-06-26T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t02\",\"name\":\"ps-costext-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d16faa5d7b4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T00:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t03\",\"name\":\"ps-costext-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1be92e19a4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:45:28\",\"to\":\"2020-07-18T07:15:28\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportws5qlv\",\"name\":\"exportws5qlv\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1d1164c9ac\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:53:46\",\"to\":\"2020-07-18T07:23:46\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmkjhje\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t01\",\"name\":\"manual-export-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd725acbcdf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T20:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t02\",\"name\":\"manual-export-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd8071bf283\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportinfo-ps-t\",\"name\":\"exportinfo-ps-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda275a663c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t\",\"name\":\"ps-exportall-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda37395609\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-customcolum-t\",\"name\":\"ps-customcolum-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddad337a774\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-aggregation-t\",\"name\":\"ps-aggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddb7d30c57d\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}}}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-group-t\",\"name\":\"ps-group-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddd2f00c7aa\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-groupaggregation-t\",\"name\":\"ps-groupaggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dde4850e487\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport10\",\"name\":\"TestExport10\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d650dd9b8ab46b\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T20:00:00+00:00\",\"to\":\"2020-07-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t02\",\"name\":\"ps-exportall-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d651104357293e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t03\",\"name\":\"ps-exportall-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65110a073dc56\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9yfan\",\"name\":\"export-u9yfan\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b1674994fd\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9sfcn\",\"name\":\"export-u9sfcn\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16952d046\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-cf6scg\",\"name\":\"export-cf6scg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16a169690\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-38we0i\",\"name\":\"export-38we0i\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65375a9692caf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-r6xjol\",\"name\":\"export-r6xjol\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377005b37c6\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-gq1kft\",\"name\":\"export-gq1kft\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6537703972b88\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-j8s5of\",\"name\":\"export-j8s5of\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377046dbf7c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregation123\",\"name\":\"TestExportDatasetAggregation123\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b19fb5559127\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-03T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoyouri\",\"name\":\"TestExportDatasetAggregationInfoyouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b33c18099a67\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-05T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestUpdate1\",\"name\":\"TestUpdate1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b6451f8f6d83\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-09T20:00:00+00:00\",\"to\":\"2020-11-20T00:00:00+00:00\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:26.9366552Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoYouri\",\"name\":\"TestExportDatasetAggregationInfoYouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b738f9459e9e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-13T20:00:00Z\",\"to\":\"2020-11-17T00:00:00Z\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoctest\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationYouriTest\",\"name\":\"TestExportDatasetAggregationYouriTest\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b7120d0af53a\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-10T20:00:00+00:00\",\"to\":\"2020-11-15T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfo1118\",\"name\":\"TestExportDatasetAggregationInfo1118\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd716961a536\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T20:00:00Z\",\"to\":\"2020-11-20T00:00:00Z\"}},\"nextRunTimeEstimate\":\"2020-11-18T20:00:00Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youri-costmanagement/providers/Microsoft.Storage/storageAccounts/youristorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd74b260689e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:26.9366552Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-x9d0hl\",\"name\":\"export-x9d0hl\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd787c7e5e56\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:26.9366552Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod\",\"name\":\"export-9pcvod\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd787f0fd3c0\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:26.9366552Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}}]}" + } + }, + "Get-AzCostManagementExport+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "284728a8-bc91-4a3a-8713-f71c14f4756f" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "0e2f0ad0-a2c2-4128-bf1e-790e4a6b93c9" ], + "x-ms-request-id": [ "c3b28262-7f15-4fb0-b212-893bcda8d57d" ], + "x-ms-correlation-request-id": [ "1f4c0526-984b-47b4-849d-0dc455f20959" ], + "x-ms-client-request-id": [ "284728a8-bc91-4a3a-8713-f71c14f4756f" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T070127Z:1f4c0526-984b-47b4-849d-0dc455f20959" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:01:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "762" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd74b260689e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:27.7260468Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Get-AzCostManagementExport+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "dd33ad9d-1784-4051-b058-dc7f19937624" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "694c1cdd-5000-4a20-a214-06f160bb22a4" ], + "x-ms-request-id": [ "abbabf4c-1d8a-4caf-bcce-c41d246a3cf7" ], + "x-ms-correlation-request-id": [ "5ff3f209-9582-4551-94da-8a039ea7bb9a" ], + "x-ms-client-request-id": [ "dd33ad9d-1784-4051-b058-dc7f19937624" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T070128Z:5ff3f209-9582-4551-94da-8a039ea7bb9a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:01:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "762" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd74b260689e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:28.3543878Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Get-AzCostManagementExport+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9aa28b62-5456-4ae9-84cf-3998beb992fd" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "f2825f60-8a64-4405-a1e5-9603815df2c7" ], + "x-ms-request-id": [ "66093be2-1093-45ca-9b47-7170ddb604d0" ], + "x-ms-correlation-request-id": [ "73507b6e-2ae5-462a-95c6-921ff56f9532" ], + "x-ms-client-request-id": [ "9aa28b62-5456-4ae9-84cf-3998beb992fd" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T070129Z:73507b6e-2ae5-462a-95c6-921ff56f9532" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:01:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "762" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd74b260689e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:01:28.9611203Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/Get-AzCostManagementExport.Tests.ps1 b/src/CostManagement/test/Get-AzCostManagementExport.Tests.ps1 new file mode 100644 index 000000000000..2940b9cb4076 --- /dev/null +++ b/src/CostManagement/test/Get-AzCostManagementExport.Tests.ps1 @@ -0,0 +1,30 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCostManagementExport.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCostManagementExport' { + It 'List' { + $exportList = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" + $exportList.Count | Should -BeGreaterOrEqual 1 + } + + It 'Get' { + $export = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 + $export.Name | Should -Be $env.exportName01 + } + + It 'GetViaIdentity' { + $export = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 + $export = Get-AzCostManagementExport -InputObject $export + $export.Name | Should -Be $env.exportName01 + } +} diff --git a/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Recording.json b/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Recording.json new file mode 100644 index 000000000000..498de3ec2549 --- /dev/null +++ b/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Recording.json @@ -0,0 +1,128 @@ +{ + "Get-AzCostManagementExportExecutionHistory+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "23f11f1f-f46b-4cc0-911e-8f4ec0cdfead" ], + "CommandName": [ "Get-AzCostManagementExportExecutionHistory" ], + "FullCommandName": [ "Get-AzCostManagementExportExecutionHistory_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "a6606686-60eb-4a95-8652-8541b8a9878e" ], + "x-ms-request-id": [ "4cec0d72-ab40-4629-aba4-55028d98a4ca" ], + "x-ms-correlation-request-id": [ "e71587b4-1863-4b23-849e-346466f86590" ], + "x-ms-client-request-id": [ "23f11f1f-f46b-4cc0-911e-8f4ec0cdfead" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072513Z:e71587b4-1863-4b23-849e-346466f86590" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:25:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1856" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/46fcbcd5-e265-4d3d-b64d-29730797d629\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"Completed\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:47.826442Z\",\"processingStartTime\":\"2020-11-18T07:23:49.9336163Z\",\"processingEndTime\":\"2020-11-18T07:24:34.1615162Z\",\"fileName\":\"ad-hoc/export-oenfxg/20201101-20201130/export-oenfxg_46fcbcd5-e265-4d3d-b64d-29730797d629.csv\"}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/7bc55aa1-73c7-4817-a792-a5d18f16c30b\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"Completed\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:51.0272403Z\",\"processingStartTime\":\"2020-11-18T07:23:53.0245821Z\",\"processingEndTime\":\"2020-11-18T07:24:25.01233Z\",\"fileName\":\"ad-hoc/export-oenfxg/20201101-20201130/export-oenfxg_7bc55aa1-73c7-4817-a792-a5d18f16c30b.csv\"}}]}" + } + }, + "Get-AzCostManagementExportExecutionHistory+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "73a50aa7-ed60-4a71-ab9e-3db97e2355e2" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "b9a804c4-5c5e-4270-bdd9-7ee7b70bbdcf" ], + "x-ms-request-id": [ "2ab7588d-c1dc-41c0-a957-75c6c3797d85" ], + "x-ms-correlation-request-id": [ "9900b0be-b85b-4772-a73d-ff9336d142ec" ], + "x-ms-client-request-id": [ "73a50aa7-ed60-4a71-ab9e-3db97e2355e2" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072513Z:9900b0be-b85b-4772-a73d-ff9336d142ec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:25:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "762" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7bacc71476\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:25:13.5620095Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Get-AzCostManagementExportExecutionHistory+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "29fa47d9-86e7-466f-b5f0-0dcf1901cf4e" ], + "CommandName": [ "Get-AzCostManagementExportExecutionHistory" ], + "FullCommandName": [ "Get-AzCostManagementExportExecutionHistory_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "8ecb35b7-2d7b-4c0a-bd8d-8cf0a0752340" ], + "x-ms-request-id": [ "ba2e7d02-8d12-4551-b694-5311269b1512" ], + "x-ms-correlation-request-id": [ "dd87d05f-f740-4a4a-b4b2-8768f03ace3b" ], + "x-ms-client-request-id": [ "29fa47d9-86e7-466f-b5f0-0dcf1901cf4e" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072514Z:dd87d05f-f740-4a4a-b4b2-8768f03ace3b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:25:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1856" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/46fcbcd5-e265-4d3d-b64d-29730797d629\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"Completed\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:47.826442Z\",\"processingStartTime\":\"2020-11-18T07:23:49.9336163Z\",\"processingEndTime\":\"2020-11-18T07:24:34.1615162Z\",\"fileName\":\"ad-hoc/export-oenfxg/20201101-20201130/export-oenfxg_46fcbcd5-e265-4d3d-b64d-29730797d629.csv\"}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/7bc55aa1-73c7-4817-a792-a5d18f16c30b\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"Completed\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:51.0272403Z\",\"processingStartTime\":\"2020-11-18T07:23:53.0245821Z\",\"processingEndTime\":\"2020-11-18T07:24:25.01233Z\",\"fileName\":\"ad-hoc/export-oenfxg/20201101-20201130/export-oenfxg_7bc55aa1-73c7-4817-a792-a5d18f16c30b.csv\"}}]}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Tests.ps1 b/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Tests.ps1 new file mode 100644 index 000000000000..a1372bb46ed9 --- /dev/null +++ b/src/CostManagement/test/Get-AzCostManagementExportExecutionHistory.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzCostManagementExportExecutionHistory.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzCostManagementExportExecutionHistory' { + It 'Get' { + $exportHist = Get-AzCostManagementExportExecutionHistory -Scope "subscriptions/$($env.SubscriptionId)" -ExportName $env.exportName01 + $exportHist.Count | Should -Be 2 + } + + It 'GetViaIdentity' { + $export = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 + $exportHist = Get-AzCostManagementExportExecutionHistory -InputObject $export + $exportHist.Count | Should -Be 2 + } +} diff --git a/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Recording.json b/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Recording.json new file mode 100644 index 000000000000..bd7c5dfe8da8 --- /dev/null +++ b/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Recording.json @@ -0,0 +1,208 @@ +{ + "Invoke-AzCostManagementExecuteExport+[NoContext]+Execute+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/run?api-version=2020-06-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/run?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "15e9cb13-90d9-4709-9bf8-cc6424b3fadf" ], + "CommandName": [ "Invoke-AzCostManagementExecuteExport" ], + "FullCommandName": [ "Invoke-AzCostManagementExecuteExport_Execute" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "session-id": [ "18bb1119-00da-487a-a5f9-258893d7546a" ], + "x-ms-request-id": [ "cd99ca74-4db5-492d-b7f6-d80d0b9a3c58" ], + "x-ms-correlation-request-id": [ "9cc9ce6b-f352-4366-a410-bf9f9584ed74" ], + "x-ms-client-request-id": [ "15e9cb13-90d9-4709-9bf8-cc6424b3fadf" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072349Z:9cc9ce6b-f352-4366-a410-bf9f9584ed74" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:23:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCostManagementExecuteExport+[NoContext]+Execute+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "7a53a0f6-4051-4e48-a4ba-57d93a2e2f58" ], + "CommandName": [ "Get-AzCostManagementExportExecutionHistory" ], + "FullCommandName": [ "Get-AzCostManagementExportExecutionHistory_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "c9c9317e-b541-4389-8544-723601ab9332" ], + "x-ms-request-id": [ "ece4d240-3a16-45a4-9307-e42063bc0e4c" ], + "x-ms-correlation-request-id": [ "d059e713-a14e-4436-8cd8-e79cc17e76b2" ], + "x-ms-client-request-id": [ "7a53a0f6-4051-4e48-a4ba-57d93a2e2f58" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072350Z:d059e713-a14e-4436-8cd8-e79cc17e76b2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:23:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "792" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/46fcbcd5-e265-4d3d-b64d-29730797d629\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"InProgress\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:47.826442Z\",\"processingStartTime\":null,\"processingEndTime\":null,\"fileName\":null}}]}" + } + }, + "Invoke-AzCostManagementExecuteExport+[NoContext]+ExecuteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "ce57afeb-eac4-49cd-b790-634e2673251c" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "671aad90-703f-4db9-8b30-0526507ab6b0" ], + "x-ms-request-id": [ "107d74b6-4d7f-4511-bb72-4720738bad95" ], + "x-ms-correlation-request-id": [ "909eb4c7-2f3b-44db-88b8-5b01e8a20325" ], + "x-ms-client-request-id": [ "ce57afeb-eac4-49cd-b790-634e2673251c" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072350Z:909eb4c7-2f3b-44db-88b8-5b01e8a20325" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:23:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "762" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7bacc71476\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:23:50.5429086Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Invoke-AzCostManagementExecuteExport+[NoContext]+ExecuteViaIdentity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/run?api-version=2020-06-01+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/run?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "f7c1b42e-c314-4937-be4a-799dd5264710" ], + "CommandName": [ "Invoke-AzCostManagementExecuteExport" ], + "FullCommandName": [ "Invoke-AzCostManagementExecuteExport_ExecuteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "session-id": [ "ba6dab3b-0775-4f70-9021-191d85b545d5" ], + "x-ms-request-id": [ "3d1f28d9-7c93-4ec9-ab82-e8a57f635bc2" ], + "x-ms-correlation-request-id": [ "70513666-265d-488e-a505-fd31c0ba4a75" ], + "x-ms-client-request-id": [ "f7c1b42e-c314-4937-be4a-799dd5264710" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072352Z:70513666-265d-488e-a505-fd31c0ba4a75" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:23:52 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Invoke-AzCostManagementExecuteExport+[NoContext]+ExecuteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/runHistory?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "035e700a-9b02-413e-9ebb-8d2e63725211" ], + "CommandName": [ "Get-AzCostManagementExportExecutionHistory" ], + "FullCommandName": [ "Get-AzCostManagementExportExecutionHistory_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "11ce37cf-b54f-4c7f-b528-5f1cd891bc42" ], + "x-ms-request-id": [ "c0e28c10-573a-4570-873c-8e1f2ebf5ca3" ], + "x-ms-correlation-request-id": [ "f4e04a41-f1c7-447e-8203-999c70d91ba0" ], + "x-ms-client-request-id": [ "035e700a-9b02-413e-9ebb-8d2e63725211" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072353Z:f4e04a41-f1c7-447e-8203-999c70d91ba0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:23:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1574" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/46fcbcd5-e265-4d3d-b64d-29730797d629\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"InProgress\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:47.826442Z\",\"processingStartTime\":null,\"processingEndTime\":null,\"fileName\":null}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg/Run/7bc55aa1-73c7-4817-a792-a5d18f16c30b\",\"name\":null,\"type\":null,\"eTag\":null,\"properties\":{\"runSettings\":{\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}},\"executionType\":\"OnDemand\",\"status\":\"InProgress\",\"submittedBy\":\"v-lipyo@microsoft.com\",\"submittedTime\":\"2020-11-18T07:23:51.0272403Z\",\"processingStartTime\":null,\"processingEndTime\":null,\"fileName\":null}}]}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Tests.ps1 b/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Tests.ps1 new file mode 100644 index 000000000000..7c61a505d6d4 --- /dev/null +++ b/src/CostManagement/test/Invoke-AzCostManagementExecuteExport.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCostManagementExecuteExport.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCostManagementExecuteExport' { + It 'Execute' { + Invoke-AzCostManagementExecuteExport -Scope "subscriptions/$($env.SubscriptionId)" -ExportName $env.exportName01 + $exportHist = Get-AzCostManagementExportExecutionHistory -Scope "subscriptions/$($env.SubscriptionId)" -ExportName $env.exportName01 + $exportHist.Count | Should -Be 1 + } + + It 'ExecuteViaIdentity' { + $export = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 + Invoke-AzCostManagementExecuteExport -InputObject $export + $exportHist = Get-AzCostManagementExportExecutionHistory -Scope "subscriptions/$($env.SubscriptionId)" -ExportName $env.exportName01 + $exportHist.Count | Should -Be 2 + } +} diff --git a/src/CostManagement/test/Invoke-AzCostManagementQuery.Tests.ps1 b/src/CostManagement/test/Invoke-AzCostManagementQuery.Tests.ps1 new file mode 100644 index 000000000000..9a9071335ebf --- /dev/null +++ b/src/CostManagement/test/Invoke-AzCostManagementQuery.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzCostManagementQuery.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Invoke-AzCostManagementQuery' { + It 'UsageExpanded' -skip { + $invbokeQueryResult = Invoke-AzCostManagementQuery -Scope "/subscriptions/$($env.SubscriptionId)" -Timeframe MonthToDate -Type Usage -DatasetGranularity 'Daily' + $invbokeQueryResult.Column.Name.Contains('UsageDate') | Should -Be $true + } + + # It 'UsageExpanded1' -skip { + # #$DimensionObject = new-AzCostManagementQueryComparisonExpressionObject -name 'ResourceGroup' -Operator 'In' -Value 'API' + # #$FilterObject = New-AzCostManagementQueryFilterObject -Dimension $DimensionObject + # #Invoke-AzCostManagementQuery -ExternalCloudProviderId 'Microsoft.Compute' -ExternalCloudProviderType externalBillingAccounts -Timeframe MonthToDate -type Usage -DatasetFilter $FilterObject -DatasetGranularity Daily -debug + # } +} diff --git a/src/CostManagement/test/New-AzCostManagementExport.Recording.json b/src/CostManagement/test/New-AzCostManagementExport.Recording.json new file mode 100644 index 000000000000..7344ac5256fe --- /dev/null +++ b/src/CostManagement/test/New-AzCostManagementExport.Recording.json @@ -0,0 +1,113 @@ +{ + "New-AzCostManagementExport+[NoContext]+CreateExpandedBySubscription+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-x9d0hl?api-version=2020-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-x9d0hl?api-version=2020-06-01", + "Content": "{\r\n \"properties\": {\r\n \"definition\": {\r\n \"dataSet\": {\r\n \"granularity\": \"Daily\"\r\n },\r\n \"type\": \"Usage\",\r\n \"timeframe\": \"MonthToDate\"\r\n },\r\n \"deliveryInfo\": {\r\n \"destination\": {\r\n \"container\": \"exports\",\r\n \"resourceId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\r\n \"rootFolderPath\": \"ad-hoc\"\r\n }\r\n },\r\n \"format\": \"Csv\",\r\n \"schedule\": {\r\n \"recurrencePeriod\": {\r\n \"from\": \"2020-11-18T14:33:13.0000000\",\r\n \"to\": \"2020-12-08T14:33:13.0000000\"\r\n },\r\n \"recurrence\": \"Daily\",\r\n \"status\": \"Active\"\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "726" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://costmanagement.trafficmanager.net/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-x9d0hl?api-version=2020-06-01" ], + "session-id": [ "7fcf2ee1-0f52-454b-b52b-c9035a39628e" ], + "x-ms-request-id": [ "a0551e42-d111-48c0-998f-a6aa754c5b30" ], + "x-ms-correlation-request-id": [ "5b87b8d1-a9dd-45e0-ba16-357f8ace82e8" ], + "x-ms-client-request-id": [ "9d4cf527-ae8c-4766-ae7c-d4e152715595" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T071141Z:5b87b8d1-a9dd-45e0-ba16-357f8ace82e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:11:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "709" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-x9d0hl\",\"name\":\"export-x9d0hl\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7a0ff53443\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "New-AzCostManagementExport+[NoContext]+CreateExpandedByResourceGroup+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01", + "Content": "{\r\n \"properties\": {\r\n \"definition\": {\r\n \"dataSet\": {\r\n \"granularity\": \"Daily\"\r\n },\r\n \"type\": \"Usage\",\r\n \"timeframe\": \"MonthToDate\"\r\n },\r\n \"deliveryInfo\": {\r\n \"destination\": {\r\n \"container\": \"exports\",\r\n \"resourceId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\r\n \"rootFolderPath\": \"ad-hoc\"\r\n }\r\n },\r\n \"format\": \"Csv\",\r\n \"schedule\": {\r\n \"recurrencePeriod\": {\r\n \"from\": \"2020-11-18T14:33:13.0000000\",\r\n \"to\": \"2020-12-08T14:33:13.0000000\"\r\n },\r\n \"recurrence\": \"Daily\",\r\n \"status\": \"Active\"\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "726" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://costmanagement.trafficmanager.net/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01" ], + "session-id": [ "c227ef88-20fa-4121-a349-3d15e333a802" ], + "x-ms-request-id": [ "31026004-c411-488d-9b5c-520f6ea480c4" ], + "x-ms-correlation-request-id": [ "7d35ff32-a6b6-41a1-9e8f-d596601c6f87" ], + "x-ms-client-request-id": [ "65950298-7073-4406-985e-bfd3f4f6222b" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T071142Z:7d35ff32-a6b6-41a1-9e8f-d596601c6f87" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:11:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "749" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx\",\"name\":\"export-d9y6fx\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7a10dd6183\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "New-AzCostManagementExport+[NoContext]+CreateExpandedByColumn+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod?api-version=2020-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod?api-version=2020-06-01", + "Content": "{\r\n \"properties\": {\r\n \"definition\": {\r\n \"dataSet\": {\r\n \"configuration\": {\r\n \"columns\": [ \"SubscriptionGuid\", \"MeterId\", \"InstanceId\", \"ResourceGroup\", \"PreTaxCost\" ]\r\n },\r\n \"granularity\": \"Daily\"\r\n },\r\n \"type\": \"Usage\",\r\n \"timeframe\": \"MonthToDate\"\r\n },\r\n \"deliveryInfo\": {\r\n \"destination\": {\r\n \"container\": \"exports\",\r\n \"resourceId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\r\n \"rootFolderPath\": \"ad-hoc\"\r\n }\r\n },\r\n \"format\": \"Csv\",\r\n \"schedule\": {\r\n \"recurrencePeriod\": {\r\n \"from\": \"2020-11-18T14:33:13.0000000\",\r\n \"to\": \"2020-12-08T14:33:13.0000000\"\r\n },\r\n \"recurrence\": \"Daily\",\r\n \"status\": \"Active\"\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "867" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://costmanagement.trafficmanager.net/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod?api-version=2020-06-01" ], + "session-id": [ "660240c4-6608-4f6e-ac0c-a0d78f49ae3b" ], + "x-ms-request-id": [ "84d4cc5c-9777-48a8-a6fe-6db8e5dce8f4" ], + "x-ms-correlation-request-id": [ "fe40597b-cc97-4013-9e8b-95cd37deb749" ], + "x-ms-client-request-id": [ "fe5b590a-e8af-418d-8232-64a0cb4296dc" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T071144Z:fe40597b-cc97-4013-9e8b-95cd37deb749" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:11:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "810" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod\",\"name\":\"export-9pcvod\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7a11bbd2e1\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/New-AzCostManagementExport.Tests.ps1 b/src/CostManagement/test/New-AzCostManagementExport.Tests.ps1 new file mode 100644 index 000000000000..0639a66da637 --- /dev/null +++ b/src/CostManagement/test/New-AzCostManagementExport.Tests.ps1 @@ -0,0 +1,48 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCostManagementExport.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCostManagementExport' { + It 'CreateExpandedBySubscription' { + # Create export cost management by subscription + $export = New-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName02 ` + -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom $env.fromDate ` + -RecurrencePeriodTo $env.toDate -Format "Csv" ` + -DestinationResourceId $env.storageAccountId ` + -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` + -DatasetGranularity "Daily" + + $export.ScheduleStatus | Should -Be 'Active' + } + It 'CreateExpandedByResourceGroup' { + # Create export cost management by resource group + $export = New-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)" -Name $env.exportName03 ` + -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom $env.fromDate ` + -RecurrencePeriodTo $env.toDate -Format "Csv" ` + -DestinationResourceId $env.storageAccountId ` + -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` + -DatasetGranularity "Daily" + + $export.ScheduleStatus | Should -Be 'Active' + } + It 'CreateExpandedByColumn' { + $export = New-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName04 ` + -ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom $env.fromDate ` + -RecurrencePeriodTo $env.toDate -Format "Csv" ` + -DestinationResourceId $env.storageAccountId ` + -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` + -DatasetGranularity "Daily" ` + -ConfigurationColumn @('SubscriptionGuid', 'MeterId', 'InstanceId', 'ResourceGroup', 'PreTaxCost') + + $export.ScheduleStatus | Should -Be 'Active' + } +} diff --git a/src/CostManagement/test/New-AzCostManagementQueryColumnObject.Tests.ps1 b/src/CostManagement/test/New-AzCostManagementQueryColumnObject.Tests.ps1 new file mode 100644 index 000000000000..35a70dd55a82 --- /dev/null +++ b/src/CostManagement/test/New-AzCostManagementQueryColumnObject.Tests.ps1 @@ -0,0 +1,18 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCostManagementQueryColumnObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCostManagementQueryColumnObject' { + It '__AllParameterSets' { + { New-AzCostManagementQueryColumnObject -Name 'SubscriptionGuid' -Type 'string' } | Should -Not -Throw + } +} diff --git a/src/CostManagement/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 b/src/CostManagement/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 new file mode 100644 index 000000000000..7cf80493cdc4 --- /dev/null +++ b/src/CostManagement/test/New-AzCostManagementQueryComparisonExpressionObject.Tests.ps1 @@ -0,0 +1,20 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCostManagementQueryComparisonExpressionObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCostManagementQueryComparisonExpressionObject' { + It '__AllParameterSets' { + { + $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + } | Should -Not -Throw + } +} diff --git a/src/CostManagement/test/New-AzCostManagementQueryFilterObject.Tests.ps1 b/src/CostManagement/test/New-AzCostManagementQueryFilterObject.Tests.ps1 new file mode 100644 index 000000000000..2e490b60f25b --- /dev/null +++ b/src/CostManagement/test/New-AzCostManagementQueryFilterObject.Tests.ps1 @@ -0,0 +1,26 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCostManagementQueryFilterObject.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzCostManagementQueryFilterObject' { + It '__AllParameterSets' { + { + $orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') + $orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') + $andOr = New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + + $dimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator In -Value 'API' + $andDimension = New-AzCostManagementQueryFilterObject -Dimension $dimension + $fileter = New-AzCostManagementQueryFilterObject -And @($andOr, $andDimension) + } | Should -Not -Throw + } +} diff --git a/src/CostManagement/test/Remove-AzCostManagementExport.Recording.json b/src/CostManagement/test/Remove-AzCostManagementExport.Recording.json new file mode 100644 index 000000000000..e09c6f0a7d8d --- /dev/null +++ b/src/CostManagement/test/Remove-AzCostManagementExport.Recording.json @@ -0,0 +1,208 @@ +{ + "Remove-AzCostManagementExport+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod?api-version=2020-06-01+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-9pcvod?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "6097a897-2c94-429f-8141-37ae62564a81" ], + "CommandName": [ "Remove-AzCostManagementExport" ], + "FullCommandName": [ "Remove-AzCostManagementExport_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "session-id": [ "99243537-446c-4223-9978-a16597ccc6d1" ], + "x-ms-request-id": [ "adc0e498-627d-4c73-838a-058a536b1dda" ], + "x-ms-correlation-request-id": [ "23aabe0d-4966-4ba4-9fa3-3923e00db19b" ], + "x-ms-client-request-id": [ "6097a897-2c94-429f-8141-37ae62564a81" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T073529Z:23aabe0d-4966-4ba4-9fa3-3923e00db19b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:35:29 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzCostManagementExport+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "b6609d7f-cc26-46f8-acc3-706cf8c14f75" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "2603e8e7-9c1f-45dd-8187-52fd56799721" ], + "x-ms-request-id": [ "4a915377-e40e-4eae-b685-7cac25c37ae0" ], + "x-ms-correlation-request-id": [ "569bbca1-8fbb-477c-a491-3f8030fcf711" ], + "x-ms-client-request-id": [ "b6609d7f-cc26-46f8-acc3-706cf8c14f75" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T073530Z:569bbca1-8fbb-477c-a491-3f8030fcf711" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:35:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "28664" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport\",\"name\":\"TestExport\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb46c1f5154\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T00:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport1\",\"name\":\"TestExport1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb4a3f75019\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T20:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport2\",\"name\":\"TestExport2\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f5dda56551\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport3\",\"name\":\"TestExport3\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f6069c44bb\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T02\",\"name\":\"LucasExport-T02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f8ec7b1149\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T03\",\"name\":\"LucasExport-T03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f918708873\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExportT06\",\"name\":\"LucasExportT06\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f9d2f5df21\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-27T20:00:00+00:00\",\"to\":\"2020-06-28T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t01\",\"name\":\"ps-costext-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649ff52ae2bb7\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-24T00:00:00+00:00\",\"to\":\"2020-06-26T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t02\",\"name\":\"ps-costext-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d16faa5d7b4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T00:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t03\",\"name\":\"ps-costext-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1be92e19a4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:45:28\",\"to\":\"2020-07-18T07:15:28\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportws5qlv\",\"name\":\"exportws5qlv\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1d1164c9ac\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:53:46\",\"to\":\"2020-07-18T07:23:46\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmkjhje\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t01\",\"name\":\"manual-export-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd725acbcdf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T20:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t02\",\"name\":\"manual-export-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd8071bf283\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportinfo-ps-t\",\"name\":\"exportinfo-ps-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda275a663c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t\",\"name\":\"ps-exportall-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda37395609\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-customcolum-t\",\"name\":\"ps-customcolum-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddad337a774\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-aggregation-t\",\"name\":\"ps-aggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddb7d30c57d\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}}}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-group-t\",\"name\":\"ps-group-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddd2f00c7aa\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-groupaggregation-t\",\"name\":\"ps-groupaggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dde4850e487\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport10\",\"name\":\"TestExport10\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d650dd9b8ab46b\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T20:00:00+00:00\",\"to\":\"2020-07-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t02\",\"name\":\"ps-exportall-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d651104357293e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t03\",\"name\":\"ps-exportall-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65110a073dc56\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9yfan\",\"name\":\"export-u9yfan\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b1674994fd\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9sfcn\",\"name\":\"export-u9sfcn\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16952d046\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-cf6scg\",\"name\":\"export-cf6scg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16a169690\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-38we0i\",\"name\":\"export-38we0i\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65375a9692caf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-r6xjol\",\"name\":\"export-r6xjol\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377005b37c6\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-gq1kft\",\"name\":\"export-gq1kft\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6537703972b88\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-j8s5of\",\"name\":\"export-j8s5of\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377046dbf7c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregation123\",\"name\":\"TestExportDatasetAggregation123\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b19fb5559127\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-03T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoyouri\",\"name\":\"TestExportDatasetAggregationInfoyouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b33c18099a67\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-05T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestUpdate1\",\"name\":\"TestUpdate1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b6451f8f6d83\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-09T20:00:00+00:00\",\"to\":\"2020-11-20T00:00:00+00:00\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:35:30.5064286Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoYouri\",\"name\":\"TestExportDatasetAggregationInfoYouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b738f9459e9e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-13T20:00:00Z\",\"to\":\"2020-11-17T00:00:00Z\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoctest\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationYouriTest\",\"name\":\"TestExportDatasetAggregationYouriTest\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b7120d0af53a\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-10T20:00:00+00:00\",\"to\":\"2020-11-15T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfo1118\",\"name\":\"TestExportDatasetAggregationInfo1118\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd716961a536\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T20:00:00Z\",\"to\":\"2020-11-20T00:00:00Z\"}},\"nextRunTimeEstimate\":\"2020-11-18T20:00:00Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youri-costmanagement/providers/Microsoft.Storage/storageAccounts/youristorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7c8581cbbf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:35:30.5220541Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}]}" + } + }, + "Remove-AzCostManagementExport+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "10b92aec-4d02-4c03-af0a-8852b2fef666" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "deabb3f6-02e7-4184-bbe7-7fc205c6281d" ], + "x-ms-request-id": [ "3467ee37-b4f1-4604-bcbf-72ab1497be1f" ], + "x-ms-correlation-request-id": [ "e4a855da-7c4d-4858-89ad-55ad09bc6263" ], + "x-ms-client-request-id": [ "10b92aec-4d02-4c03-af0a-8852b2fef666" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T073531Z:e4a855da-7c4d-4858-89ad-55ad09bc6263" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:35:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "802" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx\",\"name\":\"export-d9y6fx\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7a10dd6183\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-18T14:33:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:35:31.3085144Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Remove-AzCostManagementExport+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.CostManagement/exports/export-d9y6fx?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "cd8e6c2d-1fb8-4bd1-b055-e389684293f3" ], + "CommandName": [ "Remove-AzCostManagementExport" ], + "FullCommandName": [ "Remove-AzCostManagementExport_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "session-id": [ "3eb9af18-dfff-4861-b606-939129db2f00" ], + "x-ms-request-id": [ "1f69fc51-e1b8-43b5-a7b4-388189b4ae20" ], + "x-ms-correlation-request-id": [ "9e8153c4-0d85-4985-9bac-09254669d89f" ], + "x-ms-client-request-id": [ "cd8e6c2d-1fb8-4bd1-b055-e389684293f3" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T073532Z:9e8153c4-0d85-4985-9bac-09254669d89f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:35:31 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzCostManagementExport+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "9cc2bac3-42f9-4cd5-9936-046b57c87b48" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "b52ad8b7-3728-4f34-bfab-4d8a2c02409a" ], + "x-ms-request-id": [ "063076f8-77ac-43b8-9e38-d2fd07c1c346" ], + "x-ms-correlation-request-id": [ "eb6279ca-18d3-431c-91e4-0bca44a68271" ], + "x-ms-client-request-id": [ "9cc2bac3-42f9-4cd5-9936-046b57c87b48" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T073533Z:eb6279ca-18d3-431c-91e4-0bca44a68271" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:35:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "28664" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport\",\"name\":\"TestExport\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb46c1f5154\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T00:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport1\",\"name\":\"TestExport1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d63fb4a3f75019\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-11T20:00:00+00:00\",\"to\":\"2020-06-20T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport2\",\"name\":\"TestExport2\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f5dda56551\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport3\",\"name\":\"TestExport3\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f6069c44bb\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T02\",\"name\":\"LucasExport-T02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f8ec7b1149\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExport-T03\",\"name\":\"LucasExport-T03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f918708873\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-25T20:00:00+00:00\",\"to\":\"2020-06-29T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/LucasExportT06\",\"name\":\"LucasExportT06\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649f9d2f5df21\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-27T20:00:00+00:00\",\"to\":\"2020-06-28T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t01\",\"name\":\"ps-costext-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d649ff52ae2bb7\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-24T00:00:00+00:00\",\"to\":\"2020-06-26T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t02\",\"name\":\"ps-costext-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d16faa5d7b4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T00:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-costext-t03\",\"name\":\"ps-costext-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1be92e19a4\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:45:28\",\"to\":\"2020-07-18T07:15:28\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.Storage/storageAccounts/lucascostmanagement\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportws5qlv\",\"name\":\"exportws5qlv\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64d1d1164c9ac\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-28T07:53:46\",\"to\":\"2020-07-18T07:23:46\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmkjhje\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t01\",\"name\":\"manual-export-t01\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd725acbcdf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T20:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/manual-export-t02\",\"name\":\"manual-export-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dd8071bf283\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/exportinfo-ps-t\",\"name\":\"exportinfo-ps-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda275a663c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t\",\"name\":\"ps-exportall-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dda37395609\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-customcolum-t\",\"name\":\"ps-customcolum-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddad337a774\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-aggregation-t\",\"name\":\"ps-aggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddb7d30c57d\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}}}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-group-t\",\"name\":\"ps-group-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64ddd2f00c7aa\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-groupaggregation-t\",\"name\":\"ps-groupaggregation-t\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d64dde4850e487\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-06-29T13:00:00+00:00\",\"to\":\"2020-07-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"},\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExport10\",\"name\":\"TestExport10\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d650dd9b8ab46b\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T20:00:00+00:00\",\"to\":\"2020-07-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t02\",\"name\":\"ps-exportall-t02\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d651104357293e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/ps-exportall-t03\",\"name\":\"ps-exportall-t03\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65110a073dc56\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-03T08:00:00+00:00\",\"to\":\"2020-08-01T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9yfan\",\"name\":\"export-u9yfan\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b1674994fd\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-u9sfcn\",\"name\":\"export-u9sfcn\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16952d046\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-cf6scg\",\"name\":\"export-cf6scg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d652b16a169690\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-05T07:41:32\",\"to\":\"2020-07-21T07:41:32\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/staaccountmhot0q\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-38we0i\",\"name\":\"export-38we0i\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65375a9692caf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-r6xjol\",\"name\":\"export-r6xjol\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377005b37c6\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-gq1kft\",\"name\":\"export-gq1kft\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6537703972b88\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-j8s5of\",\"name\":\"export-j8s5of\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d65377046dbf7c\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-07-06T09:13:02\",\"to\":\"2020-07-26T09:13:02\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-5rij6b/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\",\"aggregation\":{\"costsum\":{\"name\":\"PreTaxCost\",\"function\":\"Sum\"},\"cost\":{\"name\":\"Cost\",\"function\":\"Sum\"}},\"grouping\":[{\"type\":\"Dimension\",\"name\":\"ResourceGroup\"}]}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregation123\",\"name\":\"TestExportDatasetAggregation123\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b19fb5559127\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-03T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoyouri\",\"name\":\"TestExportDatasetAggregationInfoyouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b33c18099a67\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-05T20:00:00+00:00\",\"to\":\"2020-11-10T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"configuration\":{\"columns\":[\"SubscriptionGuid\",\"MeterId\",\"InstanceId\",\"ResourceGroup\",\"PreTaxCost\"]},\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestUpdate1\",\"name\":\"TestUpdate1\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b6451f8f6d83\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-09T20:00:00+00:00\",\"to\":\"2020-11-20T00:00:00+00:00\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:35:32.9300902Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfoYouri\",\"name\":\"TestExportDatasetAggregationInfoYouri\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b738f9459e9e\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-13T20:00:00Z\",\"to\":\"2020-11-17T00:00:00Z\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoctest\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationYouriTest\",\"name\":\"TestExportDatasetAggregationYouriTest\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6b7120d0af53a\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Daily\",\"recurrencePeriod\":{\"from\":\"2020-11-10T20:00:00+00:00\",\"to\":\"2020-11-15T00:00:00+00:00\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"adhoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/TestExportDatasetAggregationInfo1118\",\"name\":\"TestExportDatasetAggregationInfo1118\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd716961a536\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T20:00:00Z\",\"to\":\"2020-11-20T00:00:00Z\"}},\"nextRunTimeEstimate\":\"2020-11-18T20:00:00Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/youri-costmanagement/providers/Microsoft.Storage/storageAccounts/youristorageaccount\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}},{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7c8581cbbf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:35:32.9300902Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}]}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/Remove-AzCostManagementExport.Tests.ps1 b/src/CostManagement/test/Remove-AzCostManagementExport.Tests.ps1 new file mode 100644 index 000000000000..ba82788c08a2 --- /dev/null +++ b/src/CostManagement/test/Remove-AzCostManagementExport.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzCostManagementExport.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzCostManagementExport' { + It 'Delete' { + Remove-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName04 + $exportList = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" + $exportList.Name| Should -Not -Contain $env.exportName04 + } + + It 'DeleteViaIdentity' { + $export = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)" -Name $env.exportName03 + Remove-AzCostManagementExport -InputObject $export + $exportList = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" + $exportList.Name| Should -Not -Contain $env.exportName03 + } +} diff --git a/src/CostManagement/test/Update-AzCostManagementExport.Recording.json b/src/CostManagement/test/Update-AzCostManagementExport.Recording.json new file mode 100644 index 000000000000..6a9283b3031f --- /dev/null +++ b/src/CostManagement/test/Update-AzCostManagementExport.Recording.json @@ -0,0 +1,118 @@ +{ + "Update-AzCostManagementExport+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": "{\r\n \"eTag\": \"\\\"1d6bd7c6fb60904\\\"\",\r\n \"properties\": {\r\n \"definition\": {\r\n \"dataSet\": {\r\n \"granularity\": \"Daily\"\r\n },\r\n \"type\": \"Usage\",\r\n \"timeframe\": \"MonthToDate\"\r\n },\r\n \"deliveryInfo\": {\r\n \"destination\": {\r\n \"container\": \"exports\",\r\n \"resourceId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\r\n \"rootFolderPath\": \"ad-hoc\"\r\n }\r\n },\r\n \"format\": \"Csv\",\r\n \"schedule\": {\r\n \"recurrencePeriod\": {\r\n \"from\": \"2020-11-18T15:18:13.0000000\",\r\n \"to\": \"2020-12-08T14:33:13.0000000\"\r\n },\r\n \"recurrence\": \"Weekly\",\r\n \"status\": \"Active\"\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "761" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "116036c7-5f25-4e8e-98ac-3ba7e661fdc4" ], + "x-ms-request-id": [ "a5913571-3cb3-46f3-a505-cf72a401720b" ], + "x-ms-correlation-request-id": [ "163c4040-64b6-475d-9caf-48f600889e60" ], + "x-ms-client-request-id": [ "d2d4120a-6b1d-4266-819b-7c1dc1c025dd" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072914Z:163c4040-64b6-475d-9caf-48f600889e60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:29:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "710" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7c83a38ed5\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Update-AzCostManagementExport+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "0443d1b0-ce55-4ad5-9dd9-50f92cfe3abf" ], + "CommandName": [ "Get-AzCostManagementExport" ], + "FullCommandName": [ "Get-AzCostManagementExport_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "761b8792-51a0-44aa-95a9-a79a1a0173c8" ], + "x-ms-request-id": [ "94adf3d4-cda2-47d6-ab6d-30c068dde8c3" ], + "x-ms-correlation-request-id": [ "3ac7c6e2-d839-4eff-9913-13c7dd8698ee" ], + "x-ms-client-request-id": [ "0443d1b0-ce55-4ad5-9dd9-50f92cfe3abf" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072915Z:3ac7c6e2-d839-4eff-9913-13c7dd8698ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:29:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "763" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7c83a38ed5\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"nextRunTimeEstimate\":\"2020-11-18T19:29:15.0750135Z\",\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + }, + "Update-AzCostManagementExport+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg?api-version=2020-06-01", + "Content": "{\r\n \"eTag\": \"\\\"1d6bd7c83a38ed5\\\"\",\r\n \"properties\": {\r\n \"definition\": {\r\n \"dataSet\": {\r\n \"granularity\": \"Daily\"\r\n },\r\n \"type\": \"Usage\",\r\n \"timeframe\": \"MonthToDate\"\r\n },\r\n \"deliveryInfo\": {\r\n \"destination\": {\r\n \"container\": \"exports\",\r\n \"resourceId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\r\n \"rootFolderPath\": \"ad-hoc\"\r\n }\r\n },\r\n \"format\": \"Csv\",\r\n \"schedule\": {\r\n \"recurrencePeriod\": {\r\n \"from\": \"2020-11-18T15:18:13.0000000\",\r\n \"to\": \"2020-12-08T14:33:13.0000000\"\r\n },\r\n \"recurrence\": \"Weekly\",\r\n \"status\": \"Active\"\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "761" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "session-id": [ "85a03a0d-e76d-403a-b051-36de6304db05" ], + "x-ms-request-id": [ "ecf0b256-3026-49ce-80f4-3a955e62465a" ], + "x-ms-correlation-request-id": [ "cefe2cf0-cc0e-40d8-bc11-138b5bd10a1a" ], + "x-ms-client-request-id": [ "1bcc7462-a6cf-407a-a6d6-65cb3c0020bf" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201118T072917Z:cefe2cf0-cc0e-40d8-bc11-138b5bd10a1a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 18 Nov 2020 07:29:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "710" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.CostManagement/exports/export-oenfxg\",\"name\":\"export-oenfxg\",\"type\":\"Microsoft.CostManagement/exports\",\"eTag\":\"\\\"1d6bd7c8581cbbf\\\"\",\"properties\":{\"schedule\":{\"status\":\"Active\",\"recurrence\":\"Weekly\",\"recurrencePeriod\":{\"from\":\"2020-11-18T15:18:13\",\"to\":\"2020-12-08T14:33:13\"}},\"format\":\"Csv\",\"deliveryInfo\":{\"destination\":{\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu\",\"container\":\"exports\",\"rootFolderPath\":\"ad-hoc\"}},\"definition\":{\"type\":\"Usage\",\"timeframe\":\"MonthToDate\",\"dataSet\":{\"granularity\":\"Daily\"}}}}" + } + } +} \ No newline at end of file diff --git a/src/CostManagement/test/Update-AzCostManagementExport.Tests.ps1 b/src/CostManagement/test/Update-AzCostManagementExport.Tests.ps1 new file mode 100644 index 000000000000..22a037e9d0f3 --- /dev/null +++ b/src/CostManagement/test/Update-AzCostManagementExport.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzCostManagementExport.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzCostManagementExport' { + It 'UpdateExpanded' { + $export = Update-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 -ScheduleRecurrence 'Weekly' + $export.property.ScheduleRecurrence | Should -Be 'Weekly' + } + + It 'UpdateViaIdentityExpanded' { + $oldExport = Get-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 + $export = Update-AzCostManagementExport -InputObject $oldExport -ScheduleRecurrence 'Weekly' + $export.property.ScheduleRecurrence | Should -Be 'Weekly' + } +} diff --git a/src/CostManagement/test/deployment-templates/storage-account/parameters.json b/src/CostManagement/test/deployment-templates/storage-account/parameters.json new file mode 100644 index 000000000000..005b17d22f35 --- /dev/null +++ b/src/CostManagement/test/deployment-templates/storage-account/parameters.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccounts_name": null + } +} diff --git a/src/CostManagement/test/deployment-templates/storage-account/template.json b/src/CostManagement/test/deployment-templates/storage-account/template.json new file mode 100644 index 000000000000..1ce0851a5d9e --- /dev/null +++ b/src/CostManagement/test/deployment-templates/storage-account/template.json @@ -0,0 +1,96 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "storageAccounts_name": { + "defaultValue": "staaccountjshubiu", + "type": "String" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "2019-06-01", + "name": "[parameters('storageAccounts_name')]", + "location": "eastus", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "supportsHttpsTrafficOnly": true, + "encryption": { + "services": { + "file": { + "keyType": "Account", + "enabled": true + }, + "blob": { + "keyType": "Account", + "enabled": true + } + }, + "keySource": "Microsoft.Storage" + }, + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices", + "apiVersion": "2019-06-01", + "name": "[concat(parameters('storageAccounts_name'), '/default')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]" + ], + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "properties": { + "cors": { + "corsRules": [] + }, + "deleteRetentionPolicy": { + "enabled": false + } + } + }, + { + "type": "Microsoft.Storage/storageAccounts/fileServices", + "apiVersion": "2019-06-01", + "name": "[concat(parameters('storageAccounts_name'), '/default')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]" + ], + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "properties": { + "cors": { + "corsRules": [] + } + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices/containers", + "apiVersion": "2019-06-01", + "name": "[concat(parameters('storageAccounts_name'), '/default/exports')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts/blobServices', parameters('storageAccounts_name'), 'default')]", + "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]" + ], + "properties": { + "publicAccess": "None" + } + } + ] +} \ No newline at end of file diff --git a/src/CostManagement/test/env.json b/src/CostManagement/test/env.json new file mode 100644 index 000000000000..d1f91363faa7 --- /dev/null +++ b/src/CostManagement/test/env.json @@ -0,0 +1,13 @@ +{ + "exportName03": "export-d9y6fx", + "storageAccountId": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-gali06/providers/Microsoft.Storage/storageAccounts/staaccountjshubiu", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "exportName04": "export-9pcvod", + "fromDate": "2020/11/18 14:33:13", + "resourceGroup": "costmanagement-rg-gali06", + "toDate": "2020/12/8 14:33:13", + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", + "exportName02": "export-x9d0hl", + "location": "eastus", + "exportName01": "export-oenfxg" +} diff --git a/src/CostManagement/test/loadEnv.ps1 b/src/CostManagement/test/loadEnv.ps1 new file mode 100644 index 000000000000..c4ebf2e8310c --- /dev/null +++ b/src/CostManagement/test/loadEnv.ps1 @@ -0,0 +1,28 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/CostManagement/test/readme.md b/src/CostManagement/test/readme.md new file mode 100644 index 000000000000..7c752b4c8c43 --- /dev/null +++ b/src/CostManagement/test/readme.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/CostManagement/test/test-script.ps1 b/src/CostManagement/test/test-script.ps1 new file mode 100644 index 000000000000..21a919b92419 --- /dev/null +++ b/src/CostManagement/test/test-script.ps1 @@ -0,0 +1,91 @@ +<# +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "LucasTestExport" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" ` +-RecurrencePeriodFrom "2020-06-20T20:00:00Z" ` +-RecurrencePeriodTo "2020-06-24T00:00:00Z" ` +-Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wyunchi-costmanagement/providers/Microsoft.Storage/storageAccounts/wyunchistorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" ` +-DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" ` +#-ConfigurationColumn @('SubscriptionGuid', 'MeterId', 'InstanceId', 'ResourceGroup', 'PreTaxCost') +-DatasetAggregation $AggregationDict ` +-DatasetGrouping @(@{type='Dimension'; name='SubscriptionName'}; @{type='Tag'; name='Environment'}) ` +#-DatasetFilter $fileter +#> + +<# export all info pass +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-exportall-t" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-06-29T13:00:00Z" ` +-RecurrencePeriodTo "2020-07-01T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" +#> + +<# custom colum pass +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-customcolum-t" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-06-29T13:00:00Z" ` +-RecurrencePeriodTo "2020-07-01T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" ` +-ConfigurationColumn @('SubscriptionGuid', 'MeterId', 'InstanceId', 'ResourceGroup', 'PreTaxCost') +#> + +<# Aggregation: The data not generate in the storage account +$Aggregation1 = @{ name = 'PreTaxCost'; function='sum'} +$Aggregation2 = @{ name = 'Cost'; function='sum'} +$AggregationDict = @{costsum=$aggregation1; cost=$aggregation2} + +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-aggregation-t" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-06-29T13:00:00Z" ` +-RecurrencePeriodTo "2020-07-01T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" ` +-DatasetAggregation $AggregationDict +#> + +<#Group pass +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-group-t" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-06-29T15:00:00Z" ` +-RecurrencePeriodTo "2020-07-01T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" ` +-DatasetGrouping @(@{type='Dimension'; name='ResourceGroup'}) + #> + +<#Group Aggregation: No data generated in the storage account +$Aggregation1 = @{ name = 'PreTaxCost'; function='sum'} +$Aggregation2 = @{ name = 'Cost'; function='sum'} +$AggregationDict = @{costsum=$aggregation1; cost=$aggregation2} + +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-groupaggregation-t" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-06-29T13:00:00Z" ` +-RecurrencePeriodTo "2020-07-01T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" ` +-DatasetGrouping @(@{type='Dimension'; name='ResourceGroup'}) ` +-DatasetAggregation $AggregationDict +#> +<# +$orDimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceLocation' -Operator In -Value @('East US', 'West Europe') +$queryOrDimension = New-AzCostManagementQueryFilterObject -Dimension $orDimension +$orTag = New-AzCostManagementQueryComparisonExpressionObject -Name 'Environment' -Operator In -Value @('UAT', 'Prod') +$queryOrTag = New-AzCostManagementQueryFilterObject -Tag $orTag +$andOr = New-AzCostManagementQueryFilterObject -or @((New-AzCostManagementQueryFilterObject -Dimension $orDimension), (New-AzCostManagementQueryFilterObject -Tag $orTag)) + +$dimension = New-AzCostManagementQueryComparisonExpressionObject -Name 'ResourceGroup' -Operator In -Value 'API' +$andDimension = New-AzCostManagementQueryFilterObject -Dimension $dimension +$fileter = New-AzCostManagementQueryFilterObject -And @($andOr, $andDimension) +#> +New-AzCostManagementExport -Debug -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -Name "ps-filter-t01" ` +-ScheduleStatus "Active" -ScheduleRecurrence "Daily" -RecurrencePeriodFrom "2020-07-05T00:00:00Z" ` +-RecurrencePeriodTo "2020-07-30T00:00:00Z" -Format "Csv" ` +-DestinationResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.Storage/storageAccounts/lucasstorageaccount" ` +-DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" -DefinitionTimeframe "MonthToDate" ` +-DatasetGranularity "Daily" ` +-DatasetFilter $fileter + diff --git a/src/CostManagement/test/utils.ps1 b/src/CostManagement/test/utils.ps1 new file mode 100644 index 000000000000..9af824ea60d7 --- /dev/null +++ b/src/CostManagement/test/utils.ps1 @@ -0,0 +1,86 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +function getUseModules() { + $usedModule = & 'gmo' + foreach($module in $usedModule) + { + $name = $module.Name + $version = $module.Version + Write-Host -ForegroundColor Green "Using module name: $name $version" + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + $env.location = 'eastus' + # For any resources you created for test, you should add it to $env here. + $exportName01 = 'export-' + (RandomString -allChars $false -len 6) + $exportName02 = 'export-' + (RandomString -allChars $false -len 6) + $exportName03 = 'export-' + (RandomString -allChars $false -len 6) + $exportName04 = 'export-' + (RandomString -allChars $false -len 6) + + $null = $env.Add('exportName01', $exportName01) + $null = $env.Add('exportName02', $exportName02) + $null = $env.Add('exportName03', $exportName03) + $null = $env.Add('exportName04', $exportName04) + + Write-Host -ForegroundColor Green "Create test group..." + $resourceGroup = 'costmanagement-rg-' + (RandomString -allChars $false -len 6) + Write-Host $resourceGroup + New-AzResourceGroup -Name $resourceGroup -Location $env.location + $null = $env.Add('resourceGroup', $resourceGroup) + Write-Host -ForegroundColor Green 'The test group create completed.' + + # Deploy storage account for test. + Write-Host -ForegroundColor Green "Deploying storage account..." + <# Cause error: The request content was invalid and could not be deserialized: 'Error converting value "staaccountuigcan" to type + 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Data.Definitions.DeploymentParameterDefinition'. Path + 'properties.parameters.storageAccounts_wyunchistorageaccount_name', line 5, position 70.'. + + $staaccountName = 'staaccount' + (RandomString -allChars $false -len 6) + $staaccountParam = Get-Content .\test\deployment-templates\storage-account\parameters.json | ConvertFrom-Json + $staaccountParam.parameters.storageAccounts_name = $staaccountName + set-content -Path .\test\deployment-templates\storage-account\parameters.json -Value (ConvertTo-Json $staaccountParam) + #> + New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\storage-account\template.json -TemplateParameterFile .\test\deployment-templates\storage-account\parameters.json -ResourceGroupName $env.resourceGroup + $staaccountName = 'staaccountjshubiu' # Value in template.json + $env.storageAccountId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Storage/storageAccounts/$($staaccountName)" + Start-Sleep -s 60 # Waiting storage account create complete. + Write-Host -ForegroundColor Green "The storage account deployed successfully." + + Write-Host -ForegroundColor Green "Create cost management export for test..." + $env.fromDate = (Get-Date).ToString() + $env.toDate = (Get-Date).AddDays(20).ToString() + #Create One CostManagementExport + New-AzCostManagementExport -Scope "subscriptions/$($env.SubscriptionId)" -Name $env.exportName01 ` + -ScheduleStatus "Active" -ScheduleRecurrence "Daily" ` + -RecurrencePeriodFrom $env.fromDate -RecurrencePeriodTo $env.toDate ` + -Format "Csv" ` + -DestinationResourceId $env.storageAccountId ` + -DestinationContainer "exports" -DestinationRootFolderPath "ad-hoc" -DefinitionType "Usage" ` + -DefinitionTimeframe "MonthToDate" -DatasetGranularity "Daily" + + # Invoke-AzCostManagementExecuteExport -Scope "subscriptions/$($env.SubscriptionId)" -ExportName $env.exportName01 + + Write-Host -ForegroundColor Green "The cost management export created successfully." + + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) + +} +function cleanupEnv() { + # Clean resources you create for testing + Remove-AzResourceGroup -Name $env.resourceGroup +} + diff --git a/src/CustomProviders/Az.CustomProviders.psd1 b/src/CustomProviders/Az.CustomProviders.psd1 index f9e95910204a..c0e5b5fcdcb7 100644 --- a/src/CustomProviders/Az.CustomProviders.psd1 +++ b/src/CustomProviders/Az.CustomProviders.psd1 @@ -10,7 +10,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.CustomProviders.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) FormatsToProcess = './Az.CustomProviders.format.ps1xml' FunctionsToExport = 'Get-AzCustomProvider', 'Get-AzCustomProviderAssociation', 'New-AzCustomProvider', 'New-AzCustomProviderAssociation', 'Remove-AzCustomProvider', 'Remove-AzCustomProviderAssociation', 'Update-AzCustomProvider' AliasesToExport = '*' diff --git a/src/DataBox/DataBox/Az.DataBox.psd1 b/src/DataBox/DataBox/Az.DataBox.psd1 index 18c105a5fa67..c5eeed669024 100644 --- a/src/DataBox/DataBox/Az.DataBox.psd1 +++ b/src/DataBox/DataBox/Az.DataBox.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataBox.dll' diff --git a/src/DataBoxEdge/DataBoxEdge/Az.DataBoxEdge.psd1 b/src/DataBoxEdge/DataBoxEdge/Az.DataBoxEdge.psd1 index c2c5b4b63f73..2cfe4a79f718 100644 --- a/src/DataBoxEdge/DataBoxEdge/Az.DataBoxEdge.psd1 +++ b/src/DataBoxEdge/DataBoxEdge/Az.DataBoxEdge.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataBoxEdge.dll' diff --git a/src/DataFactory/DataFactories/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactories/Properties/AssemblyInfo.cs index 33cc12eb3b52..94bfcf52b1df 100644 --- a/src/DataFactory/DataFactories/Properties/AssemblyInfo.cs +++ b/src/DataFactory/DataFactories/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("5d024af0-81c9-44f0-b3b0-7080f103fb4d")] -[assembly: AssemblyVersion("1.11.1")] -[assembly: AssemblyFileVersion("1.11.1")] +[assembly: AssemblyVersion("1.11.2")] +[assembly: AssemblyFileVersion("1.11.2")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.DataFactories.Test")] #endif diff --git a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 b/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 index 5988ea63ebd1..1a3903d7e8db 100644 --- a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 +++ b/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '1.11.1' +ModuleVersion = '1.11.2' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataFactory.dll', @@ -172,7 +172,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Improved error message of ''New-AzDataFactoryV2LinkedServiceEncryptedCredential'' command' + ReleaseNotes = '* Updated ADF .Net SDK version to 4.13.0' # Prerelease string of this module # Prerelease = '' diff --git a/src/DataFactory/DataFactoryV2/Changelog.md b/src/DataFactory/DataFactoryV2/Changelog.md index c6f55d869bae..dd1af8a2c48b 100644 --- a/src/DataFactory/DataFactoryV2/Changelog.md +++ b/src/DataFactory/DataFactoryV2/Changelog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 1.11.2 * Updated ADF .Net SDK version to 4.13.0 ## Version 1.11.1 diff --git a/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs index a2e2da0049c0..844358c5f574 100644 --- a/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs +++ b/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("5d024af0-81c9-44f0-b3b0-7080f103fb4d")] -[assembly: AssemblyVersion("1.11.1")] -[assembly: AssemblyFileVersion("1.11.1")] +[assembly: AssemblyVersion("1.11.2")] +[assembly: AssemblyFileVersion("1.11.2")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.Test")] #endif diff --git a/src/DataLakeAnalytics/DataLakeAnalytics/Az.DataLakeAnalytics.psd1 b/src/DataLakeAnalytics/DataLakeAnalytics/Az.DataLakeAnalytics.psd1 index a4ab3b821578..73fd5bbfb4eb 100644 --- a/src/DataLakeAnalytics/DataLakeAnalytics/Az.DataLakeAnalytics.psd1 +++ b/src/DataLakeAnalytics/DataLakeAnalytics/Az.DataLakeAnalytics.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataLake.Analytics.dll' diff --git a/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 b/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 index e4154a85f823..b6d686073afc 100644 --- a/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 +++ b/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataLake.Store.dll', diff --git a/src/DataMigration/DataMigration/Az.DataMigration.psd1 b/src/DataMigration/DataMigration/Az.DataMigration.psd1 index 3641cefd605b..308d944d8ed0 100644 --- a/src/DataMigration/DataMigration/Az.DataMigration.psd1 +++ b/src/DataMigration/DataMigration/Az.DataMigration.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataMigration.dll' diff --git a/src/DataShare/DataShare/Az.DataShare.psd1 b/src/DataShare/DataShare/Az.DataShare.psd1 index c4f9f134a8b7..b4a106ee6d51 100644 --- a/src/DataShare/DataShare/Az.DataShare.psd1 +++ b/src/DataShare/DataShare/Az.DataShare.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataShare.dll' diff --git a/src/Databricks/Az.Databricks.psd1 b/src/Databricks/Az.Databricks.psd1 index 6a7cbaa70cbb..2f051938b26b 100644 --- a/src/Databricks/Az.Databricks.psd1 +++ b/src/Databricks/Az.Databricks.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.Databricks.private.dll' diff --git a/src/DedicatedHsm/Az.DedicatedHsm.psd1 b/src/DedicatedHsm/Az.DedicatedHsm.psd1 index 18b91cab0a71..b1e1dd1c55fb 100644 --- a/src/DedicatedHsm/Az.DedicatedHsm.psd1 +++ b/src/DedicatedHsm/Az.DedicatedHsm.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.DedicatedHsm.private.dll' diff --git a/src/DeploymentManager/DeploymentManager/Az.DeploymentManager.psd1 b/src/DeploymentManager/DeploymentManager/Az.DeploymentManager.psd1 index 5e2335430ccd..72a98a030762 100644 --- a/src/DeploymentManager/DeploymentManager/Az.DeploymentManager.psd1 +++ b/src/DeploymentManager/DeploymentManager/Az.DeploymentManager.psd1 @@ -52,7 +52,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DeploymentManager.dll' diff --git a/src/DesktopVirtualization/Az.DesktopVirtualization.psd1 b/src/DesktopVirtualization/Az.DesktopVirtualization.psd1 index f7cb2bbcd18b..290bdfbf0ae3 100644 --- a/src/DesktopVirtualization/Az.DesktopVirtualization.psd1 +++ b/src/DesktopVirtualization/Az.DesktopVirtualization.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.DesktopVirtualization.private.dll' diff --git a/src/DevSpaces/DevSpaces/Az.DevSpaces.psd1 b/src/DevSpaces/DevSpaces/Az.DevSpaces.psd1 index f3e74d31c939..6b991fa5f070 100644 --- a/src/DevSpaces/DevSpaces/Az.DevSpaces.psd1 +++ b/src/DevSpaces/DevSpaces/Az.DevSpaces.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DevSpaces.dll' diff --git a/src/DevTestLabs/DevTestLabs/Az.DevTestLabs.psd1 b/src/DevTestLabs/DevTestLabs/Az.DevTestLabs.psd1 index 7c10200fa1f8..d0d2ca79d936 100644 --- a/src/DevTestLabs/DevTestLabs/Az.DevTestLabs.psd1 +++ b/src/DevTestLabs/DevTestLabs/Az.DevTestLabs.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DevTestLabs.dll' diff --git a/src/DeviceProvisioningServices/DeviceProvisioningServices/Az.DeviceProvisioningServices.psd1 b/src/DeviceProvisioningServices/DeviceProvisioningServices/Az.DeviceProvisioningServices.psd1 index 98a54ff744df..87a78871b43d 100644 --- a/src/DeviceProvisioningServices/DeviceProvisioningServices/Az.DeviceProvisioningServices.psd1 +++ b/src/DeviceProvisioningServices/DeviceProvisioningServices/Az.DeviceProvisioningServices.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DeviceProvisioningServices.dll', diff --git a/src/DigitalTwins/Az.DigitalTwins.psd1 b/src/DigitalTwins/Az.DigitalTwins.psd1 index 6eedf8a8b089..43b3e22d9eb0 100644 --- a/src/DigitalTwins/Az.DigitalTwins.psd1 +++ b/src/DigitalTwins/Az.DigitalTwins.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.DigitalTwins.private.dll' diff --git a/src/Dns/Dns/Az.Dns.psd1 b/src/Dns/Dns/Az.Dns.psd1 index d3a91eb8e719..54714a7b8c8d 100644 --- a/src/Dns/Dns/Az.Dns.psd1 +++ b/src/Dns/Dns/Az.Dns.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Dns.dll' diff --git a/src/EventGrid/EventGrid/Az.EventGrid.psd1 b/src/EventGrid/EventGrid/Az.EventGrid.psd1 index f234e8a571bb..35125816c805 100644 --- a/src/EventGrid/EventGrid/Az.EventGrid.psd1 +++ b/src/EventGrid/EventGrid/Az.EventGrid.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.EventGrid.dll' diff --git a/src/EventHub/EventHub/Az.EventHub.psd1 b/src/EventHub/EventHub/Az.EventHub.psd1 index ae6a6cd400d1..a7b903983b39 100644 --- a/src/EventHub/EventHub/Az.EventHub.psd1 +++ b/src/EventHub/EventHub/Az.EventHub.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.EventHub.dll' diff --git a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 index dfad46b81cc1..0f3e388a6be4 100644 --- a/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 +++ b/src/FrontDoor/FrontDoor/Az.FrontDoor.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.FrontDoor.dll' diff --git a/src/Functions/Az.Functions.psd1 b/src/Functions/Az.Functions.psd1 index 4ae2d8f1ef04..c52799d9de1a 100644 --- a/src/Functions/Az.Functions.psd1 +++ b/src/Functions/Az.Functions.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'bin\Az.Functions.private.dll' diff --git a/src/GuestConfiguration/GuestConfiguration/Az.GuestConfiguration.psd1 b/src/GuestConfiguration/GuestConfiguration/Az.GuestConfiguration.psd1 index 9a1b57908be1..f9eeac9df9ea 100644 --- a/src/GuestConfiguration/GuestConfiguration/Az.GuestConfiguration.psd1 +++ b/src/GuestConfiguration/GuestConfiguration/Az.GuestConfiguration.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.GuestConfiguration.dll' diff --git a/src/HDInsight/HDInsight/Az.HDInsight.psd1 b/src/HDInsight/HDInsight/Az.HDInsight.psd1 index f7f5093dd025..f6a540732bc3 100644 --- a/src/HDInsight/HDInsight/Az.HDInsight.psd1 +++ b/src/HDInsight/HDInsight/Az.HDInsight.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.HDInsight.dll', diff --git a/src/HPCCache/HPCCache/Az.HPCCache.psd1 b/src/HPCCache/HPCCache/Az.HPCCache.psd1 index b5d7fef11a2e..00b6bb2f6d28 100644 --- a/src/HPCCache/HPCCache/Az.HPCCache.psd1 +++ b/src/HPCCache/HPCCache/Az.HPCCache.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.StorageCache.dll' diff --git a/src/HanaOnAzure/Az.HanaOnAzure.psd1 b/src/HanaOnAzure/Az.HanaOnAzure.psd1 index 9a6f39ca4aa9..8c62db52a831 100644 --- a/src/HanaOnAzure/Az.HanaOnAzure.psd1 +++ b/src/HanaOnAzure/Az.HanaOnAzure.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/21/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.HanaOnAzure.psm1' # Version number of this module. -ModuleVersion = '0.2.0' +ModuleVersion = '0.3.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.HanaOnAzure.private.dll' @@ -110,7 +110,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed an issue in PowerShell prior to 7.0' + ReleaseNotes = '* Added byDict parameter set for New-AzSapMonitorProviderInstance' # Prerelease string of this module # Prerelease = '' diff --git a/src/HanaOnAzure/ChangeLog.md b/src/HanaOnAzure/ChangeLog.md index d5d1464bb538..069271e4e0f7 100644 --- a/src/HanaOnAzure/ChangeLog.md +++ b/src/HanaOnAzure/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 0.3.0 * Added byDict parameter set for New-AzSapMonitorProviderInstance ## Version 0.2.0 diff --git a/src/HanaOnAzure/Properties/AssemblyInfo.cs b/src/HanaOnAzure/Properties/AssemblyInfo.cs index 54b721e63f61..feb6948e4581 100644 --- a/src/HanaOnAzure/Properties/AssemblyInfo.cs +++ b/src/HanaOnAzure/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("1A2AE489-381B-47BF-91F0-99B42E4FC28B")] -[assembly: AssemblyVersion("0.2.0")] -[assembly: AssemblyFileVersion("0.2.0")] +[assembly: AssemblyVersion("0.3.0")] +[assembly: AssemblyFileVersion("0.3.0")] diff --git a/src/HealthcareApis/HealthcareApis/Az.HealthcareApis.psd1 b/src/HealthcareApis/HealthcareApis/Az.HealthcareApis.psd1 index a0c590992e1c..ad47ec4ee929 100644 --- a/src/HealthcareApis/HealthcareApis/Az.HealthcareApis.psd1 +++ b/src/HealthcareApis/HealthcareApis/Az.HealthcareApis.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 6/17/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '1.1.0' +ModuleVersion = '1.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.HealthcareApis.dll' @@ -110,8 +110,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Updated the SDK version to 1.1.0 -* Added support for Export settings and Managed Identity' + ReleaseNotes = '* Added support for customer managed keys' # Prerelease string of this module # Prerelease = '' diff --git a/src/HealthcareApis/HealthcareApis/ChangeLog.md b/src/HealthcareApis/HealthcareApis/ChangeLog.md index a1b2d4281f2a..48978c73a56e 100644 --- a/src/HealthcareApis/HealthcareApis/ChangeLog.md +++ b/src/HealthcareApis/HealthcareApis/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 1.2.0 * Added support for customer managed keys ## Version 3.0.0 diff --git a/src/HealthcareApis/HealthcareApis/Properties/AssemblyInfo.cs b/src/HealthcareApis/HealthcareApis/Properties/AssemblyInfo.cs index 26eb83984f2c..4abaa06f56da 100644 --- a/src/HealthcareApis/HealthcareApis/Properties/AssemblyInfo.cs +++ b/src/HealthcareApis/HealthcareApis/Properties/AssemblyInfo.cs @@ -45,5 +45,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("0.7.1")] -[assembly: AssemblyVersion("1.1.0")] -[assembly: AssemblyFileVersion("1.1.0")] +[assembly: AssemblyVersion("1.2.0")] +[assembly: AssemblyFileVersion("1.2.0")] diff --git a/src/ImageBuilder/Az.ImageBuilder.psd1 b/src/ImageBuilder/Az.ImageBuilder.psd1 index 155cdba5e9e0..561e93cadcb7 100644 --- a/src/ImageBuilder/Az.ImageBuilder.psd1 +++ b/src/ImageBuilder/Az.ImageBuilder.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.ImageBuilder.private.dll' diff --git a/src/ImportExport/Az.ImportExport.psd1 b/src/ImportExport/Az.ImportExport.psd1 index 4eeb91132417..5c6718a7cd8f 100644 --- a/src/ImportExport/Az.ImportExport.psd1 +++ b/src/ImportExport/Az.ImportExport.psd1 @@ -10,7 +10,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.ImportExport.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) FormatsToProcess = './Az.ImportExport.format.ps1xml' FunctionsToExport = 'Get-AzImportExport', 'Get-AzImportExportBitLockerKey', 'Get-AzImportExportLocation', 'New-AzImportExport', 'New-AzImportExportDriveListObject', 'Remove-AzImportExport', 'Update-AzImportExport' AliasesToExport = '*' diff --git a/src/IotCentral/IotCentral/Az.IotCentral.psd1 b/src/IotCentral/IotCentral/Az.IotCentral.psd1 index 04d5552debe7..b822efca6ce5 100644 --- a/src/IotCentral/IotCentral/Az.IotCentral.psd1 +++ b/src/IotCentral/IotCentral/Az.IotCentral.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.IotCentral.dll' diff --git a/src/IotHub/IotHub/Az.IotHub.psd1 b/src/IotHub/IotHub/Az.IotHub.psd1 index 826bbe76f330..07926bad8ebc 100644 --- a/src/IotHub/IotHub/Az.IotHub.psd1 +++ b/src/IotHub/IotHub/Az.IotHub.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.7.0' +ModuleVersion = '2.7.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.IotHub.dll', @@ -159,7 +159,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Allowed tags in IoT Hub create cmdlet.' + ReleaseNotes = '* Fixed an issue of SAS token.' # Prerelease string of this module # Prerelease = '' diff --git a/src/IotHub/IotHub/ChangeLog.md b/src/IotHub/IotHub/ChangeLog.md index 045ad9093e68..8e656a6425cd 100644 --- a/src/IotHub/IotHub/ChangeLog.md +++ b/src/IotHub/IotHub/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.7.1 * Fixed an issue of SAS token. ## Version 2.7.0 diff --git a/src/IotHub/IotHub/Properties/AssemblyInfo.cs b/src/IotHub/IotHub/Properties/AssemblyInfo.cs index 52a479d3770c..14c2ca87cd9a 100644 --- a/src/IotHub/IotHub/Properties/AssemblyInfo.cs +++ b/src/IotHub/IotHub/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("2.5.0")] -[assembly: AssemblyVersion("2.7.0")] -[assembly: AssemblyFileVersion("2.7.0")] +[assembly: AssemblyVersion("2.7.1")] +[assembly: AssemblyFileVersion("2.7.1")] diff --git a/src/KeyVault/KeyVault/Az.KeyVault.psd1 b/src/KeyVault/KeyVault/Az.KeyVault.psd1 index c0201bf57b2d..853bd77ccb87 100644 --- a/src/KeyVault/KeyVault/Az.KeyVault.psd1 +++ b/src/KeyVault/KeyVault/Az.KeyVault.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '3.1.0' +ModuleVersion = '3.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.KeyVault.dll', @@ -73,14 +73,14 @@ RequiredAssemblies = 'Microsoft.Azure.KeyVault.dll', FormatsToProcess = 'KeyVault.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll', '.\Az.KeyVault.Extension') +NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll', + '.\Az.KeyVault.Extension') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = 'Add-AzKeyVaultCertificate', - 'Update-AzKeyVaultCertificate', +CmdletsToExport = 'Add-AzKeyVaultCertificate', 'Update-AzKeyVaultCertificate', 'Stop-AzKeyVaultCertificateOperation', 'Get-AzKeyVaultCertificateOperation', 'Import-AzKeyVaultCertificate', 'Add-AzKeyVaultCertificateContact', @@ -92,14 +92,14 @@ CmdletsToExport = 'Add-AzKeyVaultCertificate', 'Remove-AzKeyVaultCertificateOperation', 'Set-AzKeyVaultCertificateIssuer', 'Set-AzKeyVaultCertificatePolicy', 'Get-AzKeyVaultManagedHsm', - 'New-AzKeyVaultManagedHsm', 'Remove-AzKeyVaultManagedHsm', 'Update-AzKeyVaultManagedHsm', - 'Get-AzKeyVault', 'New-AzKeyVault', 'Remove-AzKeyVault', - 'Undo-AzKeyVaultRemoval', 'Backup-AzKeyVault', + 'New-AzKeyVaultManagedHsm', 'Remove-AzKeyVaultManagedHsm', + 'Update-AzKeyVaultManagedHsm', 'Get-AzKeyVault', 'New-AzKeyVault', + 'Remove-AzKeyVault', 'Undo-AzKeyVaultRemoval', 'Backup-AzKeyVault', 'Restore-AzKeyVault', 'Get-AzKeyVaultRoleDefinition', 'Get-AzKeyVaultRoleAssignment', 'New-AzKeyVaultRoleAssignment', - 'Remove-AzKeyVaultRoleAssignment', - 'Remove-AzKeyVaultAccessPolicy', 'Set-AzKeyVaultAccessPolicy', - 'Backup-AzKeyVaultKey', 'Get-AzKeyVaultKey', 'Get-AzKeyVaultSecret', + 'Remove-AzKeyVaultRoleAssignment', 'Remove-AzKeyVaultAccessPolicy', + 'Set-AzKeyVaultAccessPolicy', 'Backup-AzKeyVaultKey', + 'Get-AzKeyVaultKey', 'Get-AzKeyVaultSecret', 'Undo-AzKeyVaultKeyRemoval', 'Undo-AzKeyVaultSecretRemoval', 'Add-AzKeyVaultKey', 'Remove-AzKeyVaultKey', 'Update-AzKeyVault', 'New-AzKeyVaultNetworkRuleSetObject', 'Remove-AzKeyVaultSecret', @@ -161,7 +161,10 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Supported updating key vault tag' + ReleaseNotes = '* Supported ''all'' as an option when setting key vault access policies +* Supported new version of SecretManagement module [#13366] +* Supported ByteArray, String, PSCredential and Hashtable for ''SecretValue'' in SecretManagementModule [#12190] +* [Breaking change] redesigned the API surface of cmdlets related to managed HSM.' # Prerelease string of this module # Prerelease = '' diff --git a/src/KeyVault/KeyVault/ChangeLog.md b/src/KeyVault/KeyVault/ChangeLog.md index 93ef8e94e0a1..bf728a55f03c 100644 --- a/src/KeyVault/KeyVault/ChangeLog.md +++ b/src/KeyVault/KeyVault/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 3.2.0 * Supported "all" as an option when setting key vault access policies * Supported new version of SecretManagement module [#13366] * Supported ByteArray, String, PSCredential and Hashtable for `SecretValue` in SecretManagementModule [#12190] diff --git a/src/KeyVault/KeyVault/Properties/AssemblyInfo.cs b/src/KeyVault/KeyVault/Properties/AssemblyInfo.cs index 1280d74cab50..aa80ba8b4ea8 100644 --- a/src/KeyVault/KeyVault/Properties/AssemblyInfo.cs +++ b/src/KeyVault/KeyVault/Properties/AssemblyInfo.cs @@ -29,8 +29,8 @@ [assembly: CLSCompliant(false)] [assembly: Guid("2994548F-69B9-4DC2-8D19-52CC0C0C85BC")] -[assembly: AssemblyVersion("3.1.0")] -[assembly: AssemblyFileVersion("3.1.0")] +[assembly: AssemblyVersion("3.2.0")] +[assembly: AssemblyFileVersion("3.2.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Test")] [assembly: InternalsVisibleTo("SecurityDomain.Test")] diff --git a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1 b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1 index 8881197c1a34..d18b780fadfe 100644 --- a/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1 +++ b/src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1 @@ -10,7 +10,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.KubernetesConfiguration.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) FormatsToProcess = './Az.KubernetesConfiguration.format.ps1xml' FunctionsToExport = 'Get-AzKubernetesConfiguration', 'New-AzKubernetesConfiguration', 'Remove-AzKubernetesConfiguration' AliasesToExport = '*' diff --git a/src/Kusto/Az.Kusto.psd1 b/src/Kusto/Az.Kusto.psd1 index b6a8b32a4e6b..c1ee9e539f26 100644 --- a/src/Kusto/Az.Kusto.psd1 +++ b/src/Kusto/Az.Kusto.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.Kusto.private.dll' diff --git a/src/LogicApp/LogicApp/Az.LogicApp.psd1 b/src/LogicApp/LogicApp/Az.LogicApp.psd1 index 83138a6858b7..3fedbdfa4174 100644 --- a/src/LogicApp/LogicApp/Az.LogicApp.psd1 +++ b/src/LogicApp/LogicApp/Az.LogicApp.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Logic.dll' diff --git a/src/MachineLearning/MachineLearning/Az.MachineLearning.psd1 b/src/MachineLearning/MachineLearning/Az.MachineLearning.psd1 index c3b95493c285..aa49a3304418 100644 --- a/src/MachineLearning/MachineLearning/Az.MachineLearning.psd1 +++ b/src/MachineLearning/MachineLearning/Az.MachineLearning.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.MachineLearning.dll' diff --git a/src/Maintenance/Maintenance/Az.Maintenance.psd1 b/src/Maintenance/Maintenance/Az.Maintenance.psd1 index 92e0cb80710f..bb590a19f44c 100644 --- a/src/Maintenance/Maintenance/Az.Maintenance.psd1 +++ b/src/Maintenance/Maintenance/Az.Maintenance.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Maintenance.dll' diff --git a/src/ManagedServiceIdentity/ManagedServiceIdentity/Az.ManagedServiceIdentity.psd1 b/src/ManagedServiceIdentity/ManagedServiceIdentity/Az.ManagedServiceIdentity.psd1 index 6bf9f433168a..c0b4277cb096 100644 --- a/src/ManagedServiceIdentity/ManagedServiceIdentity/Az.ManagedServiceIdentity.psd1 +++ b/src/ManagedServiceIdentity/ManagedServiceIdentity/Az.ManagedServiceIdentity.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ManagedServiceIdentity.dll' diff --git a/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 b/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 index 108d8af3c265..ab82e8b85ca5 100644 --- a/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 +++ b/src/ManagedServices/ManagedServices/Az.ManagedServices.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ManagedServices.dll' diff --git a/src/ManagementPartner/ManagementPartner/Az.ManagementPartner.psd1 b/src/ManagementPartner/ManagementPartner/Az.ManagementPartner.psd1 index 70f8a6ab0d09..2991c1340f0b 100644 --- a/src/ManagementPartner/ManagementPartner/Az.ManagementPartner.psd1 +++ b/src/ManagementPartner/ManagementPartner/Az.ManagementPartner.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ManagementPartner.dll' diff --git a/src/Maps/Maps/Az.Maps.psd1 b/src/Maps/Maps/Az.Maps.psd1 index 564538986345..715d74b08be0 100644 --- a/src/Maps/Maps/Az.Maps.psd1 +++ b/src/Maps/Maps/Az.Maps.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Maps.dll' diff --git a/src/MariaDb/Az.MariaDb.psd1 b/src/MariaDb/Az.MariaDb.psd1 index ef83f0962b07..9101446b66ab 100644 --- a/src/MariaDb/Az.MariaDb.psd1 +++ b/src/MariaDb/Az.MariaDb.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.MariaDb.private.dll' diff --git a/src/Marketplace/Marketplace/Az.Marketplace.psd1 b/src/Marketplace/Marketplace/Az.Marketplace.psd1 index 8ff2a1dd4a00..7c7e07c0e36b 100644 --- a/src/Marketplace/Marketplace/Az.Marketplace.psd1 +++ b/src/Marketplace/Marketplace/Az.Marketplace.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Marketplace.dll' diff --git a/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 b/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 index f62483711742..5ddfe66f9d14 100644 --- a/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 +++ b/src/MarketplaceOrdering/MarketplaceOrdering/Az.MarketplaceOrdering.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.MarketplaceOrdering.dll' diff --git a/src/Media/Media/Az.Media.psd1 b/src/Media/Media/Az.Media.psd1 index a49a01037ae0..3ce2085e1258 100644 --- a/src/Media/Media/Az.Media.psd1 +++ b/src/Media/Media/Az.Media.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Media.dll' diff --git a/src/Migrate/Az.Migrate.psd1 b/src/Migrate/Az.Migrate.psd1 index 4ac595a22a11..1726f2ee1f9f 100644 --- a/src/Migrate/Az.Migrate.psd1 +++ b/src/Migrate/Az.Migrate.psd1 @@ -52,7 +52,7 @@ # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.Migrate.private.dll' diff --git a/src/MixedReality/MixedReality/Az.MixedReality.psd1 b/src/MixedReality/MixedReality/Az.MixedReality.psd1 index e27f501a77bb..8298cfc88819 100644 --- a/src/MixedReality/MixedReality/Az.MixedReality.psd1 +++ b/src/MixedReality/MixedReality/Az.MixedReality.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.MixedReality.dll' diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs index 0dc9db0e733c..3ed2ff5e0373 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs @@ -84,5 +84,12 @@ public void TestSetAzureRmDiagnosticSettingLogAnalytics() { TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSetting-LogAnalytics"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGetAzDiagnosticSettingCategory() + { + TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzDiagnosticSettingCategory"); + } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.ps1 b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.ps1 index 3f0fb98c807c..a054574b5e09 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.ps1 +++ b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.ps1 @@ -300,7 +300,36 @@ function Test-SetAzureRmDiagnosticSetting-LogAnalytics } } +<# +.SYNOPSIS +Test Get diagnostic setting supported categories +#> +function Test-GetAzDiagnosticSettingCategory +{ + $ResourceGroupName = 'group' + (getAssetName) + $SubnetConfigName = 'config' + (getAssetName) + $VNetName = 'vn' + (getAssetName) + + try + { + $rg = New-AzResourceGroup -Name $ResourceGroupName -Location 'eastus' + $subnet = New-AzVirtualNetworkSubnetConfig -Name $SubnetConfigName -AddressPrefix "10.0.1.0/24" + $vn = New-AzVirtualNetwork -Name $VNetName -ResourceGroupName $ResourceGroupName -Location 'eastus' -AddressPrefix "10.0.0.0/16" -Subnet $subnet + $id = $vn.Id + $log = Get-AzDiagnosticSettingCategory -TargetResourceId $id -Name 'VMProtectionAlerts' + $metric = Get-AzDiagnosticSettingCategory -TargetResourceId $id -Name 'AllMetrics' + + Assert-AreEqual 'Logs' $log.CategoryType + Assert-AreEqual 'Metrics' $metric.CategoryType + + Remove-AzVirtualNetwork -ResourceGroupName $ResourceGroupName -Name $VNetName -Force + } + finally + { + Remove-AzResourceGroup -Name $ResourceGroupName + } +} # TODO add more complicated scenarios after we have a definitive subscription \ No newline at end of file diff --git a/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AzureRmDiagnosticSettingTests/TestGetAzDiagnosticSettingCategory.json b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AzureRmDiagnosticSettingTests/TestGetAzDiagnosticSettingCategory.json new file mode 100644 index 000000000000..8a143026364f --- /dev/null +++ b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AzureRmDiagnosticSettingTests/TestGetAzDiagnosticSettingCategory.json @@ -0,0 +1,1026 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourcegroups/groupps3886?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlZ3JvdXBzL2dyb3VwcHMzODg2P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "956425d4-a8a5-42f5-8297-bdb210168d45" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "71d7bd5d-1da0-4c0b-8f18-d21ba77fd412" + ], + "x-ms-correlation-request-id": [ + "71d7bd5d-1da0-4c0b-8f18-d21ba77fd412" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071517Z:71d7bd5d-1da0-4c0b-8f18-d21ba77fd412" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:16 GMT" + ], + "Content-Length": [ + "175" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886\",\r\n \"name\": \"groupps3886\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL2dyb3VwcHMzODg2L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mvdm5wczI5OTE/YXBpLXZlcnNpb249MjAyMC0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "517012c9-1882-4974-b87d-f83f5008add6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "1f68826a-10a4-4326-9d7e-842e073f12fb" + ], + "x-ms-correlation-request-id": [ + "1f68826a-10a4-4326-9d7e-842e073f12fb" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071518Z:1f68826a-10a4-4326-9d7e-842e073f12fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:17 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "225" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Network/virtualNetworks/vnps2991' under resource group 'groupps3886' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL2dyb3VwcHMzODg2L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mvdm5wczI5OTE/YXBpLXZlcnNpb249MjAyMC0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\"" + ], + "x-ms-request-id": [ + "05816435-443e-4cb6-a1b4-5e72989ad258" + ], + "x-ms-correlation-request-id": [ + "f8a8d746-e144-4ff7-8a34-bbadc6418b7f" + ], + "x-ms-arm-service-request-id": [ + "6630275e-d2d6-4284-a04d-284daefc95ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071535Z:f8a8d746-e144-4ff7-8a34-bbadc6418b7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:34 GMT" + ], + "Content-Length": [ + "1296" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"vnps2991\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991\",\r\n \"etag\": \"W/\\\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"37078d39-3cd0-4bfb-bbb8-89d9168009d4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"configps9784\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991/subnets/configps9784\",\r\n \"etag\": \"W/\\\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"serviceEndpoints\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL2dyb3VwcHMzODg2L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mvdm5wczI5OTE/YXBpLXZlcnNpb249MjAyMC0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19d20bc3-a13b-422f-be90-f509dfe04459" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\"" + ], + "x-ms-request-id": [ + "7c8f8a7a-8a8d-4bb8-a6fd-bf40d1b76def" + ], + "x-ms-correlation-request-id": [ + "0256f256-c10f-4168-97c8-59d1a9ad17c6" + ], + "x-ms-arm-service-request-id": [ + "26f9e07c-c2d5-499f-a82c-94f1c63516a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071535Z:0256f256-c10f-4168-97c8-59d1a9ad17c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:34 GMT" + ], + "Content-Length": [ + "1296" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"vnps2991\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991\",\r\n \"etag\": \"W/\\\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"37078d39-3cd0-4bfb-bbb8-89d9168009d4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"configps9784\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991/subnets/configps9784\",\r\n \"etag\": \"W/\\\"20eada79-0bfd-406c-9b6b-f5a5e4a5f0e9\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"serviceEndpoints\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL2dyb3VwcHMzODg2L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mvdm5wczI5OTE/YXBpLXZlcnNpb249MjAyMC0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"addressPrefixes\": [],\r\n \"serviceEndpoints\": [],\r\n \"serviceEndpointPolicies\": [],\r\n \"ipAllocations\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"name\": \"configps9784\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"ipAllocations\": []\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd49e151-f6e4-4aa9-ba1e-37c0f49e7917" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "683" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "87faaca5-c1cf-4cd4-8fd8-1960bca889af" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operations/87faaca5-c1cf-4cd4-8fd8-1960bca889af?api-version=2020-06-01" + ], + "x-ms-correlation-request-id": [ + "71580979-8f9f-4bfd-a02b-1efa1917cda4" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-arm-service-request-id": [ + "e6d1acd5-c71a-4b5a-8c40-e9f30121563a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071530Z:71580979-8f9f-4bfd-a02b-1efa1917cda4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:29 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"vnps2991\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991\",\r\n \"etag\": \"W/\\\"38da9187-334c-404a-8b8d-1f6548f71f97\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"37078d39-3cd0-4bfb-bbb8-89d9168009d4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"configps9784\",\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991/subnets/configps9784\",\r\n \"etag\": \"W/\\\"38da9187-334c-404a-8b8d-1f6548f71f97\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"serviceEndpoints\": [],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operations/87faaca5-c1cf-4cd4-8fd8-1960bca889af?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnMvODdmYWFjYTUtYzFjZi00Y2Q0LThmZDgtMTk2MGJjYTg4OWFmP2FwaS12ZXJzaW9uPTIwMjAtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "18a84df3-5db1-41ee-bbb7-2d0d5fe0d24e" + ], + "x-ms-correlation-request-id": [ + "25b70796-df7b-4fbd-96fd-ad2f7647c8e8" + ], + "x-ms-arm-service-request-id": [ + "7c08e8be-f3f0-422b-9b3f-8218eaad66d5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071534Z:25b70796-df7b-4fbd-96fd-ad2f7647c8e8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:34 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "//subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991/providers/microsoft.insights/diagnosticSettingsCategories/VMProtectionAlerts?api-version=2017-05-01-preview", + "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzU3OTQ3Y2I1LWFhZGQtNGI2Yy05ZThlLTI3ZjU0NWJiN2JmNS9yZXNvdXJjZUdyb3Vwcy9ncm91cHBzMzg4Ni9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3ZucHMyOTkxL3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvZGlhZ25vc3RpY1NldHRpbmdzQ2F0ZWdvcmllcy9WTVByb3RlY3Rpb25BbGVydHM/YXBpLXZlcnNpb249MjAxNy0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d5114b7-42a8-4fb8-9d0d-440a49a316a1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "572e8c92-867e-452c-810d-7ce34be894a8" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "326855ff-4c3b-42f2-8910-d200d2797227" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071537Z:326855ff-4c3b-42f2-8910-d200d2797227" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:37 GMT" + ], + "Content-Length": [ + "395" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourcegroups/groupps3886/providers/microsoft.network/virtualnetworks/vnps2991/providers/microsoft.insights/diagnosticSettingsCategories/VMProtectionAlerts\",\r\n \"type\": \"microsoft.insights/diagnosticSettingsCategories\",\r\n \"name\": \"VMProtectionAlerts\",\r\n \"location\": null,\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"categoryType\": \"Logs\"\r\n },\r\n \"identity\": null\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "//subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991/providers/microsoft.insights/diagnosticSettingsCategories/AllMetrics?api-version=2017-05-01-preview", + "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzU3OTQ3Y2I1LWFhZGQtNGI2Yy05ZThlLTI3ZjU0NWJiN2JmNS9yZXNvdXJjZUdyb3Vwcy9ncm91cHBzMzg4Ni9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvdmlydHVhbE5ldHdvcmtzL3ZucHMyOTkxL3Byb3ZpZGVycy9taWNyb3NvZnQuaW5zaWdodHMvZGlhZ25vc3RpY1NldHRpbmdzQ2F0ZWdvcmllcy9BbGxNZXRyaWNzP2FwaS12ZXJzaW9uPTIwMTctMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4032b5c3-9ca8-471b-9451-33265a9d2fca" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "3eb13200-cb4f-4b8f-b851-79448a76ae0e" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "761570b4-36e0-491a-80d6-09db1ce4ad28" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071538Z:761570b4-36e0-491a-80d6-09db1ce4ad28" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:37 GMT" + ], + "Content-Length": [ + "382" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourcegroups/groupps3886/providers/microsoft.network/virtualnetworks/vnps2991/providers/microsoft.insights/diagnosticSettingsCategories/AllMetrics\",\r\n \"type\": \"microsoft.insights/diagnosticSettingsCategories\",\r\n \"name\": \"AllMetrics\",\r\n \"location\": null,\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"categoryType\": \"Metrics\"\r\n },\r\n \"identity\": null\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourceGroups/groupps3886/providers/Microsoft.Network/virtualNetworks/vnps2991?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlR3JvdXBzL2dyb3VwcHMzODg2L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay92aXJ0dWFsTmV0d29ya3Mvdm5wczI5OTE/YXBpLXZlcnNpb249MjAyMC0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2d7e1f0-733c-470b-85af-3f0ac5bedc20" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operationResults/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-request-id": [ + "e869e96c-378f-4005-a38d-eafd0bfe77bd" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operations/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01" + ], + "x-ms-correlation-request-id": [ + "0ae16fd3-67f4-45b8-9551-886a0523c056" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-arm-service-request-id": [ + "889f3c7f-dd2b-4f8d-9d52-ea320737ce28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071539Z:0ae16fd3-67f4-45b8-9551-886a0523c056" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:38 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operations/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnMvZTg2OWU5NmMtMzc4Zi00MDA1LWEzOGQtZWFmZDBiZmU3N2JkP2FwaS12ZXJzaW9uPTIwMjAtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "463ffcb3-858b-4969-b031-738c7085e9e2" + ], + "x-ms-correlation-request-id": [ + "67c5e298-2714-4f20-bec3-7d2bc1a39f9e" + ], + "x-ms-arm-service-request-id": [ + "f5ad3bc8-4248-456e-8883-5845187b83f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071549Z:67c5e298-2714-4f20-bec3-7d2bc1a39f9e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:48 GMT" + ], + "Content-Length": [ + "29" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operationResults/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvblJlc3VsdHMvZTg2OWU5NmMtMzc4Zi00MDA1LWEzOGQtZWFmZDBiZmU3N2JkP2FwaS12ZXJzaW9uPTIwMjAtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Network.NetworkManagementClient/20.1.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operationResults/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01" + ], + "x-ms-request-id": [ + "e869e96c-378f-4005-a38d-eafd0bfe77bd" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/providers/Microsoft.Network/locations/eastus/operations/e869e96c-378f-4005-a38d-eafd0bfe77bd?api-version=2020-06-01" + ], + "x-ms-correlation-request-id": [ + "0ae16fd3-67f4-45b8-9551-886a0523c056" + ], + "Azure-AsyncNotification": [ + "Enabled" + ], + "x-ms-arm-service-request-id": [ + "889f3c7f-dd2b-4f8d-9d52-ea320737ce28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071549Z:f7a93989-c0d9-40ec-8d1b-0455a251728f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:49 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/resourcegroups/groupps3886?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L3Jlc291cmNlZ3JvdXBzL2dyb3VwcHMzODg2P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e304667d-a4cb-4f05-b77f-2dfaca0a8d77" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "d3303aaa-6593-44e4-8558-52758cbe27a9" + ], + "x-ms-correlation-request-id": [ + "d3303aaa-6593-44e4-8558-52758cbe27a9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071554Z:d3303aaa-6593-44e4-8558-52758cbe27a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:15:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFIVWs5VlVGQlRNemc0TmkxRlFWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "be52de6b-446b-4008-8d0b-57dc92f4e297" + ], + "x-ms-correlation-request-id": [ + "be52de6b-446b-4008-8d0b-57dc92f4e297" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071609Z:be52de6b-446b-4008-8d0b-57dc92f4e297" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:16:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFIVWs5VlVGQlRNemc0TmkxRlFWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "639920a0-d7c9-4770-90c5-622f5e15506b" + ], + "x-ms-correlation-request-id": [ + "639920a0-d7c9-4770-90c5-622f5e15506b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071625Z:639920a0-d7c9-4770-90c5-622f5e15506b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:16:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFIVWs5VlVGQlRNemc0TmkxRlFWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "f5febe40-0f7e-4329-939e-3d9b64eb63c6" + ], + "x-ms-correlation-request-id": [ + "f5febe40-0f7e-4329-939e-3d9b64eb63c6" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071640Z:f5febe40-0f7e-4329-939e-3d9b64eb63c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:16:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57947cb5-aadd-4b6c-9e8e-27f545bb7bf5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HUk9VUFBTMzg4Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTc5NDdjYjUtYWFkZC00YjZjLTllOGUtMjdmNTQ1YmI3YmY1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFIVWs5VlVGQlRNemc0TmkxRlFWTlVWVk1pTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN5Sjk/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29321.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "2b10ad21-2ea6-4f90-b65b-b224dd220cc4" + ], + "x-ms-correlation-request-id": [ + "2b10ad21-2ea6-4f90-b65b-b224dd220cc4" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20201119T071641Z:2b10ad21-2ea6-4f90-b65b-b224dd220cc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 Nov 2020 07:16:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-GetAzDiagnosticSettingCategory": [ + "ps3886", + "ps9784", + "ps2991" + ] + }, + "Variables": { + "SubscriptionId": "57947cb5-aadd-4b6c-9e8e-27f545bb7bf5" + } +} \ No newline at end of file diff --git a/src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs b/src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs index 51dc39aff1e0..16c774c4e23c 100644 --- a/src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs +++ b/src/Monitor/Monitor/Autoscale/NewAzureRmAutoscaleProfileCommand.cs @@ -126,7 +126,7 @@ public class NewAzureRmAutoscaleProfileCommand : MonitorCmdletBase [Parameter(ParameterSetName = AddAutoscaleProfileNoScheduleParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")] [Parameter(ParameterSetName = AddAutoscaleProfileFixDateParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")] [Parameter(ParameterSetName = AddAutoscaleProfileRecurrenceParamGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The rules for the setting")] - [ValidateNotNullOrEmpty] + [ValidateNotNull] public List Rule { get; set; } #endregion diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index 5ca6e2c6c3b9..80b0a1500a41 100644 --- a/src/Monitor/Monitor/Az.Monitor.psd1 +++ b/src/Monitor/Monitor/Az.Monitor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 9/29/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.2.0' +ModuleVersion = '2.3.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Monitor.dll', 'AutoMapper.dll' @@ -76,21 +76,23 @@ FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = 'Get-AzMetricDefinition', 'Get-AzMetric', 'Remove-AzLogProfile', 'Get-AzLogProfile', 'Add-AzLogProfile', 'Get-AzActivityLog', + 'New-AzDiagnosticSetting', 'New-AzDiagnosticDetailSetting', 'Set-AzDiagnosticSetting', 'Get-AzDiagnosticSetting', - 'Remove-AzDiagnosticSetting', 'New-AzAutoscaleNotification', - 'New-AzAutoscaleProfile', 'New-AzAutoscaleRule', - 'Add-AzAutoscaleSetting', 'Get-AzAutoscaleHistory', - 'Get-AzAutoscaleSetting', 'New-AzAutoscaleWebhook', - 'Remove-AzAutoscaleSetting', 'Add-AzMetricAlertRule', - 'Add-AzWebtestAlertRule', 'Get-AzAlertHistory', 'Get-AzAlertRule', - 'New-AzAlertRuleEmail', 'New-AzAlertRuleWebhook', - 'Remove-AzAlertRule', 'Set-AzActivityLogAlert', - 'Get-AzActivityLogAlert', 'New-AzActionGroup', - 'New-AzActivityLogAlertCondition', 'Enable-AzActivityLogAlert', - 'Disable-AzActivityLogAlert', 'Remove-AzActivityLogAlert', - 'New-AzActionGroupReceiver', 'Set-AzActionGroup', 'Get-AzActionGroup', - 'Remove-AzActionGroup', 'New-AzMetricFilter', - 'Add-AzMetricAlertRuleV2', 'Get-AzMetricAlertRuleV2', + 'Get-AzDiagnosticSettingCategory', 'Remove-AzDiagnosticSetting', + 'New-AzAutoscaleNotification', 'New-AzAutoscaleProfile', + 'New-AzAutoscaleRule', 'Add-AzAutoscaleSetting', + 'Get-AzAutoscaleHistory', 'Get-AzAutoscaleSetting', + 'New-AzAutoscaleWebhook', 'Remove-AzAutoscaleSetting', + 'Add-AzMetricAlertRule', 'Add-AzWebtestAlertRule', + 'Get-AzAlertHistory', 'Get-AzAlertRule', 'New-AzAlertRuleEmail', + 'New-AzAlertRuleWebhook', 'Remove-AzAlertRule', + 'Set-AzActivityLogAlert', 'Get-AzActivityLogAlert', + 'New-AzActionGroup', 'New-AzActivityLogAlertCondition', + 'Enable-AzActivityLogAlert', 'Disable-AzActivityLogAlert', + 'Remove-AzActivityLogAlert', 'New-AzActionGroupReceiver', + 'Set-AzActionGroup', 'Get-AzActionGroup', 'Remove-AzActionGroup', + 'New-AzMetricFilter', 'Add-AzMetricAlertRuleV2', + 'Get-AzMetricAlertRuleV2', 'New-AzMetricAlertRuleV2DimensionSelection', 'New-AzMetricAlertRuleV2Criteria', 'Remove-AzMetricAlertRuleV2', 'New-AzScheduledQueryRuleSource', @@ -142,8 +144,11 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed the bug that warning message cannot be suppressed. [#12889] -* Supported ''SkipMetricValidation'' parameter in alert rule criteria. Allows creating an alert rule on a custom metric that isn''t yet emitted, by causing the metric validation to be skipped.' + ReleaseNotes = '* Changed parameter ''Rule'' of ''New-AzAutoscaleProfile'' to accept empty list. [#12903] +* Added new cmdlets to support creating diagnostic settings more flexible: + * ''Get-AzDiagnosticSettingCategory'' + * ''New-AzDiagnosticSetting'' + * ''New-AzDiagnosticDetailSetting''' # Prerelease string of this module # Prerelease = '' diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index fad3d1adb92a..1c0bbcfbdc6e 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -20,6 +20,13 @@ ## Upcoming Release +## Version 2.3.0 +* Changed parameter `Rule` of `New-AzAutoscaleProfile` to accept empty list. [#12903] +* Added new cmdlets to support creating diagnostic settings more flexible: + * `Get-AzDiagnosticSettingCategory` + * `New-AzDiagnosticSetting` + * `New-AzDiagnosticDetailSetting` + ## Version 2.2.0 * Fixed the bug that warning message cannot be suppressed. [#12889] * Supported `SkipMetricValidation` parameter in alert rule criteria. Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. diff --git a/src/Monitor/Monitor/Diagnostics/GetAzureRmDiagnosticSettingCategoryCommand.cs b/src/Monitor/Monitor/Diagnostics/GetAzureRmDiagnosticSettingCategoryCommand.cs new file mode 100644 index 000000000000..3af19b74c631 --- /dev/null +++ b/src/Monitor/Monitor/Diagnostics/GetAzureRmDiagnosticSettingCategoryCommand.cs @@ -0,0 +1,60 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using Microsoft.Azure.Commands.Insights.OutputClasses; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.Monitor; +using Microsoft.Azure.Management.Monitor.Models; +using Microsoft.WindowsAzure.Commands.Utilities.Common; + +namespace Microsoft.Azure.Commands.Insights.Diagnostics +{ + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSettingCategory"), OutputType(typeof(PSDiagnosticSettingCategory))] + public class GetAzureRmDiagnosticSettingCategoryCommand : ManagementCmdletBase + { + #region Parameters declarations + + [Parameter(Mandatory = true, HelpMessage = "Target resource Id")] + [ValidateNotNullOrEmpty] + public string TargetResourceId { get; set; } + + [Parameter(Mandatory = false, HelpMessage = "Name of diagnostic setting category")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + #endregion + + protected override void ProcessRecordInternal() + { + if (this.IsParameterBound(c => c.Name)) + { + WriteObject(new PSDiagnosticSettingCategory(this.MonitorManagementClient + .DiagnosticSettingsCategory + .Get(TargetResourceId, Name))); + } + else + { + WriteObject(this.MonitorManagementClient + .DiagnosticSettingsCategory + .List(TargetResourceId) + .Value + .Select(x => new PSDiagnosticSettingCategory(x)).ToList(), true); + } + } + } +} diff --git a/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticDetailSettingCommand.cs b/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticDetailSettingCommand.cs new file mode 100644 index 000000000000..484846ab5db3 --- /dev/null +++ b/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticDetailSettingCommand.cs @@ -0,0 +1,102 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.Insights.OutputClasses; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.Monitor; +using Microsoft.Azure.Management.Monitor.Models; +using Microsoft.WindowsAzure.Commands.Utilities.Common; + +namespace Microsoft.Azure.Commands.Insights.Diagnostics +{ + [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticDetailSetting", DefaultParameterSetName = MetricSettingParameterSet), OutputType(typeof(PSDiagnosticDetailSettings))] + public class NewAzureRmDiagnosticDetailSettingCommand : ManagementCmdletBase + { + public const string LogSettingParameterSet = "LogSettingParameterSet"; + public const string MetricSettingParameterSet = "MetricSettingParameterSet"; + + #region Parameters declarations + + [Parameter(ParameterSetName = LogSettingParameterSet, Mandatory = true, HelpMessage = "To create log setting")] + public SwitchParameter Log { get; set; } + + [Parameter(ParameterSetName = MetricSettingParameterSet, Mandatory = true, HelpMessage = "To create metric setting")] + public SwitchParameter Metric { get; set; } + + [Parameter(Mandatory = false, HelpMessage = "Retention days for retention policy")] + public int RetentionInDays { get; set; } + + [Parameter(Mandatory = false, HelpMessage = "Enable Retention policy")] + public SwitchParameter RetentionEnabled { get; set; } + + [Parameter(Mandatory = true, HelpMessage = "Category of setting")] + public string Category { get; set; } + + [Parameter(Mandatory = false, HelpMessage = "Enable the setting")] + public SwitchParameter Enabled { get; set; } + + [Parameter(ParameterSetName = MetricSettingParameterSet, Mandatory = false, HelpMessage = "TimeGrain for metric setting")] + public System.TimeSpan? TimeGrain { get; set; } + + #endregion + + protected override void ProcessRecordInternal() + { + + + PSRetentionPolicy policy; + if (!this.IsParameterBound(c => c.RetentionInDays) && !this.IsParameterBound(c => c.RetentionEnabled)) + { + policy = null; + } + else + { + policy = new PSRetentionPolicy() + { + Days = this.IsParameterBound(c => c.RetentionInDays) ? this.RetentionInDays : 0, + Enabled = this.IsParameterBound(c => RetentionEnabled) ? true : false + }; + } + + PSDiagnosticDetailSettings setting; + + if (this.ParameterSetName.Equals(LogSettingParameterSet)) + { + setting = new PSLogSettings() + { + RetentionPolicy = policy, + Category = this.Category, + Enabled = this.IsParameterBound(c => c.Enabled) ? true : false, + CategoryType = PSDiagnosticSettingCategoryType.Logs + }; + } + else + { + setting = new PSMetricSettings() + { + RetentionPolicy = policy, + Category = this.Category, + Enabled = this.IsParameterBound(c => c.Enabled) ? true : false, + TimeGrain = this.TimeGrain ?? default(System.TimeSpan), + CategoryType = PSDiagnosticSettingCategoryType.Metrics + }; + } + + WriteObject(setting); + } + } +} diff --git a/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticSettingCommand.cs b/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticSettingCommand.cs new file mode 100644 index 000000000000..5c5a8aa154aa --- /dev/null +++ b/src/Monitor/Monitor/Diagnostics/NewAzureRmDiagnosticSettingCommand.cs @@ -0,0 +1,154 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.Insights.OutputClasses; +using Microsoft.Azure.Management.Monitor; +using Microsoft.Azure.Management.Monitor.Models; +using Microsoft.WindowsAzure.Commands.Utilities.Common; + +namespace Microsoft.Azure.Commands.Insights.Diagnostics +{ + [Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DiagnosticSetting"), OutputType(typeof(PSServiceDiagnosticSettings))] + public class NewAzureRmDiagnosticSettingCommand : ManagementCmdletBase + { + public const string StorageAccountIdParamName = "StorageAccountId"; + public const string ServiceBusRuleIdParamName = "ServiceBusRuleId"; + public const string EventHubNameParamName = "EventHubName"; + public const string EventHubRuleIdParamName = "EventHubAuthorizationRuleId"; + public const string WorkspacetIdParamName = "WorkspaceId"; + public const string EnabledParamName = "Enabled"; + public const string EnableLogParamName = "EnableLog"; + public const string EnableMetricsParamName = "EnableMetrics"; + + #region Parameters declarations + + /// + /// Gets or sets the resourceId parameter of the cmdlet + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource id")] + [ValidateNotNullOrEmpty] + public string TargetResourceId { get; set; } + + /// + /// Gets or sets the resourceId parameter of the cmdlet + /// + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the diagnostic setting. Defaults to 'service'")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } = "service"; + + /// + /// Gets or sets the storage account parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The storage account id")] + public string StorageAccountId { get; set; } + + /// + /// Gets or sets the service bus rule id parameter of the cmdlet + /// + [Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The service bus rule id")] + public string ServiceBusRuleId { get; set; } + + /// + /// Gets or sets the service bus rule id parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The service bus rule id")] + public string EventHubName { get; set; } + + /// + /// Gets or sets the event hub authorization rule id parameter of the cmdlet + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The event hub rule id")] + public string EventHubAuthorizationRuleId { get; set; } + + /// + /// Gets or sets the OMS workspace Id + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource Id of the Log Analytics workspace to send logs/metrics to")] + public string WorkspaceId { get; set; } + + /// + /// Gets or sets the retention in days + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The value indicating whether to export (to ODS) to resource-specific (if present) or to AzureDiagnostics (default, not present)")] + public SwitchParameter DedicatedLogAnalyticsDestinationType { get; set; } + + /// + /// Set list of diagnostic settings + /// + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Metric settings or Log settings")] + public PSDiagnosticDetailSettings[] Setting { get; set; } + + #endregion + + protected override void ProcessRecordInternal() + { + Validate(); + + IList metrics = new List(); + IList logs = new List(); + + if (this.IsParameterBound(c => c.Setting) && Setting.Length != 0) + { + foreach (PSDiagnosticDetailSettings setting in Setting) + { + switch (setting.CategoryType) + { + case PSDiagnosticSettingCategoryType.Metrics: + metrics.Add(((PSMetricSettings)setting).GetMetricSetting()); + break; + case PSDiagnosticSettingCategoryType.Logs: + logs.Add(((PSLogSettings)setting).GetLogSetting()); + break; + default: + throw new ArgumentException("Invalid diagnostic setting type"); + } + } + } + + PSServiceDiagnosticSettings DiagnosticSetting = new PSServiceDiagnosticSettings(id: this.TargetResourceId + "/diagnosticSettings/" + this.Name, name: this.Name) + { + StorageAccountId = this.IsParameterBound(c => c.StorageAccountId) ? this.StorageAccountId : null, + ServiceBusRuleId = this.IsParameterBound(c => c.ServiceBusRuleId) ? this.ServiceBusRuleId : null, + EventHubName = this.IsParameterBound(c => c.EventHubName) ? this.EventHubName : null, + EventHubAuthorizationRuleId = this.IsParameterBound(c => c.EventHubAuthorizationRuleId) ? this.EventHubAuthorizationRuleId : null, + WorkspaceId = this.IsParameterBound(c => c.WorkspaceId) ? this.WorkspaceId : null, + LogAnalyticsDestinationType = this.IsParameterBound(c => c.DedicatedLogAnalyticsDestinationType) ? "Dedicated" : null, + Metrics = metrics, + Logs = logs + }; + + WriteObject(DiagnosticSetting); + } + + protected void Validate() + { + if (!this.IsParameterBound(c => c.StorageAccountId) && + !this.IsParameterBound(c => c.ServiceBusRuleId) && + !this.IsParameterBound(c => c.EventHubName) && + !this.IsParameterBound(c => c.EventHubAuthorizationRuleId) && + !this.IsParameterBound(c => c.WorkspaceId)) + { + throw new ArgumentException("No operation is specified, please specify storage account Id/service bus rule Id/eventhub name/eventhub authorization rule Id/workspace Id"); + } + + if (!this.IsParameterBound(c => c.WorkspaceId) && this.IsParameterBound(c => c.DedicatedLogAnalyticsDestinationType)) + { + throw new ArgumentException("Please provide workspace Id if want to use dedicated log analytics destination type"); + } + } + } +} diff --git a/src/Monitor/Monitor/Monitor.format.ps1xml b/src/Monitor/Monitor/Monitor.format.ps1xml index d113b5f447d6..338ceffbeac2 100644 --- a/src/Monitor/Monitor/Monitor.format.ps1xml +++ b/src/Monitor/Monitor/Monitor.format.ps1xml @@ -22,5 +22,35 @@ + + Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategory + + Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategory + + + + + + + + Id + + + + Name + + + + Type + + + + CategoryType + + + + + + diff --git a/src/Monitor/Monitor/OutputClasses/PSDiagnosticDetailSettings.cs b/src/Monitor/Monitor/OutputClasses/PSDiagnosticDetailSettings.cs new file mode 100644 index 000000000000..de147c0cc534 --- /dev/null +++ b/src/Monitor/Monitor/OutputClasses/PSDiagnosticDetailSettings.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Azure.Commands.Insights.OutputClasses +{ + public abstract class PSDiagnosticDetailSettings + { + public string Category { get; set; } + + public bool Enabled { get; set; } + + public PSRetentionPolicy RetentionPolicy { get; set; } + + public PSDiagnosticSettingCategoryType CategoryType { get; set; } + } +} diff --git a/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategory.cs b/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategory.cs new file mode 100644 index 000000000000..dba8b140bd58 --- /dev/null +++ b/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategory.cs @@ -0,0 +1,42 @@ +using Microsoft.Azure.Management.Monitor.Models; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Azure.Commands.Insights.OutputClasses +{ + public class PSDiagnosticSettingCategory + { + public string Id { get; private set; } + + public string Name { get; private set; } + + public string Type { get; private set; } + + public PSDiagnosticSettingCategoryType? CategoryType { get; set; } + + public PSDiagnosticSettingCategory() { } + + public PSDiagnosticSettingCategory(DiagnosticSettingsCategoryResource category) + { + this.Id = category?.Id; + this.Name = category?.Name; + this.Type = category?.Type; + if (category != null) + { + switch (category.CategoryType) + { + case Microsoft.Azure.Management.Monitor.Models.CategoryType.Metrics: + this.CategoryType = PSDiagnosticSettingCategoryType.Metrics; + break; + case Microsoft.Azure.Management.Monitor.Models.CategoryType.Logs: + this.CategoryType = PSDiagnosticSettingCategoryType.Logs; + break; + default: + this.CategoryType = null; + break; + } + } + } + } +} diff --git a/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategoryType.cs b/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategoryType.cs new file mode 100644 index 000000000000..cf71201155e1 --- /dev/null +++ b/src/Monitor/Monitor/OutputClasses/PSDiagnosticSettingCategoryType.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.Azure.Commands.Insights.OutputClasses +{ + public enum PSDiagnosticSettingCategoryType + { + Metrics, + Logs + } +} diff --git a/src/Monitor/Monitor/OutputClasses/PSLogSettings.cs b/src/Monitor/Monitor/OutputClasses/PSLogSettings.cs index 716028b61d36..cfd9a7b2d1ea 100644 --- a/src/Monitor/Monitor/OutputClasses/PSLogSettings.cs +++ b/src/Monitor/Monitor/OutputClasses/PSLogSettings.cs @@ -20,16 +20,24 @@ namespace Microsoft.Azure.Commands.Insights.OutputClasses /// /// Wrapps around the LogSettings /// - public class PSLogSettings : Microsoft.Azure.Management.Monitor.Management.Models.LogSettings + public class PSLogSettings : PSDiagnosticDetailSettings { /// /// Initializes a new instance of the PSLogSettings class. /// - public PSLogSettings(LogSettings logSettings) : base(logSettings) + public PSLogSettings(LogSettings logSettings) + { + if (logSettings != null) + { + this.Enabled = logSettings.Enabled; + this.Category = logSettings.Category; + this.RetentionPolicy = new PSRetentionPolicy(logSettings.RetentionPolicy); + } + this.CategoryType = PSDiagnosticSettingCategoryType.Logs; + } + + public PSLogSettings() { - this.Enabled = logSettings.Enabled; - this.Category = logSettings.Category; - this.RetentionPolicy = new Management.Monitor.Management.Models.RetentionPolicy(logSettings.RetentionPolicy); } /// @@ -45,5 +53,15 @@ public override string ToString() output.Append("RetentionPolicy : " + RetentionPolicy.ToString(1)); return output.ToString(); } + + public LogSettings GetLogSetting() + { + return new LogSettings() + { + Enabled = this.Enabled, + Category = this.Category, + RetentionPolicy = this.RetentionPolicy + }; + } } } diff --git a/src/Monitor/Monitor/OutputClasses/PSMetricSettings.cs b/src/Monitor/Monitor/OutputClasses/PSMetricSettings.cs index 5bb25a88bf8b..5b7d56d02cfe 100644 --- a/src/Monitor/Monitor/OutputClasses/PSMetricSettings.cs +++ b/src/Monitor/Monitor/OutputClasses/PSMetricSettings.cs @@ -21,15 +21,29 @@ namespace Microsoft.Azure.Commands.Insights.OutputClasses /// /// Wrapps around the MetricSettings /// - public class PSMetricSettings : Management.Monitor.Management.Models.MetricSettings + public class PSMetricSettings : PSDiagnosticDetailSettings { /// /// Initializes a new instance of the PSMetricSettings class. /// - public PSMetricSettings(MetricSettings metricSettings) : base(metricSettings) + public PSMetricSettings(MetricSettings metricSettings) { + if (metricSettings != null) + { + this.Category = metricSettings.Category; + this.Enabled = metricSettings.Enabled; + this.RetentionPolicy = new PSRetentionPolicy(metricSettings.RetentionPolicy); + this.TimeGrain = metricSettings.TimeGrain ?? default(System.TimeSpan); + } + this.CategoryType = PSDiagnosticSettingCategoryType.Metrics; } + public PSMetricSettings() + { + } + + public System.TimeSpan TimeGrain { get; set; } + /// /// A string representation of the PSMetricSettings /// @@ -40,9 +54,20 @@ public override string ToString() output.AppendLine(); output.AppendLine("Category : " + Category); output.AppendLine("Enabled : " + Enabled); - output.AppendLine("TimeGrain : " + XmlConvert.ToString(TimeGrain)); + output.AppendLine("TimeGrain : " + XmlConvert.ToString((System.TimeSpan)TimeGrain)); output.Append("RetentionPolicy : " + RetentionPolicy.ToString(1)); return output.ToString(); } + + public MetricSettings GetMetricSetting() + { + return new MetricSettings() + { + Enabled = this.Enabled, + Category = this.Category, + RetentionPolicy = this.RetentionPolicy, + TimeGrain = this.TimeGrain + }; + } } } diff --git a/src/Monitor/Monitor/OutputClasses/PSRetentionPolicy.cs b/src/Monitor/Monitor/OutputClasses/PSRetentionPolicy.cs index 74d6b86e9890..4193f060285e 100644 --- a/src/Monitor/Monitor/OutputClasses/PSRetentionPolicy.cs +++ b/src/Monitor/Monitor/OutputClasses/PSRetentionPolicy.cs @@ -21,6 +21,10 @@ namespace Microsoft.Azure.Commands.Insights.OutputClasses /// public class PSRetentionPolicy : Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy { + public PSRetentionPolicy() + { + } + /// /// Initializes a new instance of the PSRetention class /// diff --git a/src/Monitor/Monitor/OutputClasses/PSServiceDiagnosticSettings.cs b/src/Monitor/Monitor/OutputClasses/PSServiceDiagnosticSettings.cs index e6395025dc02..2e7805913417 100644 --- a/src/Monitor/Monitor/OutputClasses/PSServiceDiagnosticSettings.cs +++ b/src/Monitor/Monitor/OutputClasses/PSServiceDiagnosticSettings.cs @@ -32,18 +32,15 @@ public class PSServiceDiagnosticSettings : DiagnosticSettingsResource /// public IDictionary Tags { get; set; } - /// - /// Sets or gets the Logs of the Diagnostic Setting. - /// This property in transitional until the namesace change is taken - /// - public new IList Logs { get; set; } + //public new string Id { get; set; } - /// - /// Sets or gets the Logs of the Diagnostic Setting. - /// This property in transitional until the namesace change is taken - /// - public new IList Metrics { get; set; } + //public new string Name { get; set; } = "service"; + public PSServiceDiagnosticSettings() { } + + public PSServiceDiagnosticSettings(string id = default(string), string name = default(string)) : base(id, name) + { + } /// /// Initializes a new instance of the PSServiceDiagnosticSettings class. @@ -65,19 +62,19 @@ public PSServiceDiagnosticSettings(DiagnosticSettingsResource serviceDiagnosticS if (serviceDiagnosticSettings.Metrics != null) { - this.Metrics = new List(); + this.Metrics = new List(); foreach (MetricSettings metricSettings in serviceDiagnosticSettings.Metrics) { - this.Metrics.Add(new PSMetricSettings(metricSettings)); + this.Metrics.Add(metricSettings); } } if (serviceDiagnosticSettings.Logs != null) { - this.Logs = new List(); + this.Logs = new List(); foreach (LogSettings logSettings in serviceDiagnosticSettings.Logs) { - this.Logs.Add(new PSLogSettings(logSettings)); + this.Logs.Add(logSettings); } } diff --git a/src/Monitor/Monitor/Properties/AssemblyInfo.cs b/src/Monitor/Monitor/Properties/AssemblyInfo.cs index 86536287d486..e8375eedeb2f 100644 --- a/src/Monitor/Monitor/Properties/AssemblyInfo.cs +++ b/src/Monitor/Monitor/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("ed102280-3577-49bf-93dd-11b6e3a44a57")] -[assembly: AssemblyVersion("2.2.0")] -[assembly: AssemblyFileVersion("2.2.0")] +[assembly: AssemblyVersion("2.3.0")] +[assembly: AssemblyFileVersion("2.3.0")] diff --git a/src/Monitor/Monitor/TransitionalClasses/RetentionPolicy.cs b/src/Monitor/Monitor/TransitionalClasses/RetentionPolicy.cs index e468c7132033..8f1e3b5c0a34 100644 --- a/src/Monitor/Monitor/TransitionalClasses/RetentionPolicy.cs +++ b/src/Monitor/Monitor/TransitionalClasses/RetentionPolicy.cs @@ -36,6 +36,10 @@ public RetentionPolicy(Monitor.Models.RetentionPolicy retentionPolicy) } } + public RetentionPolicy() + { + } + /// /// A string representation of the PSRetentionPolicy /// diff --git a/src/Monitor/Monitor/help/Az.Monitor.md b/src/Monitor/Monitor/help/Az.Monitor.md index 7eb82fd191d2..6bf521be611e 100644 --- a/src/Monitor/Monitor/help/Az.Monitor.md +++ b/src/Monitor/Monitor/help/Az.Monitor.md @@ -56,6 +56,9 @@ Gets Autoscale settings. ### [Get-AzDiagnosticSetting](Get-AzDiagnosticSetting.md) Gets the logged categories and time grains. +### [Get-AzDiagnosticSettingCategory](Get-AzDiagnosticSettingCategory.md) +Get or list supported diagnostic setting category for Azure resource. + ### [Get-AzInsightsPrivateLinkScope](Get-AzInsightsPrivateLinkScope.md) Get private link scope @@ -104,6 +107,12 @@ Creates an Autoscale rule. ### [New-AzAutoscaleWebhook](New-AzAutoscaleWebhook.md) Creates an Autoscale webhook. +### [New-AzDiagnosticDetailSetting](New-AzDiagnosticDetailSetting.md) +Create PSDiagnosticDetailSetting Object, type could be metric or log + +### [New-AzDiagnosticSetting](New-AzDiagnosticSetting.md) +Create PSServiceDiagnosticSettings object. + ### [New-AzInsightsPrivateLinkScope](New-AzInsightsPrivateLinkScope.md) create private link scope diff --git a/src/Monitor/Monitor/help/Get-AzDiagnosticSettingCategory.md b/src/Monitor/Monitor/help/Get-AzDiagnosticSettingCategory.md new file mode 100644 index 000000000000..eba867a8cb7f --- /dev/null +++ b/src/Monitor/Monitor/help/Get-AzDiagnosticSettingCategory.md @@ -0,0 +1,101 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml +Module Name: Az.Monitor +online version: https://docs.microsoft.com/en-us/powershell/module/az.monitor/get-azdiagnosticsettingcategory +schema: 2.0.0 +--- + +# Get-AzDiagnosticSettingCategory + +## SYNOPSIS +Get or list supported diagnostic setting category for Azure resource. + +## SYNTAX + +``` +Get-AzDiagnosticSettingCategory -TargetResourceId [-Name ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get or list supported diagnostic setting category for Azure resource. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Get-AzDiagnosticSetting -TargetResourceId -TargetResourceId /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX +Id : /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX/providers/microsoft.insights/diagnosticSettingsCategories/VMProtectionAlerts +Name : VMProtectionAlerts +Type : microsoft.insights/diagnosticSettingsCategories +CategoryType : Logs + +Id : /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX/providers/microsoft.insights/diagnosticSettingsCategories/AllMetrics +Name : AllMetrics +Type : microsoft.insights/diagnosticSettingsCategories +CategoryType : Metrics +``` + +Get supported diagnostic setting categories for virtual network. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of diagnostic setting category + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetResourceId +Target resource Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategory + +## NOTES + +## RELATED LINKS diff --git a/src/Monitor/Monitor/help/New-AzDiagnosticDetailSetting.md b/src/Monitor/Monitor/help/New-AzDiagnosticDetailSetting.md new file mode 100644 index 000000000000..0788b1eb0384 --- /dev/null +++ b/src/Monitor/Monitor/help/New-AzDiagnosticDetailSetting.md @@ -0,0 +1,193 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml +Module Name: Az.Monitor +online version: https://docs.microsoft.com/en-us/powershell/module/az.monitor/new-azdiagnosticdetailsetting +schema: 2.0.0 +--- + +# New-AzDiagnosticDetailSetting + +## SYNOPSIS +Create PSDiagnosticDetailSetting Object, type could be metric or log + +## SYNTAX + +### LogSettingParameterSet +``` +New-AzDiagnosticDetailSetting -Log [-RetentionInDays ] [-RetentionEnabled] -Category + [-Enabled] [-DefaultProfile ] [] +``` + +### MetricSettingParameterSet +``` +New-AzDiagnosticDetailSetting -Metric [-RetentionInDays ] [-RetentionEnabled] -Category + [-Enabled] [-TimeGrain ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Create PSMetricSettings or PSLogSettings object. +You can get categories by using `Get-AzDiagnosticSettingCategory`. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> $TimeGrain=New-TimeSpan -Days 90 +PS C:\> New-AzDiagnosticDetailSetting -Metric -RetentionInDays 1 -RetentionEnabled -Category AllMetrics -Enabled -TimeGrain $TimeGrain +TimeGrain : 90.00:00:00 +Category : AllMetrics +Enabled : True +RetentionPolicy : + Enabled : True + Days : 1 +CategoryType : Metrics +``` + +Create PSMetricSettings object. + +### Example 2 +```powershell +PS C:\> New-AzDiagnosticDetailSetting -Log -RetentionInDays 1 -RetentionEnabled -Category Audit -Enabled +Category Enabled RetentionPolicy CategoryType +-------- ------- --------------- ------------ +Audit True … Logs +``` + +Create PSLogSettings object. + +## PARAMETERS + +### -Category +Category of setting + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Enabled +Enable the setting + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Log +To create log setting + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: LogSettingParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Metric +To create metric setting + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: MetricSettingParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RetentionEnabled +Enable Retention policy + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RetentionInDays +Retention days for retention policy + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimeGrain +TimeGrain for metric setting + +```yaml +Type: System.Nullable`1[System.TimeSpan] +Parameter Sets: MetricSettingParameterSet +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings + +## NOTES + +## RELATED LINKS diff --git a/src/Monitor/Monitor/help/New-AzDiagnosticSetting.md b/src/Monitor/Monitor/help/New-AzDiagnosticSetting.md new file mode 100644 index 000000000000..5e135bcf8e9b --- /dev/null +++ b/src/Monitor/Monitor/help/New-AzDiagnosticSetting.md @@ -0,0 +1,240 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll-Help.xml +Module Name: Az.Monitor +online version: https://docs.microsoft.com/en-us/powershell/module/az.monitor/new-azdiagnosticsetting +schema: 2.0.0 +--- + +# New-AzDiagnosticSetting + +## SYNOPSIS +Create PSServiceDiagnosticSettings object. + +## SYNTAX + +``` +New-AzDiagnosticSetting -TargetResourceId -Name [-StorageAccountId ] + [-ServiceBusRuleId ] [-EventHubName ] [-EventHubAuthorizationRuleId ] + [-WorkspaceId ] [-DedicatedLogAnalyticsDestinationType] [-Setting ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Create PSServiceDiagnosticSettings object. +This can be used as parameter `-InputObject` +for +`Set-AzDiagnosticSetting` + +## EXAMPLES + +### Example 1 +```powershell +$TimeGrain=New-TimeSpan -Days 90 +$metric = New-AzDiagnosticDetailSetting -Metric -RetentionInDays 1 -RetentionEnabled -Category AllMetrics +$log = New-AzDiagnosticDetailSetting -Log -RetentionInDays 1 -RetentionEnabled -Category Audit -Enabled +$setting = New-AzDiagnosticSetting -TargetResourceId /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX -Name diagnostic-test -WorkspaceId /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.OperationalInsights/workspaces/XXXXXXXXX -DedicatedLogAnalyticsDestinationType -Setting $log,$metric +Location : +Tags : +Id : /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Network/virtualNetworks/XXXXXXXX/diagnosticSettings/diagnostic-test +Name : diagnostic-test +StorageAccountId : +ServiceBusRuleId : +EventHubAuthorizationRuleId : +EventHubName : +Metrics + TimeGrain : + Category : AllMetrics + Enabled : False + RetentionPolicy + Enabled : True + Days : 1 + + +Logs + Category : Audit + Enabled : True + RetentionPolicy + Enabled : True + Days : 1 + + +WorkspaceId : /subscriptions/XXXXXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.OperationalInsights/workspaces/XXXXXXXXX +LogAnalyticsDestinationType : Dedicated +Type : + +Set-AzDiagnosticSetting -InputObject $setting +``` + +Create PSServiceDiagnosticSettings object. And create diagnostic setting for target resource. + +## PARAMETERS + +### -DedicatedLogAnalyticsDestinationType +The value indicating whether to export (to ODS) to resource-specific (if present) or to AzureDiagnostics (default, not present) + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EventHubAuthorizationRuleId +The event hub rule id + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -EventHubName +The service bus rule id + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Name +The name of the diagnostic setting. +Defaults to 'service' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ServiceBusRuleId +The service bus rule id + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Setting +Metric settings or Log settings + +```yaml +Type: PSDiagnosticDetailSettings[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -StorageAccountId +The storage account id + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -TargetResourceId +The resource id + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -WorkspaceId +The resource Id of the Log Analytics workspace to send logs/metrics to + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +### System.Management.Automation.SwitchParameter + +### Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings[] + +## OUTPUTS + +### Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings + +## NOTES + +## RELATED LINKS diff --git a/src/MonitoringSolutions/Az.MonitoringSolutions.psd1 b/src/MonitoringSolutions/Az.MonitoringSolutions.psd1 index 4a4044f7b95b..a02e2e3fe9b5 100644 --- a/src/MonitoringSolutions/Az.MonitoringSolutions.psd1 +++ b/src/MonitoringSolutions/Az.MonitoringSolutions.psd1 @@ -10,7 +10,7 @@ PowerShellVersion = '5.1' DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.MonitoringSolutions.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) + RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) FormatsToProcess = './Az.MonitoringSolutions.format.ps1xml' FunctionsToExport = 'Get-AzMonitorLogAnalyticsSolution', 'New-AzMonitorLogAnalyticsSolution', 'Remove-AzMonitorLogAnalyticsSolution', 'Update-AzMonitorLogAnalyticsSolution' AliasesToExport = '*' diff --git a/src/MySql/Az.MySql.format.ps1xml b/src/MySql/Az.MySql.format.ps1xml index c2a0508b996c..f0f74be29d6a 100644 --- a/src/MySql/Az.MySql.format.ps1xml +++ b/src/MySql/Az.MySql.format.ps1xml @@ -17,54 +17,1052 @@ + + + - + + + + + + + + + + + + + + + + + + + + ConfigurationName + + + DatabaseName + + + FirewallRuleName + + + KeyName + + + LocationName + + + ResourceGroupName + + + SecurityAlertPolicyName + + + ServerName + + + SubscriptionId + + + VirtualNetworkRuleName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilitiesListResult + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilitiesListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilityProperties + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilityProperties + + + + + + + + + + + + Zone + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated + + + + + + + + + + + + + + + + + + + + + + + + Name + + + Value + + + AllowedValue + + + Source + + + DefaultValue + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationListResultAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationListResultAutoGenerated + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGenerated + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AllowedValue + + + DataType + + + DefaultValue + + + Description + + + IsConfigPendingRestart + + + IsDynamicConfig + + + IsReadOnly + + + Source + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DatabaseListResultAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DatabaseListResultAutoGenerated + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments + + + + + + + + + + + + SubnetArmResourceId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetUsage + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetUsage + + + + + + + + + + + + + + + SubnetName + + + Usage + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.FirewallRuleListResultAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.FirewallRuleListResultAutoGenerated + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow + + + + + + + + + + + + + + + + + + + + + CustomWindow + + + DayOfWeek + + + StartHour + + + StartMinute + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationAutoGenerated + + + + + + + + + + + + + + + + + + IsDataAction + + + Name + + + Origin + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationListResultAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationListResultAutoGenerated + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name + + + Location + + + SkuName + + + SkuTier + + + AdministratorLogin + + + Version + + + StorageProfileStorageMb + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerEditionCapability + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerEditionCapability + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTags + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey + + + + + + + + + + + + + + + + + + Name + + + Type + + + Kind + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyListResult + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyProperties + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyProperties + + + + + + + + + + + + + + + + + + CreationDate + + + ServerKeyType + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerListResultAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerListResultAutoGenerated + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGenerated + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AdministratorLogin + + + AdministratorLoginPassword + + + AvailabilityZone + + + ByokEnforcement + + + CreateMode + + + EarliestRestoreDate + + + FullyQualifiedDomainName + + + HaEnabled + + + HaState + + + InfrastructureEncryption + + + PublicNetworkAccess + + + ReplicaCapacity + + + ReplicationRole + + + RestorePointInTime + + + SourceServerId + + + SslEnforcement + + + StandbyAvailabilityZone + + + State + + + Version + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdate + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdate + + + + + + + + + + + + + + + + + + + + + AdministratorLoginPassword + + + HaEnabled + + + ReplicationRole + + + SslEnforcement + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTags + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerVersionCapability + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerVersionCapability + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated + + + + + + + + + + + + + + + Name + + + Tier + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageEditionCapability + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageEditionCapability + + + + + + + + + + + + + + + + + + MaxBackupRetentionDay + + + MinBackupRetentionDay + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability + + + + + - + + + + + + + + Name + + + StorageSizeMb + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated + + + + + - + - + - + - ConfigurationName + BackupRetentionDay - DatabaseName + StorageAutogrow - FirewallRuleName + StorageIop - LocationName + StorageMb + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VcoreCapability + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VcoreCapability + + + + + + + + + + + + + + + + + + + - ResourceGroupName + Name - SecurityAlertPolicyName + SupportedIop - ServerName + SupportedMemoryPerVcoreMb - SubscriptionId + VCore + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VirtualNetworkSubnetUsageParameter + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VirtualNetworkSubnetUsageParameter + + + + + + + + + + - VirtualNetworkRuleName + VirtualNetworkArmResourceId @@ -84,6 +1082,15 @@ + + + + + + + + + @@ -94,6 +1101,15 @@ Value + + AllowedValue + + + Source + + + DefaultValue + @@ -162,7 +1178,10 @@ - + + + + @@ -172,7 +1191,10 @@ Name - Type + Charset + + + Collation @@ -1530,9 +2552,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRule - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRule @@ -1542,9 +2564,6 @@ - - - @@ -1555,30 +2574,27 @@ Type - - Location - - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleListResult - + - Item + NextLink @@ -1586,27 +2602,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRule + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRule + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties - + - + + + + - Name + IgnoreMissingVnetServiceEndpoint - Type + State + + + VirtualNetworkSubnetId @@ -1614,21 +2636,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo - + - NextLink + Type @@ -1636,33 +2658,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse - + - + - + - IgnoreMissingVnetServiceEndpoint + Code - State + Message - VirtualNetworkSubnetId + Target @@ -1670,12 +2692,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Identity - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Identity + + + + + + @@ -1683,6 +2711,12 @@ + + PrincipalId + + + TenantId + Type @@ -1692,33 +2726,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource - - - - + - + - Code - - - Message + Name - Target + Type @@ -1726,9 +2754,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource @@ -1754,9 +2782,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource @@ -1766,6 +2794,9 @@ + + + @@ -1776,6 +2807,31 @@ Type + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTags + + + + + + + + + + + + Item + diff --git a/src/MySql/Az.MySql.psd1 b/src/MySql/Az.MySql.psd1 index 67081e51a86e..290f238388ba 100644 --- a/src/MySql/Az.MySql.psd1 +++ b/src/MySql/Az.MySql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/21/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.MySql.psm1' # Version number of this module. -ModuleVersion = '0.2.0' +ModuleVersion = '0.3.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.MySql.private.dll' @@ -63,21 +63,36 @@ RequiredAssemblies = './bin/Az.MySql.private.dll' # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.MySql.format.ps1xml' +FormatsToProcess = 'Az.MySql.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = 'Get-AzMySqlConfiguration', 'Get-AzMySqlConnectionString', - 'Get-AzMySqlFirewallRule', 'Get-AzMySqlReplica', 'Get-AzMySqlServer', - 'Get-AzMySqlVirtualNetworkRule', 'New-AzMySqlFirewallRule', - 'New-AzMySqlReplica', 'New-AzMySqlServer', - 'New-AzMySqlVirtualNetworkRule', 'Remove-AzMySqlFirewallRule', - 'Remove-AzMySqlServer', 'Remove-AzMySqlVirtualNetworkRule', - 'Restart-AzMySqlServer', 'Restore-AzMySqlServer', - 'Update-AzMySqlConfiguration', 'Update-AzMySqlFirewallRule', - 'Update-AzMySqlServer', 'Update-AzMySqlVirtualNetworkRule' + 'Get-AzMySqlFirewallRule', 'Get-AzMySqlFlexibleServer', + 'Get-AzMySqlFlexibleServerConfiguration', + 'Get-AzMySqlFlexibleServerDatabase', + 'Get-AzMySqlFlexibleServerFirewallRule', + 'Get-AzMySqlFlexibleServerReplica', 'Get-AzMySqlReplica', + 'Get-AzMySqlServer', 'Get-AzMySqlVirtualNetworkRule', + 'New-AzMySqlFirewallRule', 'New-AzMySqlFlexibleServer', + 'New-AzMySqlFlexibleServerDatabase', + 'New-AzMySqlFlexibleServerFirewallRule', + 'New-AzMySqlFlexibleServerReplica', 'New-AzMySqlReplica', + 'New-AzMySqlServer', 'New-AzMySqlVirtualNetworkRule', + 'Remove-AzMySqlFirewallRule', 'Remove-AzMySqlFlexibleServer', + 'Remove-AzMySqlFlexibleServerDatabase', + 'Remove-AzMySqlFlexibleServerFirewallRule', 'Remove-AzMySqlServer', + 'Remove-AzMySqlVirtualNetworkRule', 'Restart-AzMySqlFlexibleServer', + 'Restart-AzMySqlServer', 'Restore-AzMySqlFlexibleServer', + 'Restore-AzMySqlServer', 'Start-AzMySqlFlexibleServer', + 'Stop-AzMySqlFlexibleServer', 'Update-AzMySqlConfiguration', + 'Update-AzMySqlFirewallRule', 'Update-AzMySqlFlexibleServer', + 'Update-AzMySqlFlexibleServerConfiguration', + 'Update-AzMySqlFlexibleServerDatabase', + 'Update-AzMySqlFlexibleServerFirewallRule', 'Update-AzMySqlServer', + 'Update-AzMySqlVirtualNetworkRule' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -115,13 +130,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Removed legacy SkuSize from input and output (#11725) -* Added AllowAll & ClientIpAddress Modes to firewall rule cmdlets (#11932) -* specified a default name when created MySql firewall rule without a name (#11932) -* Added validateset for parameter StorageAutogrow (#11936) -* Renamed New-AzMySqlServerReplica to New-AzMySqlReplica (#11938) -* Used ''master'' and ''replica'' to avoid confusion when created mysql replica server (#11939) -* Provided hint in doc to use Update-AzMySqlServer & Update-AzMySqlServerConfiguration as a candidate for each other (#11954)' + ReleaseNotes = '* Added MySql flexible server cmdlets' # Prerelease string of this module # Prerelease = '' diff --git a/src/MySql/ChangeLog.md b/src/MySql/ChangeLog.md index d1203c62b48c..306283775987 100644 --- a/src/MySql/ChangeLog.md +++ b/src/MySql/ChangeLog.md @@ -19,6 +19,9 @@ --> ## Upcoming Release +## Version 0.3.0 +* Added MySql flexible server cmdlets + ## Version 0.2.0 * Removed legacy SkuSize from input and output (#11725) * Added AllowAll & ClientIpAddress Modes to firewall rule cmdlets (#11932) diff --git a/src/MySql/Properties/AssemblyInfo.cs b/src/MySql/Properties/AssemblyInfo.cs index fde71160bc48..35c99a435820 100644 --- a/src/MySql/Properties/AssemblyInfo.cs +++ b/src/MySql/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("00815AB0-DED8-4FE1-A7F0-5A98B87EAA3D")] -[assembly: AssemblyVersion("0.2.0")] -[assembly: AssemblyFileVersion("0.2.0")] +[assembly: AssemblyVersion("0.3.0")] +[assembly: AssemblyFileVersion("0.3.0")] diff --git a/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..f25d490deb15 --- /dev/null +++ b/src/MySql/custom/New-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,206 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new MySQL flexible server +.Description +Creates a new MySQL flexible server +#> +function New-AzMySqlFlexibleServer { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] + [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new server.')] + param( + [Parameter(Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(HelpMessage = 'The location the resource resides in.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Location}, + + [Parameter(Mandatory, HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${AdministratorUserName}, + + [Parameter(Mandatory, HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + [ValidateNotNullOrEmpty()] + ${AdministratorLoginPassword}, + + [Parameter(HelpMessage = 'The name of the sku, typically, tier + family + cores, e.g. Standard_B1ms, Standard_D2ds_v4.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage = 'Compute tier of the server. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${SkuTier}, + + [Parameter(HelpMessage = "Backup retention days for the server. Day count is between 7 and 35.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${BackupRetentionDay}, + + [Parameter(HelpMessage = 'Max storage allowed for a server.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${StorageInMb}, + + [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + ${Tag}, + + [Parameter(HelpMessage = 'Server version.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + ${Version}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + if ($PSBoundParameters.ContainsKey('Name')) { + $PSBoundParameters.ServerName = $PSBoundParameters['Name'] + $null = $PSBoundParameters.Remove('Name') + } + + if ($PSBoundParameters.ContainsKey('Sku')) { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + else { + $PSBoundParameters.SkuName = 'Standard_B1ms' + } + + if ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { + $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] + $null = $PSBoundParameters.Remove('BackupRetentionDay') + } + else { + $PSBoundParameters.StorageProfileBackupRetentionDay = 7 + } + + if ($PSBoundParameters.ContainsKey('StorageInMb')) { + $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] + $null = $PSBoundParameters.Remove('StorageInMb') + } + else { + $PSBoundParameters.StorageProfileStorageMb = 10240 + } + + if (!$PSBoundParameters.ContainsKey('Version')) { + $PSBoundParameters.Version = '5.7' + } + + if (!$PSBoundParameters.ContainsKey('SkuTier')) { + $PSBoundParameters.SkuTier = 'Burstable' + } + + if (!$PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters.Location = 'westus2' + } + + if ($PSBoundParameters.ContainsKey('AdministratorUserName')) { + $PSBoundParameters.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] + $null = $PSBoundParameters.Remove('AdministratorUserName') + } + + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::Default + $PSBoundParameters.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + + Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} + + diff --git a/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..2ebfba5f8681 --- /dev/null +++ b/src/MySql/custom/New-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,182 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule for MySQL flexible server +.Description +Creates a new firewall rule for MySQL flexible server +#> +function New-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter()] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + # If not specified, the default is undefined. + # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + ${AllowAll}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + if($PSBoundParameters.ContainsKey('AllowAll')) + { + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = Get-Date -Format "AllowAll_yyyy-MM-dd_HH-mm-ss" + } + $PSBoundParameters['StartIPAddress'] = "0.0.0.0" + $PSBoundParameters['EndIPAddress'] = "255.255.255.255" + + $null = $PSBoundParameters.Remove('AllowAll') + } + elseif($PSBoundParameters.ContainsKey('ClientIPAddress')) + { + $PSBoundParameters['StartIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['ClientIPAddress'] + + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = "ClientIPAddress_" + (Get-Date -Format "yyyy-MM-dd_HH-mm-ss") + } + + $null = $PSBoundParameters.Remove('ClientIPAddress') + } + else + { + if(!$PSBoundParameters.ContainsKey('Name')) + { + $PSBoundParameters['Name'] = "undefined" + } + } + $PSBoundParameters['FirewallRuleName'] = $PSBoundParameters['Name'] + $null = $PSBoundParameters.Remove('Name') + + Az.MySql.internal\New-AzMySqlFlexibleServerFirewallRule @PSBoundParameters + } catch { + throw + } +} +} diff --git a/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 b/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 new file mode 100644 index 000000000000..731b910d1b57 --- /dev/null +++ b/src/MySql/custom/New-AzMySqlFlexibleServerReplica.ps1 @@ -0,0 +1,129 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a replica server for a MySQL flexible server +.Description +Creates a replica server for a MySQL flexible server +#> + +function New-AzMySqlFlexibleServerReplica { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] + [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new replica from an existing database.')] + param( + [Parameter(Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ReplicaServerName', 'Name')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Replica}, + + [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] + [Alias('InputObject')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + ${Master}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::Replica + + $server = $PSBoundParameters['Master'] + $PSBoundParameters.SourceServerId = $server.Id + $PSBoundParameters.Location = $server.Location + $null = $PSBoundParameters.Remove('Master') + + if ($PSBoundParameters.ContainsKey('Replica')) + { + $PSBoundParameters['ServerName'] = $PSBoundParameters['Replica'] + $null = $PSBoundParameters.Remove('Replica') + } + + Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} + + diff --git a/src/MySql/custom/New-AzMySqlServer.ps1 b/src/MySql/custom/New-AzMySqlServer.ps1 index ba28f06af47b..08b267a26ce0 100644 --- a/src/MySql/custom/New-AzMySqlServer.ps1 +++ b/src/MySql/custom/New-AzMySqlServer.ps1 @@ -40,12 +40,12 @@ function New-AzMySqlServer { [System.String] ${Location}, - [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Parameter(Mandatory, HelpMessage = 'Administrator username for the server. Once set, it cannot be changed.')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] ${AdministratorUserName}, - [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Parameter(Mandatory, HelpMessage = 'The password of the administrator. Minimum 8 characters and maximum 128 characters. Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters.')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.Security.SecureString] [ValidateNotNullOrEmpty()] @@ -212,7 +212,7 @@ function New-AzMySqlServer { $Parameter.Property.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] $null = $PSBoundParameters.Remove('AdministratorUserName') - $Parameter.Property.AdministratorLoginPassword = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['AdministratorLoginPassword'])) + $Parameter.Property.AdministratorLoginPassword = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] $null = $PSBoundParameters.Remove('AdministratorLoginPassword') $PSBoundParameters.Add('Parameter', $Parameter) diff --git a/src/MySql/custom/Restore-AzMySqlFlexibleServer_PointInTimeRestore.ps1 b/src/MySql/custom/Restore-AzMySqlFlexibleServer_PointInTimeRestore.ps1 new file mode 100644 index 000000000000..29e8e836dda7 --- /dev/null +++ b/src/MySql/custom/Restore-AzMySqlFlexibleServer_PointInTimeRestore.ps1 @@ -0,0 +1,133 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +function Restore-AzMySqlFlexibleServer_PointInTimeRestore { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] + [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Restore a server from an existing backup')] + param( + [Parameter(Mandatory, HelpMessage = 'The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(Mandatory, HelpMessage = 'The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + ${RestorePointInTime}, + + [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to restore from.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + ${InputObject}, + + [Parameter(HelpMessage = 'The name of the sku, e.g., Standard_D2ds_v4, Standard_B1ms')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode]::PointInTimeRestore + + $server = $PSBoundParameters['InputObject'] + $PSBoundParameters.SourceServerId = $server.Id + $PSBoundParameters.Location = $server.Location + $PSBoundParameters.SkuName = $server.SkuName + $null = $PSBoundParameters.Remove('InputObject') + + if($PSBoundParameters.ContainsKey('Sku')) + { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + + + Az.MySql.internal\New-AzMySqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} + + diff --git a/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 b/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..ee1d9961c2ad --- /dev/null +++ b/src/MySql/custom/Update-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,189 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing MySQL flexible server. The request body can contain one to many of the properties present in the normal server definition. Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +.Description +Updates an existing MySQL flexible server. The request body can contain one to many of the properties present in the normal server definition. Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +#> + +function Update-AzMySqlFlexibleServer { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] + [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The name of the server.')] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', HelpMessage='The subscription ID that identifies an Azure subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline, HelpMessage='Identity Parameter. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + ${InputObject}, + + [Parameter(HelpMessage='The password of the administrator login.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + ${AdministratorLoginPassword}, + + [Parameter(HelpMessage='The replication role of the server.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${ReplicationRole}, + + [Parameter(HelpMessage='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + ${Sku}, + + [Parameter(HelpMessage='The tier of the particular SKU, e.g. Basic.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + ${SkuTier}, + + [Parameter(HelpMessage='Enable or disable high availability feature.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(HelpMessage='Enable ssl enforcement or not when connect to server.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + ${SslEnforcement}, + + [Parameter(HelpMessage='Backup retention days for the server. Day count is between 7 and 35.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${BackupRetentionDay}, + + [Parameter(HelpMessage='Enable Storage Auto Grow.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Validateset('Enabled', 'Disabled')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + ${StorageAutogrow}, + + [Parameter(HelpMessage='Max storage allowed for a server.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + ${StorageInMb}, + + [Parameter(HelpMessage='Application-specific metadata in the form of key-value pairs.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersTags]))] + [System.Collections.Hashtable] + ${Tag}, + + [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(HelpMessage = 'Run the command as a job.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${AsJob}, + + [Parameter(DontShow, HelpMessage = 'Wait for .NET debugger to attach.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter(HelpMessage = 'Run the command asynchronously.')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} + ) + + process { + try { + if ($PSBoundParameters.ContainsKey('StorageInMb')) { + $PSBoundParameters.StorageProfileStorageMb = $PSBoundParameters['StorageInMb'] + $null = $PSBoundParameters.Remove('StorageInMb') + } + + if ($PSBoundParameters.ContainsKey('Sku')) { + $PSBoundParameters.SkuName = $PSBoundParameters['Sku'] + $null = $PSBoundParameters.Remove('Sku') + } + + if ($PSBoundParameters.ContainsKey('BackupRetentionDay')) { + $PSBoundParameters.StorageProfileBackupRetentionDay = $PSBoundParameters['BackupRetentionDay'] + $null = $PSBoundParameters.Remove('BackupRetentionDay') + } + + if ($PSBoundParameters.ContainsKey('StorageAutogrow')) { + $PSBoundParameters.StorageProfileStorageAutogrow = $PSBoundParameters['StorageAutogrow'] + $null = $PSBoundParameters.Remove('StorageAutogrow') + } + + Az.MySql.internal\Update-AzMySqlFlexibleServer @PSBoundParameters + } catch { + throw + } + } +} diff --git a/src/MySql/custom/Update-AzMySqlFlexibleServerConfiguration.ps1 b/src/MySql/custom/Update-AzMySqlFlexibleServerConfiguration.ps1 new file mode 100644 index 000000000000..2ddd746b9799 --- /dev/null +++ b/src/MySql/custom/Update-AzMySqlFlexibleServerConfiguration.ps1 @@ -0,0 +1,147 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates information about a configuration of a MySQL flexible server. +.Description +Updates information about a configuration of a MySQL flexible server. +#> + +function Update-AzMySqlFlexibleServerConfiguration { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] + [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(HelpMessage = 'The source of the updating value. The default value is user-override')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Source of the configuration. + ${Source}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Value of the configuration. + ${Value}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + if(!$PSBoundParameters.ContainsKey('Source')) + { + $PSBoundParameters.Source = 'user-override' + } + Az.MySql.internal\Update-AzMySqlFlexibleServerConfiguration @PSBoundParameters + } catch { + throw + } +} +} \ No newline at end of file diff --git a/src/MySql/custom/Update-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/custom/Update-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..f73867622805 --- /dev/null +++ b/src/MySql/custom/Update-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,162 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing firewall rule. +.Description +Updates an existing firewall rule. +#> +function Update-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ClientIPAddress')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + try { + if($PSBoundParameters.ContainsKey('ClientIPAddress')) + { + $PSBoundParameters['StartIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $PSBoundParameters['EndIPAddress'] = $PSBoundParameters['ClientIPAddress'] + $null = $PSBoundParameters.Remove('ClientIPAddress') + } + Az.MySql.internal\Update-AzMySqlFlexibleServerFirewallRule @PSBoundParameters + } catch { + throw + } +} +} diff --git a/src/MySql/custom/Update-AzMySqlServer.ps1 b/src/MySql/custom/Update-AzMySqlServer.ps1 index b7e4694aace9..0b7cc7619c02 100644 --- a/src/MySql/custom/Update-AzMySqlServer.ps1 +++ b/src/MySql/custom/Update-AzMySqlServer.ps1 @@ -159,9 +159,9 @@ function Update-AzMySqlServer { process { try { if ($PSBoundParameters.ContainsKey('AdministratorLoginPassword')) { - $bStr = [System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['AdministratorLoginPassword']) + $password = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AdministratorLoginPassword'] + $PSBoundParameters.Add('AdministratorLoginPassword', $password) $null = $PSBoundParameters.Remove('AdministratorLoginPassword') - $PSBoundParameters.Add('AdministratorLoginPassword', [System.Runtime.InteropServices.marshal]::PtrToStringAuto($bStr)) } if ($PSBoundParameters.ContainsKey('StorageInMb')) { diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServer.md b/src/MySql/examples/Get-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..4c9f3a9ce3b7 --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServer.md @@ -0,0 +1,45 @@ +### Example 1: Get MySql server with default context +```powershell +PS C:\> Get-AzMySqlFlexibleServer + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql servers with default context. + +### Example 2: Get MySql server by resource group and server name +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql servers by resource group and server name. + +### Example 3: Lists all the MySql servers in specified resource group +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +mysql-test-12 westus2 mysql_test2 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet lists all the MySql servers in the specified resource group. + +### Example 4: Get MySql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet lists gets MySql servers by identity. \ No newline at end of file diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerConfiguration.md b/src/MySql/examples/Get-AzMySqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..51afc3e28fbd --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerConfiguration.md @@ -0,0 +1,35 @@ +### Example 1: List all configurations in specified MySql server +```powershell +PS C:\> Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +archive OFF OFF system-default ON, OFF Enumeration +... +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet lists all configurations in specified MySql server. + +### Example 2: Get specified MySql configuration by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet gets specified MySql configuration by name. + +### Example 3: List configuration by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet gets specified MySql configuration by identity. diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerDatabase.md b/src/MySql/examples/Get-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..aae9780b97b2 --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,35 @@ +### Example 1: Get a MySql database by resource name +```powershell +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name flexibleserverdb + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +``` + +This cmdlet gets MySql server by resource name. + +### Example 2: Get MySql databases by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServerDatabase -InputObject $ID + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci +``` + +This cmdlet gets a MySql server by identity. + +### Example 3: Lists all the MySql databases in the specified server +```powershell +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci +``` + +This cmdlet lists all the MySql servers in specified the server. \ No newline at end of file diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/examples/Get-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..2716beac48bf --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,34 @@ +### Example 1: Get firewall rules by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by name. + +### Example 2: Get firewall rules by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by identity. + +### Example 3: Lists all the firewall rules in the specified MySql server +```powershell +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 +``` + +This cmdlet lists all the firewall rule in specified MySql server. diff --git a/src/MySql/examples/Get-AzMySqlFlexibleServerReplica.md b/src/MySql/examples/Get-AzMySqlFlexibleServerReplica.md new file mode 100644 index 000000000000..de730fe897b0 --- /dev/null +++ b/src/MySql/examples/Get-AzMySqlFlexibleServerReplica.md @@ -0,0 +1,10 @@ +### Example 1: Get MySql server replica by resource group and server name +```powershell +PS C:\> Get-AzMySqlFlexibleServerReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql server replica by resource group and server name. diff --git a/src/MySql/examples/New-AzMySqlFirewallRule.md b/src/MySql/examples/New-AzMySqlFirewallRule.md index 3a87d6a001ce..0e48b8755a29 100644 --- a/src/MySql/examples/New-AzMySqlFirewallRule.md +++ b/src/MySql/examples/New-AzMySqlFirewallRule.md @@ -22,7 +22,7 @@ This cmdlets create a MySql Firewall Rule using -ClientIPAddress. ### Example 3: Create a new MySql Firewall Rule to allow all IPs ```powershell -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll Name StartIPAddress EndIPAddress ---- -------------- ------------ diff --git a/src/MySql/examples/New-AzMySqlFlexibleServer.md b/src/MySql/examples/New-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..64e45818b4d8 --- /dev/null +++ b/src/MySql/examples/New-AzMySqlFlexibleServer.md @@ -0,0 +1,22 @@ +### Example 1: Create a new MySql flexible server +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +``` + + +### Example 2: Create a new MySql flexible server with default setting +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable +``` + +Create MySql server with default values. The default values of location is West US 2, Sku is Standard_B1ms, Sku tier is Burstable, and storage size is 10GiB. \ No newline at end of file diff --git a/src/MySql/examples/New-AzMySqlFlexibleServerDatabase.md b/src/MySql/examples/New-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..b5b7f4e3b90f --- /dev/null +++ b/src/MySql/examples/New-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,9 @@ +### Example 1: Create a new MySql server database +```powershell +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci +``` +Create a database with default settings. diff --git a/src/MySql/examples/New-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/examples/New-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..a83a9b2ccb7f --- /dev/null +++ b/src/MySql/examples/New-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,33 @@ +### Example 1: Create a new MySql server Firewall Rule +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +``` + +This cmdlets create a MySql server Firewall Rule. + + +### Example 2: Create a new MySql Firewall Rule using -ClientIPAddress. +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +``` + +This cmdlets create a MySql Firewall Rule using -ClientIPAddress. + +### Example 3: Create a new MySql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +``` + +This cmdlets create a new MySql Firewall Rule to allow all IPs. \ No newline at end of file diff --git a/src/MySql/examples/New-AzMySqlFlexibleServerReplica.md b/src/MySql/examples/New-AzMySqlFlexibleServerReplica.md new file mode 100644 index 000000000000..4281d8020944 --- /dev/null +++ b/src/MySql/examples/New-AzMySqlFlexibleServerReplica.md @@ -0,0 +1,22 @@ +### Example 1: Create a new MySql server replica +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlFlexibleServerReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +``` + +This cmdlet creates a new MySql server replica. + +### Example 2: Create a new MySql server replica +```powershell +PS C:\> $mysql = Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> New-AzMySqlFlexibleServerReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +``` + +This cmdlet with parameter master(inputobject) creates a new MySql server replica. diff --git a/src/MySql/examples/Remove-AzMySqlFlexibleServer.md b/src/MySql/examples/Remove-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..39cf4ec63fe1 --- /dev/null +++ b/src/MySql/examples/Remove-AzMySqlFlexibleServer.md @@ -0,0 +1,16 @@ +### Example 1: Remove MySql server by resourceGroup and server name +```powershell +PS C:\> Remove-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +``` + +This cmdlet removes MySql server by resourceGroup and server name. + +### Example 2: Remove MySql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Remove-AzMySqlFlexibleServer -InputObject $ID + +``` + +These cmdlets remove MySql server by identity. \ No newline at end of file diff --git a/src/MySql/examples/Remove-AzMySqlFlexibleServerDatabase.md b/src/MySql/examples/Remove-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..c6eb53bf92bf --- /dev/null +++ b/src/MySql/examples/Remove-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,15 @@ +### Example 1: Remove MySql database by name +```powershell +PS C:\> Remove-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +``` + +This cmdlet removes MySql database by name. + +### Example 2: Remove MySql database by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/databases/databasetest" +PS C:\> Remove-AzMySqlFlexibleServerDatabase -InputObject $ID + +``` + +These cmdlets remove MySql database by identity. diff --git a/src/MySql/examples/Remove-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/examples/Remove-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..a97fc96a06e6 --- /dev/null +++ b/src/MySql/examples/Remove-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,16 @@ +### Example 1: Remove MySql Firewall Rule by name +```powershell +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +``` + +This cmdlet removes MySql Firewall Rule by name. + +### Example 2: Remove MySql Firewall Rule by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +``` + +These cmdlets remove MySql Firewall Rule by identity. diff --git a/src/MySql/examples/Restart-AzMySqlFlexibleServer.md b/src/MySql/examples/Restart-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..57bb0888d464 --- /dev/null +++ b/src/MySql/examples/Restart-AzMySqlFlexibleServer.md @@ -0,0 +1,14 @@ +### Example 1: Restart the server by resource name +```powershell +PS C:\> Restart-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Restart the server by name + +### Example 2: Restart the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/restart" +PS C:\> Restart-AzMySqlFlexibleServer -InputObject $ID +``` + +Restart the server by identity diff --git a/src/MySql/examples/Restore-AzMySqlFlexibleServer.md b/src/MySql/examples/Restore-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..96b9cf4f7367 --- /dev/null +++ b/src/MySql/examples/Restore-AzMySqlFlexibleServer.md @@ -0,0 +1,11 @@ +### Example 1: Restore MySql server using PointInTime Restore +```powershell +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlFlexibleServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-restore eastus mysql_test 5.7 10240 Standard_D2ds_v4 GeneralPurpose +``` + +These cmdlets restore MySql server using PointInTime Restore. diff --git a/src/MySql/examples/Start-AzMySqlFlexibleServer.md b/src/MySql/examples/Start-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..5ec85c71688d --- /dev/null +++ b/src/MySql/examples/Start-AzMySqlFlexibleServer.md @@ -0,0 +1,14 @@ +### Example 1: Start the server by resource name +```powershell +PS C:\> Start-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Start the server by name + +### Example 2: Start the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/start" +PS C:\> Start-AzMySqlFlexibleServer -InputObject $ID +``` + +Start the server by identity diff --git a/src/MySql/examples/Stop-AzMySqlFlexibleServer.md b/src/MySql/examples/Stop-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..81e1ea444a56 --- /dev/null +++ b/src/MySql/examples/Stop-AzMySqlFlexibleServer.md @@ -0,0 +1,15 @@ + +### Example 1: Stop the server by resource name +```powershell +PS C:\> Stop-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Stop the server by name + +### Example 2: Stop the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/stop" +PS C:\> Stop-AzMySqlFlexibleServer -InputObject $ID +``` + +Stop the server by identity diff --git a/src/MySql/examples/Update-AzMySqlFlexibleServer.md b/src/MySql/examples/Update-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..a54e60473588 --- /dev/null +++ b/src/MySql/examples/Update-AzMySqlFlexibleServer.md @@ -0,0 +1,21 @@ +### Example 1: Update MySql server by resource group and server name +```powershell +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose +``` + +This cmdlet updates MySql server by resource group and server name. + +### Example 2: Update MySql server by identity. +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet updates MySql server by identity. diff --git a/src/MySql/examples/Update-AzMySqlFlexibleServerConfiguration.md b/src/MySql/examples/Update-AzMySqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..2a2345ea23cc --- /dev/null +++ b/src/MySql/examples/Update-AzMySqlFlexibleServerConfiguration.md @@ -0,0 +1,23 @@ +### Example 1: Update MySql configuration by name +```powershell +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer +``` + +This cmdlet updates MySql configuration by name. + +### Example 2: Update MySql configuration by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer +``` + +These cmdlets update MySql configuration by identity. + diff --git a/src/MySql/examples/Update-AzMySqlFlexibleServerDatabase.md b/src/MySql/examples/Update-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..1f2b00bd390f --- /dev/null +++ b/src/MySql/examples/Update-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,20 @@ +### Example 1: Update a MySql server database by name +```powershell +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +``` +Update a database by resource name. + +### Example 2: Update MySql database by parameter. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +``` +Update a database by parameter diff --git a/src/MySql/examples/Update-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/examples/Update-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..bcc06977d902 --- /dev/null +++ b/src/MySql/examples/Update-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,22 @@ +### Example 1: Update MySql Firewall Rule by name +```powershell +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +This cmdlet updates MySql Firewall Rule by name. + +### Example 2: Update MySql Firewall Rule by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +These cmdlets update MySql Firewall Rule by identity. diff --git a/src/MySql/exports/Get-AzMySqlConfiguration.ps1 b/src/MySql/exports/Get-AzMySqlConfiguration.ps1 index 863e1bb7ddf0..3348a8ec02d1 100644 --- a/src/MySql/exports/Get-AzMySqlConfiguration.ps1 +++ b/src/MySql/exports/Get-AzMySqlConfiguration.ps1 @@ -53,6 +53,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Get-AzMySqlConnectionString.ps1 b/src/MySql/exports/Get-AzMySqlConnectionString.ps1 index bc8d204ce6e3..5c460a398cda 100644 --- a/src/MySql/exports/Get-AzMySqlConnectionString.ps1 +++ b/src/MySql/exports/Get-AzMySqlConnectionString.ps1 @@ -37,8 +37,9 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : The source server object to create replica from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) @@ -52,7 +53,6 @@ INPUTOBJECT : The source server object to create replica from. [ReplicationRole ]: The replication role of the server. [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/exports/Get-AzMySqlFirewallRule.ps1 b/src/MySql/exports/Get-AzMySqlFirewallRule.ps1 index 5edf2c7e5a75..b4afa12e22da 100644 --- a/src/MySql/exports/Get-AzMySqlFirewallRule.ps1 +++ b/src/MySql/exports/Get-AzMySqlFirewallRule.ps1 @@ -52,6 +52,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..cb5674cbf6d3 --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets information about a server. +.Description +Gets information about a server. +.Example +PS C:\> Get-AzMySqlFlexibleServer + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +mysql-test-12 westus2 mysql_test2 5.7 5120 Standard_D2ds_v4 GeneralPurpose +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserver +#> +function Get-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServer_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServer_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServer_List'; + List1 = 'Az.MySql.private\Get-AzMySqlFlexibleServer_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerConfiguration.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerConfiguration.ps1 new file mode 100644 index 000000000000..139f378f3282 --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerConfiguration.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets information about a configuration of server. +.Description +Gets information about a configuration of server. +.Example +PS C:\> Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +archive OFF OFF system-default ON, OFF Enumeration +... +wait_timeout 28800 28800 system-default 1-31536000 Integer +.Example +PS C:\> Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconfiguration +#> +function Get-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..f246a39c918a --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets information about a database. +.Description +Gets information about a database. +.Example +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name flexibleserverdb + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServerDatabase -InputObject $ID + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci +.Example +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverdatabase +#> +function Get-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..df522850d503 --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,194 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets information about a server firewall rule. +.Description +Gets information about a server firewall rule. +.Example +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +.Example +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverfirewallrule +#> +function Get-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlFlexibleServerReplica.ps1 b/src/MySql/exports/Get-AzMySqlFlexibleServerReplica.ps1 new file mode 100644 index 000000000000..3cb99b5ee22b --- /dev/null +++ b/src/MySql/exports/Get-AzMySqlFlexibleServerReplica.ps1 @@ -0,0 +1,142 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +List all the replicas for a given server. +.Description +List all the replicas for a given server. +.Example +PS C:\> Get-AzMySqlFlexibleServerReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverreplica +#> +function Get-AzMySqlFlexibleServerReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerReplica_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Get-AzMySqlServer.ps1 b/src/MySql/exports/Get-AzMySqlServer.ps1 index 3cc285401061..cd9b19ae46a5 100644 --- a/src/MySql/exports/Get-AzMySqlServer.ps1 +++ b/src/MySql/exports/Get-AzMySqlServer.ps1 @@ -58,6 +58,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Get-AzMySqlVirtualNetworkRule.ps1 b/src/MySql/exports/Get-AzMySqlVirtualNetworkRule.ps1 index 258ccc9b88b7..1f6227847ebf 100644 --- a/src/MySql/exports/Get-AzMySqlVirtualNetworkRule.ps1 +++ b/src/MySql/exports/Get-AzMySqlVirtualNetworkRule.ps1 @@ -52,6 +52,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/New-AzMySqlFirewallRule.ps1 b/src/MySql/exports/New-AzMySqlFirewallRule.ps1 index 401c8cede7b9..d7e2d4839546 100644 --- a/src/MySql/exports/New-AzMySqlFirewallRule.ps1 +++ b/src/MySql/exports/New-AzMySqlFirewallRule.ps1 @@ -31,7 +31,7 @@ Name StartIPAddress EndIPAddress ---- -------------- ------------ ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 .Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll Name StartIPAddress EndIPAddress ---- -------------- ------------ diff --git a/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..1a17c29c3d75 --- /dev/null +++ b/src/MySql/exports/New-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,225 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new MySQL flexible server +.Description +Creates a new server. +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserver +#> +function New-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Administrator username for the server. + # Once set, it cannot be changed. + ${AdministratorUserName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + # The password of the administrator. + # Minimum 8 characters and maximum 128 characters. + # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. + ${AdministratorLoginPassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # Standard_B1ms, Standard_D2ds_v4. + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Compute tier of the server. + # Accepted values: Burstable, GeneralPurpose, Memory Optimized. + # Default: Burstable. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${BackupRetentionDay}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageInMb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServer'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/New-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/exports/New-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..0e8190b9a096 --- /dev/null +++ b/src/MySql/exports/New-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,200 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverdatabase +#> +function New-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The charset of the database. + ${Charset}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The collation of the database. + ${Collation}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/New-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/exports/New-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..924d1d5f35f7 --- /dev/null +++ b/src/MySql/exports/New-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,204 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule for MySQL flexible server +.Description +Creates a new firewall rule for MySQL flexible server +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverfirewallrule +#> +function New-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + # If not specified, the default is undefined. + # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + ${AllowAll}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + AllowAll = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + } + if (('CreateExpanded', 'ClientIPAddress', 'AllowAll') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/New-AzMySqlFlexibleServerReplica.ps1 b/src/MySql/exports/New-AzMySqlFlexibleServerReplica.ps1 new file mode 100644 index 000000000000..d51bc9e3d3ae --- /dev/null +++ b/src/MySql/exports/New-AzMySqlFlexibleServerReplica.ps1 @@ -0,0 +1,205 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a replica server for a MySQL flexible server +.Description +Creates a new replica from an existing database. +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlFlexibleServerReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> $mysql = Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> New-AzMySqlFlexibleServerReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MASTER : The source server object to create replica from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverreplica +#> +function New-AzMySqlFlexibleServerReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ReplicaServerName', 'Name')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Replica}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Alias('InputObject')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # The source server object to create replica from. + # To construct, see NOTES section for MASTER properties and create a hash table. + ${Master}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServerReplica'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/New-AzMySqlReplica.ps1 b/src/MySql/exports/New-AzMySqlReplica.ps1 index 0bcf936f0f91..6c3142532b6b 100644 --- a/src/MySql/exports/New-AzMySqlReplica.ps1 +++ b/src/MySql/exports/New-AzMySqlReplica.ps1 @@ -42,8 +42,9 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. MASTER : The source server object to create replica from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) @@ -57,7 +58,6 @@ MASTER : The source server object to create replica from. [ReplicationRole ]: The replication role of the server. [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/exports/New-AzMySqlServer.ps1 b/src/MySql/exports/New-AzMySqlServer.ps1 index 3df081b8547f..ffebff86539d 100644 --- a/src/MySql/exports/New-AzMySqlServer.ps1 +++ b/src/MySql/exports/New-AzMySqlServer.ps1 @@ -63,13 +63,16 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The location the resource resides in. + # Administrator username for the server. + # Once set, it cannot be changed. ${AdministratorUserName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.Security.SecureString] - # The location the resource resides in. + # The password of the administrator. + # Minimum 8 characters and maximum 128 characters. + # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. ${AdministratorLoginPassword}, [Parameter(Mandatory)] diff --git a/src/MySql/exports/ProxyCmdletDefinitions.ps1 b/src/MySql/exports/ProxyCmdletDefinitions.ps1 index 9ed23fc974f7..f33e96c5f8c4 100644 --- a/src/MySql/exports/ProxyCmdletDefinitions.ps1 +++ b/src/MySql/exports/ProxyCmdletDefinitions.ps1 @@ -53,6 +53,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -245,6 +246,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -400,45 +402,96 @@ end { <# .Synopsis -List all the replicas for a given server. +Gets information about a configuration of server. .Description -List all the replicas for a given server. +Gets information about a configuration of server. .Example -PS C:\> Get-AzMySqlReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +archive OFF OFF system-default ON, OFF Enumeration +... +wait_timeout 28800 28800 system-default 1-31536000 Integer +.Example +PS C:\> Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlreplica +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconfiguration #> -function Get-AzMySqlReplica { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +function Get-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -495,9 +548,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.MySql.private\Get-AzMySqlReplica_List'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerConfiguration_List'; } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -542,39 +597,35 @@ end { <# .Synopsis -Gets information about a server. +Gets information about a database. .Description -Gets information about a server. -.Example -PS C:\> Get-AzMySqlServer - -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-11 eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +Gets information about a database. .Example -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name flexibleserverdb -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci .Example -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServerDatabase -InputObject $ID -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- ------------ -mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test" -PS C:\> Get-AzMySqlServer -InputObject $ID +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- ------------ -mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -585,6 +636,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -592,17 +644,17 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverdatabase #> -function Get-AzMySqlServer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +function Get-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('ServerName')] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. + # The name of the database. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -613,9 +665,15 @@ param( # The name is case insensitive. ${ResourceGroupName}, + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] @@ -685,12 +743,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.MySql.private\Get-AzMySqlServer_Get'; - GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServer_GetViaIdentity'; - List = 'Az.MySql.private\Get-AzMySqlServer_List'; - List1 = 'Az.MySql.private\Get-AzMySqlServer_List1'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerDatabase_List'; } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -735,33 +792,34 @@ end { <# .Synopsis -Gets a virtual network rule. +Gets information about a server firewall rule. .Description -Gets a virtual network rule. +Gets information about a server firewall rule. .Example -PS C:\> Get-AzMySqlVirtualNetworkRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 .Example -PS C:\> Get-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -InputObject $ID -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" -PS C:\> Get-AzMySqlVirtualNetworkRule -InputObject $ID +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Notes COMPLEX PARAMETER PROPERTIES @@ -772,6 +830,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -779,17 +838,17 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlvirtualnetworkrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverfirewallrule #> -function Get-AzMySqlVirtualNetworkRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] +function Get-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('VirtualNetworkRuleName')] + [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the virtual network rule. + # The name of the server firewall rule. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -850,12 +909,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -884,9 +937,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_Get'; - GetViaIdentity = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_GetViaIdentity'; - List = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_List'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerFirewallRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -933,33 +986,25 @@ end { <# .Synopsis -Creates or updates an existing virtual network rule. +List all the replicas for a given server. .Description -Creates or updates an existing virtual network rule. +List all the replicas for a given server. .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" -PS C:\> New-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -SubnetId $ID +PS C:\> Get-AzMySqlFlexibleServerReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlvirtualnetworkrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverreplica #> -function New-AzMySqlVirtualNetworkRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlFlexibleServerReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] - [Alias('VirtualNetworkRuleName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the virtual network rule. - ${Name}, - [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] @@ -976,22 +1021,10 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The ARM resource id of the virtual network subnet. - ${SubnetId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Create firewall rule before the virtual network has vnet service endpoint enabled. - ${IgnoreMissingVnetServiceEndpoint}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1000,12 +1033,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1026,18 +1053,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -1066,9 +1081,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateExpanded'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerReplica_List'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1113,21 +1128,40 @@ end { <# .Synopsis -Deletes a server firewall rule. +Gets information about a server. .Description -Deletes a server firewall rule. +Gets information about a server. .Example -PS C:\> Remove-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> Get-AzMySqlFlexibleServer +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -PS C:\> Remove-AzMySqlFirewallRule -InputObject $ID - +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +mysql-test-12 westus2 mysql_test2 5.7 5120 Standard_D2ds_v4 GeneralPurpose +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated .Notes COMPLEX PARAMETER PROPERTIES @@ -1138,6 +1172,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1145,40 +1180,37 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlfirewallrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserver #> -function Remove-AzMySqlFirewallRule { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('FirewallRuleName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server firewall rule. + # The name of the server. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${ServerName}, - - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter @@ -1193,12 +1225,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1219,26 +1245,14 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] + [Parameter(DontShow)] + [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call @@ -1259,10 +1273,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.MySql.private\Remove-AzMySqlFirewallRule_Delete'; - DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFirewallRule_DeleteViaIdentity'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServer_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServer_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServer_List'; + List1 = 'Az.MySql.private\Get-AzMySqlFlexibleServer_List1'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1307,71 +1323,44 @@ end { <# .Synopsis -Deletes a server. +List all the replicas for a given server. .Description -Deletes a server. +List all the replicas for a given server. .Example -PS C:\> Remove-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +PS C:\> Get-AzMySqlReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -.Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test" -PS C:\> Remove-AzMySqlServer -InputObject $ID - +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ConfigurationName ]: The name of the server configuration. - [DatabaseName ]: The name of the database. - [FirewallRuleName ]: The name of the server firewall rule. - [Id ]: Resource identity path - [LocationName ]: The name of the location. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SecurityAlertPolicyName ]: The name of the security alert policy. - [ServerName ]: The name of the server. - [SubscriptionId ]: The ID of the target subscription. - [VirtualNetworkRuleName ]: The name of the virtual network rule. +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlreplica #> -function Remove-AzMySqlServer { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('ServerName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, + # The name of the server. + ${ServerName}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1381,12 +1370,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1407,18 +1390,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -1447,10 +1418,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.MySql.private\Remove-AzMySqlServer_Delete'; - DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlServer_DeleteViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlReplica_List'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1495,21 +1465,39 @@ end { <# .Synopsis -Deletes the virtual network rule with the given name. +Gets information about a server. .Description -Deletes the virtual network rule with the given name. +Gets information about a server. .Example -PS C:\> Remove-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest-ServerName mysql-test +PS C:\> Get-AzMySqlServer +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-11 eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" -PS C:\> Remove-AzMySqlVirtualNetworkRule -InputObject $ID - +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +.Example +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- ------------ +mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test" +PS C:\> Get-AzMySqlServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- ------------ +mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer .Notes COMPLEX PARAMETER PROPERTIES @@ -1520,6 +1508,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1527,40 +1516,37 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlvirtualnetworkrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserver #> -function Remove-AzMySqlVirtualNetworkRule { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('VirtualNetworkRuleName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the virtual network rule. + # The name of the server. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${ServerName}, - - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter @@ -1575,12 +1561,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1601,18 +1581,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -1641,10 +1609,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.MySql.private\Remove-AzMySqlVirtualNetworkRule_Delete'; - DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlVirtualNetworkRule_DeleteViaIdentity'; + Get = 'Az.MySql.private\Get-AzMySqlServer_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServer_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlServer_List'; + List1 = 'Az.MySql.private\Get-AzMySqlServer_List1'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1689,21 +1659,33 @@ end { <# .Synopsis -Restarts a server. +Gets a virtual network rule. .Description -Restarts a server. +Gets a virtual network rule. .Example -PS C:\> Restart-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +PS C:\> Get-AzMySqlVirtualNetworkRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/restart" -PS C:\> Restart-AzMySqlServer -InputObject $ID - +PS C:\> Get-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" +PS C:\> Get-AzMySqlVirtualNetworkRule -InputObject $ID + +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule .Notes COMPLEX PARAMETER PROPERTIES @@ -1714,6 +1696,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1721,34 +1704,43 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/restart-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlvirtualnetworkrule #> -function Restart-AzMySqlServer { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlVirtualNetworkRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Restart', Mandatory)] - [Alias('ServerName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('VirtualNetworkRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. + # The name of the virtual network rule. ${Name}, - [Parameter(ParameterSetName='Restart', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Restart')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter @@ -1763,13 +1755,7 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach @@ -1789,12 +1775,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1829,10 +1809,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Restart = 'Az.MySql.private\Restart-AzMySqlServer_Restart'; - RestartViaIdentity = 'Az.MySql.private\Restart-AzMySqlServer_RestartViaIdentity'; + Get = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlVirtualNetworkRule_List'; } - if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1877,29 +1858,20 @@ end { <# .Synopsis -Creates or updates an existing virtual network rule. +Creates a new database or updates an existing database. .Description -Creates or updates an existing virtual network rule. -.Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2" -PS C:\> Update-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID - -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +Creates a new database or updates an existing database. .Example -PS C:\> $SubnetID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" -PS C:\> $VNetID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" -PS C:\> Update-AzMySqlVirtualNetworkRule -InputObject $VNetID -SubnetId $SubnetID +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -1910,6 +1882,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1917,57 +1890,57 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlvirtualnetworkrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverdatabase #> -function Update-AzMySqlVirtualNetworkRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('VirtualNetworkRuleName')] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the virtual network rule. + # The name of the database. ${Name}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The ARM resource id of the virtual network subnet. - ${SubnetId}, + # The charset of the database. + ${Charset}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Create firewall rule before the virtual network has vnet service endpoint enabled. - ${IgnoreMissingVnetServiceEndpoint}, + [System.String] + # The collation of the database. + ${Collation}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2009,12 +1982,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -2043,10 +2010,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - UpdateExpanded = 'Az.MySql.private\Update-AzMySqlVirtualNetworkRule_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2091,92 +2058,64 @@ end { <# .Synopsis -Get the connection string according to client connection provider. +Creates or updates an existing virtual network rule. .Description -Get the connection string according to client connection provider. -.Example -PS C:\> Get-AzMySqlConnectionString -Client ADO.NET -Name mysql-test -ResourceGroupName PowershellMySqlTest - -Server=mysql-test.mysql.database.azure.com; Port=3306; Database={your_database}; Uid=mysql_test@mysql-test; Pwd={your_password}; +Creates or updates an existing virtual network rule. .Example -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlConnectionString -Client PHP +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" +PS C:\> New-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -SubnetId $ID -$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test@mysql-test", {your_password}, {your_database}, 3306); +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer .Outputs -System.String -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : The source server object to create replica from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. - [(Any) ]: This indicates any property can be added to this object. - [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) - [FullyQualifiedDomainName ]: The fully qualified domain name of a server. - [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. - [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. - [MasterServerId ]: The master server id of a replica server. - [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. - [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' - [ReplicaCapacity ]: The maximum number of replicas that a master server can have. - [ReplicationRole ]: The replication role of the server. - [SkuCapacity ]: The scale up/out capacity, representing server's compute units. - [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - [SkuSize ]: The size code, to be interpreted by resource as appropriate. - [SkuTier ]: The tier of the particular SKU, e.g. Basic. - [SslEnforcement ]: Enable ssl enforcement or not when connect to server. - [StorageProfileBackupRetentionDay ]: Backup retention days for the server. - [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. - [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. - [StorageProfileStorageMb ]: Max storage allowed for a server. - [UserVisibleState ]: A state of a server that is visible to user. - [Version ]: Server version. +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlconnectionstring +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlvirtualnetworkrule #> -function Get-AzMySqlConnectionString { -[OutputType([System.String])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function New-AzMySqlVirtualNetworkRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] + [Alias('VirtualNetworkRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # Client connection provider. - ${Client}, + # The name of the virtual network rule. + ${Name}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('ServerName')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. - ${Name}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. - ${ResourceGroupName}, + # The name of the server. + ${ServerName}, - [Parameter(ParameterSetName='Get')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription ID that identifies an Azure subscription. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] - # The source server object to create replica from. - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [System.String] + # The ARM resource id of the virtual network subnet. + ${SubnetId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Create firewall rule before the virtual network has vnet service endpoint enabled. + ${IgnoreMissingVnetServiceEndpoint}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2186,38 +2125,61 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach. + # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] + # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) @@ -2229,10 +2191,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.MySql.custom\Get-AzMySqlConnectionString'; - GetViaIdentity = 'Az.MySql.custom\Get-AzMySqlConnectionString'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateExpanded'; } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2277,92 +2238,78 @@ end { <# .Synopsis -Creates a new firewall rule or updates an existing firewall rule. +Deletes a server firewall rule. .Description -Creates a new firewall rule or updates an existing firewall rule. +Deletes a server firewall rule. .Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 +PS C:\> Remove-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.0 0.0.0.1 .Example -PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" +PS C:\> Remove-AzMySqlFirewallRule -InputObject $ID + -Name StartIPAddress EndIPAddress ----- -------------- ------------ -ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 -.Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES -Name StartIPAddress EndIPAddress ----- -------------- ------------ -AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlfirewallrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlfirewallrule #> -function New-AzMySqlFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzMySqlFirewallRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter()] - [Alias('FirewallRuleName')] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server firewall rule. - # If not specified, the default is undefined. - # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The end IP address of the server firewall rule. - # Must be IPv4 format. - ${EndIPAddress}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The start IP address of the server firewall rule. - # Must be IPv4 format. - ${StartIPAddress}, - - [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Client specified single IP of the server firewall rule. - # Must be IPv4 format. - ${ClientIPAddress}, - - [Parameter(ParameterSetName='AllowAll', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. - ${AllowAll}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2404,6 +2351,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -2432,11 +2385,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MySql.custom\New-AzMySqlFirewallRule'; - ClientIPAddress = 'Az.MySql.custom\New-AzMySqlFirewallRule'; - AllowAll = 'Az.MySql.custom\New-AzMySqlFirewallRule'; + Delete = 'Az.MySql.private\Remove-AzMySqlFirewallRule_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFirewallRule_DeleteViaIdentity'; } - if (('CreateExpanded', 'ClientIPAddress', 'AllowAll') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2481,105 +2433,77 @@ end { <# .Synopsis -Creates a new replica from an existing database. +Deletes a database. .Description -Creates a new replica from an existing database. +Deletes a database. .Example -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest - -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +PS C:\> Remove-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test .Example -PS C:\> $mysql = Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -PS C:\> New-AzMySqlReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest - -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/databases/databasetest" +PS C:\> Remove-AzMySqlFlexibleServerDatabase -InputObject $ID + .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -MASTER : The source server object to create replica from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. - [(Any) ]: This indicates any property can be added to this object. - [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) - [FullyQualifiedDomainName ]: The fully qualified domain name of a server. - [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. - [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. - [MasterServerId ]: The master server id of a replica server. - [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. - [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' - [ReplicaCapacity ]: The maximum number of replicas that a master server can have. - [ReplicationRole ]: The replication role of the server. - [SkuCapacity ]: The scale up/out capacity, representing server's compute units. - [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - [SkuSize ]: The size code, to be interpreted by resource as appropriate. - [SkuTier ]: The tier of the particular SKU, e.g. Basic. - [SslEnforcement ]: Enable ssl enforcement or not when connect to server. - [StorageProfileBackupRetentionDay ]: Backup retention days for the server. - [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. - [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. - [StorageProfileStorageMb ]: Max storage allowed for a server. - [UserVisibleState ]: A state of a server that is visible to user. - [Version ]: Server version. +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlreplica +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverdatabase #> -function New-AzMySqlReplica { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzMySqlFlexibleServerDatabase { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('ReplicaServerName', 'Name')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. - ${Replica}, + # The name of the database. + ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription ID that identifies an Azure subscription. - ${SubscriptionId}, - - [Parameter(Mandatory, ValueFromPipeline)] - [Alias('InputObject')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] - # The source server object to create replica from. - # To construct, see NOTES section for MASTER properties and create a hash table. - ${Master}, + # The name of the server. + ${ServerName}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The location the resource resides in. - ${Location}, + # The ID of the target subscription. + ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The name of the sku, typically, tier + family + cores, e.g. - # B_Gen4_1, GP_Gen5_8. - ${Sku}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2592,47 +2516,58 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command as a job. + # Run the command as a job ${AsJob}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach. + # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously. + # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] + # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) @@ -2644,9 +2579,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MySql.custom\New-AzMySqlReplica'; + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerDatabase_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerDatabase_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2691,117 +2627,4162 @@ end { <# .Synopsis -Creates a new server. +Deletes a firewall rule. .Description -Creates a new server. +Deletes a firewall rule. .Example -PS C:\> New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUser mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- ------------ -mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverfirewallrule #> -function New-AzMySqlServer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzMySqlFlexibleServerFirewallRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('ServerName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. + # The name of the server firewall rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription ID that identifies an Azure subscription. + # The ID of the target subscription. ${SubscriptionId}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The location the resource resides in. - ${Location}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The location the resource resides in. - ${AdministratorUserName}, + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerFirewallRule_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a server. +.Description +Deletes a server. +.Example +PS C:\> Remove-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Remove-AzMySqlFlexibleServer -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserver +#> +function Remove-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServer_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServer_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a server. +.Description +Deletes a server. +.Example +PS C:\> Remove-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test" +PS C:\> Remove-AzMySqlServer -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlserver +#> +function Remove-AzMySqlServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlServer_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlServer_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes the virtual network rule with the given name. +.Description +Deletes the virtual network rule with the given name. +.Example +PS C:\> Remove-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest-ServerName mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" +PS C:\> Remove-AzMySqlVirtualNetworkRule -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlvirtualnetworkrule +#> +function Remove-AzMySqlVirtualNetworkRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('VirtualNetworkRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the virtual network rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlVirtualNetworkRule_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlVirtualNetworkRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restarts a server. +.Description +Restarts a server. +.Example +PS C:\> Restart-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/restart" +PS C:\> Restart-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restart-azmysqlflexibleserver +#> +function Restart-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Restart', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Restart')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Restart = 'Az.MySql.private\Restart-AzMySqlFlexibleServer_Restart'; + RestartViaIdentity = 'Az.MySql.private\Restart-AzMySqlFlexibleServer_RestartViaIdentity'; + } + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restarts a server. +.Description +Restarts a server. +.Example +PS C:\> Restart-AzMySqlServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/restart" +PS C:\> Restart-AzMySqlServer -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restart-azmysqlserver +#> +function Restart-AzMySqlServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Restart', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Restart')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Restart = 'Az.MySql.private\Restart-AzMySqlServer_Restart'; + RestartViaIdentity = 'Az.MySql.private\Restart-AzMySqlServer_RestartViaIdentity'; + } + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Starts a server. +.Description +Starts a server. +.Example +PS C:\> Start-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/start" +PS C:\> Start-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/start-azmysqlflexibleserver +#> +function Start-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Start = 'Az.MySql.private\Start-AzMySqlFlexibleServer_Start'; + StartViaIdentity = 'Az.MySql.private\Start-AzMySqlFlexibleServer_StartViaIdentity'; + } + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Stops a server. +.Description +Stops a server. +.Example +PS C:\> Stop-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/stop" +PS C:\> Stop-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/stop-azmysqlflexibleserver +#> +function Stop-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Stop', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Stop')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Stop = 'Az.MySql.private\Stop-AzMySqlFlexibleServer_Stop'; + StopViaIdentity = 'Az.MySql.private\Stop-AzMySqlFlexibleServer_StopViaIdentity'; + } + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverdatabase +#> +function Update-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The charset of the database. + ${Charset}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The collation of the database. + ${Collation}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates an existing virtual network rule. +.Description +Creates or updates an existing virtual network rule. +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2" +PS C:\> Update-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $ID + +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +.Example +PS C:\> $SubnetID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" +PS C:\> $VNetID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/virtualNetworkRules/vnet" +PS C:\> Update-AzMySqlVirtualNetworkRule -InputObject $VNetID -SubnetId $SubnetID + +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlvirtualnetworkrule +#> +function Update-AzMySqlVirtualNetworkRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('VirtualNetworkRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the virtual network rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The ARM resource id of the virtual network subnet. + ${SubnetId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Create firewall rule before the virtual network has vnet service endpoint enabled. + ${IgnoreMissingVnetServiceEndpoint}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlVirtualNetworkRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the connection string according to client connection provider. +.Description +Get the connection string according to client connection provider. +.Example +PS C:\> Get-AzMySqlConnectionString -Client ADO.NET -Name mysql-test -ResourceGroupName PowershellMySqlTest + +Server=mysql-test.mysql.database.azure.com; Port=3306; Database={your_database}; Uid=mysql_test@mysql-test; Pwd={your_password}; +.Example +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Get-AzMySqlConnectionString -Client PHP + +$con=mysqli_init(); mysqli_real_connect($con, "mysql-test.mysql.database.azure.com", "mysql_test@mysql-test", {your_password}, {your_database}, 3306); + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Outputs +System.String +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : The source server object to create replica from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) + [FullyQualifiedDomainName ]: The fully qualified domain name of a server. + [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MasterServerId ]: The master server id of a replica server. + [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. + [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + [ReplicaCapacity ]: The maximum number of replicas that a master server can have. + [ReplicationRole ]: The replication role of the server. + [SkuCapacity ]: The scale up/out capacity, representing server's compute units. + [SkuFamily ]: The family of hardware. + [SkuSize ]: The size code, to be interpreted by resource as appropriate. + [SkuTier ]: The tier of the particular SKU, e.g. Basic. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [UserVisibleState ]: A state of a server that is visible to user. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlconnectionstring +#> +function Get-AzMySqlConnectionString { +[OutputType([System.String])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # Client connection provider. + ${Client}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] + # The source server object to create replica from. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.custom\Get-AzMySqlConnectionString'; + GetViaIdentity = 'Az.MySql.custom\Get-AzMySqlConnectionString'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +.Example +PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.0 0.0.0.1 +.Example +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlfirewallrule +#> +function New-AzMySqlFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + # If not specified, the default is undefined. + # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + ${AllowAll}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\New-AzMySqlFirewallRule'; + AllowAll = 'Az.MySql.custom\New-AzMySqlFirewallRule'; + } + if (('CreateExpanded', 'ClientIPAddress', 'AllowAll') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new MySQL flexible server +.Description +Creates a new server. +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserver +#> +function New-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Administrator username for the server. + # Once set, it cannot be changed. + ${AdministratorUserName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + # The password of the administrator. + # Minimum 8 characters and maximum 128 characters. + # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. + ${AdministratorLoginPassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # Standard_B1ms, Standard_D2ds_v4. + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Compute tier of the server. + # Accepted values: Burstable, GeneralPurpose, Memory Optimized. + # Default: Burstable. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${BackupRetentionDay}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageInMb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServer'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule for MySQL flexible server +.Description +Creates a new firewall rule for MySQL flexible server +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverfirewallrule +#> +function New-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + # If not specified, the default is undefined. + # If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter(ParameterSetName='AllowAll', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + ${AllowAll}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + AllowAll = 'Az.MySql.custom\New-AzMySqlFlexibleServerFirewallRule'; + } + if (('CreateExpanded', 'ClientIPAddress', 'AllowAll') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a replica server for a MySQL flexible server +.Description +Creates a new replica from an existing database. +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlFlexibleServerReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> $mysql = Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> New-AzMySqlFlexibleServerReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MASTER : The source server object to create replica from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverreplica +#> +function New-AzMySqlFlexibleServerReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ReplicaServerName', 'Name')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Replica}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Alias('InputObject')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # The source server object to create replica from. + # To construct, see NOTES section for MASTER properties and create a hash table. + ${Master}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlFlexibleServerReplica'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new replica from an existing database. +.Description +Creates a new replica from an existing database. +.Example +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +.Example +PS C:\> $mysql = Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> New-AzMySqlReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-replica eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +MASTER : The source server object to create replica from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) + [FullyQualifiedDomainName ]: The fully qualified domain name of a server. + [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MasterServerId ]: The master server id of a replica server. + [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. + [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + [ReplicaCapacity ]: The maximum number of replicas that a master server can have. + [ReplicationRole ]: The replication role of the server. + [SkuCapacity ]: The scale up/out capacity, representing server's compute units. + [SkuFamily ]: The family of hardware. + [SkuSize ]: The size code, to be interpreted by resource as appropriate. + [SkuTier ]: The tier of the particular SKU, e.g. Basic. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [UserVisibleState ]: A state of a server that is visible to user. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlreplica +#> +function New-AzMySqlReplica { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ReplicaServerName', 'Name')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Replica}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Alias('InputObject')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] + # The source server object to create replica from. + # To construct, see NOTES section for MASTER properties and create a hash table. + ${Master}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # B_Gen4_1, GP_Gen5_8. + ${Sku}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlReplica'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new server. +.Description +Creates a new server. +.Example +PS C:\> New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUser mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- ------------ +mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserver +#> +function New-AzMySqlServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Administrator username for the server. + # Once set, it cannot be changed. + ${AdministratorUserName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.Security.SecureString] + # The password of the administrator. + # Minimum 8 characters and maximum 128 characters. + # Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. + ${AdministratorLoginPassword}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # B_Gen4_1, GP_Gen5_8. + ${Sku}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${BackupRetentionDay}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup] + # Enable Geo-redundant or not for server backup. + ${GeoRedundantBackup}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageAutogrow}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageInMb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.MySql.custom\New-AzMySqlServer'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restore a server from an existing backup +.Description +Restore a server from an existing backup +.Example +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlFlexibleServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-restore eastus mysql_test 5.7 10240 Standard_D2ds_v4 GeneralPurpose + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : The source server object to restore from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restore-azmysqlflexibleserver +#> +function Restore-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='PointInTimeRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + # The location the resource resides in. + ${RestorePointInTime}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # The source server object to restore from. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g., Standard_D2ds_v4, Standard_B1ms + ${Sku}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PointInTimeRestore = 'Az.MySql.custom\Restore-AzMySqlFlexibleServer_PointInTimeRestore'; + } + if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restore a server from an existing backup +.Description +Restore a server from an existing backup +.Example +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test-replica | Restore-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -UseGeoRestore + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-11 eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +.Example +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime -UsePointInTimeRestore + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- -------------- +mysql-test-restore eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : The source server object to restore from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) + [FullyQualifiedDomainName ]: The fully qualified domain name of a server. + [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MasterServerId ]: The master server id of a replica server. + [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. + [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + [ReplicaCapacity ]: The maximum number of replicas that a master server can have. + [ReplicationRole ]: The replication role of the server. + [SkuCapacity ]: The scale up/out capacity, representing server's compute units. + [SkuFamily ]: The family of hardware. + [SkuSize ]: The size code, to be interpreted by resource as appropriate. + [SkuTier ]: The tier of the particular SKU, e.g. Basic. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [UserVisibleState ]: A state of a server that is visible to user. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restore-azmysqlserver +#> +function Restore-AzMySqlServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='GeoRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] + # The source server object to restore from. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='GeoRestore', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Use Geo mode to restore + ${UseGeoRestore}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] # The location the resource resides in. - ${AdministratorLoginPassword}, + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # B_Gen4_1, GP_Gen5_8. + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter(ParameterSetName='PointInTimeRestore', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + # The location the resource resides in. + ${RestorePointInTime}, + + [Parameter(ParameterSetName='PointInTimeRestore', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Use PointInTime mode to restore + ${UsePointInTimeRestore}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + GeoRestore = 'Az.MySql.custom\Restore-AzMySqlServer_GeoRestore'; + PointInTimeRestore = 'Az.MySql.custom\Restore-AzMySqlServer_PointInTimeRestore'; + } + if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a configuration of a server. +Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc. +.Description +Updates a configuration of a server. +Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc. +.Example +PS C:\> Update-AzMySqlConfiguration -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 + +Name Value +---- ----- +net_retry_count 15 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlConfiguration -InputObject $ID -Value 150 + +Name Value +---- ----- +wait_timeout 150 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter. + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlconfiguration +#> +function Update-AzMySqlConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the sku, typically, tier + family + cores, e.g. - # B_Gen4_1, GP_Gen5_8. - ${Sku}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] - # Enable ssl enforcement or not when connect to server. - ${SslEnforcement}, + [System.String] + # Source of the configuration. + ${Source}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Backup retention days for the server. - # Day count is between 7 and 35. - ${BackupRetentionDay}, + [System.String] + # Value of the configuration. + ${Value}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup] - # Enable Geo-redundant or not for server backup. - ${GeoRedundantBackup}, + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlConfiguration'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlConfiguration'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +.Example +PS C:\> Update-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.2 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlfirewallrule +#> +function Update-AzMySqlFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ClientIPAddress')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] - # Enable Storage Auto Grow. - ${StorageAutogrow}, + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Max storage allowed for a server. - ${StorageInMb}, + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] - [System.Collections.Hashtable] - # Application-specific metadata in the form of key-value pairs. - ${Tag}, + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] - # Server version. - ${Version}, + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2814,47 +6795,52 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command as a job. + # Run the command as a job ${AsJob}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach. + # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously. + # Run the command asynchronously ${NoWait}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] + # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) @@ -2866,9 +6852,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MySql.custom\New-AzMySqlServer'; + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; + ClientIPAddressViaIdentity = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded', 'ClientIPAddress') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2913,103 +6902,93 @@ end { <# .Synopsis -Restore a server from an existing backup +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. .Description -Restore a server from an existing backup +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. .Example -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test-replica | Restore-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -UseGeoRestore +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-11 eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose .Example -PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) -PS C:\> Get-AzMySqlServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime -UsePointInTimeRestore +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- -------------- -mysql-test-restore eastus mysql_test 5.7 10240 GP_Gen5_4 GeneralPurpose Disabled +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : The source server object to restore from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. - [(Any) ]: This indicates any property can be added to this object. - [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) - [FullyQualifiedDomainName ]: The fully qualified domain name of a server. - [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. - [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. - [MasterServerId ]: The master server id of a replica server. - [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. - [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' - [ReplicaCapacity ]: The maximum number of replicas that a master server can have. - [ReplicationRole ]: The replication role of the server. - [SkuCapacity ]: The scale up/out capacity, representing server's compute units. - [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - [SkuSize ]: The size code, to be interpreted by resource as appropriate. - [SkuTier ]: The tier of the particular SKU, e.g. Basic. - [SslEnforcement ]: Enable ssl enforcement or not when connect to server. - [StorageProfileBackupRetentionDay ]: Backup retention days for the server. - [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. - [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. - [StorageProfileStorageMb ]: Max storage allowed for a server. - [UserVisibleState ]: A state of a server that is visible to user. - [Version ]: Server version. +INPUTOBJECT : Identity Parameter. + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/restore-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserver #> -function Restore-AzMySqlServer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] -[CmdletBinding(DefaultParameterSetName='GeoRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + # The name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The subscription ID that identifies an Azure subscription. ${SubscriptionId}, - [Parameter(Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer] - # The source server object to restore from. + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='GeoRestore', Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Use Geo mode to restore - ${UseGeoRestore}, + [System.Security.SecureString] + # The password of the administrator login. + ${AdministratorLoginPassword}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The location the resource resides in. - ${Location}, + # The replication role of the server. + ${ReplicationRole}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] @@ -3019,23 +6998,53 @@ param( ${Sku}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] - [System.Collections.Hashtable] - # Application-specific metadata in the form of key-value pairs. - ${Tag}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # Basic. + ${SkuTier}, - [Parameter(ParameterSetName='PointInTimeRestore', Mandatory)] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.DateTime] - # The location the resource resides in. - ${RestorePointInTime}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable or disable high availability feature. + ${HaEnabled}, - [Parameter(ParameterSetName='PointInTimeRestore', Mandatory)] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Use PointInTime mode to restore - ${UsePointInTimeRestore}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${BackupRetentionDay}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageAutogrow}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageInMb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3061,12 +7070,14 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. ${HttpPipelinePrepend}, [Parameter()] @@ -3078,17 +7089,20 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] + # The URI for the proxy server to use. ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. ${ProxyUseDefaultCredentials} ) @@ -3100,10 +7114,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - GeoRestore = 'Az.MySql.custom\Restore-AzMySqlServer_GeoRestore'; - PointInTimeRestore = 'Az.MySql.custom\Restore-AzMySqlServer_PointInTimeRestore'; + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServer'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServer'; } - if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3148,39 +7162,38 @@ end { <# .Synopsis -Updates a configuration of a server. -Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc. +Updates information about a configuration of a MySQL flexible server. .Description -Updates a configuration of a server. -Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc. +Updates information about a configuration of a MySQL flexible server. .Example -PS C:\> Update-AzMySqlConfiguration -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 -Name Value ----- ----- -net_retry_count 15 +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/configurations/wait_timeout" -PS C:\> Update-AzMySqlConfiguration -InputObject $ID -Value 150 +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 -Name Value ----- ----- -wait_timeout 150 +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter. +INPUTOBJECT : Identity Parameter [ConfigurationName ]: The name of the server configuration. [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -3188,10 +7201,10 @@ INPUTOBJECT : Identity Parameter. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlconfiguration +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverconfiguration #> -function Update-AzMySqlConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] +function Update-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -3224,14 +7237,15 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] - # Identity Parameter. + # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # Source of the configuration. + # The source of the updating value. + # The default value is user-override ${Source}, [Parameter()] @@ -3257,18 +7271,21 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] @@ -3280,17 +7297,20 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] + # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) @@ -3302,8 +7322,8 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlConfiguration'; - UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlConfiguration'; + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerConfiguration'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerConfiguration'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -3350,29 +7370,22 @@ end { <# .Synopsis -Creates a new firewall rule or updates an existing firewall rule. +Updates an existing firewall rule. .Description -Creates a new firewall rule or updates an existing firewall rule. +Updates an existing firewall rule. .Example -PS C:\> Update-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 Name StartIPAddress EndIPAddress ---- -------------- ------------ rule 0.0.0.2 0.0.0.3 .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -PS C:\> Update-AzMySqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 Name StartIPAddress EndIPAddress ---- -------------- ------------ rule 0.0.0.2 0.0.0.3 -.Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -PS C:\> Update-AzMySqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 - -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.2 0.0.0.2 .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity @@ -3388,6 +7401,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -3395,9 +7409,9 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlfirewallrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverfirewallrule #> -function Update-AzMySqlFirewallRule { +function Update-AzMySqlFlexibleServerFirewallRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -3532,10 +7546,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; - ClientIPAddress = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; - ClientIPAddressViaIdentity = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; - UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFirewallRule'; + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddressViaIdentity = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; } if (('UpdateExpanded', 'ClientIPAddress') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -3616,6 +7630,7 @@ INPUTOBJECT : Identity Parameter. [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Remove-AzMySqlFirewallRule.ps1 b/src/MySql/exports/Remove-AzMySqlFirewallRule.ps1 index 2d2d8ec61fad..d1a8fcb7fe0d 100644 --- a/src/MySql/exports/Remove-AzMySqlFirewallRule.ps1 +++ b/src/MySql/exports/Remove-AzMySqlFirewallRule.ps1 @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Remove-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Remove-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..1fe6f0627a8b --- /dev/null +++ b/src/MySql/exports/Remove-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,189 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a server. +.Description +Deletes a server. +.Example +PS C:\> Remove-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Remove-AzMySqlFlexibleServer -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserver +#> +function Remove-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServer_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServer_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Remove-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/exports/Remove-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..b72cd7907bbc --- /dev/null +++ b/src/MySql/exports/Remove-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,194 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a database. +.Description +Deletes a database. +.Example +PS C:\> Remove-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/databases/databasetest" +PS C:\> Remove-AzMySqlFlexibleServerDatabase -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverdatabase +#> +function Remove-AzMySqlFlexibleServerDatabase { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerDatabase_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerDatabase_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Remove-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/exports/Remove-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..f1640fb63f62 --- /dev/null +++ b/src/MySql/exports/Remove-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a firewall rule. +.Description +Deletes a firewall rule. +.Example +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -InputObject $ID + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverfirewallrule +#> +function Remove-AzMySqlFlexibleServerFirewallRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerFirewallRule_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Remove-AzMySqlServer.ps1 b/src/MySql/exports/Remove-AzMySqlServer.ps1 index fe112c3c0d0a..bf116d34ae7c 100644 --- a/src/MySql/exports/Remove-AzMySqlServer.ps1 +++ b/src/MySql/exports/Remove-AzMySqlServer.ps1 @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Remove-AzMySqlVirtualNetworkRule.ps1 b/src/MySql/exports/Remove-AzMySqlVirtualNetworkRule.ps1 index ed2472cc9836..5790d7a06640 100644 --- a/src/MySql/exports/Remove-AzMySqlVirtualNetworkRule.ps1 +++ b/src/MySql/exports/Remove-AzMySqlVirtualNetworkRule.ps1 @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Restart-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Restart-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..70865739463f --- /dev/null +++ b/src/MySql/exports/Restart-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,187 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restarts a server. +.Description +Restarts a server. +.Example +PS C:\> Restart-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/restart" +PS C:\> Restart-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restart-azmysqlflexibleserver +#> +function Restart-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Restart', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Restart')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Restart = 'Az.MySql.private\Restart-AzMySqlFlexibleServer_Restart'; + RestartViaIdentity = 'Az.MySql.private\Restart-AzMySqlFlexibleServer_RestartViaIdentity'; + } + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Restart-AzMySqlServer.ps1 b/src/MySql/exports/Restart-AzMySqlServer.ps1 index d5353ac2672e..91ae024b4343 100644 --- a/src/MySql/exports/Restart-AzMySqlServer.ps1 +++ b/src/MySql/exports/Restart-AzMySqlServer.ps1 @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Restore-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Restore-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..2d08f4f5ac4e --- /dev/null +++ b/src/MySql/exports/Restore-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,205 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Restore a server from an existing backup +.Description +Restore a server from an existing backup +.Example +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlFlexibleServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-restore eastus mysql_test 5.7 10240 Standard_D2ds_v4 GeneralPurpose + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : The source server object to restore from. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/restore-azmysqlflexibleserver +#> +function Restore-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='PointInTimeRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + # The location the resource resides in. + ${RestorePointInTime}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # The source server object to restore from. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g., Standard_D2ds_v4, Standard_B1ms + ${Sku}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + PointInTimeRestore = 'Az.MySql.custom\Restore-AzMySqlFlexibleServer_PointInTimeRestore'; + } + if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Restore-AzMySqlServer.ps1 b/src/MySql/exports/Restore-AzMySqlServer.ps1 index 52c2176ee2da..24ac721de09d 100644 --- a/src/MySql/exports/Restore-AzMySqlServer.ps1 +++ b/src/MySql/exports/Restore-AzMySqlServer.ps1 @@ -42,8 +42,9 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : The source server object to restore from. - Location : The location the resource resides in. - [Tag ]: Application-specific metadata in the form of key-value pairs. + Location : The geo-location where the resource lives + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). [EarliestRestoreDate ]: Earliest restore point creation time (ISO8601 format) @@ -57,7 +58,6 @@ INPUTOBJECT : The source server object to restore from. [ReplicationRole ]: The replication role of the server. [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/exports/Start-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Start-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..096f7ea6ca33 --- /dev/null +++ b/src/MySql/exports/Start-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,187 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Starts a server. +.Description +Starts a server. +.Example +PS C:\> Start-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/start" +PS C:\> Start-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/start-azmysqlflexibleserver +#> +function Start-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Start = 'Az.MySql.private\Start-AzMySqlFlexibleServer_Start'; + StartViaIdentity = 'Az.MySql.private\Start-AzMySqlFlexibleServer_StartViaIdentity'; + } + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Stop-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Stop-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..4a7e1a453527 --- /dev/null +++ b/src/MySql/exports/Stop-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,187 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Stops a server. +.Description +Stops a server. +.Example +PS C:\> Stop-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/stop" +PS C:\> Stop-AzMySqlFlexibleServer -InputObject $ID + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/stop-azmysqlflexibleserver +#> +function Stop-AzMySqlFlexibleServer { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Stop', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Stop')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Stop = 'Az.MySql.private\Stop-AzMySqlFlexibleServer_Stop'; + StopViaIdentity = 'Az.MySql.private\Stop-AzMySqlFlexibleServer_StopViaIdentity'; + } + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Update-AzMySqlConfiguration.ps1 b/src/MySql/exports/Update-AzMySqlConfiguration.ps1 index 1d542216b768..1db9e814902c 100644 --- a/src/MySql/exports/Update-AzMySqlConfiguration.ps1 +++ b/src/MySql/exports/Update-AzMySqlConfiguration.ps1 @@ -48,6 +48,7 @@ INPUTOBJECT : Identity Parameter. [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Update-AzMySqlFirewallRule.ps1 b/src/MySql/exports/Update-AzMySqlFirewallRule.ps1 index c8d79e4fef0f..67268e9935df 100644 --- a/src/MySql/exports/Update-AzMySqlFirewallRule.ps1 +++ b/src/MySql/exports/Update-AzMySqlFirewallRule.ps1 @@ -53,6 +53,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Update-AzMySqlFlexibleServer.ps1 b/src/MySql/exports/Update-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..ccdcc1a13974 --- /dev/null +++ b/src/MySql/exports/Update-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,260 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +.Description +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. +.Example +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter. + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserver +#> +function Update-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter. + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Security.SecureString] + # The password of the administrator login. + ${AdministratorLoginPassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The replication role of the server. + ${ReplicationRole}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # B_Gen4_1, GP_Gen5_8. + ${Sku}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # Basic. + ${SkuTier}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable or disable high availability feature. + ${HaEnabled}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${BackupRetentionDay}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageAutogrow}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageInMb}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job. + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach. + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline. + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline. + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously. + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use. + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call. + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy. + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServer'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServer'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Update-AzMySqlFlexibleServerConfiguration.ps1 b/src/MySql/exports/Update-AzMySqlFlexibleServerConfiguration.ps1 new file mode 100644 index 000000000000..41c3e6dff20b --- /dev/null +++ b/src/MySql/exports/Update-AzMySqlFlexibleServerConfiguration.ps1 @@ -0,0 +1,208 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates information about a configuration of a MySQL flexible server. +.Description +Updates information about a configuration of a MySQL flexible server. +.Example +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverconfiguration +#> +function Update-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The source of the updating value. + # The default value is user-override + ${Source}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Value of the configuration. + ${Value}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerConfiguration'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerConfiguration'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Update-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/exports/Update-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..f1679885cad2 --- /dev/null +++ b/src/MySql/exports/Update-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,207 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverdatabase +#> +function Update-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The charset of the database. + ${Charset}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The collation of the database. + ${Collation}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Update-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/exports/Update-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..e1549a6fa70b --- /dev/null +++ b/src/MySql/exports/Update-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,226 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing firewall rule. +.Description +Updates an existing firewall rule. +.Example +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverfirewallrule +#> +function Update-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='ClientIPAddress')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter(ParameterSetName='ClientIPAddress', Mandatory)] + [Parameter(ParameterSetName='ClientIPAddressViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Client specified single IP of the server firewall rule. + # Must be IPv4 format. + ${ClientIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddress = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + ClientIPAddressViaIdentity = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + UpdateViaIdentityExpanded = 'Az.MySql.custom\Update-AzMySqlFlexibleServerFirewallRule'; + } + if (('UpdateExpanded', 'ClientIPAddress') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/exports/Update-AzMySqlServer.ps1 b/src/MySql/exports/Update-AzMySqlServer.ps1 index 5d025a987f8f..41deddab3749 100644 --- a/src/MySql/exports/Update-AzMySqlServer.ps1 +++ b/src/MySql/exports/Update-AzMySqlServer.ps1 @@ -49,6 +49,7 @@ INPUTOBJECT : Identity Parameter. [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/exports/Update-AzMySqlVirtualNetworkRule.ps1 b/src/MySql/exports/Update-AzMySqlVirtualNetworkRule.ps1 index 6d6042b63433..f6d0f99c44d5 100644 --- a/src/MySql/exports/Update-AzMySqlVirtualNetworkRule.ps1 +++ b/src/MySql/exports/Update-AzMySqlVirtualNetworkRule.ps1 @@ -48,6 +48,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/generate-info.json b/src/MySql/generate-info.json new file mode 100644 index 000000000000..4355391d9d7b --- /dev/null +++ b/src/MySql/generate-info.json @@ -0,0 +1,8 @@ +{ + "autorest_powershell": "3.0.403", + "swagger_commit": "171eb5562c1d2e86eb0658923c54860cb25c8379", + "autorest_modelerfour": "4.15.414", + "autorest": "3.0.6187", + "autorest_core": "3.0.6320", + "node": "v10.16.0" +} diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.PowerShell.cs b/src/MySql/generated/api/Models/Any.PowerShell.cs similarity index 78% rename from src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.PowerShell.cs rename to src/MySql/generated/api/Models/Any.PowerShell.cs index 8b0179f0d9ef..6574aeae828e 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.PowerShell.cs +++ b/src/MySql/generated/api/Models/Any.PowerShell.cs @@ -1,10 +1,15 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +// 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.MySql.Models { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; - /// The additional info. - [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfo1TypeConverter))] - public partial class ErrorAdditionalInfo1 + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial class Any { /// @@ -48,37 +53,11 @@ public partial class ErrorAdditionalInfo1 partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ErrorAdditionalInfo1(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.MySql.Models.Api10.IErrorAdditionalInfo1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ErrorAdditionalInfo1(content); - } - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ErrorAdditionalInfo1(global::System.Collections.IDictionary content) + internal Any(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -91,11 +70,11 @@ internal ErrorAdditionalInfo1(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorAdditionalInfo1(global::System.Management.Automation.PSObject content) + internal Any(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -108,20 +87,46 @@ internal ErrorAdditionalInfo1(global::System.Management.Automation.PSObject cont } /// - /// Creates a new instance of , deserializing the content from a json string. + /// 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.MySql.Models.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Any(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Any(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The additional info. - [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfo1TypeConverter))] - public partial interface IErrorAdditionalInfo1 + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial interface IAny { diff --git a/src/MySql/generated/api/Models/Any.TypeConverter.cs b/src/MySql/generated/api/Models/Any.TypeConverter.cs new file mode 100644 index 000000000000..78106010c7e9 --- /dev/null +++ b/src/MySql/generated/api/Models/Any.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AnyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.IAny ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Any.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Any.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Any.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Any.cs b/src/MySql/generated/api/Models/Any.cs new file mode 100644 index 000000000000..f1a332491b78 --- /dev/null +++ b/src/MySql/generated/api/Models/Any.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Any object + public partial class Any : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAnyInternal + { + + /// Creates an new instance. + public Any() + { + + } + } + /// Any object + public partial interface IAny : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + + } + /// Any object + internal partial interface IAnyInternal + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.json.cs b/src/MySql/generated/api/Models/Any.json.cs similarity index 80% rename from src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.json.cs rename to src/MySql/generated/api/Models/Any.json.cs index 86463c317954..42a8c90d429c 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.json.cs +++ b/src/MySql/generated/api/Models/Any.json.cs @@ -1,9 +1,14 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +// 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.MySql.Models { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - /// The additional info. - public partial class ErrorAdditionalInfo1 + /// Any object + public partial class Any { /// @@ -47,10 +52,10 @@ public partial class ErrorAdditionalInfo1 partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. - internal ErrorAdditionalInfo1(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + internal Any(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -62,25 +67,23 @@ internal ErrorAdditionalInfo1(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny. + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo1(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new Any(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// 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 . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) { diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.PowerShell.cs b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.PowerShell.cs index fe78d9386052..2e3b31f5348e 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.PowerShell.cs @@ -87,8 +87,8 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo1TypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.AnyTypeConverter.ConvertFrom); AfterDeserializeDictionary(content); } @@ -106,8 +106,8 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo1TypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.AnyTypeConverter.ConvertFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.cs b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.cs index cceaaff2e112..6565525016ae 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.cs +++ b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.cs @@ -9,14 +9,14 @@ public partial class ErrorAdditionalInfo : { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 _info; + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny _info; /// The additional info. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo1()); } + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo1()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } @@ -44,8 +44,8 @@ public partial interface IErrorAdditionalInfo : ReadOnly = true, Description = @"The additional info.", SerializedName = @"info", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1) })] - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 Info { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny Info { get; } /// The additional info type. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( Required = false, @@ -61,7 +61,7 @@ internal partial interface IErrorAdditionalInfoInternal { /// The additional info. - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 Info { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IAny Info { get; set; } /// The additional info type. string Type { get; set; } diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.json.cs b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.json.cs index 8ea3d230bd5d..6c35f11f1591 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.json.cs +++ b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo.json.cs @@ -58,8 +58,8 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Js { return; } - {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo1.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.MySql.Models.Any.FromJson(__jsonInfo) : Info;} AfterFromJson(json); } @@ -96,11 +96,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); } AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.cs b/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.cs deleted file mode 100644 index 5fc0fb84bef3..000000000000 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - - /// The additional info. - public partial class ErrorAdditionalInfo1 : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1Internal - { - - /// Creates an new instance. - public ErrorAdditionalInfo1() - { - - } - } - /// The additional info. - public partial interface IErrorAdditionalInfo1 : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable - { - - } - /// The additional info. - internal partial interface IErrorAdditionalInfo1Internal - - { - - } -} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/ErrorResponse.PowerShell.cs b/src/MySql/generated/api/Models/Api10/ErrorResponse.PowerShell.cs index 5694d618f55a..8a0e7a05f1f8 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorResponse.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/ErrorResponse.PowerShell.cs @@ -87,11 +87,11 @@ internal ErrorResponse(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Target, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -109,11 +109,11 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Target, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api10/ErrorResponse.json.cs b/src/MySql/generated/api/Models/Api10/ErrorResponse.json.cs index 234267ae2a49..35f94b72e375 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorResponse.json.cs +++ b/src/MySql/generated/api/Models/Api10/ErrorResponse.json.cs @@ -58,11 +58,11 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.Jso { return; } - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api10.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo.FromJson(__u) )) ))() : 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.MySql.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.MySql.Models.Api10.IErrorResponse) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse.FromJson(__p) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api10.IErrorResponse) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api10.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} AfterFromJson(json); } @@ -98,18 +98,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._additionalInfo) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); - foreach( var __x in this._additionalInfo ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("additionalInfo",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); } @@ -124,13 +112,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._additionalInfo) { var __r = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); - foreach( var __s in this._detail ) + foreach( var __s in this._additionalInfo ) { AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); } - container.Add("details",__r); + container.Add("additionalInfo",__r); } } AfterToJson(ref container); diff --git a/src/MySql/generated/api/Models/Api10/Identity.PowerShell.cs b/src/MySql/generated/api/Models/Api10/Identity.PowerShell.cs new file mode 100644 index 000000000000..74b653d2e4c1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api10/Identity.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Identity for the resource. + [System.ComponentModel.TypeConverter(typeof(IdentityTypeConverter))] + public partial class Identity + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Identity(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.MySql.Models.Api10.IIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Identity(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.MySql.Models.Api10.IIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Identity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Identity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType.CreateFrom); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Identity for the resource. + [System.ComponentModel.TypeConverter(typeof(IdentityTypeConverter))] + public partial interface IIdentity + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/Identity.TypeConverter.cs b/src/MySql/generated/api/Models/Api10/Identity.TypeConverter.cs new file mode 100644 index 000000000000..695a1dacfbdd --- /dev/null +++ b/src/MySql/generated/api/Models/Api10/Identity.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class IdentityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api10.IIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Identity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Identity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Identity.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/MySql/generated/api/Models/Api10/Identity.cs b/src/MySql/generated/api/Models/Api10/Identity.cs new file mode 100644 index 000000000000..529b3aac3428 --- /dev/null +++ b/src/MySql/generated/api/Models/Api10/Identity.cs @@ -0,0 +1,86 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Identity for the resource. + public partial class Identity : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal + { + + /// Internal Acessors for PrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + + /// Internal Acessors for TenantId + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + + /// Backing field for property. + private string _principalId; + + /// The principal ID of resource identity. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string PrincipalId { get => this._principalId; } + + /// Backing field for property. + private string _tenantId; + + /// The tenant ID of resource. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string TenantId { get => this._tenantId; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? _type; + + /// The identity type. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public Identity() + { + + } + } + /// Identity for the resource. + public partial interface IIdentity : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The principal ID of resource identity. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The principal ID of resource identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string PrincipalId { get; } + /// The tenant ID of resource. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of resource.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string TenantId { get; } + /// The identity type. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? Type { get; set; } + + } + /// Identity for the resource. + internal partial interface IIdentityInternal + + { + /// The principal ID of resource identity. + string PrincipalId { get; set; } + /// The tenant ID of resource. + string TenantId { get; set; } + /// The identity type. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/Identity.json.cs b/src/MySql/generated/api/Models/Api10/Identity.json.cs new file mode 100644 index 000000000000..1319b7c6f8f0 --- /dev/null +++ b/src/MySql/generated/api/Models/Api10/Identity.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Identity for the resource. + public partial class Identity + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity. + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new Identity(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal Identity(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} + {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._tenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._tenantId.ToString()) : null, "tenantId" ,container.Add ); + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/ProxyResource.PowerShell.cs b/src/MySql/generated/api/Models/Api10/ProxyResource.PowerShell.cs index 0c5f4bb330f4..fa11fc145c96 100644 --- a/src/MySql/generated/api/Models/Api10/ProxyResource.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/ProxyResource.PowerShell.cs @@ -96,9 +96,9 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -116,9 +116,9 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api10/Resource.PowerShell.cs b/src/MySql/generated/api/Models/Api10/Resource.PowerShell.cs index f4546799ddce..378708ed990a 100644 --- a/src/MySql/generated/api/Models/Api10/Resource.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/Resource.PowerShell.cs @@ -93,9 +93,9 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -113,9 +113,9 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api10/Resource.json.cs b/src/MySql/generated/api/Models/Api10/Resource.json.cs index 4d482ad0d8d9..a9fda9157b00 100644 --- a/src/MySql/generated/api/Models/Api10/Resource.json.cs +++ b/src/MySql/generated/api/Models/Api10/Resource.json.cs @@ -67,9 +67,9 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObje { return; } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -94,15 +94,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResource.PowerShell.cs b/src/MySql/generated/api/Models/Api10/TrackedResource.PowerShell.cs similarity index 78% rename from src/MySql/generated/api/Models/Api20171201/TrackedResource.PowerShell.cs rename to src/MySql/generated/api/Models/Api10/TrackedResource.PowerShell.cs index a9e07adc5647..52e0242000b9 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResource.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResource.PowerShell.cs @@ -1,8 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial class TrackedResource { @@ -48,27 +48,27 @@ public partial class TrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResource(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.MySql.Models.Api20171201.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResource(content); } @@ -78,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -86,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -99,16 +99,16 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,15 +121,15 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } } - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial interface ITrackedResource diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResource.TypeConverter.cs b/src/MySql/generated/api/Models/Api10/TrackedResource.TypeConverter.cs similarity index 97% rename from src/MySql/generated/api/Models/Api20171201/TrackedResource.TypeConverter.cs rename to src/MySql/generated/api/Models/Api10/TrackedResource.TypeConverter.cs index 5c8860dc5ce8..3882499a1e86 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResource.TypeConverter.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResource.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResource.cs b/src/MySql/generated/api/Models/Api10/TrackedResource.cs similarity index 58% rename from src/MySql/generated/api/Models/Api20171201/TrackedResource.cs rename to src/MySql/generated/api/Models/Api10/TrackedResource.cs index 0f2864b8b9f6..cec6f72e41ef 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResource.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResource.cs @@ -1,56 +1,56 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; - /// The location the resource resides in. + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags _tag; - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTags()); set => this._tag = value; } /// /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -66,41 +66,41 @@ public TrackedResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { - /// The location the resource resides in. + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The location the resource resides in.", + Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Application-specific metadata in the form of key-value pairs.", + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get; set; } } - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { - /// The location the resource resides in. + /// The geo-location where the resource lives string Location { get; set; } - /// Application-specific metadata in the form of key-value pairs. - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags Tag { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResource.json.cs b/src/MySql/generated/api/Models/Api10/TrackedResource.json.cs similarity index 90% rename from src/MySql/generated/api/Models/Api20171201/TrackedResource.json.cs rename to src/MySql/generated/api/Models/Api10/TrackedResource.json.cs index ef6d4ae22906..b77eb52ca1f3 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResource.json.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResource.json.cs @@ -1,8 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - /// Resource properties including location and tags for track resources. + /// The resource model definition for a ARM tracked top level resource public partial class TrackedResource { @@ -47,13 +47,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -77,9 +77,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + __resource?.ToJson(container, serializationMode); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AfterToJson(ref container); return container; } @@ -96,9 +96,9 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.J { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } } diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.PowerShell.cs b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs similarity index 86% rename from src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.PowerShell.cs rename to src/MySql/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs index 8ee8e1661bc0..c6e47116d4c5 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.PowerShell.cs @@ -1,8 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] public partial class TrackedResourceTags { @@ -48,27 +48,27 @@ public partial class TrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -78,7 +78,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -86,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,7 +105,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,7 +123,7 @@ internal TrackedResourceTags(global::System.Management.Automation.PSObject conte AfterDeserializePSObject(content); } } - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] public partial interface ITrackedResourceTags diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.TypeConverter.cs b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs similarity index 97% rename from src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.TypeConverter.cs rename to src/MySql/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs index 623945c77bfa..a8dc7988e460 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.TypeConverter.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.TypeConverter.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; @@ -101,14 +101,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.cs b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.cs similarity index 54% rename from src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.cs rename to src/MySql/generated/api/Models/Api10/TrackedResourceTags.cs index d3dac4b2e781..b92780b53653 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTagsInternal { /// Creates an new instance. @@ -14,14 +14,14 @@ public TrackedResourceTags() } } - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. public partial interface ITrackedResourceTags : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray { } - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. internal partial interface ITrackedResourceTagsInternal { diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.dictionary.cs b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs similarity index 95% rename from src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.dictionary.cs rename to src/MySql/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs index 567858e8bef6..5e641a7967ee 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.dictionary.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.dictionary.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; @@ -65,6 +65,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.json.cs b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.json.cs similarity index 93% rename from src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.json.cs rename to src/MySql/generated/api/Models/Api10/TrackedResourceTags.json.cs index 3d6c380d5d85..90c919e4d775 100644 --- a/src/MySql/generated/api/Models/Api20171201/TrackedResourceTags.json.cs +++ b/src/MySql/generated/api/Models/Api10/TrackedResourceTags.json.cs @@ -1,8 +1,8 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. public partial class TrackedResourceTags { @@ -47,13 +47,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/MySql/generated/api/Models/Api20171201/CloudError.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/CloudError.PowerShell.cs index 40085915ffa7..1464ceb43435 100644 --- a/src/MySql/generated/api/Models/Api20171201/CloudError.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/CloudError.PowerShell.cs @@ -62,11 +62,11 @@ internal CloudError(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -85,11 +85,11 @@ internal CloudError(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.cs b/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.cs deleted file mode 100644 index ebdb9faa3342..000000000000 --- a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - - public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproperties : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalpropertiesInternal - { - - /// - /// Creates an new instance. - /// - public Components15Yg3X7SchemasOperationPropertiesAdditionalproperties() - { - - } - } - public partial interface IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable - { - - } - internal partial interface IComponents15Yg3X7SchemasOperationPropertiesAdditionalpropertiesInternal - - { - - } -} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/Configuration.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/Configuration.PowerShell.cs index 0bfca9524020..d84f2ba0d41f 100644 --- a/src/MySql/generated/api/Models/Api20171201/Configuration.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/Configuration.PowerShell.cs @@ -62,15 +62,15 @@ internal Configuration(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Source, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -89,15 +89,15 @@ internal Configuration(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ConfigurationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).AllowedValue, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Source, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal)this).Value, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/Configuration.cs b/src/MySql/generated/api/Models/Api20171201/Configuration.cs index 24d877c12140..62be5a892772 100644 --- a/src/MySql/generated/api/Models/Api20171201/Configuration.cs +++ b/src/MySql/generated/api/Models/Api20171201/Configuration.cs @@ -9,13 +9,13 @@ public partial class Configuration : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// Allowed values of the configuration. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 2)] public string AllowedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).AllowedValue; } /// Data type of the configuration. @@ -25,7 +25,7 @@ public partial class Configuration : /// Default value of the configuration. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 4)] public string DefaultValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).DefaultValue; } /// Description of the configuration. @@ -38,16 +38,16 @@ public partial class Configuration : /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for AllowedValue string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationInternal.AllowedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).AllowedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).AllowedValue = value; } @@ -67,7 +67,7 @@ public partial class Configuration : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationProperties _property; @@ -79,7 +79,7 @@ public partial class Configuration : /// Source of the configuration. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 3)] public string Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).Source; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)Property).Source = value; } /// @@ -87,7 +87,7 @@ public partial class Configuration : /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Value of the configuration. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -108,14 +108,14 @@ public Configuration() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Represents a Configuration. public partial interface IConfiguration : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// Allowed values of the configuration. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( @@ -169,7 +169,7 @@ public partial interface IConfiguration : } /// Represents a Configuration. internal partial interface IConfigurationInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// Allowed values of the configuration. string AllowedValue { get; set; } diff --git a/src/MySql/generated/api/Models/Api20171201/Configuration.json.cs b/src/MySql/generated/api/Models/Api20171201/Configuration.json.cs index 24a3b984ebef..14dbc2b03e94 100644 --- a/src/MySql/generated/api/Models/Api20171201/Configuration.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/Configuration.json.cs @@ -58,7 +58,7 @@ internal Configuration(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.Jso { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ConfigurationProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.PowerShell.cs index 787023cbe182..064229d56be0 100644 --- a/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.PowerShell.cs @@ -61,12 +61,12 @@ internal ConfigurationProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Source, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -84,12 +84,12 @@ internal ConfigurationProperties(global::System.Management.Automation.PSObject c return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).AllowedValue, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Source, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfigurationPropertiesInternal)this).Value, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.json.cs index 23e0eac87c0a..95cd9a3276de 100644 --- a/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ConfigurationProperties.json.cs @@ -58,12 +58,12 @@ internal ConfigurationProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtim { return; } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_allowedValue = If( json?.PropertyT("allowedValues"), out var __jsonAllowedValues) ? (string)__jsonAllowedValues : (string)AllowedValue;} - {_dataType = If( json?.PropertyT("dataType"), out var __jsonDataType) ? (string)__jsonDataType : (string)DataType;} {_defaultValue = If( json?.PropertyT("defaultValue"), out var __jsonDefaultValue) ? (string)__jsonDefaultValue : (string)DefaultValue;} + {_dataType = If( json?.PropertyT("dataType"), out var __jsonDataType) ? (string)__jsonDataType : (string)DataType;} + {_allowedValue = If( json?.PropertyT("allowedValues"), out var __jsonAllowedValues) ? (string)__jsonAllowedValues : (string)AllowedValue;} {_source = If( json?.PropertyT("source"), out var __jsonSource) ? (string)__jsonSource : (string)Source;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} AfterFromJson(json); } @@ -98,13 +98,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._allowedValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._allowedValue.ToString()) : null, "allowedValues" ,container.Add ); + AddIf( null != (((object)this._defaultValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._defaultValue.ToString()) : null, "defaultValue" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { @@ -112,10 +113,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._defaultValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._defaultValue.ToString()) : null, "defaultValue" ,container.Add ); + AddIf( null != (((object)this._allowedValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._allowedValue.ToString()) : null, "allowedValues" ,container.Add ); } AddIf( null != (((object)this._source)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._source.ToString()) : null, "source" ,container.Add ); - AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/Database.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/Database.PowerShell.cs index 4b86a1cea992..df9b5f3d87d5 100644 --- a/src/MySql/generated/api/Models/Api20171201/Database.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/Database.PowerShell.cs @@ -62,9 +62,9 @@ internal Database(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Charset = (string) content.GetValueForProperty("Charset",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Charset, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Collation = (string) content.GetValueForProperty("Collation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Collation, global::System.Convert.ToString); AfterDeserializeDictionary(content); @@ -85,9 +85,9 @@ internal Database(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Charset = (string) content.GetValueForProperty("Charset",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Charset, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Collation = (string) content.GetValueForProperty("Collation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal)this).Collation, global::System.Convert.ToString); AfterDeserializePSObject(content); diff --git a/src/MySql/generated/api/Models/Api20171201/Database.cs b/src/MySql/generated/api/Models/Api20171201/Database.cs index fb45e9294e70..f3176499ed60 100644 --- a/src/MySql/generated/api/Models/Api20171201/Database.cs +++ b/src/MySql/generated/api/Models/Api20171201/Database.cs @@ -9,52 +9,58 @@ public partial class Database : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// The charset of the database. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 1)] public string Charset { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabasePropertiesInternal)Property).Charset; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabasePropertiesInternal)Property).Charset = value; } /// The collation of the database. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 2)] public string Collation { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabasePropertiesInternal)Property).Collation; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabasePropertiesInternal)Property).Collation = value; } /// /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 3)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabaseProperties()); set { {_property = value;} } } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseProperties _property; /// The properties of a database. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabaseProperties()); set => this._property = value; } /// /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public Database() @@ -70,14 +76,14 @@ public Database() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Represents a Database. public partial interface IDatabase : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// The charset of the database. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( @@ -99,7 +105,7 @@ public partial interface IDatabase : } /// Represents a Database. internal partial interface IDatabaseInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// The charset of the database. string Charset { get; set; } diff --git a/src/MySql/generated/api/Models/Api20171201/Database.json.cs b/src/MySql/generated/api/Models/Api20171201/Database.json.cs index 37e8e82fe372..e11a136f272f 100644 --- a/src/MySql/generated/api/Models/Api20171201/Database.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/Database.json.cs @@ -58,7 +58,7 @@ internal Database(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObje { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/FirewallRule.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/FirewallRule.PowerShell.cs index 5acda6fdb5cd..4189990efbc9 100644 --- a/src/MySql/generated/api/Models/Api20171201/FirewallRule.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/FirewallRule.PowerShell.cs @@ -88,11 +88,11 @@ internal FirewallRule(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -111,11 +111,11 @@ internal FirewallRule(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/FirewallRule.cs b/src/MySql/generated/api/Models/Api20171201/FirewallRule.cs index 7546ea6f9879..0c42a6d1879f 100644 --- a/src/MySql/generated/api/Models/Api20171201/FirewallRule.cs +++ b/src/MySql/generated/api/Models/Api20171201/FirewallRule.cs @@ -9,9 +9,9 @@ public partial class FirewallRule : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// The end IP address of the server firewall rule. Must be IPv4 format. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -23,16 +23,16 @@ public partial class FirewallRule : /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleProperties()); set { {_property = value;} } } @@ -40,7 +40,7 @@ public partial class FirewallRule : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRuleProperties _property; @@ -60,7 +60,7 @@ public partial class FirewallRule : /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public FirewallRule() @@ -76,14 +76,14 @@ public FirewallRule() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Represents a server firewall rule. public partial interface IFirewallRule : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// The end IP address of the server firewall rule. Must be IPv4 format. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( @@ -105,7 +105,7 @@ public partial interface IFirewallRule : } /// Represents a server firewall rule. internal partial interface IFirewallRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// The end IP address of the server firewall rule. Must be IPv4 format. string EndIPAddress { get; set; } diff --git a/src/MySql/generated/api/Models/Api20171201/FirewallRule.json.cs b/src/MySql/generated/api/Models/Api20171201/FirewallRule.json.cs index 423c49134642..f73edf615f9f 100644 --- a/src/MySql/generated/api/Models/Api20171201/FirewallRule.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/FirewallRule.json.cs @@ -58,7 +58,7 @@ internal FirewallRule(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.Json { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.PowerShell.cs index 4780422157f2..dfa4962aa4a7 100644 --- a/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.PowerShell.cs @@ -87,8 +87,8 @@ internal FirewallRuleProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -106,8 +106,8 @@ internal FirewallRuleProperties(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRulePropertiesInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.json.cs index 40600dc6c4e3..0d2a62cba2a8 100644 --- a/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/FirewallRuleProperties.json.cs @@ -58,8 +58,8 @@ internal FirewallRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime { return; } - {_endIPAddress = If( json?.PropertyT("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress;} {_startIPAddress = If( json?.PropertyT("startIpAddress"), out var __jsonStartIPAddress) ? (string)__jsonStartIPAddress : (string)StartIPAddress;} + {_endIPAddress = If( json?.PropertyT("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress;} AfterFromJson(json); } @@ -94,8 +94,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - AddIf( null != (((object)this._endIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._endIPAddress.ToString()) : null, "endIpAddress" ,container.Add ); AddIf( null != (((object)this._startIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._startIPAddress.ToString()) : null, "startIpAddress" ,container.Add ); + AddIf( null != (((object)this._endIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._endIPAddress.ToString()) : null, "endIpAddress" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/LogFile.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/LogFile.PowerShell.cs index 407fb62397da..80e4b399570b 100644 --- a/src/MySql/generated/api/Models/Api20171201/LogFile.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/LogFile.PowerShell.cs @@ -95,13 +95,13 @@ internal LogFile(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.LogFilePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType = (string) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).LastModifiedTime = (global::System.DateTime?) content.GetValueForProperty("LastModifiedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType = (string) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Url, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -121,13 +121,13 @@ internal LogFile(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.LogFilePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType = (string) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).LastModifiedTime = (global::System.DateTime?) content.GetValueForProperty("LastModifiedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType = (string) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).PropertiesType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal)this).Url, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/LogFile.cs b/src/MySql/generated/api/Models/Api20171201/LogFile.cs index 95c23d0c6d40..dfbbb43897cf 100644 --- a/src/MySql/generated/api/Models/Api20171201/LogFile.cs +++ b/src/MySql/generated/api/Models/Api20171201/LogFile.cs @@ -9,9 +9,9 @@ public partial class LogFile : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// Creation timestamp of the log file. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -21,20 +21,20 @@ public partial class LogFile : /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Last modified timestamp of the log file. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] public global::System.DateTime? LastModifiedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)Property).LastModifiedTime; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for CreatedTime global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFileInternal.CreatedTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)Property).CreatedTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)Property).CreatedTime = value; } @@ -47,7 +47,7 @@ public partial class LogFile : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Type of the log file. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -68,7 +68,7 @@ public partial class LogFile : /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// The url to download the log file from. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -88,14 +88,14 @@ public LogFile() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Represents a log file. public partial interface ILogFile : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// Creation timestamp of the log file. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( @@ -141,7 +141,7 @@ public partial interface ILogFile : } /// Represents a log file. internal partial interface ILogFileInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// Creation timestamp of the log file. global::System.DateTime? CreatedTime { get; set; } diff --git a/src/MySql/generated/api/Models/Api20171201/LogFile.json.cs b/src/MySql/generated/api/Models/Api20171201/LogFile.json.cs index 13ed03af2f00..d88094fceb9f 100644 --- a/src/MySql/generated/api/Models/Api20171201/LogFile.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/LogFile.json.cs @@ -70,7 +70,7 @@ internal LogFile(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObjec { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.LogFileProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/LogFileProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/LogFileProperties.PowerShell.cs index ab6fcae45d05..ebbb35c0f582 100644 --- a/src/MySql/generated/api/Models/Api20171201/LogFileProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/LogFileProperties.PowerShell.cs @@ -94,10 +94,10 @@ internal LogFileProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).LastModifiedTime = (global::System.DateTime?) content.GetValueForProperty("LastModifiedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Url, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -116,10 +116,10 @@ internal LogFileProperties(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).LastModifiedTime = (global::System.DateTime?) content.GetValueForProperty("LastModifiedTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).LastModifiedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb = (long?) content.GetValueForProperty("SizeInKb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).SizeInKb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Type, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFilePropertiesInternal)this).Url, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/LogFileProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/LogFileProperties.json.cs index e4e31d7aa2f8..d2b21de2898a 100644 --- a/src/MySql/generated/api/Models/Api20171201/LogFileProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/LogFileProperties.json.cs @@ -70,10 +70,10 @@ internal LogFileProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json { return; } - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_sizeInKb = If( json?.PropertyT("sizeInKB"), out var __jsonSizeInKb) ? (long?)__jsonSizeInKb : SizeInKb;} {_createdTime = If( json?.PropertyT("createdTime"), out var __jsonCreatedTime) ? global::System.DateTime.TryParse((string)__jsonCreatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedTimeValue) ? __jsonCreatedTimeValue : CreatedTime : CreatedTime;} {_lastModifiedTime = If( json?.PropertyT("lastModifiedTime"), out var __jsonLastModifiedTime) ? global::System.DateTime.TryParse((string)__jsonLastModifiedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedTimeValue) ? __jsonLastModifiedTimeValue : LastModifiedTime : LastModifiedTime;} - {_sizeInKb = If( json?.PropertyT("sizeInKB"), out var __jsonSizeInKb) ? (long?)__jsonSizeInKb : SizeInKb;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_url = If( json?.PropertyT("url"), out var __jsonUrl) ? (string)__jsonUrl : (string)Url;} AfterFromJson(json); } @@ -97,7 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._sizeInKb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._sizeInKb) : null, "sizeInKB" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != this._createdTime ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._createdTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdTime" ,container.Add ); @@ -106,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { AddIf( null != this._lastModifiedTime ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._lastModifiedTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedTime" ,container.Add ); } - AddIf( null != this._sizeInKb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._sizeInKb) : null, "sizeInKB" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); AddIf( null != (((object)this._url)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._url.ToString()) : null, "url" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/Operation.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/Operation.PowerShell.cs index bf9eef7b31f3..6b7b568dff23 100644 --- a/src/MySql/generated/api/Models/Api20171201/Operation.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/Operation.PowerShell.cs @@ -98,10 +98,10 @@ internal Operation(global::System.Collections.IDictionary content) ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -123,10 +123,10 @@ internal Operation(global::System.Management.Automation.PSObject content) ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/OperationDisplay.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/OperationDisplay.PowerShell.cs index 71880c49a2d7..454725186eaf 100644 --- a/src/MySql/generated/api/Models/Api20171201/OperationDisplay.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/OperationDisplay.PowerShell.cs @@ -94,10 +94,10 @@ internal OperationDisplay(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -115,10 +115,10 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/OperationDisplay.json.cs b/src/MySql/generated/api/Models/Api20171201/OperationDisplay.json.cs index 8cc1dc83e918..57cd04a5fe1f 100644 --- a/src/MySql/generated/api/Models/Api20171201/OperationDisplay.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/OperationDisplay.json.cs @@ -70,10 +70,10 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json. { return; } - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} {_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); } @@ -98,19 +98,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); + AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); + AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); } AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.PowerShell.cs index 0c3e1c41dd7d..c72e13ce4287 100644 --- a/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.PowerShell.cs @@ -97,14 +97,14 @@ internal PerformanceTierServiceLevelObjectives(global::System.Collections.IDicti return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Edition = (string) content.GetValueForProperty("Edition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Edition, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore = (int?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).HardwareGeneration = (string) content.GetValueForProperty("HardwareGeneration",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).HardwareGeneration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxBackupRetentionDay = (int?) content.GetValueForProperty("MaxBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb = (int?) content.GetValueForProperty("MaxStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinBackupRetentionDay = (int?) content.GetValueForProperty("MinBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb = (int?) content.GetValueForProperty("MaxStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinStorageMb = (int?) content.GetValueForProperty("MinStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore = (int?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -122,14 +122,14 @@ internal PerformanceTierServiceLevelObjectives(global::System.Management.Automat return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Edition = (string) content.GetValueForProperty("Edition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Edition, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore = (int?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).HardwareGeneration = (string) content.GetValueForProperty("HardwareGeneration",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).HardwareGeneration, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxBackupRetentionDay = (int?) content.GetValueForProperty("MaxBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb = (int?) content.GetValueForProperty("MaxStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinBackupRetentionDay = (int?) content.GetValueForProperty("MinBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb = (int?) content.GetValueForProperty("MaxStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MaxStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinStorageMb = (int?) content.GetValueForProperty("MinStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).MinStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore = (int?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierServiceLevelObjectivesInternal)this).VCore, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.json.cs b/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.json.cs index 6a1338432ae6..6880d5419492 100644 --- a/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/PerformanceTierServiceLevelObjectives.json.cs @@ -70,14 +70,14 @@ internal PerformanceTierServiceLevelObjectives(Microsoft.Azure.PowerShell.Cmdlet { return; } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_edition = If( json?.PropertyT("edition"), out var __jsonEdition) ? (string)__jsonEdition : (string)Edition;} + {_vCore = If( json?.PropertyT("vCore"), out var __jsonVCore) ? (int?)__jsonVCore : VCore;} {_hardwareGeneration = If( json?.PropertyT("hardwareGeneration"), out var __jsonHardwareGeneration) ? (string)__jsonHardwareGeneration : (string)HardwareGeneration;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_maxBackupRetentionDay = If( json?.PropertyT("maxBackupRetentionDays"), out var __jsonMaxBackupRetentionDays) ? (int?)__jsonMaxBackupRetentionDays : MaxBackupRetentionDay;} - {_maxStorageMb = If( json?.PropertyT("maxStorageMB"), out var __jsonMaxStorageMb) ? (int?)__jsonMaxStorageMb : MaxStorageMb;} {_minBackupRetentionDay = If( json?.PropertyT("minBackupRetentionDays"), out var __jsonMinBackupRetentionDays) ? (int?)__jsonMinBackupRetentionDays : MinBackupRetentionDay;} + {_maxStorageMb = If( json?.PropertyT("maxStorageMB"), out var __jsonMaxStorageMb) ? (int?)__jsonMaxStorageMb : MaxStorageMb;} {_minStorageMb = If( json?.PropertyT("minStorageMB"), out var __jsonMinStorageMb) ? (int?)__jsonMinStorageMb : MinStorageMb;} - {_vCore = If( json?.PropertyT("vCore"), out var __jsonVCore) ? (int?)__jsonVCore : VCore;} AfterFromJson(json); } @@ -101,14 +101,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AddIf( null != (((object)this._edition)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._edition.ToString()) : null, "edition" ,container.Add ); + AddIf( null != this._vCore ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._vCore) : null, "vCore" ,container.Add ); AddIf( null != (((object)this._hardwareGeneration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._hardwareGeneration.ToString()) : null, "hardwareGeneration" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AddIf( null != this._maxBackupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._maxBackupRetentionDay) : null, "maxBackupRetentionDays" ,container.Add ); - AddIf( null != this._maxStorageMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._maxStorageMb) : null, "maxStorageMB" ,container.Add ); AddIf( null != this._minBackupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._minBackupRetentionDay) : null, "minBackupRetentionDays" ,container.Add ); + AddIf( null != this._maxStorageMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._maxStorageMb) : null, "maxStorageMB" ,container.Add ); AddIf( null != this._minStorageMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._minStorageMb) : null, "minStorageMB" ,container.Add ); - AddIf( null != this._vCore ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._vCore) : null, "vCore" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.PowerShell.cs index 638d4ec1bf0c..a4e999f10604 100644 --- a/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.PowerShell.cs @@ -94,8 +94,8 @@ internal ResourceIdentity(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -114,8 +114,8 @@ internal ResourceIdentity(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.json.cs b/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.json.cs index dc09d75b401f..dffb47d83480 100644 --- a/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ResourceIdentity.json.cs @@ -70,8 +70,8 @@ internal ResourceIdentity(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json. { return; } - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} AfterFromJson(json); } @@ -95,11 +95,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._tenantId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._tenantId.ToString()) : null, "tenantId" ,container.Add ); diff --git a/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.PowerShell.cs index dd5aae297c03..564e9f211b36 100644 --- a/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.PowerShell.cs @@ -96,13 +96,13 @@ internal SecurityAlertPolicyProperties(global::System.Collections.IDictionary co return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).DisabledAlert = (string[]) content.GetValueForProperty("DisabledAlert",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).DisabledAlert, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAddress = (string[]) content.GetValueForProperty("EmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageEndpoint = (string) content.GetValueForProperty("StorageEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageEndpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -120,13 +120,13 @@ internal SecurityAlertPolicyProperties(global::System.Management.Automation.PSOb return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).DisabledAlert = (string[]) content.GetValueForProperty("DisabledAlert",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).DisabledAlert, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAddress = (string[]) content.GetValueForProperty("EmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageEndpoint = (string) content.GetValueForProperty("StorageEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageEndpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyPropertiesInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.json.cs index c1b623ced472..31d54a6e5e12 100644 --- a/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/SecurityAlertPolicyProperties.json.cs @@ -70,13 +70,13 @@ internal SecurityAlertPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql. { return; } + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_disabledAlert = If( json?.PropertyT("disabledAlerts"), out var __jsonDisabledAlerts) ? If( __jsonDisabledAlerts as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : DisabledAlert;} - {_emailAccountAdmin = If( json?.PropertyT("emailAccountAdmins"), out var __jsonEmailAccountAdmins) ? (bool?)__jsonEmailAccountAdmins : EmailAccountAdmin;} {_emailAddress = If( json?.PropertyT("emailAddresses"), out var __jsonEmailAddresses) ? If( __jsonEmailAddresses as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : EmailAddress;} - {_retentionDay = If( json?.PropertyT("retentionDays"), out var __jsonRetentionDays) ? (int?)__jsonRetentionDays : RetentionDay;} - {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} - {_storageAccountAccessKey = If( json?.PropertyT("storageAccountAccessKey"), out var __jsonStorageAccountAccessKey) ? (string)__jsonStorageAccountAccessKey : (string)StorageAccountAccessKey;} + {_emailAccountAdmin = If( json?.PropertyT("emailAccountAdmins"), out var __jsonEmailAccountAdmins) ? (bool?)__jsonEmailAccountAdmins : EmailAccountAdmin;} {_storageEndpoint = If( json?.PropertyT("storageEndpoint"), out var __jsonStorageEndpoint) ? (string)__jsonStorageEndpoint : (string)StorageEndpoint;} + {_storageAccountAccessKey = If( json?.PropertyT("storageAccountAccessKey"), out var __jsonStorageAccountAccessKey) ? (string)__jsonStorageAccountAccessKey : (string)StorageAccountAccessKey;} + {_retentionDay = If( json?.PropertyT("retentionDays"), out var __jsonRetentionDays) ? (int?)__jsonRetentionDays : RetentionDay;} AfterFromJson(json); } @@ -99,6 +99,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); if (null != this._disabledAlert) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); @@ -108,7 +109,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } container.Add("disabledAlerts",__w); } - AddIf( null != this._emailAccountAdmin ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonBoolean((bool)this._emailAccountAdmin) : null, "emailAccountAdmins" ,container.Add ); if (null != this._emailAddress) { var __r = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); @@ -118,10 +118,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } container.Add("emailAddresses",__r); } - AddIf( null != this._retentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._retentionDay) : null, "retentionDays" ,container.Add ); - AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); - AddIf( null != (((object)this._storageAccountAccessKey)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageAccountAccessKey.ToString()) : null, "storageAccountAccessKey" ,container.Add ); + AddIf( null != this._emailAccountAdmin ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonBoolean((bool)this._emailAccountAdmin) : null, "emailAccountAdmins" ,container.Add ); AddIf( null != (((object)this._storageEndpoint)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageEndpoint.ToString()) : null, "storageEndpoint" ,container.Add ); + AddIf( null != (((object)this._storageAccountAccessKey)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageAccountAccessKey.ToString()) : null, "storageAccountAccessKey" ,container.Add ); + AddIf( null != this._retentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._retentionDay) : null, "retentionDays" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/Server.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/Server.PowerShell.cs index 260fd0107475..e85224c8d2cd 100644 --- a/src/MySql/generated/api/Models/Api20171201/Server.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/Server.PowerShell.cs @@ -95,40 +95,40 @@ internal Server(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -147,40 +147,40 @@ internal Server(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).MasterServerId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/Server.cs b/src/MySql/generated/api/Models/Api20171201/Server.cs index 48e532e9fa57..27c70a775ed6 100644 --- a/src/MySql/generated/api/Models/Api20171201/Server.cs +++ b/src/MySql/generated/api/Models/Api20171201/Server.cs @@ -9,10 +9,10 @@ public partial class Server : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource(); /// /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for @@ -77,10 +77,10 @@ public partial class Server : [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)Property).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)Property).InfrastructureEncryption = value; } - /// The location the resource resides in. + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)__trackedResource).Location = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; } /// The master server id of a replica server. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -221,10 +221,10 @@ public partial class Server : [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 4)] public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)Property).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)Property).StorageProfileStorageMb = value; } - /// Application-specific metadata in the form of key-value pairs. + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal)__trackedResource).Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; } /// /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. @@ -264,7 +264,7 @@ public Server() /// Represents a server. public partial interface IServer : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource { /// /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for @@ -409,7 +409,7 @@ public partial interface IServer : /// The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.", SerializedName = @"name", @@ -491,7 +491,7 @@ public partial interface IServer : } /// Represents a server. internal partial interface IServerInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal { /// /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for diff --git a/src/MySql/generated/api/Models/Api20171201/Server.json.cs b/src/MySql/generated/api/Models/Api20171201/Server.json.cs index c27083cad269..97804a3876f7 100644 --- a/src/MySql/generated/api/Models/Api20171201/Server.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/Server.json.cs @@ -70,10 +70,10 @@ internal Server(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.TrackedResource(json); + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource(json); {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerProperties.FromJson(__jsonProperties) : Property;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -98,8 +98,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.PowerShell.cs index 623937c27e22..411cb793f2b6 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.PowerShell.cs @@ -95,9 +95,9 @@ internal ServerAdministratorResource(global::System.Collections.IDictionary cont } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerAdministratorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).AdministratorType = (string) content.GetValueForProperty("AdministratorType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).AdministratorType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Login = (string) content.GetValueForProperty("Login",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Login, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Sid = (string) content.GetValueForProperty("Sid",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Sid, global::System.Convert.ToString); @@ -120,9 +120,9 @@ internal ServerAdministratorResource(global::System.Management.Automation.PSObje } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerAdministratorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).AdministratorType = (string) content.GetValueForProperty("AdministratorType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).AdministratorType, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Login = (string) content.GetValueForProperty("Login",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Login, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Sid = (string) content.GetValueForProperty("Sid",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal)this).Sid, global::System.Convert.ToString); diff --git a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.cs b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.cs index 8397a31bf203..eba95cf5ca4b 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.cs @@ -9,9 +9,9 @@ public partial class ServerAdministratorResource : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// The type of administrator. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -21,20 +21,20 @@ public partial class ServerAdministratorResource : /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// The server administrator login account name. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] public string Login { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorPropertiesInternal)Property).Login; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorPropertiesInternal)Property).Login = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for AdministratorType string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResourceInternal.AdministratorType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorPropertiesInternal)Property).AdministratorType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorPropertiesInternal)Property).AdministratorType = value; } @@ -44,7 +44,7 @@ public partial class ServerAdministratorResource : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorProperties _property; @@ -65,7 +65,7 @@ public partial class ServerAdministratorResource : /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public ServerAdministratorResource() @@ -81,14 +81,14 @@ public ServerAdministratorResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// Represents a and external administrator to be created. public partial interface IServerAdministratorResource : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// The type of administrator. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( @@ -126,7 +126,7 @@ public partial interface IServerAdministratorResource : } /// Represents a and external administrator to be created. internal partial interface IServerAdministratorResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// The type of administrator. string AdministratorType { get; set; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.json.cs index b5dda8049ce0..a09440a4f189 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerAdministratorResource.json.cs @@ -70,7 +70,7 @@ internal ServerAdministratorResource(Microsoft.Azure.PowerShell.Cmdlets.MySql.Ru { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerAdministratorProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs index 57128939ad00..2f54147a94b5 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs @@ -95,28 +95,28 @@ internal ServerForCreate(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -136,28 +136,28 @@ internal ServerForCreate(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.cs b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.cs index 14a779a80c90..8a6dcc209f8e 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.cs @@ -241,7 +241,7 @@ public partial interface IServerForCreate : /// The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.", SerializedName = @"name", diff --git a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.json.cs index 58831d484f91..3dc2689e4cc4 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerForCreate.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerForCreate.json.cs @@ -71,8 +71,8 @@ internal ServerForCreate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.J return; } {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreate.FromJson(__jsonProperties) : Property;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreate.FromJson(__jsonProperties) : Property;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerForCreateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); @@ -98,8 +98,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.PowerShell.cs index 78a1f35b389e..b84dbc0ba098 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.PowerShell.cs @@ -96,9 +96,9 @@ internal ServerPrivateLinkServiceConnectionStateProperty(global::System.Collecti return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Description, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).ActionsRequired = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateActionsRequire?) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).ActionsRequired, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateActionsRequire.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus.CreateFrom); AfterDeserializeDictionary(content); } @@ -116,9 +116,9 @@ internal ServerPrivateLinkServiceConnectionStateProperty(global::System.Manageme return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Description, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).ActionsRequired = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateActionsRequire?) content.GetValueForProperty("ActionsRequired",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).ActionsRequired, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateActionsRequire.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateLinkServiceConnectionStatePropertyInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatus.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.json.cs index ff8461dac71a..c8cb763cb1b4 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPrivateLinkServiceConnectionStateProperty.json.cs @@ -70,9 +70,9 @@ internal ServerPrivateLinkServiceConnectionStateProperty(Microsoft.Azure.PowerSh { return; } + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_actionsRequired = If( json?.PropertyT("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)ActionsRequired;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } @@ -97,12 +97,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._actionsRequired)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._actionsRequired.ToString()) : null, "actionsRequired" ,container.Add ); } - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerProperties.PowerShell.cs index 32a55cd430c5..f7b19a35dc98 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerProperties.PowerShell.cs @@ -96,19 +96,19 @@ internal ServerProperties(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ByokEnforcement, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MasterServerId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); @@ -132,19 +132,19 @@ internal ServerProperties(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ByokEnforcement, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MasterServerId = (string) content.GetValueForProperty("MasterServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MasterServerId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPrivateEndpointConnection[]) content.GetValueForProperty("PrivateEndpointConnection",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).PrivateEndpointConnection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnectionTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); diff --git a/src/MySql/generated/api/Models/Api20171201/ServerProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerProperties.json.cs index 6568279d25aa..3180260ead5f 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerProperties.json.cs @@ -72,19 +72,19 @@ internal ServerProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json. } {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} {_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} + {_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;} {_byokEnforcement = If( json?.PropertyT("byokEnforcement"), out var __jsonByokEnforcement) ? (string)__jsonByokEnforcement : (string)ByokEnforcement;} - {_earliestRestoreDate = If( json?.PropertyT("earliestRestoreDate"), out var __jsonEarliestRestoreDate) ? global::System.DateTime.TryParse((string)__jsonEarliestRestoreDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEarliestRestoreDateValue) ? __jsonEarliestRestoreDateValue : EarliestRestoreDate : EarliestRestoreDate;} - {_fullyQualifiedDomainName = If( json?.PropertyT("fullyQualifiedDomainName"), out var __jsonFullyQualifiedDomainName) ? (string)__jsonFullyQualifiedDomainName : (string)FullyQualifiedDomainName;} {_infrastructureEncryption = If( json?.PropertyT("infrastructureEncryption"), out var __jsonInfrastructureEncryption) ? (string)__jsonInfrastructureEncryption : (string)InfrastructureEncryption;} + {_userVisibleState = If( json?.PropertyT("userVisibleState"), out var __jsonUserVisibleState) ? (string)__jsonUserVisibleState : (string)UserVisibleState;} + {_fullyQualifiedDomainName = If( json?.PropertyT("fullyQualifiedDomainName"), out var __jsonFullyQualifiedDomainName) ? (string)__jsonFullyQualifiedDomainName : (string)FullyQualifiedDomainName;} + {_earliestRestoreDate = If( json?.PropertyT("earliestRestoreDate"), out var __jsonEarliestRestoreDate) ? global::System.DateTime.TryParse((string)__jsonEarliestRestoreDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEarliestRestoreDateValue) ? __jsonEarliestRestoreDateValue : EarliestRestoreDate : EarliestRestoreDate;} + {_replicationRole = If( json?.PropertyT("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole;} {_masterServerId = If( json?.PropertyT("masterServerId"), out var __jsonMasterServerId) ? (string)__jsonMasterServerId : (string)MasterServerId;} - {_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;} - {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20171201.IServerPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnection.FromJson(__u) )) ))() : null : PrivateEndpointConnection;} - {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} {_replicaCapacity = If( json?.PropertyT("replicaCapacity"), out var __jsonReplicaCapacity) ? (int?)__jsonReplicaCapacity : ReplicaCapacity;} - {_replicationRole = If( json?.PropertyT("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole;} - {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} - {_userVisibleState = If( json?.PropertyT("userVisibleState"), out var __jsonUserVisibleState) ? (string)__jsonUserVisibleState : (string)UserVisibleState;} - {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} + {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20171201.IServerPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPrivateEndpointConnection.FromJson(__u) )) ))() : null : PrivateEndpointConnection;} AfterFromJson(json); } @@ -109,15 +109,21 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add ); + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); + AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._byokEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._byokEnforcement.ToString()) : null, "byokEnforcement" ,container.Add ); } - AddIf( null != this._earliestRestoreDate ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._earliestRestoreDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "earliestRestoreDate" ,container.Add ); - AddIf( null != (((object)this._fullyQualifiedDomainName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._fullyQualifiedDomainName.ToString()) : null, "fullyQualifiedDomainName" ,container.Add ); AddIf( null != (((object)this._infrastructureEncryption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._infrastructureEncryption.ToString()) : null, "infrastructureEncryption" ,container.Add ); + AddIf( null != (((object)this._userVisibleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._userVisibleState.ToString()) : null, "userVisibleState" ,container.Add ); + AddIf( null != (((object)this._fullyQualifiedDomainName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._fullyQualifiedDomainName.ToString()) : null, "fullyQualifiedDomainName" ,container.Add ); + AddIf( null != this._earliestRestoreDate ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._earliestRestoreDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "earliestRestoreDate" ,container.Add ); + AddIf( null != (((object)this._replicationRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._replicationRole.ToString()) : null, "replicationRole" ,container.Add ); AddIf( null != (((object)this._masterServerId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._masterServerId.ToString()) : null, "masterServerId" ,container.Add ); - AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add ); + AddIf( null != this._replicaCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._replicaCapacity) : null, "replicaCapacity" ,container.Add ); + AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { if (null != this._privateEndpointConnection) @@ -130,12 +136,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic container.Add("privateEndpointConnections",__w); } } - AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); - AddIf( null != this._replicaCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._replicaCapacity) : null, "replicaCapacity" ,container.Add ); - AddIf( null != (((object)this._replicationRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._replicationRole.ToString()) : null, "replicationRole" ,container.Add ); - AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); - AddIf( null != (((object)this._userVisibleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._userVisibleState.ToString()) : null, "userVisibleState" ,container.Add ); - AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.PowerShell.cs index adea30a210d0..4979d34f9078 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.PowerShell.cs @@ -95,12 +95,12 @@ internal ServerPropertiesForCreate(global::System.Collections.IDictionary conten } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); @@ -123,12 +123,12 @@ internal ServerPropertiesForCreate(global::System.Management.Automation.PSObject } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.json.cs index 4c8838b54367..089c1d8b9aaf 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForCreate.json.cs @@ -98,12 +98,12 @@ internal ServerPropertiesForCreate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runt return; } {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} - {_createMode = If( json?.PropertyT("createMode"), out var __jsonCreateMode) ? (string)__jsonCreateMode : (string)CreateMode;} - {_infrastructureEncryption = If( json?.PropertyT("infrastructureEncryption"), out var __jsonInfrastructureEncryption) ? (string)__jsonInfrastructureEncryption : (string)InfrastructureEncryption;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} {_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;} + {_infrastructureEncryption = If( json?.PropertyT("infrastructureEncryption"), out var __jsonInfrastructureEncryption) ? (string)__jsonInfrastructureEncryption : (string)InfrastructureEncryption;} {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} - {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} - {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_createMode = If( json?.PropertyT("createMode"), out var __jsonCreateMode) ? (string)__jsonCreateMode : (string)CreateMode;} AfterFromJson(json); } @@ -127,12 +127,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); - AddIf( null != (((object)this._createMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._createMode.ToString()) : null, "createMode" ,container.Add ); - AddIf( null != (((object)this._infrastructureEncryption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._infrastructureEncryption.ToString()) : null, "infrastructureEncryption" ,container.Add ); + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add ); + AddIf( null != (((object)this._infrastructureEncryption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._infrastructureEncryption.ToString()) : null, "infrastructureEncryption" ,container.Add ); AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); - AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); - AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + AddIf( null != (((object)this._createMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._createMode.ToString()) : null, "createMode" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs index f3305d049e0f..3ba5e3c13730 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs @@ -103,12 +103,12 @@ internal ServerPropertiesForDefaultCreate(global::System.Collections.IDictionary ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializeDictionary(content); } @@ -133,12 +133,12 @@ internal ServerPropertiesForDefaultCreate(global::System.Management.Automation.P ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.PowerShell.cs index 7f9ccffdfc2e..928459a2c24b 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.PowerShell.cs @@ -104,12 +104,12 @@ internal ServerPropertiesForGeoRestore(global::System.Collections.IDictionary co ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializeDictionary(content); } @@ -133,12 +133,12 @@ internal ServerPropertiesForGeoRestore(global::System.Management.Automation.PSOb ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForReplica.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForReplica.PowerShell.cs index c280a3a4b7e2..7bcee7e00d26 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForReplica.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForReplica.PowerShell.cs @@ -100,12 +100,12 @@ internal ServerPropertiesForReplica(global::System.Collections.IDictionary conte ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializeDictionary(content); } @@ -129,12 +129,12 @@ internal ServerPropertiesForReplica(global::System.Management.Automation.PSObjec ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.PowerShell.cs index 844cce343c53..2ae28638002c 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.PowerShell.cs @@ -94,19 +94,19 @@ internal ServerPropertiesForRestore(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime = (global::System.DateTime) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime = (global::System.DateTime) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializeDictionary(content); } @@ -124,19 +124,19 @@ internal ServerPropertiesForRestore(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime = (global::System.DateTime) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime = (global::System.DateTime) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForRestoreInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerPropertiesForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.json.cs index fde2121dd7d7..94c27757d3a3 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerPropertiesForRestore.json.cs @@ -71,8 +71,8 @@ internal ServerPropertiesForRestore(Microsoft.Azure.PowerShell.Cmdlets.MySql.Run return; } __serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerPropertiesForCreate(json); - {_restorePointInTime = If( json?.PropertyT("restorePointInTime"), out var __jsonRestorePointInTime) ? global::System.DateTime.TryParse((string)__jsonRestorePointInTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRestorePointInTimeValue) ? __jsonRestorePointInTimeValue : RestorePointInTime : RestorePointInTime;} {_sourceServerId = If( json?.PropertyT("sourceServerId"), out var __jsonSourceServerId) ? (string)__jsonSourceServerId : (string)SourceServerId;} + {_restorePointInTime = If( json?.PropertyT("restorePointInTime"), out var __jsonRestorePointInTime) ? global::System.DateTime.TryParse((string)__jsonRestorePointInTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRestorePointInTimeValue) ? __jsonRestorePointInTimeValue : RestorePointInTime : RestorePointInTime;} AfterFromJson(json); } @@ -96,8 +96,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } __serverPropertiesForCreate?.ToJson(container, serializationMode); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._restorePointInTime.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "restorePointInTime" ,container.Add ); AddIf( null != (((object)this._sourceServerId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sourceServerId.ToString()) : null, "sourceServerId" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._restorePointInTime.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "restorePointInTime" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.PowerShell.cs index 5159a4bb4430..99814891f7fb 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.PowerShell.cs @@ -95,16 +95,16 @@ internal ServerSecurityAlertPolicy(global::System.Collections.IDictionary conten } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SecurityAlertPolicyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).DisabledAlert = (string[]) content.GetValueForProperty("DisabledAlert",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).DisabledAlert, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAddress = (string[]) content.GetValueForProperty("EmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageEndpoint = (string) content.GetValueForProperty("StorageEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageEndpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -123,16 +123,16 @@ internal ServerSecurityAlertPolicy(global::System.Management.Automation.PSObject } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SecurityAlertPolicyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).DisabledAlert = (string[]) content.GetValueForProperty("DisabledAlert",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).DisabledAlert, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAddress = (string[]) content.GetValueForProperty("EmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin = (bool?) content.GetValueForProperty("EmailAccountAdmin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).EmailAccountAdmin, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageEndpoint = (string) content.GetValueForProperty("StorageEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageEndpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey = (string) content.GetValueForProperty("StorageAccountAccessKey",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).StorageAccountAccessKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay = (int?) content.GetValueForProperty("RetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal)this).RetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.cs b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.cs index d5645071042e..f7cb76402364 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.cs @@ -9,9 +9,9 @@ public partial class ServerSecurityAlertPolicy : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly @@ -31,23 +31,23 @@ public partial class ServerSecurityAlertPolicy : /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SecurityAlertPolicyProperties()); set { {_property = value;} } } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISecurityAlertPolicyProperties _property; @@ -79,7 +79,7 @@ public partial class ServerSecurityAlertPolicy : /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// Creates an new instance. public ServerSecurityAlertPolicy() @@ -95,14 +95,14 @@ public ServerSecurityAlertPolicy() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } /// A server security alert policy. public partial interface IServerSecurityAlertPolicy : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly @@ -169,7 +169,7 @@ public partial interface IServerSecurityAlertPolicy : } /// A server security alert policy. internal partial interface IServerSecurityAlertPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly diff --git a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.json.cs index dffe14206754..9e82ee4af6fd 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerSecurityAlertPolicy.json.cs @@ -70,7 +70,7 @@ internal ServerSecurityAlertPolicy(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runt { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SecurityAlertPolicyProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -94,7 +94,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs index e59424837503..62ca7226e931 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs @@ -95,28 +95,28 @@ internal ServerUpdateParameters(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -135,28 +135,28 @@ internal ServerUpdateParameters(global::System.Management.Automation.PSObject co } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentityTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.cs b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.cs index a44f914ec11b..fc488966bc34 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.cs @@ -226,7 +226,7 @@ public partial interface IServerUpdateParameters : /// The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.", SerializedName = @"name", diff --git a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.json.cs index 4ab08ca09fd6..5058348d47f2 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParameters.json.cs @@ -71,8 +71,8 @@ internal ServerUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime return; } {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersProperties.FromJson(__jsonProperties) : Property;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersProperties.FromJson(__jsonProperties) : Property;} {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ServerUpdateParametersTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } @@ -97,8 +97,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs index 90083c9bd24b..732638d48bdf 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs @@ -98,11 +98,11 @@ internal ServerUpdateParametersProperties(global::System.Collections.IDictionary // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); @@ -126,11 +126,11 @@ internal ServerUpdateParametersProperties(global::System.Management.Automation.P // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).ReplicationRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); diff --git a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs index 7d6147cf9b29..b8aed3bcecf3 100644 --- a/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs @@ -72,11 +72,11 @@ internal ServerUpdateParametersProperties(Microsoft.Azure.PowerShell.Cmdlets.MyS } {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} {_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;} {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} {_replicationRole = If( json?.PropertyT("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole;} - {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} - {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} AfterFromJson(json); } @@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add ); AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); AddIf( null != (((object)this._replicationRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._replicationRole.ToString()) : null, "replicationRole" ,container.Add ); - AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); - AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/Sku.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/Sku.PowerShell.cs index c9f193e99b32..ef938172b4e2 100644 --- a/src/MySql/generated/api/Models/Api20171201/Sku.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/Sku.PowerShell.cs @@ -95,10 +95,10 @@ internal Sku(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Size = (string) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Size, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -117,10 +117,10 @@ internal Sku(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Size = (string) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Size, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier?) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ISkuInternal)this).Family, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/Sku.cs b/src/MySql/generated/api/Models/Api20171201/Sku.cs index 54277c3575b6..f923f8570273 100644 --- a/src/MySql/generated/api/Models/Api20171201/Sku.cs +++ b/src/MySql/generated/api/Models/Api20171201/Sku.cs @@ -75,7 +75,7 @@ public partial interface ISku : /// The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Description = @"The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.", SerializedName = @"name", diff --git a/src/MySql/generated/api/Models/Api20171201/Sku.json.cs b/src/MySql/generated/api/Models/Api20171201/Sku.json.cs index b75a978f733a..1b56ebbc56dc 100644 --- a/src/MySql/generated/api/Models/Api20171201/Sku.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/Sku.json.cs @@ -71,10 +71,10 @@ internal Sku(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject js return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} {_capacity = If( json?.PropertyT("capacity"), out var __jsonCapacity) ? (int?)__jsonCapacity : Capacity;} - {_family = If( json?.PropertyT("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)Family;} {_size = If( json?.PropertyT("size"), out var __jsonSize) ? (string)__jsonSize : (string)Size;} - {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} + {_family = If( json?.PropertyT("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)Family;} AfterFromJson(json); } @@ -98,10 +98,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); AddIf( null != this._capacity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._capacity) : null, "capacity" ,container.Add ); - AddIf( null != (((object)this._family)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._family.ToString()) : null, "family" ,container.Add ); AddIf( null != (((object)this._size)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._size.ToString()) : null, "size" ,container.Add ); - AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); + AddIf( null != (((object)this._family)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._family.ToString()) : null, "family" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/StorageProfile.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/StorageProfile.PowerShell.cs index ba50a5ca7621..bc85cf5969d6 100644 --- a/src/MySql/generated/api/Models/Api20171201/StorageProfile.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/StorageProfile.PowerShell.cs @@ -96,8 +96,8 @@ internal StorageProfile(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).BackupRetentionDay = (int?) content.GetValueForProperty("BackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).BackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).GeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("GeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).GeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageMb = (int?) content.GetValueForProperty("StorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); AfterDeserializeDictionary(content); } @@ -117,8 +117,8 @@ internal StorageProfile(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).BackupRetentionDay = (int?) content.GetValueForProperty("BackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).BackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).GeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup?) content.GetValueForProperty("GeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).GeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageMb = (int?) content.GetValueForProperty("StorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IStorageProfileInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/Api20171201/StorageProfile.json.cs b/src/MySql/generated/api/Models/Api20171201/StorageProfile.json.cs index 2d42689cfb9f..aeddae2fe03e 100644 --- a/src/MySql/generated/api/Models/Api20171201/StorageProfile.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/StorageProfile.json.cs @@ -72,8 +72,8 @@ internal StorageProfile(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.Js } {_backupRetentionDay = If( json?.PropertyT("backupRetentionDays"), out var __jsonBackupRetentionDays) ? (int?)__jsonBackupRetentionDays : BackupRetentionDay;} {_geoRedundantBackup = If( json?.PropertyT("geoRedundantBackup"), out var __jsonGeoRedundantBackup) ? (string)__jsonGeoRedundantBackup : (string)GeoRedundantBackup;} - {_storageAutogrow = If( json?.PropertyT("storageAutogrow"), out var __jsonStorageAutogrow) ? (string)__jsonStorageAutogrow : (string)StorageAutogrow;} {_storageMb = If( json?.PropertyT("storageMB"), out var __jsonStorageMb) ? (int?)__jsonStorageMb : StorageMb;} + {_storageAutogrow = If( json?.PropertyT("storageAutogrow"), out var __jsonStorageAutogrow) ? (string)__jsonStorageAutogrow : (string)StorageAutogrow;} AfterFromJson(json); } @@ -98,8 +98,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic } AddIf( null != this._backupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._backupRetentionDay) : null, "backupRetentionDays" ,container.Add ); AddIf( null != (((object)this._geoRedundantBackup)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._geoRedundantBackup.ToString()) : null, "geoRedundantBackup" ,container.Add ); - AddIf( null != (((object)this._storageAutogrow)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageAutogrow.ToString()) : null, "storageAutogrow" ,container.Add ); AddIf( null != this._storageMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._storageMb) : null, "storageMB" ,container.Add ); + AddIf( null != (((object)this._storageAutogrow)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageAutogrow.ToString()) : null, "storageAutogrow" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.PowerShell.cs index dc3d1bea96c2..c7e50f7ae16e 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.PowerShell.cs @@ -100,12 +100,12 @@ internal VirtualNetworkRule(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).IgnoreMissingVnetServiceEndpoint = (bool?) content.GetValueForProperty("IgnoreMissingVnetServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).IgnoreMissingVnetServiceEndpoint, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -124,12 +124,12 @@ internal VirtualNetworkRule(global::System.Management.Automation.PSObject conten } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRulePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).IgnoreMissingVnetServiceEndpoint = (bool?) content.GetValueForProperty("IgnoreMissingVnetServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).IgnoreMissingVnetServiceEndpoint, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.cs index 46b1d40c2de1..4e68a413510c 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.cs @@ -9,15 +9,15 @@ public partial class VirtualNetworkRule : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); /// /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } /// /// Create firewall rule before the virtual network has vnet service endpoint enabled. @@ -26,13 +26,13 @@ public partial class VirtualNetworkRule : public bool? IgnoreMissingVnetServiceEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)Property).IgnoreMissingVnetServiceEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)Property).IgnoreMissingVnetServiceEndpoint = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties()); set { {_property = value;} } } @@ -42,7 +42,7 @@ public partial class VirtualNetworkRule : /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleProperties _property; @@ -59,7 +59,7 @@ public partial class VirtualNetworkRule : /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. /// [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } /// The ARM resource id of the virtual network subnet. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] @@ -73,8 +73,8 @@ public partial class VirtualNetworkRule : /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); - await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } /// Creates an new instance. @@ -86,7 +86,7 @@ public VirtualNetworkRule() /// A virtual network rule. public partial interface IVirtualNetworkRule : Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource { /// /// Create firewall rule before the virtual network has vnet service endpoint enabled. @@ -118,7 +118,7 @@ public partial interface IVirtualNetworkRule : } /// A virtual network rule. internal partial interface IVirtualNetworkRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal { /// /// Create firewall rule before the virtual network has vnet service endpoint enabled. diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.json.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.json.cs index 58bee941cf39..e2670d069f75 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRule.json.cs @@ -77,7 +77,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - __proxyResource?.ToJson(container, serializationMode); + __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; @@ -95,7 +95,7 @@ internal VirtualNetworkRule(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Jso { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ProxyResource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.PowerShell.cs index 578bc7e7e42f..566ff18f708d 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.PowerShell.cs @@ -99,8 +99,8 @@ internal VirtualNetworkRuleListResult(global::System.Collections.IDictionary con return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -118,8 +118,8 @@ internal VirtualNetworkRuleListResult(global::System.Management.Automation.PSObj return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRuleListResultInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.json.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.json.cs index cbe9f5e3b6e8..7d602d9fc5f1 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleListResult.json.cs @@ -78,10 +78,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { if (null != this._value) { @@ -93,6 +89,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic container.Add("value",__w); } } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } AfterToJson(ref container); return container; } @@ -109,8 +109,8 @@ internal VirtualNetworkRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.MySql.R { return; } - {_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.MySql.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.MySql.Models.Api20171201.IVirtualNetworkRule) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.VirtualNetworkRule.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.PowerShell.cs index 25552973851f..8918492bea42 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.PowerShell.cs @@ -99,9 +99,9 @@ internal VirtualNetworkRuleProperties(global::System.Collections.IDictionary con return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).IgnoreMissingVnetServiceEndpoint = (bool?) content.GetValueForProperty("IgnoreMissingVnetServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).IgnoreMissingVnetServiceEndpoint, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -119,9 +119,9 @@ internal VirtualNetworkRuleProperties(global::System.Management.Automation.PSObj return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).IgnoreMissingVnetServiceEndpoint = (bool?) content.GetValueForProperty("IgnoreMissingVnetServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).IgnoreMissingVnetServiceEndpoint, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId = (string) content.GetValueForProperty("VirtualNetworkSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRulePropertiesInternal)this).VirtualNetworkSubnetId, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.json.cs b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.json.cs index c05c146c22bd..2e87418dc05b 100644 --- a/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.json.cs +++ b/src/MySql/generated/api/Models/Api20171201/VirtualNetworkRuleProperties.json.cs @@ -77,12 +77,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != (((object)this._virtualNetworkSubnetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._virtualNetworkSubnetId.ToString()) : null, "virtualNetworkSubnetId" ,container.Add ); AddIf( null != this._ignoreMissingVnetServiceEndpoint ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonBoolean((bool)this._ignoreMissingVnetServiceEndpoint) : null, "ignoreMissingVnetServiceEndpoint" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); } - AddIf( null != (((object)this._virtualNetworkSubnetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._virtualNetworkSubnetId.ToString()) : null, "virtualNetworkSubnetId" ,container.Add ); AfterToJson(ref container); return container; } @@ -99,9 +99,9 @@ internal VirtualNetworkRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.R { return; } + {_virtualNetworkSubnetId = If( json?.PropertyT("virtualNetworkSubnetId"), out var __jsonVirtualNetworkSubnetId) ? (string)__jsonVirtualNetworkSubnetId : (string)VirtualNetworkSubnetId;} {_ignoreMissingVnetServiceEndpoint = If( json?.PropertyT("ignoreMissingVnetServiceEndpoint"), out var __jsonIgnoreMissingVnetServiceEndpoint) ? (bool?)__jsonIgnoreMissingVnetServiceEndpoint : IgnoreMissingVnetServiceEndpoint;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} - {_virtualNetworkSubnetId = If( json?.PropertyT("virtualNetworkSubnetId"), out var __jsonVirtualNetworkSubnetId) ? (string)__jsonVirtualNetworkSubnetId : (string)VirtualNetworkSubnetId;} AfterFromJson(json); } } diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.PowerShell.cs new file mode 100644 index 000000000000..887791b4b7f7 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// location capability + [System.ComponentModel.TypeConverter(typeof(CapabilitiesListResultTypeConverter))] + public partial class CapabilitiesListResult + { + + /// + /// 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 CapabilitiesListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilityPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CapabilitiesListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilityPropertiesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal)this).NextLink, 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.MySql.Models.Api20200701Preview.ICapabilitiesListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CapabilitiesListResult(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.MySql.Models.Api20200701Preview.ICapabilitiesListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CapabilitiesListResult(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.MySql.Models.Api20200701Preview.ICapabilitiesListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// location capability + [System.ComponentModel.TypeConverter(typeof(CapabilitiesListResultTypeConverter))] + public partial interface ICapabilitiesListResult + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.TypeConverter.cs new file mode 100644 index 000000000000..36ba62f50aa8 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CapabilitiesListResultTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.ICapabilitiesListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CapabilitiesListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CapabilitiesListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CapabilitiesListResult.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/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.cs new file mode 100644 index 000000000000..336cde6f3eb3 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// location capability + public partial class CapabilitiesListResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResult, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// Link to retrieve next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[] _value; + + /// A list of supported capabilities. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[] Value { get => this._value; } + + /// Creates an new instance. + public CapabilitiesListResult() + { + + } + } + /// location capability + public partial interface ICapabilitiesListResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Link to retrieve next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Link to retrieve next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// A list of supported capabilities. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of supported capabilities.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[] Value { get; } + + } + /// location capability + internal partial interface ICapabilitiesListResultInternal + + { + /// Link to retrieve next page of results. + string NextLink { get; set; } + /// A list of supported capabilities. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.json.cs new file mode 100644 index 000000000000..fc5dea06af4b --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilitiesListResult.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// location capability + public partial class CapabilitiesListResult + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal CapabilitiesListResult(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.ICapabilityProperties) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilityProperties.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.MySql.Models.Api20200701Preview.ICapabilitiesListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilitiesListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new CapabilitiesListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.PowerShell.cs new file mode 100644 index 000000000000..ec415508d4fb --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Location capabilities. + [System.ComponentModel.TypeConverter(typeof(CapabilityPropertiesTypeConverter))] + public partial class CapabilityProperties + { + + /// + /// 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 CapabilityProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).Zone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).SupportedFlexibleServerEdition = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[]) content.GetValueForProperty("SupportedFlexibleServerEdition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).SupportedFlexibleServerEdition, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerEditionCapabilityTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CapabilityProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).Zone = (string) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).Zone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).SupportedFlexibleServerEdition = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[]) content.GetValueForProperty("SupportedFlexibleServerEdition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal)this).SupportedFlexibleServerEdition, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerEditionCapabilityTypeConverter.ConvertFrom)); + 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.MySql.Models.Api20200701Preview.ICapabilityProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CapabilityProperties(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.MySql.Models.Api20200701Preview.ICapabilityProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CapabilityProperties(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.MySql.Models.Api20200701Preview.ICapabilityProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Location capabilities. + [System.ComponentModel.TypeConverter(typeof(CapabilityPropertiesTypeConverter))] + public partial interface ICapabilityProperties + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.TypeConverter.cs similarity index 88% rename from src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.TypeConverter.cs rename to src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.TypeConverter.cs index dbd757357c05..17feab2f1322 100644 --- a/src/MySql/generated/api/Models/Api10/ErrorAdditionalInfo1.TypeConverter.cs +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.TypeConverter.cs @@ -1,11 +1,11 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ErrorAdditionalInfo1TypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class CapabilityPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -24,10 +24,10 @@ public partial class ErrorAdditionalInfo1TypeConverter : global::System.Manageme /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -89,7 +89,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -97,24 +97,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1 ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo1).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties).IsAssignableFrom(type)) { return sourceValue; } try { - return ErrorAdditionalInfo1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return CapabilityProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -122,11 +122,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditi } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ErrorAdditionalInfo1.DeserializeFromPSObject(sourceValue); + return CapabilityProperties.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ErrorAdditionalInfo1.DeserializeFromDictionary(sourceValue); + return CapabilityProperties.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.cs new file mode 100644 index 000000000000..c00d109979a5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Location capabilities. + public partial class CapabilityProperties : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal + { + + /// Internal Acessors for SupportedFlexibleServerEdition + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal.SupportedFlexibleServerEdition { get => this._supportedFlexibleServerEdition; set { {_supportedFlexibleServerEdition = value;} } } + + /// Internal Acessors for Zone + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityPropertiesInternal.Zone { get => this._zone; set { {_zone = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[] _supportedFlexibleServerEdition; + + /// A list of supported flexible server editions. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[] SupportedFlexibleServerEdition { get => this._supportedFlexibleServerEdition; } + + /// Backing field for property. + private string _zone; + + /// zone name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Zone { get => this._zone; } + + /// Creates an new instance. + public CapabilityProperties() + { + + } + } + /// Location capabilities. + public partial interface ICapabilityProperties : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// A list of supported flexible server editions. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of supported flexible server editions.", + SerializedName = @"supportedFlexibleServerEditions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[] SupportedFlexibleServerEdition { get; } + /// zone name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"zone name", + SerializedName = @"zone", + PossibleTypes = new [] { typeof(string) })] + string Zone { get; } + + } + /// Location capabilities. + internal partial interface ICapabilityPropertiesInternal + + { + /// A list of supported flexible server editions. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability[] SupportedFlexibleServerEdition { get; set; } + /// zone name + string Zone { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.json.cs new file mode 100644 index 000000000000..ef65e964e7b6 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CapabilityProperties.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Location capabilities. + public partial class CapabilityProperties + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal CapabilityProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_zone = If( json?.PropertyT("zone"), out var __jsonZone) ? (string)__jsonZone : (string)Zone;} + {_supportedFlexibleServerEdition = If( json?.PropertyT("supportedFlexibleServerEditions"), out var __jsonSupportedFlexibleServerEditions) ? If( __jsonSupportedFlexibleServerEditions as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IServerEditionCapability) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerEditionCapability.FromJson(__u) )) ))() : null : SupportedFlexibleServerEdition;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new CapabilityProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._zone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._zone.ToString()) : null, "zone" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._supportedFlexibleServerEdition) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._supportedFlexibleServerEdition ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("supportedFlexibleServerEditions",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..9ba3374400c1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.PowerShell.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// An error response from the Batch service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorAutoGeneratedTypeConverter))] + public partial class CloudErrorAutoGenerated + { + + /// + /// 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 CloudErrorAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudErrorAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + 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.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudErrorAutoGenerated(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.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudErrorAutoGenerated(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.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the Batch service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorAutoGeneratedTypeConverter))] + public partial interface ICloudErrorAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..075e44a34d17 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudErrorAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudErrorAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudErrorAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.cs new file mode 100644 index 000000000000..f78e20582cd8 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.cs @@ -0,0 +1,126 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// An error response from the Batch service. + public partial class CloudErrorAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal + { + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Detail; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse _error; + + /// The resource management error response. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse()); set => this._error = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Code = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Detail = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGeneratedInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Target = value; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponseInternal)Error).Target; } + + /// Creates an new instance. + public CloudErrorAutoGenerated() + { + + } + } + /// An error response from the Batch service. + public partial interface ICloudErrorAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// An error response from the Batch service. + internal partial interface ICloudErrorAutoGeneratedInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse[] Detail { get; set; } + /// The resource management error response. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IErrorResponse Error { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.json.cs similarity index 77% rename from src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.json.cs rename to src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.json.cs index 9319470333ce..3a28b763db0c 100644 --- a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.json.cs +++ b/src/MySql/generated/api/Models/Api20200701Preview/CloudErrorAutoGenerated.json.cs @@ -1,8 +1,9 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; - public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproperties + /// An error response from the Batch service. + public partial class CloudErrorAutoGenerated { /// @@ -46,11 +47,10 @@ public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproper partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. - internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + internal CloudErrorAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -58,31 +58,30 @@ internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(Microso { return; } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ErrorResponse.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICloudErrorAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new CloudErrorAutoGenerated(json) : null; } /// - /// Serializes this instance of into a . + /// 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 . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) { @@ -94,6 +93,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..b6975717aa07 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.PowerShell.cs @@ -0,0 +1,157 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Represents a Configuration. + [System.ComponentModel.TypeConverter(typeof(ConfigurationAutoGeneratedTypeConverter))] + public partial class ConfigurationAutoGenerated + { + + /// + /// 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 ConfigurationAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).AllowedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsReadOnly = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly?) content.GetValueForProperty("IsReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsReadOnly, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsConfigPendingRestart = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart?) content.GetValueForProperty("IsConfigPendingRestart",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsConfigPendingRestart, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsDynamicConfig = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig?) content.GetValueForProperty("IsDynamicConfig",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsDynamicConfig, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).AllowedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsReadOnly = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly?) content.GetValueForProperty("IsReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsReadOnly, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsConfigPendingRestart = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart?) content.GetValueForProperty("IsConfigPendingRestart",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsConfigPendingRestart, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsDynamicConfig = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig?) content.GetValueForProperty("IsDynamicConfig",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal)this).IsDynamicConfig, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig.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.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a Configuration. + [System.ComponentModel.TypeConverter(typeof(ConfigurationAutoGeneratedTypeConverter))] + public partial interface IConfigurationAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..ece9d28a0bb9 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.cs new file mode 100644 index 000000000000..022cf4c725e5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.cs @@ -0,0 +1,244 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Represents a Configuration. + public partial class ConfigurationAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); + + /// Allowed values of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 2)] + public string AllowedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).AllowedValue; } + + /// Data type of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string DataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DataType; } + + /// Default value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 4)] + public string DefaultValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DefaultValue; } + + /// Description of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Description; } + + /// + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } + + /// If is the configuration pending restart or not. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsConfigPendingRestart; } + + /// If is the configuration dynamic. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsDynamicConfig; } + + /// If is the configuration read only. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsReadOnly; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for AllowedValue + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.AllowedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).AllowedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).AllowedValue = value; } + + /// Internal Acessors for DataType + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.DataType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DataType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DataType = value; } + + /// Internal Acessors for DefaultValue + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.DefaultValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DefaultValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).DefaultValue = value; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Description = value; } + + /// Internal Acessors for IsConfigPendingRestart + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.IsConfigPendingRestart { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsConfigPendingRestart; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsConfigPendingRestart = value; } + + /// Internal Acessors for IsDynamicConfig + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.IsDynamicConfig { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsDynamicConfig; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsDynamicConfig = value; } + + /// Internal Acessors for IsReadOnly + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.IsReadOnly { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsReadOnly; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).IsReadOnly = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGenerated()); set { {_property = value;} } } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated _property; + + /// The properties of a configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGenerated()); set => this._property = value; } + + /// Source of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 3)] + public string Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Source; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Source = value; } + + /// + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } + + /// Value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 1)] + public string Value { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)Property).Value = value; } + + /// Creates an new instance. + public ConfigurationAutoGenerated() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents a Configuration. + public partial interface IConfigurationAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource + { + /// Allowed values of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Allowed values of the configuration.", + SerializedName = @"allowedValues", + PossibleTypes = new [] { typeof(string) })] + string AllowedValue { get; } + /// Data type of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Data type of the configuration.", + SerializedName = @"dataType", + PossibleTypes = new [] { typeof(string) })] + string DataType { get; } + /// Default value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Default value of the configuration.", + SerializedName = @"defaultValue", + PossibleTypes = new [] { typeof(string) })] + string DefaultValue { get; } + /// Description of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Description of the configuration.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// If is the configuration pending restart or not. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration pending restart or not.", + SerializedName = @"isConfigPendingRestart", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get; } + /// If is the configuration dynamic. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration dynamic.", + SerializedName = @"isDynamicConfig", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get; } + /// If is the configuration read only. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration read only.", + SerializedName = @"isReadOnly", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get; } + /// Source of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of the configuration.", + SerializedName = @"source", + PossibleTypes = new [] { typeof(string) })] + string Source { get; set; } + /// Value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Value of the configuration.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + string Value { get; set; } + + } + /// Represents a Configuration. + internal partial interface IConfigurationAutoGeneratedInternal : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal + { + /// Allowed values of the configuration. + string AllowedValue { get; set; } + /// Data type of the configuration. + string DataType { get; set; } + /// Default value of the configuration. + string DefaultValue { get; set; } + /// Description of the configuration. + string Description { get; set; } + /// If is the configuration pending restart or not. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get; set; } + /// If is the configuration dynamic. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get; set; } + /// If is the configuration read only. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get; set; } + /// The properties of a configuration. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated Property { get; set; } + /// Source of the configuration. + string Source { get; set; } + /// Value of the configuration. + string Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.json.cs new file mode 100644 index 000000000000..223cc782b4cb --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationAutoGenerated.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Represents a Configuration. + public partial class ConfigurationAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ConfigurationAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..07bb6739b6b1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A list of server configurations. + [System.ComponentModel.TypeConverter(typeof(ConfigurationListResultAutoGeneratedTypeConverter))] + public partial class ConfigurationListResultAutoGenerated + { + + /// + /// 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 ConfigurationListResultAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationListResultAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal)this).NextLink, 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.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A list of server configurations. + [System.ComponentModel.TypeConverter(typeof(ConfigurationListResultAutoGeneratedTypeConverter))] + public partial interface IConfigurationListResultAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.TypeConverter.cs similarity index 79% rename from src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.TypeConverter.cs rename to src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.TypeConverter.cs index cdbaedd73743..6d3a1ca48f50 100644 --- a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.TypeConverter.cs +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.TypeConverter.cs @@ -1,12 +1,12 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalpropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ConfigurationListResultAutoGeneratedTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -25,11 +25,11 @@ public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproper /// Determines if the converter can convert the parameter to the /// parameter. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise + /// false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -91,8 +91,7 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there - /// is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); @@ -100,26 +99,24 @@ public static bool CanConvertFrom(dynamic sourceValue) /// Converts the parameter to the parameter using and /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there - /// is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } try { - return Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ConfigurationListResultAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +124,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ICompo } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.DeserializeFromPSObject(sourceValue); + return ConfigurationListResultAutoGenerated.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.DeserializeFromDictionary(sourceValue); + return ConfigurationListResultAutoGenerated.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.cs new file mode 100644 index 000000000000..a9b659dfdb6a --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of server configurations. + public partial class ConfigurationListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGeneratedInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[] _value; + + /// The list of server configurations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ConfigurationListResultAutoGenerated() + { + + } + } + /// A list of server configurations. + public partial interface IConfigurationListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link used to get the next page of operations.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of server configurations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of server configurations.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[] Value { get; set; } + + } + /// A list of server configurations. + internal partial interface IConfigurationListResultAutoGeneratedInternal + + { + /// The link used to get the next page of operations. + string NextLink { get; set; } + /// The list of server configurations. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.json.cs new file mode 100644 index 000000000000..c8f7b293cac1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationListResultAutoGenerated.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of server configurations. + public partial class ConfigurationListResultAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationListResultAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated.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.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationListResultAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ConfigurationListResultAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..ae5c611020a7 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.PowerShell.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// The properties of a configuration. + [System.ComponentModel.TypeConverter(typeof(ConfigurationPropertiesAutoGeneratedTypeConverter))] + public partial class ConfigurationPropertiesAutoGenerated + { + + /// + /// 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 ConfigurationPropertiesAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).AllowedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsReadOnly = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly?) content.GetValueForProperty("IsReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsReadOnly, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsConfigPendingRestart = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart?) content.GetValueForProperty("IsConfigPendingRestart",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsConfigPendingRestart, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsDynamicConfig = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig?) content.GetValueForProperty("IsDynamicConfig",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsDynamicConfig, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DefaultValue = (string) content.GetValueForProperty("DefaultValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DefaultValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DataType = (string) content.GetValueForProperty("DataType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).DataType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).AllowedValue = (string) content.GetValueForProperty("AllowedValue",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).AllowedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsReadOnly = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly?) content.GetValueForProperty("IsReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsReadOnly, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsConfigPendingRestart = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart?) content.GetValueForProperty("IsConfigPendingRestart",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsConfigPendingRestart, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsDynamicConfig = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig?) content.GetValueForProperty("IsDynamicConfig",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal)this).IsDynamicConfig, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig.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.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationPropertiesAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationPropertiesAutoGenerated(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.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of a configuration. + [System.ComponentModel.TypeConverter(typeof(ConfigurationPropertiesAutoGeneratedTypeConverter))] + public partial interface IConfigurationPropertiesAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..59344a4a4b79 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.TypeConverter.cs @@ -0,0 +1,144 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationPropertiesAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationPropertiesAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationPropertiesAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationPropertiesAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.cs new file mode 100644 index 000000000000..1aae490dbd0e --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.cs @@ -0,0 +1,203 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties of a configuration. + public partial class ConfigurationPropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal + { + + /// Backing field for property. + private string _allowedValue; + + /// Allowed values of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string AllowedValue { get => this._allowedValue; } + + /// Backing field for property. + private string _dataType; + + /// Data type of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string DataType { get => this._dataType; } + + /// Backing field for property. + private string _defaultValue; + + /// Default value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string DefaultValue { get => this._defaultValue; } + + /// Backing field for property. + private string _description; + + /// Description of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? _isConfigPendingRestart; + + /// If is the configuration pending restart or not. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get => this._isConfigPendingRestart; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? _isDynamicConfig; + + /// If is the configuration dynamic. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get => this._isDynamicConfig; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? _isReadOnly; + + /// If is the configuration read only. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get => this._isReadOnly; } + + /// Internal Acessors for AllowedValue + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.AllowedValue { get => this._allowedValue; set { {_allowedValue = value;} } } + + /// Internal Acessors for DataType + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.DataType { get => this._dataType; set { {_dataType = value;} } } + + /// Internal Acessors for DefaultValue + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.DefaultValue { get => this._defaultValue; set { {_defaultValue = value;} } } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for IsConfigPendingRestart + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.IsConfigPendingRestart { get => this._isConfigPendingRestart; set { {_isConfigPendingRestart = value;} } } + + /// Internal Acessors for IsDynamicConfig + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.IsDynamicConfig { get => this._isDynamicConfig; set { {_isDynamicConfig = value;} } } + + /// Internal Acessors for IsReadOnly + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGeneratedInternal.IsReadOnly { get => this._isReadOnly; set { {_isReadOnly = value;} } } + + /// Backing field for property. + private string _source; + + /// Source of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Source { get => this._source; set => this._source = value; } + + /// Backing field for property. + private string _value; + + /// Value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ConfigurationPropertiesAutoGenerated() + { + + } + } + /// The properties of a configuration. + public partial interface IConfigurationPropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Allowed values of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Allowed values of the configuration.", + SerializedName = @"allowedValues", + PossibleTypes = new [] { typeof(string) })] + string AllowedValue { get; } + /// Data type of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Data type of the configuration.", + SerializedName = @"dataType", + PossibleTypes = new [] { typeof(string) })] + string DataType { get; } + /// Default value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Default value of the configuration.", + SerializedName = @"defaultValue", + PossibleTypes = new [] { typeof(string) })] + string DefaultValue { get; } + /// Description of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Description of the configuration.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// If is the configuration pending restart or not. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration pending restart or not.", + SerializedName = @"isConfigPendingRestart", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get; } + /// If is the configuration dynamic. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration dynamic.", + SerializedName = @"isDynamicConfig", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get; } + /// If is the configuration read only. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"If is the configuration read only.", + SerializedName = @"isReadOnly", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get; } + /// Source of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of the configuration.", + SerializedName = @"source", + PossibleTypes = new [] { typeof(string) })] + string Source { get; set; } + /// Value of the configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Value of the configuration.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + string Value { get; set; } + + } + /// The properties of a configuration. + internal partial interface IConfigurationPropertiesAutoGeneratedInternal + + { + /// Allowed values of the configuration. + string AllowedValue { get; set; } + /// Data type of the configuration. + string DataType { get; set; } + /// Default value of the configuration. + string DefaultValue { get; set; } + /// Description of the configuration. + string Description { get; set; } + /// If is the configuration pending restart or not. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart? IsConfigPendingRestart { get; set; } + /// If is the configuration dynamic. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig? IsDynamicConfig { get; set; } + /// If is the configuration read only. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly? IsReadOnly { get; set; } + /// Source of the configuration. + string Source { get; set; } + /// Value of the configuration. + string Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.json.cs new file mode 100644 index 000000000000..f9fe33aadd1c --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ConfigurationPropertiesAutoGenerated.json.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties of a configuration. + public partial class ConfigurationPropertiesAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_defaultValue = If( json?.PropertyT("defaultValue"), out var __jsonDefaultValue) ? (string)__jsonDefaultValue : (string)DefaultValue;} + {_dataType = If( json?.PropertyT("dataType"), out var __jsonDataType) ? (string)__jsonDataType : (string)DataType;} + {_allowedValue = If( json?.PropertyT("allowedValues"), out var __jsonAllowedValues) ? (string)__jsonAllowedValues : (string)AllowedValue;} + {_source = If( json?.PropertyT("source"), out var __jsonSource) ? (string)__jsonSource : (string)Source;} + {_isReadOnly = If( json?.PropertyT("isReadOnly"), out var __jsonIsReadOnly) ? (string)__jsonIsReadOnly : (string)IsReadOnly;} + {_isConfigPendingRestart = If( json?.PropertyT("isConfigPendingRestart"), out var __jsonIsConfigPendingRestart) ? (string)__jsonIsConfigPendingRestart : (string)IsConfigPendingRestart;} + {_isDynamicConfig = If( json?.PropertyT("isDynamicConfig"), out var __jsonIsDynamicConfig) ? (string)__jsonIsDynamicConfig : (string)IsDynamicConfig;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ConfigurationPropertiesAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._defaultValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._defaultValue.ToString()) : null, "defaultValue" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._dataType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._dataType.ToString()) : null, "dataType" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._allowedValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._allowedValue.ToString()) : null, "allowedValues" ,container.Add ); + } + AddIf( null != (((object)this._source)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._source.ToString()) : null, "source" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._isReadOnly)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._isReadOnly.ToString()) : null, "isReadOnly" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._isConfigPendingRestart)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._isConfigPendingRestart.ToString()) : null, "isConfigPendingRestart" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._isDynamicConfig)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._isDynamicConfig.ToString()) : null, "isDynamicConfig" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..9a61fc560a23 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A List of databases. + [System.ComponentModel.TypeConverter(typeof(DatabaseListResultAutoGeneratedTypeConverter))] + public partial class DatabaseListResultAutoGenerated + { + + /// + /// 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 DatabaseListResultAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseListResultAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.DatabaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal)this).NextLink, 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.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A List of databases. + [System.ComponentModel.TypeConverter(typeof(DatabaseListResultAutoGeneratedTypeConverter))] + public partial interface IDatabaseListResultAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..c3567c73d41f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DatabaseListResultAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DatabaseListResultAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DatabaseListResultAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DatabaseListResultAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.cs new file mode 100644 index 000000000000..9a9971c67f3f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A List of databases. + public partial class DatabaseListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGeneratedInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[] _value; + + /// The list of databases housed in a server + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DatabaseListResultAutoGenerated() + { + + } + } + /// A List of databases. + public partial interface IDatabaseListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link used to get the next page of operations.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of databases housed in a server + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of databases housed in a server", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[] Value { get; set; } + + } + /// A List of databases. + internal partial interface IDatabaseListResultAutoGeneratedInternal + + { + /// The link used to get the next page of operations. + string NextLink { get; set; } + /// The list of databases housed in a server + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.json.cs new file mode 100644 index 000000000000..5e88d69ac2f6 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DatabaseListResultAutoGenerated.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A List of databases. + public partial class DatabaseListResultAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal DatabaseListResultAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20171201.IDatabase) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database.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.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDatabaseListResultAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new DatabaseListResultAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.PowerShell.cs new file mode 100644 index 000000000000..ae67d69437f3 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Delegated subnet arguments of a server + [System.ComponentModel.TypeConverter(typeof(DelegatedSubnetArgumentsTypeConverter))] + public partial class DelegatedSubnetArguments + { + + /// + /// 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 DelegatedSubnetArguments(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)this).SubnetArmResourceId = (string) content.GetValueForProperty("SubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)this).SubnetArmResourceId, 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 DelegatedSubnetArguments(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)this).SubnetArmResourceId = (string) content.GetValueForProperty("SubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)this).SubnetArmResourceId, 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.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DelegatedSubnetArguments(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.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DelegatedSubnetArguments(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.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Delegated subnet arguments of a server + [System.ComponentModel.TypeConverter(typeof(DelegatedSubnetArgumentsTypeConverter))] + public partial interface IDelegatedSubnetArguments + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.TypeConverter.cs new file mode 100644 index 000000000000..a54ed137bb4d --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DelegatedSubnetArgumentsTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DelegatedSubnetArguments.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DelegatedSubnetArguments.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DelegatedSubnetArguments.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/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.cs new file mode 100644 index 000000000000..350f26cbdaa4 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Delegated subnet arguments of a server + public partial class DelegatedSubnetArguments : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal + { + + /// Backing field for property. + private string _subnetArmResourceId; + + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string SubnetArmResourceId { get => this._subnetArmResourceId; set => this._subnetArmResourceId = value; } + + /// Creates an new instance. + public DelegatedSubnetArguments() + { + + } + } + /// Delegated subnet arguments of a server + public partial interface IDelegatedSubnetArguments : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string SubnetArmResourceId { get; set; } + + } + /// Delegated subnet arguments of a server + internal partial interface IDelegatedSubnetArgumentsInternal + + { + /// delegated subnet arm resource id. + string SubnetArmResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.json.cs new file mode 100644 index 000000000000..c8a2d2f947c1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetArguments.json.cs @@ -0,0 +1,101 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Delegated subnet arguments of a server + public partial class DelegatedSubnetArguments + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal DelegatedSubnetArguments(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_subnetArmResourceId = If( json?.PropertyT("subnetArmResourceId"), out var __jsonSubnetArmResourceId) ? (string)__jsonSubnetArmResourceId : (string)SubnetArmResourceId;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new DelegatedSubnetArguments(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._subnetArmResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._subnetArmResourceId.ToString()) : null, "subnetArmResourceId" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.PowerShell.cs new file mode 100644 index 000000000000..879cc95b6658 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Delegated subnet usage data. + [System.ComponentModel.TypeConverter(typeof(DelegatedSubnetUsageTypeConverter))] + public partial class DelegatedSubnetUsage + { + + /// + /// 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 DelegatedSubnetUsage(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).SubnetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).Usage = (long?) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).Usage, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DelegatedSubnetUsage(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).SubnetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).Usage = (long?) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal)this).Usage, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + 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.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DelegatedSubnetUsage(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.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DelegatedSubnetUsage(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.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Delegated subnet usage data. + [System.ComponentModel.TypeConverter(typeof(DelegatedSubnetUsageTypeConverter))] + public partial interface IDelegatedSubnetUsage + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.TypeConverter.cs new file mode 100644 index 000000000000..6d0a55bac642 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DelegatedSubnetUsageTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DelegatedSubnetUsage.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DelegatedSubnetUsage.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DelegatedSubnetUsage.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/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.cs new file mode 100644 index 000000000000..ec4fb8a8bd2f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Delegated subnet usage data. + public partial class DelegatedSubnetUsage : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal + { + + /// Internal Acessors for SubnetName + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal.SubnetName { get => this._subnetName; set { {_subnetName = value;} } } + + /// Internal Acessors for Usage + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsageInternal.Usage { get => this._usage; set { {_usage = value;} } } + + /// Backing field for property. + private string _subnetName; + + /// name of the subnet + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string SubnetName { get => this._subnetName; } + + /// Backing field for property. + private long? _usage; + + /// Number of used delegated subnets + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? Usage { get => this._usage; } + + /// Creates an new instance. + public DelegatedSubnetUsage() + { + + } + } + /// Delegated subnet usage data. + public partial interface IDelegatedSubnetUsage : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// name of the subnet + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"name of the subnet", + SerializedName = @"subnetName", + PossibleTypes = new [] { typeof(string) })] + string SubnetName { get; } + /// Number of used delegated subnets + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Number of used delegated subnets", + SerializedName = @"usage", + PossibleTypes = new [] { typeof(long) })] + long? Usage { get; } + + } + /// Delegated subnet usage data. + internal partial interface IDelegatedSubnetUsageInternal + + { + /// name of the subnet + string SubnetName { get; set; } + /// Number of used delegated subnets + long? Usage { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.json.cs new file mode 100644 index 000000000000..882e39235ca4 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/DelegatedSubnetUsage.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Delegated subnet usage data. + public partial class DelegatedSubnetUsage + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal DelegatedSubnetUsage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_subnetName = If( json?.PropertyT("subnetName"), out var __jsonSubnetName) ? (string)__jsonSubnetName : (string)SubnetName;} + {_usage = If( json?.PropertyT("usage"), out var __jsonUsage) ? (long?)__jsonUsage : Usage;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new DelegatedSubnetUsage(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._subnetName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._subnetName.ToString()) : null, "subnetName" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._usage ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._usage) : null, "usage" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..fe09b7dafd64 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A list of firewall rules. + [System.ComponentModel.TypeConverter(typeof(FirewallRuleListResultAutoGeneratedTypeConverter))] + public partial class FirewallRuleListResultAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FirewallRuleListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FirewallRuleListResultAutoGenerated(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FirewallRuleListResultAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FirewallRuleListResultAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A list of firewall rules. + [System.ComponentModel.TypeConverter(typeof(FirewallRuleListResultAutoGeneratedTypeConverter))] + public partial interface IFirewallRuleListResultAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..65a7b9c3d017 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FirewallRuleListResultAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FirewallRuleListResultAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FirewallRuleListResultAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FirewallRuleListResultAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.cs new file mode 100644 index 000000000000..db0cb39895a1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of firewall rules. + public partial class FirewallRuleListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGeneratedInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[] _value; + + /// The list of firewall rules in a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public FirewallRuleListResultAutoGenerated() + { + + } + } + /// A list of firewall rules. + public partial interface IFirewallRuleListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link used to get the next page of operations.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of firewall rules in a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of firewall rules in a server.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[] Value { get; set; } + + } + /// A list of firewall rules. + internal partial interface IFirewallRuleListResultAutoGeneratedInternal + + { + /// The link used to get the next page of operations. + string NextLink { get; set; } + /// The list of firewall rules in a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.json.cs new file mode 100644 index 000000000000..a85a5a07a60e --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/FirewallRuleListResultAutoGenerated.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of firewall rules. + public partial class FirewallRuleListResultAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal FirewallRuleListResultAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20171201.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule.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.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IFirewallRuleListResultAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new FirewallRuleListResultAutoGenerated(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.PowerShell.cs new file mode 100644 index 000000000000..202bb05af926 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Maintenance window of a server. + [System.ComponentModel.TypeConverter(typeof(MaintenanceWindowTypeConverter))] + public partial class MaintenanceWindow + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MaintenanceWindow(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.MySql.Models.Api20200701Preview.IMaintenanceWindow DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MaintenanceWindow(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.MySql.Models.Api20200701Preview.IMaintenanceWindow FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MaintenanceWindow(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).CustomWindow = (string) content.GetValueForProperty("CustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).CustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartHour = (int?) content.GetValueForProperty("StartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartMinute = (int?) content.GetValueForProperty("StartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).DayOfWeek = (int?) content.GetValueForProperty("DayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).DayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MaintenanceWindow(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).CustomWindow = (string) content.GetValueForProperty("CustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).CustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartHour = (int?) content.GetValueForProperty("StartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartMinute = (int?) content.GetValueForProperty("StartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).StartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).DayOfWeek = (int?) content.GetValueForProperty("DayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)this).DayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Maintenance window of a server. + [System.ComponentModel.TypeConverter(typeof(MaintenanceWindowTypeConverter))] + public partial interface IMaintenanceWindow + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.TypeConverter.cs new file mode 100644 index 000000000000..350cf60652d0 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class MaintenanceWindowTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IMaintenanceWindow ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return MaintenanceWindow.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return MaintenanceWindow.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return MaintenanceWindow.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/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.cs b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.cs new file mode 100644 index 000000000000..08c08222bc45 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.cs @@ -0,0 +1,97 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Maintenance window of a server. + public partial class MaintenanceWindow : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal + { + + /// Backing field for property. + private string _customWindow; + + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string CustomWindow { get => this._customWindow; set => this._customWindow = value; } + + /// Backing field for property. + private int? _dayOfWeek; + + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? DayOfWeek { get => this._dayOfWeek; set => this._dayOfWeek = value; } + + /// Backing field for property. + private int? _startHour; + + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? StartHour { get => this._startHour; set => this._startHour = value; } + + /// Backing field for property. + private int? _startMinute; + + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? StartMinute { get => this._startMinute; set => this._startMinute = value; } + + /// Creates an new instance. + public MaintenanceWindow() + { + + } + } + /// Maintenance window of a server. + public partial interface IMaintenanceWindow : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + string CustomWindow { get; set; } + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + int? DayOfWeek { get; set; } + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + int? StartHour { get; set; } + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + int? StartMinute { get; set; } + + } + /// Maintenance window of a server. + internal partial interface IMaintenanceWindowInternal + + { + /// indicates whether custom window is enabled or disabled + string CustomWindow { get; set; } + /// day of week for maintenance window + int? DayOfWeek { get; set; } + /// start hour for maintenance window + int? StartHour { get; set; } + /// start minute for maintenance window + int? StartMinute { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.json.cs new file mode 100644 index 000000000000..fa8c0b49c826 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/MaintenanceWindow.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Maintenance window of a server. + public partial class MaintenanceWindow + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new MaintenanceWindow(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal MaintenanceWindow(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_customWindow = If( json?.PropertyT("customWindow"), out var __jsonCustomWindow) ? (string)__jsonCustomWindow : (string)CustomWindow;} + {_startHour = If( json?.PropertyT("startHour"), out var __jsonStartHour) ? (int?)__jsonStartHour : StartHour;} + {_startMinute = If( json?.PropertyT("startMinute"), out var __jsonStartMinute) ? (int?)__jsonStartMinute : StartMinute;} + {_dayOfWeek = If( json?.PropertyT("dayOfWeek"), out var __jsonDayOfWeek) ? (int?)__jsonDayOfWeek : DayOfWeek;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._customWindow)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._customWindow.ToString()) : null, "customWindow" ,container.Add ); + AddIf( null != this._startHour ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._startHour) : null, "startHour" ,container.Add ); + AddIf( null != this._startMinute ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._startMinute) : null, "startMinute" ,container.Add ); + AddIf( null != this._dayOfWeek ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._dayOfWeek) : null, "dayOfWeek" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..0f5119e829c5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.PowerShell.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// REST API operation definition. + [System.ComponentModel.TypeConverter(typeof(OperationAutoGeneratedTypeConverter))] + public partial class OperationAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationAutoGenerated(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.MySql.Models.Api20200701Preview.IOperationAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationAutoGenerated(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.MySql.Models.Api20200701Preview.IOperationAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayDescription, 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 OperationAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal)this).DisplayDescription, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// REST API operation definition. + [System.ComponentModel.TypeConverter(typeof(OperationAutoGeneratedTypeConverter))] + public partial interface IOperationAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..21e7d5c6649a --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IOperationAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.cs new file mode 100644 index 000000000000..09414c8362e9 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.cs @@ -0,0 +1,186 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// REST API operation definition. + public partial class OperationAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay _display; + + /// The localized display information for this particular operation or action. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationDisplay()); } + + /// Operation description. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Description; } + + /// Localized friendly name for the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Operation; } + + /// Operation resource provider name. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Provider; } + + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Resource; } + + /// Backing field for property. + private bool? _isDataAction; + + /// Indicates whether the operation is a data action + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } + + /// Internal Acessors for Display + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationDisplay()); set { {_display = value;} } } + + /// Internal Acessors for DisplayDescription + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Description = value; } + + /// Internal Acessors for DisplayOperation + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Operation = value; } + + /// Internal Acessors for DisplayProvider + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Provider = value; } + + /// Internal Acessors for DisplayResource + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplayInternal)Display).Resource = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Origin + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.Origin { get => this._origin; set { {_origin = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationProperties()); set { {_property = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the operation being performed on this particular object. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin? _origin; + + /// The intended executor of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin? Origin { get => this._origin; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties _property; + + /// Additional descriptions for the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationProperties()); } + + /// Creates an new instance. + public OperationAutoGenerated() + { + + } + } + /// REST API operation definition. + public partial interface IOperationAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Operation description. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Operation description.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string DisplayDescription { get; } + /// Localized friendly name for the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Localized friendly name for the operation.", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string DisplayOperation { get; } + /// Operation resource provider name. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Operation resource provider name.", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string DisplayProvider { get; } + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource on which the operation is performed.", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string DisplayResource { get; } + /// Indicates whether the operation is a data action + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the operation is a data action", + SerializedName = @"isDataAction", + PossibleTypes = new [] { typeof(bool) })] + bool? IsDataAction { get; set; } + /// The name of the operation being performed on this particular object. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the operation being performed on this particular object.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The intended executor of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The intended executor of the operation.", + SerializedName = @"origin", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin? Origin { get; } + /// Additional descriptions for the operation. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Additional descriptions for the operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties Property { get; } + + } + /// REST API operation definition. + internal partial interface IOperationAutoGeneratedInternal + + { + /// The localized display information for this particular operation or action. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationDisplay Display { get; set; } + /// Operation description. + string DisplayDescription { get; set; } + /// Localized friendly name for the operation. + string DisplayOperation { get; set; } + /// Operation resource provider name. + string DisplayProvider { get; set; } + /// Resource on which the operation is performed. + string DisplayResource { get; set; } + /// Indicates whether the operation is a data action + bool? IsDataAction { get; set; } + /// The name of the operation being performed on this particular object. + string Name { get; set; } + /// The intended executor of the operation. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOrigin? Origin { get; set; } + /// Additional descriptions for the operation. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperationProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.json.cs new file mode 100644 index 000000000000..0295347d63c3 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationAutoGenerated.json.cs @@ -0,0 +1,121 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// REST API operation definition. + public partial class OperationAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new OperationAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal OperationAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.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;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.OperationProperties.FromJson(__jsonProperties) : Property;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..839bd1436df1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A list of resource provider operations. + [System.ComponentModel.TypeConverter(typeof(OperationListResultAutoGeneratedTypeConverter))] + public partial class OperationListResultAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationListResultAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationListResultAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A list of resource provider operations. + [System.ComponentModel.TypeConverter(typeof(OperationListResultAutoGeneratedTypeConverter))] + public partial interface IOperationListResultAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..44169b24a576 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationListResultAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationListResultAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationListResultAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationListResultAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.cs new file mode 100644 index 000000000000..93d6aa894215 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.cs @@ -0,0 +1,73 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of resource provider operations. + public partial class OperationListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGeneratedInternal + { + + /// Backing field for property. + private string _nextLink; + + /// + /// URL client should use to fetch the next page (per server side paging). + /// It's null for now, added for future use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[] _value; + + /// Collection of available operation details + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public OperationListResultAutoGenerated() + { + + } + } + /// A list of resource provider operations. + public partial interface IOperationListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// + /// URL client should use to fetch the next page (per server side paging). + /// It's null for now, added for future use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL client should use to fetch the next page (per server side paging). + It's null for now, added for future use.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Collection of available operation details + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Collection of available operation details", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[] Value { get; set; } + + } + /// A list of resource provider operations. + internal partial interface IOperationListResultAutoGeneratedInternal + + { + /// + /// URL client should use to fetch the next page (per server side paging). + /// It's null for now, added for future use. + /// + string NextLink { get; set; } + /// Collection of available operation details + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationAutoGenerated[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.json.cs new file mode 100644 index 000000000000..1755c4495e90 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/OperationListResultAutoGenerated.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of resource provider operations. + public partial class OperationListResultAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new OperationListResultAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal OperationListResultAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IOperationAutoGenerated) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationAutoGenerated.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..fabb0b949f48 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.PowerShell.cs @@ -0,0 +1,219 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Represents a server. + [System.ComponentModel.TypeConverter(typeof(ServerAutoGeneratedTypeConverter))] + public partial class ServerAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerAutoGenerated(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.MySql.Models.Api20200701Preview.IServerAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerAutoGenerated(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.MySql.Models.Api20200701Preview.IServerAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).RestorePointInTime = (global::System.DateTime?) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, 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 ServerAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).RestorePointInTime = (global::System.DateTime?) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a server. + [System.ComponentModel.TypeConverter(typeof(ServerAutoGeneratedTypeConverter))] + public partial interface IServerAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..ed8d9a079dd1 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.cs new file mode 100644 index 000000000000..97420f74fdac --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.cs @@ -0,0 +1,710 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Represents a server. + public partial class ServerAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource(); + + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 4)] + public string AdministratorLogin { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLogin; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLogin = value; } + + /// The password of the administrator login (required for server creation). + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword = value; } + + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).AvailabilityZone = value; } + + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string ByokEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ByokEnforcement; } + + /// The mode to create a new MySQL server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).CreateMode = value; } + + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).DelegatedSubnetArgumentSubnetArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Earliest restore point creation time (ISO8601 format) + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public global::System.DateTime? EarliestRestoreDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).EarliestRestoreDate; } + + /// The fully qualified domain name of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string FullyQualifiedDomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).FullyQualifiedDomainName; } + + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).HaEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).HaEnabled = value; } + + /// The state of a HA server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).HaState; } + + /// + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Id; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity _identity; + + /// The Azure Active Directory identity of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Identity()); set => this._identity = value; } + + /// The principal ID of resource identity. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).PrincipalId; } + + /// The tenant ID of resource. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).TenantId; } + + /// The identity type. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).Type = value; } + + /// Status showing whether the server enabled infrastructure encryption. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).InfrastructureEncryption = value; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 1)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; } + + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string MaintenanceWindowCustomWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowCustomWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? MaintenanceWindowDayOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowDayOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? MaintenanceWindowStartHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowStartHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? MaintenanceWindowStartMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowStartMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindowStartMinute = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Type = value; } + + /// Internal Acessors for ByokEnforcement + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.ByokEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ByokEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ByokEnforcement = value; } + + /// Internal Acessors for DelegatedSubnetArgument + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.DelegatedSubnetArgument { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).DelegatedSubnetArgument; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).DelegatedSubnetArgument = value; } + + /// Internal Acessors for EarliestRestoreDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.EarliestRestoreDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).EarliestRestoreDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).EarliestRestoreDate = value; } + + /// Internal Acessors for FullyQualifiedDomainName + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.FullyQualifiedDomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).FullyQualifiedDomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).FullyQualifiedDomainName = value; } + + /// Internal Acessors for HaState + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.HaState { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).HaState; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).HaState = value; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Identity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentityInternal)Identity).TenantId = value; } + + /// Internal Acessors for MaintenanceWindow + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.MaintenanceWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).MaintenanceWindow = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGenerated()); set { {_property = value;} } } + + /// Internal Acessors for PublicNetworkAccess + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).PublicNetworkAccess = value; } + + /// Internal Acessors for ReplicaCapacity + int? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.ReplicaCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ReplicaCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ReplicaCapacity = value; } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated()); set { {_sku = value;} } } + + /// Internal Acessors for StandbyAvailabilityZone + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.StandbyAvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StandbyAvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StandbyAvailabilityZone = value; } + + /// Internal Acessors for State + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).State = value; } + + /// Internal Acessors for StorageProfile + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGeneratedInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfile = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Name; } + + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags PropertiesTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).Tag = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated _property; + + /// Properties of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGenerated()); set => this._property = value; } + + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).PublicNetworkAccess; } + + /// The maximum number of replicas that a primary server can have. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? ReplicaCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ReplicaCapacity; } + + /// The replication role. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string ReplicationRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ReplicationRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).ReplicationRole = value; } + + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public global::System.DateTime? RestorePointInTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).RestorePointInTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).RestorePointInTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated _sku; + + /// The SKU (pricing tier) of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated()); set => this._sku = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 2)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Name = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 3)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Tier = value; } + + /// The source MySQL server id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string SourceServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).SourceServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).SourceServerId = value; } + + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).SslEnforcement = value; } + + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string StandbyAvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StandbyAvailabilityZone; } + + /// The state of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).State; } + + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public int? StorageProfileStorageIop { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageIop; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 6)] + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).StorageProfileStorageMb = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; } + + /// + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__trackedResource).Type; } + + /// Server version. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.FormatTable(Index = 5)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)Property).Version = value; } + + /// Creates an new instance. + public ServerAutoGenerated() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Represents a server. + public partial interface IServerAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResource + { + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", + SerializedName = @"administratorLogin", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLogin { get; set; } + /// The password of the administrator login (required for server creation). + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login (required for server creation).", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLoginPassword { get; set; } + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"availability Zone information of the server.", + SerializedName = @"availabilityZone", + PossibleTypes = new [] { typeof(string) })] + string AvailabilityZone { get; set; } + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status showing whether the data encryption is enabled with customer-managed keys.", + SerializedName = @"byokEnforcement", + PossibleTypes = new [] { typeof(string) })] + string ByokEnforcement { get; } + /// The mode to create a new MySQL server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The mode to create a new MySQL server.", + SerializedName = @"createMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get; set; } + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Earliest restore point creation time (ISO8601 format) + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Earliest restore point creation time (ISO8601 format)", + SerializedName = @"earliestRestoreDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EarliestRestoreDate { get; } + /// The fully qualified domain name of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fully qualified domain name of a server.", + SerializedName = @"fullyQualifiedDomainName", + PossibleTypes = new [] { typeof(string) })] + string FullyQualifiedDomainName { get; } + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// The state of a HA server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The state of a HA server.", + SerializedName = @"haState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get; } + /// The principal ID of resource identity. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The principal ID of resource identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// The tenant ID of resource. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of resource.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// The identity type. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? IdentityType { get; set; } + /// Status showing whether the server enabled infrastructure encryption. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Status showing whether the server enabled infrastructure encryption.", + SerializedName = @"infrastructureEncryption", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get; set; } + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartMinute { get; set; } + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags PropertiesTag { get; set; } + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'", + SerializedName = @"publicNetworkAccess", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get; } + /// The maximum number of replicas that a primary server can have. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The maximum number of replicas that a primary server can have.", + SerializedName = @"replicaCapacity", + PossibleTypes = new [] { typeof(int) })] + int? ReplicaCapacity { get; } + /// The replication role. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + string ReplicationRole { get; set; } + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restore point creation time (ISO8601 format), specifying the time to restore from.", + SerializedName = @"restorePointInTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RestorePointInTime { get; set; } + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get; set; } + /// The source MySQL server id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The source MySQL server id.", + SerializedName = @"sourceServerId", + PossibleTypes = new [] { typeof(string) })] + string SourceServerId { get; set; } + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"availability Zone information of the server.", + SerializedName = @"standbyAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string StandbyAvailabilityZone { get; } + /// The state of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The state of a server.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get; } + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageMb { get; set; } + /// Server version. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Server version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get; set; } + + } + /// Represents a server. + internal partial interface IServerAutoGeneratedInternal : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceInternal + { + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + string AdministratorLogin { get; set; } + /// The password of the administrator login (required for server creation). + string AdministratorLoginPassword { get; set; } + /// availability Zone information of the server. + string AvailabilityZone { get; set; } + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + string ByokEnforcement { get; set; } + /// The mode to create a new MySQL server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get; set; } + /// Delegated subnet arguments. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get; set; } + /// delegated subnet arm resource id. + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Earliest restore point creation time (ISO8601 format) + global::System.DateTime? EarliestRestoreDate { get; set; } + /// The fully qualified domain name of a server. + string FullyQualifiedDomainName { get; set; } + /// Enable HA or not for a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// The state of a HA server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get; set; } + /// The Azure Active Directory identity of the server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IIdentity Identity { get; set; } + /// The principal ID of resource identity. + string IdentityPrincipalId { get; set; } + /// The tenant ID of resource. + string IdentityTenantId { get; set; } + /// The identity type. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType? IdentityType { get; set; } + /// Status showing whether the server enabled infrastructure encryption. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get; set; } + /// Maintenance window of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get; set; } + /// indicates whether custom window is enabled or disabled + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + int? MaintenanceWindowStartMinute { get; set; } + /// Application-specific metadata in the form of key-value pairs. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags PropertiesTag { get; set; } + /// Properties of the server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated Property { get; set; } + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get; set; } + /// The maximum number of replicas that a primary server can have. + int? ReplicaCapacity { get; set; } + /// The replication role. + string ReplicationRole { get; set; } + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + global::System.DateTime? RestorePointInTime { get; set; } + /// The SKU (pricing tier) of the server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Sku { get; set; } + /// The name of the sku, e.g. Standard_D32s_v3. + string SkuName { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get; set; } + /// The source MySQL server id. + string SourceServerId { get; set; } + /// Enable ssl enforcement or not when connect to server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// availability Zone information of the server. + string StandbyAvailabilityZone { get; set; } + /// The state of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get; set; } + /// Storage profile of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get; set; } + /// Backup retention days for the server. + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + int? StorageProfileStorageMb { get; set; } + /// Server version. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.json.cs new file mode 100644 index 000000000000..81ae1ff9c8f9 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerAutoGenerated.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Represents a server. + public partial class ServerAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.TrackedResource(json); + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Identity.FromJson(__jsonIdentity) : Identity;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.PowerShell.cs new file mode 100644 index 000000000000..12a06c468ffa --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Server edition capabilities. + [System.ComponentModel.TypeConverter(typeof(ServerEditionCapabilityTypeConverter))] + public partial class ServerEditionCapability + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerEditionCapability(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.MySql.Models.Api20200701Preview.IServerEditionCapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerEditionCapability(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.MySql.Models.Api20200701Preview.IServerEditionCapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerEditionCapability(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedStorageEdition = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[]) content.GetValueForProperty("SupportedStorageEdition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedStorageEdition, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageEditionCapabilityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedServerVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[]) content.GetValueForProperty("SupportedServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedServerVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerVersionCapabilityTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerEditionCapability(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedStorageEdition = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[]) content.GetValueForProperty("SupportedStorageEdition",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedStorageEdition, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageEditionCapabilityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedServerVersion = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[]) content.GetValueForProperty("SupportedServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal)this).SupportedServerVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerVersionCapabilityTypeConverter.ConvertFrom)); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Server edition capabilities. + [System.ComponentModel.TypeConverter(typeof(ServerEditionCapabilityTypeConverter))] + public partial interface IServerEditionCapability + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.TypeConverter.cs new file mode 100644 index 000000000000..f11089c28e79 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerEditionCapabilityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerEditionCapability ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerEditionCapability.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerEditionCapability.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerEditionCapability.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/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.cs new file mode 100644 index 000000000000..a26fc76bc3dd --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.cs @@ -0,0 +1,89 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Server edition capabilities. + public partial class ServerEditionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SupportedServerVersion + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal.SupportedServerVersion { get => this._supportedServerVersion; set { {_supportedServerVersion = value;} } } + + /// Internal Acessors for SupportedStorageEdition + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapabilityInternal.SupportedStorageEdition { get => this._supportedStorageEdition; set { {_supportedStorageEdition = value;} } } + + /// Backing field for property. + private string _name; + + /// Server edition name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[] _supportedServerVersion; + + /// A list of supported server versions. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[] SupportedServerVersion { get => this._supportedServerVersion; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[] _supportedStorageEdition; + + /// A list of supported storage editions + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[] SupportedStorageEdition { get => this._supportedStorageEdition; } + + /// Creates an new instance. + public ServerEditionCapability() + { + + } + } + /// Server edition capabilities. + public partial interface IServerEditionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Server edition name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Server edition name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// A list of supported server versions. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of supported server versions.", + SerializedName = @"supportedServerVersions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[] SupportedServerVersion { get; } + /// A list of supported storage editions + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of supported storage editions", + SerializedName = @"supportedStorageEditions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[] SupportedStorageEdition { get; } + + } + /// Server edition capabilities. + internal partial interface IServerEditionCapabilityInternal + + { + /// Server edition name + string Name { get; set; } + /// A list of supported server versions. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability[] SupportedServerVersion { get; set; } + /// A list of supported storage editions + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability[] SupportedStorageEdition { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.json.cs new file mode 100644 index 000000000000..0376f40ec7e5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerEditionCapability.json.cs @@ -0,0 +1,130 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Server edition capabilities. + public partial class ServerEditionCapability + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerEditionCapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerEditionCapability(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerEditionCapability(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_supportedStorageEdition = If( json?.PropertyT("supportedStorageEditions"), out var __jsonSupportedStorageEditions) ? If( __jsonSupportedStorageEditions as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IStorageEditionCapability) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageEditionCapability.FromJson(__u) )) ))() : null : SupportedStorageEdition;} + {_supportedServerVersion = If( json?.PropertyT("supportedServerVersions"), out var __jsonSupportedServerVersions) ? If( __jsonSupportedServerVersions as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IServerVersionCapability) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerVersionCapability.FromJson(__p) )) ))() : null : SupportedServerVersion;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._supportedStorageEdition) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._supportedStorageEdition ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("supportedStorageEditions",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._supportedServerVersion) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __s in this._supportedServerVersion ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("supportedServerVersions",__r); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.PowerShell.cs new file mode 100644 index 000000000000..c7b47f331a82 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.PowerShell.cs @@ -0,0 +1,171 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Parameters allowed to update for a server. + [System.ComponentModel.TypeConverter(typeof(ServerForUpdateTypeConverter))] + public partial class ServerForUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerForUpdate(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.MySql.Models.Api20200701Preview.IServerForUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerForUpdate(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.MySql.Models.Api20200701Preview.IServerForUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerForUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerForUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Parameters allowed to update for a server. + [System.ComponentModel.TypeConverter(typeof(ServerForUpdateTypeConverter))] + public partial interface IServerForUpdate + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.TypeConverter.cs new file mode 100644 index 000000000000..4457af565501 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerForUpdateTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerForUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerForUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerForUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerForUpdate.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/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.cs new file mode 100644 index 000000000000..d09e6e00074a --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.cs @@ -0,0 +1,295 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Parameters allowed to update for a server. + public partial class ServerForUpdate : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal + { + + /// The password of the administrator login. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword = value; } + + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).DelegatedSubnetArgumentSubnetArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).HaEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).HaEnabled = value; } + + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string MaintenanceWindowCustomWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowCustomWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowDayOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowDayOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowStartHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowStartMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindowStartMinute = value; } + + /// Internal Acessors for DelegatedSubnetArgument + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal.DelegatedSubnetArgument { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).DelegatedSubnetArgument; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).DelegatedSubnetArgument = value; } + + /// Internal Acessors for MaintenanceWindow + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal.MaintenanceWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).MaintenanceWindow = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdate()); set { {_property = value;} } } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated()); set { {_sku = value;} } } + + /// Internal Acessors for StorageProfile + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateInternal.StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfile = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate _property; + + /// The properties that can be updated for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdate()); set => this._property = value; } + + /// The replication role of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string ReplicationRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).ReplicationRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).ReplicationRole = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated _sku; + + /// The SKU (pricing tier) of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated()); set => this._sku = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Name = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)Sku).Tier = value; } + + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).SslEnforcement = value; } + + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageIop { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageIop; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)Property).StorageProfileStorageMb = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags _tag; + + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public ServerForUpdate() + { + + } + } + /// Parameters allowed to update for a server. + public partial interface IServerForUpdate : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The password of the administrator login. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login.", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLoginPassword { get; set; } + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartMinute { get; set; } + /// The replication role of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role of the server.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + string ReplicationRole { get; set; } + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get; set; } + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageMb { get; set; } + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags Tag { get; set; } + + } + /// Parameters allowed to update for a server. + internal partial interface IServerForUpdateInternal + + { + /// The password of the administrator login. + string AdministratorLoginPassword { get; set; } + /// Delegated subnet arguments. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get; set; } + /// delegated subnet arm resource id. + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Enable HA or not for a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// Maintenance window of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get; set; } + /// indicates whether custom window is enabled or disabled + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + int? MaintenanceWindowStartMinute { get; set; } + /// The properties that can be updated for a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate Property { get; set; } + /// The replication role of the server. + string ReplicationRole { get; set; } + /// The SKU (pricing tier) of the server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated Sku { get; set; } + /// The name of the sku, e.g. Standard_D32s_v3. + string SkuName { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get; set; } + /// Enable ssl enforcement or not when connect to server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// Storage profile of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get; set; } + /// Backup retention days for the server. + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + int? StorageProfileStorageMb { get; set; } + /// Application-specific metadata in the form of key-value pairs. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.json.cs new file mode 100644 index 000000000000..da7e4aa8aa3b --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdate.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Parameters allowed to update for a server. + public partial class ServerForUpdate + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerForUpdate(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerForUpdate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.SkuAutoGenerated.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesForUpdate.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTags.FromJson(__jsonTags) : Tag;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.PowerShell.cs similarity index 70% rename from src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.PowerShell.cs rename to src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.PowerShell.cs index 65e3e0c63a30..4489e2973be6 100644 --- a/src/MySql/generated/api/Models/Api20171201/Components15Yg3X7SchemasOperationPropertiesAdditionalproperties.PowerShell.cs +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.PowerShell.cs @@ -1,9 +1,10 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201 +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview { using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; - [System.ComponentModel.TypeConverter(typeof(Components15Yg3X7SchemasOperationPropertiesAdditionalpropertiesTypeConverter))] - public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproperties + /// Application-specific metadata in the form of key-value pairs. + [System.ComponentModel.TypeConverter(typeof(ServerForUpdateTagsTypeConverter))] + public partial class ServerForUpdateTags { /// @@ -47,11 +48,44 @@ public partial class Components15Yg3X7SchemasOperationPropertiesAdditionalproper partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerForUpdateTags(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.MySql.Models.Api20200701Preview.IServerForUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerForUpdateTags(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.MySql.Models.Api20200701Preview.IServerForUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerForUpdateTags(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -60,15 +94,17 @@ internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(global: 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 into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(global::System.Management.Automation.PSObject content) + internal ServerForUpdateTags(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -77,52 +113,19 @@ internal Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(global: return; } // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); 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.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(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.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Components15Yg3X7SchemasOperationPropertiesAdditionalproperties(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.MySql.Models.Api20171201.IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); } - [System.ComponentModel.TypeConverter(typeof(Components15Yg3X7SchemasOperationPropertiesAdditionalpropertiesTypeConverter))] - public partial interface IComponents15Yg3X7SchemasOperationPropertiesAdditionalproperties + /// Application-specific metadata in the form of key-value pairs. + [System.ComponentModel.TypeConverter(typeof(ServerForUpdateTagsTypeConverter))] + public partial interface IServerForUpdateTags { diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.TypeConverter.cs new file mode 100644 index 000000000000..cbe3e74b612a --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerForUpdateTagsTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerForUpdateTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerForUpdateTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerForUpdateTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerForUpdateTags.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/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.cs new file mode 100644 index 000000000000..f1eaed944e70 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Application-specific metadata in the form of key-value pairs. + public partial class ServerForUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTagsInternal + { + + /// Creates an new instance. + public ServerForUpdateTags() + { + + } + } + /// Application-specific metadata in the form of key-value pairs. + public partial interface IServerForUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray + { + + } + /// Application-specific metadata in the form of key-value pairs. + internal partial interface IServerForUpdateTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.dictionary.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.dictionary.cs new file mode 100644 index 000000000000..6a933db584e8 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + public partial class ServerForUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdateTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.json.cs new file mode 100644 index 000000000000..5ccb021ec2df --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerForUpdateTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Application-specific metadata in the form of key-value pairs. + public partial class ServerForUpdateTags + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerForUpdateTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ServerForUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.PowerShell.cs new file mode 100644 index 000000000000..8f3f93524898 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.PowerShell.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A MySQL Server key. + [System.ComponentModel.TypeConverter(typeof(ServerKeyTypeConverter))] + public partial class ServerKey + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerKey(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.MySql.Models.Api20200701Preview.IServerKey DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerKey(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.MySql.Models.Api20200701Preview.IServerKey FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerKey(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).ServerKeyType = (string) content.GetValueForProperty("ServerKeyType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).ServerKeyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).CreationDate = (global::System.DateTime?) content.GetValueForProperty("CreationDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).CreationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerKey(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Kind = (string) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Kind, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).ServerKeyType = (string) content.GetValueForProperty("ServerKeyType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).ServerKeyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).CreationDate = (global::System.DateTime?) content.GetValueForProperty("CreationDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal)this).CreationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A MySQL Server key. + [System.ComponentModel.TypeConverter(typeof(ServerKeyTypeConverter))] + public partial interface IServerKey + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.TypeConverter.cs new file mode 100644 index 000000000000..47ed0b6987b0 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerKeyTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerKey ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerKey.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerKey.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerKey.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/MySql/generated/api/Models/Api20200701Preview/ServerKey.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.cs new file mode 100644 index 000000000000..53c0aa7ede23 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.cs @@ -0,0 +1,152 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A MySQL Server key. + public partial class ServerKey : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(); + + /// The key creation date. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public global::System.DateTime? CreationDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).CreationDate; } + + /// + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; } + + /// Backing field for property. + private string _kind; + + /// Kind of encryption protector used to protect the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Kind { get => this._kind; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for CreationDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal.CreationDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).CreationDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).CreationDate = value; } + + /// Internal Acessors for Kind + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal.Kind { get => this._kind; set { {_kind = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyProperties()); set { {_property = value;} } } + + /// Internal Acessors for ServerKeyType + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyInternal.ServerKeyType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).ServerKeyType; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).ServerKeyType = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties _property; + + /// Properties of the ServerKey Resource. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyProperties()); set => this._property = value; } + + /// The key type like 'AzureKeyVault'. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string ServerKeyType { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).ServerKeyType; } + + /// + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal)__resource).Type; } + + /// The URI of the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)Property).Uri = value; } + + /// Creates an new instance. + public ServerKey() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// A MySQL Server key. + public partial interface IServerKey : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResource + { + /// The key creation date. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The key creation date.", + SerializedName = @"creationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreationDate { get; } + /// Kind of encryption protector used to protect the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Kind of encryption protector used to protect the key.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(string) })] + string Kind { get; } + /// The key type like 'AzureKeyVault'. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The key type like 'AzureKeyVault'.", + SerializedName = @"serverKeyType", + PossibleTypes = new [] { typeof(string) })] + string ServerKeyType { get; } + /// The URI of the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the key.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// A MySQL Server key. + internal partial interface IServerKeyInternal : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.IResourceInternal + { + /// The key creation date. + global::System.DateTime? CreationDate { get; set; } + /// Kind of encryption protector used to protect the key. + string Kind { get; set; } + /// Properties of the ServerKey Resource. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties Property { get; set; } + /// The key type like 'AzureKeyVault'. + string ServerKeyType { get; set; } + /// The URI of the key. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.json.cs new file mode 100644 index 000000000000..ef1bde525b40 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKey.json.cs @@ -0,0 +1,108 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A MySQL Server key. + public partial class ServerKey + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerKey(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerKey(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyProperties.FromJson(__jsonProperties) : Property;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)Kind;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.PowerShell.cs new file mode 100644 index 000000000000..1e1553b1b408 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A list of MySQL Server keys. + [System.ComponentModel.TypeConverter(typeof(ServerKeyListResultTypeConverter))] + public partial class ServerKeyListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerKeyListResult(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.MySql.Models.Api20200701Preview.IServerKeyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerKeyListResult(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.MySql.Models.Api20200701Preview.IServerKeyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerKeyListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerKeyListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A list of MySQL Server keys. + [System.ComponentModel.TypeConverter(typeof(ServerKeyListResultTypeConverter))] + public partial interface IServerKeyListResult + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.TypeConverter.cs new file mode 100644 index 000000000000..f10906022863 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerKeyListResultTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerKeyListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerKeyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerKeyListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerKeyListResult.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/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.cs new file mode 100644 index 000000000000..6d3d9fcc8083 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of MySQL Server keys. + public partial class ServerKeyListResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// Link to retrieve next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[] _value; + + /// A list of MySQL Server keys. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[] Value { get => this._value; } + + /// Creates an new instance. + public ServerKeyListResult() + { + + } + } + /// A list of MySQL Server keys. + public partial interface IServerKeyListResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Link to retrieve next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Link to retrieve next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// A list of MySQL Server keys. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of MySQL Server keys.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[] Value { get; } + + } + /// A list of MySQL Server keys. + internal partial interface IServerKeyListResultInternal + + { + /// Link to retrieve next page of results. + string NextLink { get; set; } + /// A list of MySQL Server keys. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.json.cs new file mode 100644 index 000000000000..b4deb9006504 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyListResult.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of MySQL Server keys. + public partial class ServerKeyListResult + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerKeyListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerKeyListResult(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IServerKey) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.PowerShell.cs new file mode 100644 index 000000000000..c68bdffd2e4f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Properties for a key execution. + [System.ComponentModel.TypeConverter(typeof(ServerKeyPropertiesTypeConverter))] + public partial class ServerKeyProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerKeyProperties(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.MySql.Models.Api20200701Preview.IServerKeyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerKeyProperties(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.MySql.Models.Api20200701Preview.IServerKeyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerKeyProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).ServerKeyType = (string) content.GetValueForProperty("ServerKeyType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).ServerKeyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).CreationDate = (global::System.DateTime?) content.GetValueForProperty("CreationDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).CreationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerKeyProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).ServerKeyType = (string) content.GetValueForProperty("ServerKeyType",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).ServerKeyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).CreationDate = (global::System.DateTime?) content.GetValueForProperty("CreationDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal)this).CreationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties for a key execution. + [System.ComponentModel.TypeConverter(typeof(ServerKeyPropertiesTypeConverter))] + public partial interface IServerKeyProperties + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.TypeConverter.cs new file mode 100644 index 000000000000..df0586d50729 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerKeyPropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerKeyProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerKeyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerKeyProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerKeyProperties.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/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.cs new file mode 100644 index 000000000000..0368d9b1a7ff --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.cs @@ -0,0 +1,86 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Properties for a key execution. + public partial class ServerKeyProperties : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal + { + + /// Backing field for property. + private global::System.DateTime? _creationDate; + + /// The key creation date. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public global::System.DateTime? CreationDate { get => this._creationDate; } + + /// Internal Acessors for CreationDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal.CreationDate { get => this._creationDate; set { {_creationDate = value;} } } + + /// Internal Acessors for ServerKeyType + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyPropertiesInternal.ServerKeyType { get => this._serverKeyType; set { {_serverKeyType = value;} } } + + /// Backing field for property. + private string _serverKeyType= @"AzureKeyVault"; + + /// The key type like 'AzureKeyVault'. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string ServerKeyType { get => this._serverKeyType; } + + /// Backing field for property. + private string _uri; + + /// The URI of the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public ServerKeyProperties() + { + + } + } + /// Properties for a key execution. + public partial interface IServerKeyProperties : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The key creation date. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The key creation date.", + SerializedName = @"creationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreationDate { get; } + /// The key type like 'AzureKeyVault'. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The key type like 'AzureKeyVault'.", + SerializedName = @"serverKeyType", + PossibleTypes = new [] { typeof(string) })] + string ServerKeyType { get; } + /// The URI of the key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the key.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// Properties for a key execution. + internal partial interface IServerKeyPropertiesInternal + + { + /// The key creation date. + global::System.DateTime? CreationDate { get; set; } + /// The key type like 'AzureKeyVault'. + string ServerKeyType { get; set; } + /// The URI of the key. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.json.cs new file mode 100644 index 000000000000..4ea57385031f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerKeyProperties.json.cs @@ -0,0 +1,108 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Properties for a key execution. + public partial class ServerKeyProperties + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKeyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerKeyProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerKeyProperties(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_serverKeyType = If( json?.PropertyT("serverKeyType"), out var __jsonServerKeyType) ? (string)__jsonServerKeyType : (string)ServerKeyType;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_creationDate = If( json?.PropertyT("creationDate"), out var __jsonCreationDate) ? global::System.DateTime.TryParse((string)__jsonCreationDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreationDateValue) ? __jsonCreationDateValue : CreationDate : CreationDate;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._serverKeyType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._serverKeyType.ToString()) : null, "serverKeyType" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._creationDate ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._creationDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "creationDate" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..1c3a8145f0aa --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// A list of servers. + [System.ComponentModel.TypeConverter(typeof(ServerListResultAutoGeneratedTypeConverter))] + public partial class ServerListResultAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerListResultAutoGenerated(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.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerListResultAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerListResultAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGeneratedTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A list of servers. + [System.ComponentModel.TypeConverter(typeof(ServerListResultAutoGeneratedTypeConverter))] + public partial interface IServerListResultAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..f07bbe3202c5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerListResultAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerListResultAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerListResultAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerListResultAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.cs new file mode 100644 index 000000000000..599d7ed7ba71 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of servers. + public partial class ServerListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGeneratedInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[] _value; + + /// The list of servers + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ServerListResultAutoGenerated() + { + + } + } + /// A list of servers. + public partial interface IServerListResultAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The link used to get the next page of operations. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link used to get the next page of operations.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of servers + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of servers", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[] Value { get; set; } + + } + /// A list of servers. + internal partial interface IServerListResultAutoGeneratedInternal + + { + /// The link used to get the next page of operations. + string NextLink { get; set; } + /// The list of servers + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.json.cs new file mode 100644 index 000000000000..05750fc07ad8 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerListResultAutoGenerated.json.cs @@ -0,0 +1,111 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// A list of servers. + public partial class ServerListResultAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerListResultAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerListResultAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerListResultAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IServerAutoGenerated) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..2276510024f0 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.PowerShell.cs @@ -0,0 +1,195 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// The properties of a server. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesAutoGeneratedTypeConverter))] + public partial class ServerPropertiesAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerPropertiesAutoGenerated(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.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerPropertiesAutoGenerated(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.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerPropertiesAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).RestorePointInTime = (global::System.DateTime?) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, 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 ServerPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicaCapacity = (int?) content.GetValueForProperty("ReplicaCapacity",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ReplicaCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SourceServerId = (string) content.GetValueForProperty("SourceServerId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).SourceServerId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).RestorePointInTime = (global::System.DateTime?) content.GetValueForProperty("RestorePointInTime",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).RestorePointInTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of a server. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesAutoGeneratedTypeConverter))] + public partial interface IServerPropertiesAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..8f587ef94bbb --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerPropertiesAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerPropertiesAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerPropertiesAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerPropertiesAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.cs new file mode 100644 index 000000000000..a7b06914fa34 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.cs @@ -0,0 +1,585 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties of a server. + public partial class ServerPropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal + { + + /// Backing field for property. + private string _administratorLogin; + + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string AdministratorLogin { get => this._administratorLogin; set => this._administratorLogin = value; } + + /// Backing field for property. + private string _administratorLoginPassword; + + /// The password of the administrator login (required for server creation). + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + + /// Backing field for property. + private string _availabilityZone; + + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string AvailabilityZone { get => this._availabilityZone; set => this._availabilityZone = value; } + + /// Backing field for property. + private string _byokEnforcement; + + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string ByokEnforcement { get => this._byokEnforcement; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? _createMode; + + /// The mode to create a new MySQL server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get => this._createMode; set => this._createMode = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments _delegatedSubnetArgument; + + /// Delegated subnet arguments. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get => (this._delegatedSubnetArgument = this._delegatedSubnetArgument ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments()); set => this._delegatedSubnetArgument = value; } + + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)DelegatedSubnetArgument).SubnetArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)DelegatedSubnetArgument).SubnetArmResourceId = value; } + + /// Backing field for property. + private global::System.DateTime? _earliestRestoreDate; + + /// Earliest restore point creation time (ISO8601 format) + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public global::System.DateTime? EarliestRestoreDate { get => this._earliestRestoreDate; } + + /// Backing field for property. + private string _fullyQualifiedDomainName; + + /// The fully qualified domain name of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string FullyQualifiedDomainName { get => this._fullyQualifiedDomainName; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? _haEnabled; + + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get => this._haEnabled; set => this._haEnabled = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? _haState; + + /// The state of a HA server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get => this._haState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? _infrastructureEncryption; + + /// Status showing whether the server enabled infrastructure encryption. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get => this._infrastructureEncryption; set => this._infrastructureEncryption = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow _maintenanceWindow; + + /// Maintenance window of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get => (this._maintenanceWindow = this._maintenanceWindow ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow()); set => this._maintenanceWindow = value; } + + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string MaintenanceWindowCustomWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).CustomWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).CustomWindow = value; } + + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowDayOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).DayOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).DayOfWeek = value; } + + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartHour = value; } + + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartMinute = value; } + + /// Internal Acessors for ByokEnforcement + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.ByokEnforcement { get => this._byokEnforcement; set { {_byokEnforcement = value;} } } + + /// Internal Acessors for DelegatedSubnetArgument + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.DelegatedSubnetArgument { get => (this._delegatedSubnetArgument = this._delegatedSubnetArgument ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments()); set { {_delegatedSubnetArgument = value;} } } + + /// Internal Acessors for EarliestRestoreDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.EarliestRestoreDate { get => this._earliestRestoreDate; set { {_earliestRestoreDate = value;} } } + + /// Internal Acessors for FullyQualifiedDomainName + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.FullyQualifiedDomainName { get => this._fullyQualifiedDomainName; set { {_fullyQualifiedDomainName = value;} } } + + /// Internal Acessors for HaState + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.HaState { get => this._haState; set { {_haState = value;} } } + + /// Internal Acessors for MaintenanceWindow + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.MaintenanceWindow { get => (this._maintenanceWindow = this._maintenanceWindow ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow()); set { {_maintenanceWindow = value;} } } + + /// Internal Acessors for PublicNetworkAccess + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.PublicNetworkAccess { get => this._publicNetworkAccess; set { {_publicNetworkAccess = value;} } } + + /// Internal Acessors for ReplicaCapacity + int? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.ReplicaCapacity { get => this._replicaCapacity; set { {_replicaCapacity = value;} } } + + /// Internal Acessors for StandbyAvailabilityZone + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.StandbyAvailabilityZone { get => this._standbyAvailabilityZone; set { {_standbyAvailabilityZone = value;} } } + + /// Internal Acessors for State + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.State { get => this._state; set { {_state = value;} } } + + /// Internal Acessors for StorageProfile + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGeneratedInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated()); set { {_storageProfile = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? _publicNetworkAccess; + + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => this._publicNetworkAccess; } + + /// Backing field for property. + private int? _replicaCapacity; + + /// The maximum number of replicas that a primary server can have. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? ReplicaCapacity { get => this._replicaCapacity; } + + /// Backing field for property. + private string _replicationRole; + + /// The replication role. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string ReplicationRole { get => this._replicationRole; set => this._replicationRole = value; } + + /// Backing field for property. + private global::System.DateTime? _restorePointInTime; + + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public global::System.DateTime? RestorePointInTime { get => this._restorePointInTime; set => this._restorePointInTime = value; } + + /// Backing field for property. + private string _sourceServerId; + + /// The source MySQL server id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string SourceServerId { get => this._sourceServerId; set => this._sourceServerId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? _sslEnforcement; + + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get => this._sslEnforcement; set => this._sslEnforcement = value; } + + /// Backing field for property. + private string _standbyAvailabilityZone; + + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string StandbyAvailabilityZone { get => this._standbyAvailabilityZone; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? _state; + + /// The state of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get => this._state; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated _storageProfile; + + /// Storage profile of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated()); set => this._storageProfile = value; } + + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).BackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).BackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageAutogrow = value; } + + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageIop { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageIop; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageIop = value; } + + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageMb = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags _tag; + + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTags()); set => this._tag = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? _version; + + /// Server version. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get => this._version; set => this._version = value; } + + /// Creates an new instance. + public ServerPropertiesAutoGenerated() + { + + } + } + /// The properties of a server. + public partial interface IServerPropertiesAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", + SerializedName = @"administratorLogin", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLogin { get; set; } + /// The password of the administrator login (required for server creation). + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login (required for server creation).", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLoginPassword { get; set; } + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"availability Zone information of the server.", + SerializedName = @"availabilityZone", + PossibleTypes = new [] { typeof(string) })] + string AvailabilityZone { get; set; } + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status showing whether the data encryption is enabled with customer-managed keys.", + SerializedName = @"byokEnforcement", + PossibleTypes = new [] { typeof(string) })] + string ByokEnforcement { get; } + /// The mode to create a new MySQL server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The mode to create a new MySQL server.", + SerializedName = @"createMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get; set; } + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Earliest restore point creation time (ISO8601 format) + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Earliest restore point creation time (ISO8601 format)", + SerializedName = @"earliestRestoreDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EarliestRestoreDate { get; } + /// The fully qualified domain name of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fully qualified domain name of a server.", + SerializedName = @"fullyQualifiedDomainName", + PossibleTypes = new [] { typeof(string) })] + string FullyQualifiedDomainName { get; } + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// The state of a HA server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The state of a HA server.", + SerializedName = @"haState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get; } + /// Status showing whether the server enabled infrastructure encryption. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Status showing whether the server enabled infrastructure encryption.", + SerializedName = @"infrastructureEncryption", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get; set; } + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartMinute { get; set; } + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'", + SerializedName = @"publicNetworkAccess", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get; } + /// The maximum number of replicas that a primary server can have. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The maximum number of replicas that a primary server can have.", + SerializedName = @"replicaCapacity", + PossibleTypes = new [] { typeof(int) })] + int? ReplicaCapacity { get; } + /// The replication role. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + string ReplicationRole { get; set; } + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restore point creation time (ISO8601 format), specifying the time to restore from.", + SerializedName = @"restorePointInTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RestorePointInTime { get; set; } + /// The source MySQL server id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The source MySQL server id.", + SerializedName = @"sourceServerId", + PossibleTypes = new [] { typeof(string) })] + string SourceServerId { get; set; } + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// availability Zone information of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"availability Zone information of the server.", + SerializedName = @"standbyAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string StandbyAvailabilityZone { get; } + /// The state of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The state of a server.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get; } + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageMb { get; set; } + /// Application-specific metadata in the form of key-value pairs. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags Tag { get; set; } + /// Server version. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Server version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get; set; } + + } + /// The properties of a server. + internal partial interface IServerPropertiesAutoGeneratedInternal + + { + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + string AdministratorLogin { get; set; } + /// The password of the administrator login (required for server creation). + string AdministratorLoginPassword { get; set; } + /// availability Zone information of the server. + string AvailabilityZone { get; set; } + /// + /// Status showing whether the data encryption is enabled with customer-managed keys. + /// + string ByokEnforcement { get; set; } + /// The mode to create a new MySQL server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode? CreateMode { get; set; } + /// Delegated subnet arguments. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get; set; } + /// delegated subnet arm resource id. + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Earliest restore point creation time (ISO8601 format) + global::System.DateTime? EarliestRestoreDate { get; set; } + /// The fully qualified domain name of a server. + string FullyQualifiedDomainName { get; set; } + /// Enable HA or not for a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// The state of a HA server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState? HaState { get; set; } + /// Status showing whether the server enabled infrastructure encryption. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum? InfrastructureEncryption { get; set; } + /// Maintenance window of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get; set; } + /// indicates whether custom window is enabled or disabled + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + int? MaintenanceWindowStartMinute { get; set; } + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get; set; } + /// The maximum number of replicas that a primary server can have. + int? ReplicaCapacity { get; set; } + /// The replication role. + string ReplicationRole { get; set; } + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + global::System.DateTime? RestorePointInTime { get; set; } + /// The source MySQL server id. + string SourceServerId { get; set; } + /// Enable ssl enforcement or not when connect to server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// availability Zone information of the server. + string StandbyAvailabilityZone { get; set; } + /// The state of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState? State { get; set; } + /// Storage profile of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get; set; } + /// Backup retention days for the server. + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + int? StorageProfileStorageMb { get; set; } + /// Application-specific metadata in the form of key-value pairs. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags Tag { get; set; } + /// Server version. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion? Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.json.cs new file mode 100644 index 000000000000..a1d1728aa003 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesAutoGenerated.json.cs @@ -0,0 +1,169 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties of a server. + public partial class ServerPropertiesAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerPropertiesAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated.FromJson(__jsonStorageProfile) : StorageProfile;} + {_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;} + {_delegatedSubnetArgument = If( json?.PropertyT("delegatedSubnetArguments"), out var __jsonDelegatedSubnetArguments) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments.FromJson(__jsonDelegatedSubnetArguments) : DelegatedSubnetArgument;} + {_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} + {_infrastructureEncryption = If( json?.PropertyT("infrastructureEncryption"), out var __jsonInfrastructureEncryption) ? (string)__jsonInfrastructureEncryption : (string)InfrastructureEncryption;} + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} + {_haState = If( json?.PropertyT("haState"), out var __jsonHaState) ? (string)__jsonHaState : (string)HaState;} + {_haEnabled = If( json?.PropertyT("haEnabled"), out var __jsonHaEnabled) ? (string)__jsonHaEnabled : (string)HaEnabled;} + {_fullyQualifiedDomainName = If( json?.PropertyT("fullyQualifiedDomainName"), out var __jsonFullyQualifiedDomainName) ? (string)__jsonFullyQualifiedDomainName : (string)FullyQualifiedDomainName;} + {_earliestRestoreDate = If( json?.PropertyT("earliestRestoreDate"), out var __jsonEarliestRestoreDate) ? global::System.DateTime.TryParse((string)__jsonEarliestRestoreDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEarliestRestoreDateValue) ? __jsonEarliestRestoreDateValue : EarliestRestoreDate : EarliestRestoreDate;} + {_replicationRole = If( json?.PropertyT("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole;} + {_replicaCapacity = If( json?.PropertyT("replicaCapacity"), out var __jsonReplicaCapacity) ? (int?)__jsonReplicaCapacity : ReplicaCapacity;} + {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} + {_sourceServerId = If( json?.PropertyT("sourceServerId"), out var __jsonSourceServerId) ? (string)__jsonSourceServerId : (string)SourceServerId;} + {_restorePointInTime = If( json?.PropertyT("restorePointInTime"), out var __jsonRestorePointInTime) ? global::System.DateTime.TryParse((string)__jsonRestorePointInTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRestorePointInTimeValue) ? __jsonRestorePointInTimeValue : RestorePointInTime : RestorePointInTime;} + {_availabilityZone = If( json?.PropertyT("availabilityZone"), out var __jsonAvailabilityZone) ? (string)__jsonAvailabilityZone : (string)AvailabilityZone;} + {_standbyAvailabilityZone = If( json?.PropertyT("standbyAvailabilityZone"), out var __jsonStandbyAvailabilityZone) ? (string)__jsonStandbyAvailabilityZone : (string)StandbyAvailabilityZone;} + {_byokEnforcement = If( json?.PropertyT("byokEnforcement"), out var __jsonByokEnforcement) ? (string)__jsonByokEnforcement : (string)ByokEnforcement;} + {_createMode = If( json?.PropertyT("createMode"), out var __jsonCreateMode) ? (string)__jsonCreateMode : (string)CreateMode;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTags.FromJson(__jsonTags) : Tag;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); + AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add ); + AddIf( null != this._delegatedSubnetArgument ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._delegatedSubnetArgument.ToJson(null,serializationMode) : null, "delegatedSubnetArguments" ,container.Add ); + AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); + AddIf( null != (((object)this._infrastructureEncryption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._infrastructureEncryption.ToString()) : null, "infrastructureEncryption" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._haState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._haState.ToString()) : null, "haState" ,container.Add ); + } + AddIf( null != (((object)this._haEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._haEnabled.ToString()) : null, "haEnabled" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._fullyQualifiedDomainName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._fullyQualifiedDomainName.ToString()) : null, "fullyQualifiedDomainName" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._earliestRestoreDate ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._earliestRestoreDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "earliestRestoreDate" ,container.Add ); + } + AddIf( null != (((object)this._replicationRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._replicationRole.ToString()) : null, "replicationRole" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._replicaCapacity ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._replicaCapacity) : null, "replicaCapacity" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._publicNetworkAccess)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._publicNetworkAccess.ToString()) : null, "publicNetworkAccess" ,container.Add ); + } + AddIf( null != (((object)this._sourceServerId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sourceServerId.ToString()) : null, "sourceServerId" ,container.Add ); + AddIf( null != this._restorePointInTime ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._restorePointInTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "restorePointInTime" ,container.Add ); + AddIf( null != (((object)this._availabilityZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._availabilityZone.ToString()) : null, "availabilityZone" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._standbyAvailabilityZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._standbyAvailabilityZone.ToString()) : null, "standbyAvailabilityZone" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._byokEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._byokEnforcement.ToString()) : null, "byokEnforcement" ,container.Add ); + } + AddIf( null != (((object)this._createMode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._createMode.ToString()) : null, "createMode" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.PowerShell.cs new file mode 100644 index 000000000000..a9963aeaa6af --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.PowerShell.cs @@ -0,0 +1,163 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// The properties that can be updated for a server. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesForUpdateTypeConverter))] + public partial class ServerPropertiesForUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerPropertiesForUpdate(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.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerPropertiesForUpdate(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.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerPropertiesForUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerPropertiesForUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArgumentsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindowTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).ReplicationRole = (string) content.GetValueForProperty("ReplicationRole",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).ReplicationRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageIop = (int?) content.GetValueForProperty("StorageProfileStorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).StorageProfileStorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId = (string) content.GetValueForProperty("DelegatedSubnetArgumentSubnetArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).DelegatedSubnetArgumentSubnetArmResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartMinute = (int?) content.GetValueForProperty("MaintenanceWindowStartMinute",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowStartMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowDayOfWeek = (int?) content.GetValueForProperty("MaintenanceWindowDayOfWeek",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowDayOfWeek, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties that can be updated for a server. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesForUpdateTypeConverter))] + public partial interface IServerPropertiesForUpdate + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.TypeConverter.cs new file mode 100644 index 000000000000..556d9b6dd299 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerPropertiesForUpdateTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerPropertiesForUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerPropertiesForUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerPropertiesForUpdate.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/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.cs new file mode 100644 index 000000000000..5c71c191b156 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.cs @@ -0,0 +1,259 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties that can be updated for a server. + public partial class ServerPropertiesForUpdate : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal + { + + /// Backing field for property. + private string _administratorLoginPassword; + + /// The password of the administrator login. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments _delegatedSubnetArgument; + + /// Delegated subnet arguments. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get => (this._delegatedSubnetArgument = this._delegatedSubnetArgument ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments()); set => this._delegatedSubnetArgument = value; } + + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)DelegatedSubnetArgument).SubnetArmResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArgumentsInternal)DelegatedSubnetArgument).SubnetArmResourceId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? _haEnabled; + + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get => this._haEnabled; set => this._haEnabled = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow _maintenanceWindow; + + /// Maintenance window of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get => (this._maintenanceWindow = this._maintenanceWindow ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow()); set => this._maintenanceWindow = value; } + + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string MaintenanceWindowCustomWindow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).CustomWindow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).CustomWindow = value; } + + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowDayOfWeek { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).DayOfWeek; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).DayOfWeek = value; } + + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartHour = value; } + + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? MaintenanceWindowStartMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindowInternal)MaintenanceWindow).StartMinute = value; } + + /// Internal Acessors for DelegatedSubnetArgument + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal.DelegatedSubnetArgument { get => (this._delegatedSubnetArgument = this._delegatedSubnetArgument ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments()); set { {_delegatedSubnetArgument = value;} } } + + /// Internal Acessors for MaintenanceWindow + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal.MaintenanceWindow { get => (this._maintenanceWindow = this._maintenanceWindow ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow()); set { {_maintenanceWindow = value;} } } + + /// Internal Acessors for StorageProfile + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdateInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated()); set { {_storageProfile = value;} } } + + /// Backing field for property. + private string _replicationRole; + + /// The replication role of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string ReplicationRole { get => this._replicationRole; set => this._replicationRole = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? _sslEnforcement; + + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get => this._sslEnforcement; set => this._sslEnforcement = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated _storageProfile; + + /// Storage profile of a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated()); set => this._storageProfile = value; } + + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).BackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).BackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageAutogrow = value; } + + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageIop { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageIop; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageIop = value; } + + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)StorageProfile).StorageMb = value; } + + /// Creates an new instance. + public ServerPropertiesForUpdate() + { + + } + } + /// The properties that can be updated for a server. + public partial interface IServerPropertiesForUpdate : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The password of the administrator login. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login.", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + string AdministratorLoginPassword { get; set; } + /// delegated subnet arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Enable HA or not for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// indicates whether custom window is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + int? MaintenanceWindowStartMinute { get; set; } + /// The replication role of the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role of the server.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + string ReplicationRole { get; set; } + /// Enable ssl enforcement or not when connect to server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + int? StorageProfileStorageMb { get; set; } + + } + /// The properties that can be updated for a server. + internal partial interface IServerPropertiesForUpdateInternal + + { + /// The password of the administrator login. + string AdministratorLoginPassword { get; set; } + /// Delegated subnet arguments. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetArguments DelegatedSubnetArgument { get; set; } + /// delegated subnet arm resource id. + string DelegatedSubnetArgumentSubnetArmResourceId { get; set; } + /// Enable HA or not for a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum? HaEnabled { get; set; } + /// Maintenance window of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IMaintenanceWindow MaintenanceWindow { get; set; } + /// indicates whether custom window is enabled or disabled + string MaintenanceWindowCustomWindow { get; set; } + /// day of week for maintenance window + int? MaintenanceWindowDayOfWeek { get; set; } + /// start hour for maintenance window + int? MaintenanceWindowStartHour { get; set; } + /// start minute for maintenance window + int? MaintenanceWindowStartMinute { get; set; } + /// The replication role of the server. + string ReplicationRole { get; set; } + /// Enable ssl enforcement or not when connect to server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum? SslEnforcement { get; set; } + /// Storage profile of a server. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated StorageProfile { get; set; } + /// Backup retention days for the server. + int? StorageProfileBackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get; set; } + /// Storage IOPS for a server. + int? StorageProfileStorageIop { get; set; } + /// Max storage allowed for a server. + int? StorageProfileStorageMb { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.json.cs new file mode 100644 index 000000000000..2c6645d2d9af --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesForUpdate.json.cs @@ -0,0 +1,113 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// The properties that can be updated for a server. + public partial class ServerPropertiesForUpdate + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesForUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerPropertiesForUpdate(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerPropertiesForUpdate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageProfileAutoGenerated.FromJson(__jsonStorageProfile) : StorageProfile;} + {_delegatedSubnetArgument = If( json?.PropertyT("delegatedSubnetArguments"), out var __jsonDelegatedSubnetArguments) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetArguments.FromJson(__jsonDelegatedSubnetArguments) : DelegatedSubnetArgument;} + {_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;} + {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;} + {_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;} + {_haEnabled = If( json?.PropertyT("haEnabled"), out var __jsonHaEnabled) ? (string)__jsonHaEnabled : (string)HaEnabled;} + {_replicationRole = If( json?.PropertyT("replicationRole"), out var __jsonReplicationRole) ? (string)__jsonReplicationRole : (string)ReplicationRole;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); + AddIf( null != this._delegatedSubnetArgument ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._delegatedSubnetArgument.ToJson(null,serializationMode) : null, "delegatedSubnetArguments" ,container.Add ); + AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add ); + AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add ); + AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add ); + AddIf( null != (((object)this._haEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._haEnabled.ToString()) : null, "haEnabled" ,container.Add ); + AddIf( null != (((object)this._replicationRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._replicationRole.ToString()) : null, "replicationRole" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.PowerShell.cs new file mode 100644 index 000000000000..8b5b5fe2dbfd --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Application-specific metadata in the form of key-value pairs. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesTagsTypeConverter))] + public partial class ServerPropertiesTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerPropertiesTags(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.MySql.Models.Api20200701Preview.IServerPropertiesTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerPropertiesTags(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.MySql.Models.Api20200701Preview.IServerPropertiesTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerPropertiesTags(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 ServerPropertiesTags(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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Application-specific metadata in the form of key-value pairs. + [System.ComponentModel.TypeConverter(typeof(ServerPropertiesTagsTypeConverter))] + public partial interface IServerPropertiesTags + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.TypeConverter.cs new file mode 100644 index 000000000000..5012b0448b49 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerPropertiesTagsTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerPropertiesTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerPropertiesTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerPropertiesTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerPropertiesTags.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/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.cs new file mode 100644 index 000000000000..46737c53d2cc --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Application-specific metadata in the form of key-value pairs. + public partial class ServerPropertiesTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTagsInternal + { + + /// Creates an new instance. + public ServerPropertiesTags() + { + + } + } + /// Application-specific metadata in the form of key-value pairs. + public partial interface IServerPropertiesTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray + { + + } + /// Application-specific metadata in the form of key-value pairs. + internal partial interface IServerPropertiesTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.dictionary.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.dictionary.cs new file mode 100644 index 000000000000..5a1ee5e3f836 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + public partial class ServerPropertiesTags : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerPropertiesTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.json.cs new file mode 100644 index 000000000000..c257dcfe213f --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerPropertiesTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Application-specific metadata in the form of key-value pairs. + public partial class ServerPropertiesTags + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerPropertiesTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ServerPropertiesTags(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray)this).AdditionalProperties, null ,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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.PowerShell.cs new file mode 100644 index 000000000000..b6ff82dddcb0 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Server version capabilities. + [System.ComponentModel.TypeConverter(typeof(ServerVersionCapabilityTypeConverter))] + public partial class ServerVersionCapability + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServerVersionCapability(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.MySql.Models.Api20200701Preview.IServerVersionCapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServerVersionCapability(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.MySql.Models.Api20200701Preview.IServerVersionCapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServerVersionCapability(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).SupportedVcore = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[]) content.GetValueForProperty("SupportedVcore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).SupportedVcore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VcoreCapabilityTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServerVersionCapability(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).SupportedVcore = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[]) content.GetValueForProperty("SupportedVcore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal)this).SupportedVcore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VcoreCapabilityTypeConverter.ConvertFrom)); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Server version capabilities. + [System.ComponentModel.TypeConverter(typeof(ServerVersionCapabilityTypeConverter))] + public partial interface IServerVersionCapability + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.TypeConverter.cs new file mode 100644 index 000000000000..6db280829e28 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ServerVersionCapabilityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IServerVersionCapability ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ServerVersionCapability.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ServerVersionCapability.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ServerVersionCapability.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/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.cs new file mode 100644 index 000000000000..aabafa16fb98 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Server version capabilities. + public partial class ServerVersionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SupportedVcore + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapabilityInternal.SupportedVcore { get => this._supportedVcore; set { {_supportedVcore = value;} } } + + /// Backing field for property. + private string _name; + + /// server version + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[] _supportedVcore; + + /// A list of supported Vcores + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[] SupportedVcore { get => this._supportedVcore; } + + /// Creates an new instance. + public ServerVersionCapability() + { + + } + } + /// Server version capabilities. + public partial interface IServerVersionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// server version + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"server version", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// A list of supported Vcores + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of supported Vcores", + SerializedName = @"supportedVcores", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[] SupportedVcore { get; } + + } + /// Server version capabilities. + internal partial interface IServerVersionCapabilityInternal + + { + /// server version + string Name { get; set; } + /// A list of supported Vcores + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability[] SupportedVcore { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.json.cs new file mode 100644 index 000000000000..ff05eb641f60 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/ServerVersionCapability.json.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Server version capabilities. + public partial class ServerVersionCapability + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerVersionCapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new ServerVersionCapability(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal ServerVersionCapability(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_supportedVcore = If( json?.PropertyT("supportedVcores"), out var __jsonSupportedVcores) ? If( __jsonSupportedVcores as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IVcoreCapability) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VcoreCapability.FromJson(__u) )) ))() : null : SupportedVcore;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._supportedVcore) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._supportedVcore ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("supportedVcores",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..5b5aad976866 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Billing information related properties of a server. + [System.ComponentModel.TypeConverter(typeof(SkuAutoGeneratedTypeConverter))] + public partial class SkuAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SkuAutoGenerated(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.MySql.Models.Api20200701Preview.ISkuAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SkuAutoGenerated(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.MySql.Models.Api20200701Preview.ISkuAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SkuAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SkuAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Tier = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal)this).Tier, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier.CreateFrom); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Billing information related properties of a server. + [System.ComponentModel.TypeConverter(typeof(SkuAutoGeneratedTypeConverter))] + public partial interface ISkuAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..d4c9a265de05 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SkuAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.ISkuAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SkuAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SkuAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SkuAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.cs new file mode 100644 index 000000000000..ffd883e2c232 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.cs @@ -0,0 +1,63 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Billing information related properties of a server. + public partial class SkuAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGeneratedInternal + { + + /// Backing field for property. + private string _name; + + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier _tier; + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier Tier { get => this._tier; set => this._tier = value; } + + /// Creates an new instance. + public SkuAutoGenerated() + { + + } + } + /// Billing information related properties of a server. + public partial interface ISkuAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// The name of the sku, e.g. Standard_D32s_v3. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier Tier { get; set; } + + } + /// Billing information related properties of a server. + internal partial interface ISkuAutoGeneratedInternal + + { + /// The name of the sku, e.g. Standard_D32s_v3. + string Name { get; set; } + /// The tier of the particular SKU, e.g. GeneralPurpose. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier Tier { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.json.cs new file mode 100644 index 000000000000..5a3750405abc --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/SkuAutoGenerated.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Billing information related properties of a server. + public partial class SkuAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ISkuAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new SkuAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal SkuAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.PowerShell.cs new file mode 100644 index 000000000000..f0be023d5ad9 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.PowerShell.cs @@ -0,0 +1,149 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// storage edition capability + [System.ComponentModel.TypeConverter(typeof(StorageEditionCapabilityTypeConverter))] + public partial class StorageEditionCapability + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageEditionCapability(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.MySql.Models.Api20200701Preview.IStorageEditionCapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageEditionCapability(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.MySql.Models.Api20200701Preview.IStorageEditionCapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageEditionCapability(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSize = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability) content.GetValueForProperty("MinStorageSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSize, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapabilityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSize = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability) content.GetValueForProperty("MaxStorageSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSize, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapabilityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinBackupRetentionDay = (long?) content.GetValueForProperty("MinBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinBackupRetentionDay, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxBackupRetentionDay = (long?) content.GetValueForProperty("MaxBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxBackupRetentionDay, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeName = (string) content.GetValueForProperty("MinStorageSizeName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeMb = (long?) content.GetValueForProperty("MinStorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeName = (string) content.GetValueForProperty("MaxStorageSizeName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeMb = (long?) content.GetValueForProperty("MaxStorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StorageEditionCapability(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSize = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability) content.GetValueForProperty("MinStorageSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSize, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapabilityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSize = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability) content.GetValueForProperty("MaxStorageSize",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSize, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapabilityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinBackupRetentionDay = (long?) content.GetValueForProperty("MinBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinBackupRetentionDay, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxBackupRetentionDay = (long?) content.GetValueForProperty("MaxBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxBackupRetentionDay, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeName = (string) content.GetValueForProperty("MinStorageSizeName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeMb = (long?) content.GetValueForProperty("MinStorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MinStorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeName = (string) content.GetValueForProperty("MaxStorageSizeName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeMb = (long?) content.GetValueForProperty("MaxStorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal)this).MaxStorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// storage edition capability + [System.ComponentModel.TypeConverter(typeof(StorageEditionCapabilityTypeConverter))] + public partial interface IStorageEditionCapability + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.TypeConverter.cs new file mode 100644 index 000000000000..34a713fd50af --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StorageEditionCapabilityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IStorageEditionCapability ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StorageEditionCapability.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StorageEditionCapability.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StorageEditionCapability.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/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.cs new file mode 100644 index 000000000000..908a142108fe --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.cs @@ -0,0 +1,181 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// storage edition capability + public partial class StorageEditionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal + { + + /// Backing field for property. + private long? _maxBackupRetentionDay; + + /// Maximum backup retention days + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? MaxBackupRetentionDay { get => this._maxBackupRetentionDay; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability _maxStorageSize; + + /// The maximum supported storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability MaxStorageSize { get => (this._maxStorageSize = this._maxStorageSize ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability()); } + + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public long? MaxStorageSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).StorageSizeMb; } + + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string MaxStorageSizeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).Name; } + + /// Internal Acessors for MaxBackupRetentionDay + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MaxBackupRetentionDay { get => this._maxBackupRetentionDay; set { {_maxBackupRetentionDay = value;} } } + + /// Internal Acessors for MaxStorageSize + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MaxStorageSize { get => (this._maxStorageSize = this._maxStorageSize ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability()); set { {_maxStorageSize = value;} } } + + /// Internal Acessors for MaxStorageSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MaxStorageSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).StorageSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).StorageSizeMb = value; } + + /// Internal Acessors for MaxStorageSizeName + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MaxStorageSizeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MaxStorageSize).Name = value; } + + /// Internal Acessors for MinBackupRetentionDay + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MinBackupRetentionDay { get => this._minBackupRetentionDay; set { {_minBackupRetentionDay = value;} } } + + /// Internal Acessors for MinStorageSize + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MinStorageSize { get => (this._minStorageSize = this._minStorageSize ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability()); set { {_minStorageSize = value;} } } + + /// Internal Acessors for MinStorageSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MinStorageSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).StorageSizeMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).StorageSizeMb = value; } + + /// Internal Acessors for MinStorageSizeName + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.MinStorageSizeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).Name = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapabilityInternal.Name { get => this._name; set { {_name = value;} } } + + /// Backing field for property. + private long? _minBackupRetentionDay; + + /// Minimal backup retention days + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? MinBackupRetentionDay { get => this._minBackupRetentionDay; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability _minStorageSize; + + /// The minimal supported storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability MinStorageSize { get => (this._minStorageSize = this._minStorageSize ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability()); } + + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public long? MinStorageSizeMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).StorageSizeMb; } + + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Inlined)] + public string MinStorageSizeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)MinStorageSize).Name; } + + /// Backing field for property. + private string _name; + + /// storage edition name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Creates an new instance. + public StorageEditionCapability() + { + + } + } + /// storage edition capability + public partial interface IStorageEditionCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Maximum backup retention days + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum backup retention days", + SerializedName = @"maxBackupRetentionDays", + PossibleTypes = new [] { typeof(long) })] + long? MaxBackupRetentionDay { get; } + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage size in MB", + SerializedName = @"storageSizeMB", + PossibleTypes = new [] { typeof(long) })] + long? MaxStorageSizeMb { get; } + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage MB name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string MaxStorageSizeName { get; } + /// Minimal backup retention days + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Minimal backup retention days", + SerializedName = @"minBackupRetentionDays", + PossibleTypes = new [] { typeof(long) })] + long? MinBackupRetentionDay { get; } + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage size in MB", + SerializedName = @"storageSizeMB", + PossibleTypes = new [] { typeof(long) })] + long? MinStorageSizeMb { get; } + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage MB name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string MinStorageSizeName { get; } + /// storage edition name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage edition name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + + } + /// storage edition capability + internal partial interface IStorageEditionCapabilityInternal + + { + /// Maximum backup retention days + long? MaxBackupRetentionDay { get; set; } + /// The maximum supported storage size in MB + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability MaxStorageSize { get; set; } + /// storage size in MB + long? MaxStorageSizeMb { get; set; } + /// storage MB name + string MaxStorageSizeName { get; set; } + /// Minimal backup retention days + long? MinBackupRetentionDay { get; set; } + /// The minimal supported storage size in MB + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability MinStorageSize { get; set; } + /// storage size in MB + long? MinStorageSizeMb { get; set; } + /// storage MB name + string MinStorageSizeName { get; set; } + /// storage edition name + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.json.cs new file mode 100644 index 000000000000..70b287d08667 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageEditionCapability.json.cs @@ -0,0 +1,124 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// storage edition capability + public partial class StorageEditionCapability + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageEditionCapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new StorageEditionCapability(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal StorageEditionCapability(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_minStorageSize = If( json?.PropertyT("minStorageSize"), out var __jsonMinStorageSize) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability.FromJson(__jsonMinStorageSize) : MinStorageSize;} + {_maxStorageSize = If( json?.PropertyT("maxStorageSize"), out var __jsonMaxStorageSize) ? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.StorageMbCapability.FromJson(__jsonMaxStorageSize) : MaxStorageSize;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_minBackupRetentionDay = If( json?.PropertyT("minBackupRetentionDays"), out var __jsonMinBackupRetentionDays) ? (long?)__jsonMinBackupRetentionDays : MinBackupRetentionDay;} + {_maxBackupRetentionDay = If( json?.PropertyT("maxBackupRetentionDays"), out var __jsonMaxBackupRetentionDays) ? (long?)__jsonMaxBackupRetentionDays : MaxBackupRetentionDay;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._minStorageSize ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._minStorageSize.ToJson(null,serializationMode) : null, "minStorageSize" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._maxStorageSize ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) this._maxStorageSize.ToJson(null,serializationMode) : null, "maxStorageSize" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._minBackupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._minBackupRetentionDay) : null, "minBackupRetentionDays" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._maxBackupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._maxBackupRetentionDay) : null, "maxBackupRetentionDays" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.PowerShell.cs new file mode 100644 index 000000000000..0f9bd5626292 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// storage size in MB capability + [System.ComponentModel.TypeConverter(typeof(StorageMbCapabilityTypeConverter))] + public partial class StorageMbCapability + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageMbCapability(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.MySql.Models.Api20200701Preview.IStorageMbCapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageMbCapability(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.MySql.Models.Api20200701Preview.IStorageMbCapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageMbCapability(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).StorageSizeMb = (long?) content.GetValueForProperty("StorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).StorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StorageMbCapability(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).StorageSizeMb = (long?) content.GetValueForProperty("StorageSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal)this).StorageSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// storage size in MB capability + [System.ComponentModel.TypeConverter(typeof(StorageMbCapabilityTypeConverter))] + public partial interface IStorageMbCapability + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.TypeConverter.cs new file mode 100644 index 000000000000..98181bb5c684 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StorageMbCapabilityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IStorageMbCapability ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StorageMbCapability.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StorageMbCapability.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StorageMbCapability.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/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.cs new file mode 100644 index 000000000000..ae562c173365 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.cs @@ -0,0 +1,69 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// storage size in MB capability + public partial class StorageMbCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for StorageSizeMb + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapabilityInternal.StorageSizeMb { get => this._storageSizeMb; set { {_storageSizeMb = value;} } } + + /// Backing field for property. + private string _name; + + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private long? _storageSizeMb; + + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? StorageSizeMb { get => this._storageSizeMb; } + + /// Creates an new instance. + public StorageMbCapability() + { + + } + } + /// storage size in MB capability + public partial interface IStorageMbCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// storage MB name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage MB name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// storage size in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"storage size in MB", + SerializedName = @"storageSizeMB", + PossibleTypes = new [] { typeof(long) })] + long? StorageSizeMb { get; } + + } + /// storage size in MB capability + internal partial interface IStorageMbCapabilityInternal + + { + /// storage MB name + string Name { get; set; } + /// storage size in MB + long? StorageSizeMb { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.json.cs new file mode 100644 index 000000000000..dc3dec7b95fb --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageMbCapability.json.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// storage size in MB capability + public partial class StorageMbCapability + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageMbCapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new StorageMbCapability(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal StorageMbCapability(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_storageSizeMb = If( json?.PropertyT("storageSizeMB"), out var __jsonStorageSizeMb) ? (long?)__jsonStorageSizeMb : StorageSizeMb;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._storageSizeMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._storageSizeMb) : null, "storageSizeMB" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..2ab4dbe15160 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Storage Profile properties of a server + [System.ComponentModel.TypeConverter(typeof(StorageProfileAutoGeneratedTypeConverter))] + public partial class StorageProfileAutoGenerated + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageProfileAutoGenerated(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.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageProfileAutoGenerated(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.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageProfileAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).BackupRetentionDay = (int?) content.GetValueForProperty("BackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).BackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageMb = (int?) content.GetValueForProperty("StorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageIop = (int?) content.GetValueForProperty("StorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StorageProfileAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).BackupRetentionDay = (int?) content.GetValueForProperty("BackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).BackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageMb = (int?) content.GetValueForProperty("StorageMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageIop = (int?) content.GetValueForProperty("StorageIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageIop, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow?) content.GetValueForProperty("StorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal)this).StorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow.CreateFrom); + 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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Storage Profile properties of a server + [System.ComponentModel.TypeConverter(typeof(StorageProfileAutoGeneratedTypeConverter))] + public partial interface IStorageProfileAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.TypeConverter.cs new file mode 100644 index 000000000000..517d35f5c4d5 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StorageProfileAutoGeneratedTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StorageProfileAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StorageProfileAutoGenerated.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StorageProfileAutoGenerated.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/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.cs new file mode 100644 index 000000000000..60ac33910740 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.cs @@ -0,0 +1,97 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Storage Profile properties of a server + public partial class StorageProfileAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGeneratedInternal + { + + /// Backing field for property. + private int? _backupRetentionDay; + + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? BackupRetentionDay { get => this._backupRetentionDay; set => this._backupRetentionDay = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? _storageAutogrow; + + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageAutogrow { get => this._storageAutogrow; set => this._storageAutogrow = value; } + + /// Backing field for property. + private int? _storageIop; + + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? StorageIop { get => this._storageIop; set => this._storageIop = value; } + + /// Backing field for property. + private int? _storageMb; + + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public int? StorageMb { get => this._storageMb; set => this._storageMb = value; } + + /// Creates an new instance. + public StorageProfileAutoGenerated() + { + + } + } + /// Storage Profile properties of a server + public partial interface IStorageProfileAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Backup retention days for the server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + int? BackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageAutogrow { get; set; } + /// Storage IOPS for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + int? StorageIop { get; set; } + /// Max storage allowed for a server. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + int? StorageMb { get; set; } + + } + /// Storage Profile properties of a server + internal partial interface IStorageProfileAutoGeneratedInternal + + { + /// Backup retention days for the server. + int? BackupRetentionDay { get; set; } + /// Enable Storage Auto Grow. + Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow? StorageAutogrow { get; set; } + /// Storage IOPS for a server. + int? StorageIop { get; set; } + /// Max storage allowed for a server. + int? StorageMb { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.json.cs new file mode 100644 index 000000000000..1d6cd33a4564 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/StorageProfileAutoGenerated.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Storage Profile properties of a server + public partial class StorageProfileAutoGenerated + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IStorageProfileAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new StorageProfileAutoGenerated(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal StorageProfileAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_backupRetentionDay = If( json?.PropertyT("backupRetentionDays"), out var __jsonBackupRetentionDays) ? (int?)__jsonBackupRetentionDays : BackupRetentionDay;} + {_storageMb = If( json?.PropertyT("storageMB"), out var __jsonStorageMb) ? (int?)__jsonStorageMb : StorageMb;} + {_storageIop = If( json?.PropertyT("storageIops"), out var __jsonStorageIops) ? (int?)__jsonStorageIops : StorageIop;} + {_storageAutogrow = If( json?.PropertyT("storageAutogrow"), out var __jsonStorageAutogrow) ? (string)__jsonStorageAutogrow : (string)StorageAutogrow;} + 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.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._backupRetentionDay ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._backupRetentionDay) : null, "backupRetentionDays" ,container.Add ); + AddIf( null != this._storageMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._storageMb) : null, "storageMB" ,container.Add ); + AddIf( null != this._storageIop ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((int)this._storageIop) : null, "storageIops" ,container.Add ); + AddIf( null != (((object)this._storageAutogrow)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._storageAutogrow.ToString()) : null, "storageAutogrow" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.PowerShell.cs new file mode 100644 index 000000000000..632583ef765e --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Vcores capability + [System.ComponentModel.TypeConverter(typeof(VcoreCapabilityTypeConverter))] + public partial class VcoreCapability + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VcoreCapability(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.MySql.Models.Api20200701Preview.IVcoreCapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VcoreCapability(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.MySql.Models.Api20200701Preview.IVcoreCapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VcoreCapability(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).VCore = (long?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).VCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedIop = (long?) content.GetValueForProperty("SupportedIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedIop, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedMemoryPerVcoreMb = (long?) content.GetValueForProperty("SupportedMemoryPerVcoreMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedMemoryPerVcoreMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VcoreCapability(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).VCore = (long?) content.GetValueForProperty("VCore",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).VCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedIop = (long?) content.GetValueForProperty("SupportedIop",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedIop, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedMemoryPerVcoreMb = (long?) content.GetValueForProperty("SupportedMemoryPerVcoreMb",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal)this).SupportedMemoryPerVcoreMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + AfterDeserializePSObject(content); + } + } + /// Vcores capability + [System.ComponentModel.TypeConverter(typeof(VcoreCapabilityTypeConverter))] + public partial interface IVcoreCapability + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.TypeConverter.cs new file mode 100644 index 000000000000..ae54e9915fd4 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class VcoreCapabilityTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IVcoreCapability ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return VcoreCapability.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return VcoreCapability.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return VcoreCapability.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/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.cs b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.cs new file mode 100644 index 000000000000..c6cf1cc75853 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.cs @@ -0,0 +1,109 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Vcores capability + public partial class VcoreCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SupportedIop + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal.SupportedIop { get => this._supportedIop; set { {_supportedIop = value;} } } + + /// Internal Acessors for SupportedMemoryPerVcoreMb + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal.SupportedMemoryPerVcoreMb { get => this._supportedMemoryPerVcoreMb; set { {_supportedMemoryPerVcoreMb = value;} } } + + /// Internal Acessors for VCore + long? Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapabilityInternal.VCore { get => this._vCore; set { {_vCore = value;} } } + + /// Backing field for property. + private string _name; + + /// vCore name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private long? _supportedIop; + + /// supported IOPS + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? SupportedIop { get => this._supportedIop; } + + /// Backing field for property. + private long? _supportedMemoryPerVcoreMb; + + /// supported memory per vCore in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? SupportedMemoryPerVcoreMb { get => this._supportedMemoryPerVcoreMb; } + + /// Backing field for property. + private long? _vCore; + + /// supported vCores + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public long? VCore { get => this._vCore; } + + /// Creates an new instance. + public VcoreCapability() + { + + } + } + /// Vcores capability + public partial interface IVcoreCapability : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// vCore name + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"vCore name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// supported IOPS + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"supported IOPS", + SerializedName = @"supportedIops", + PossibleTypes = new [] { typeof(long) })] + long? SupportedIop { get; } + /// supported memory per vCore in MB + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"supported memory per vCore in MB", + SerializedName = @"supportedMemoryPerVcoreMB", + PossibleTypes = new [] { typeof(long) })] + long? SupportedMemoryPerVcoreMb { get; } + /// supported vCores + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"supported vCores", + SerializedName = @"vCores", + PossibleTypes = new [] { typeof(long) })] + long? VCore { get; } + + } + /// Vcores capability + internal partial interface IVcoreCapabilityInternal + + { + /// vCore name + string Name { get; set; } + /// supported IOPS + long? SupportedIop { get; set; } + /// supported memory per vCore in MB + long? SupportedMemoryPerVcoreMb { get; set; } + /// supported vCores + long? VCore { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.json.cs new file mode 100644 index 000000000000..55276dee08a2 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VcoreCapability.json.cs @@ -0,0 +1,119 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Vcores capability + public partial class VcoreCapability + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVcoreCapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new VcoreCapability(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._vCore ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._vCore) : null, "vCores" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._supportedIop ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._supportedIop) : null, "supportedIops" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._supportedMemoryPerVcoreMb ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNumber((long)this._supportedMemoryPerVcoreMb) : null, "supportedMemoryPerVcoreMB" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal VcoreCapability(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_vCore = If( json?.PropertyT("vCores"), out var __jsonVCores) ? (long?)__jsonVCores : VCore;} + {_supportedIop = If( json?.PropertyT("supportedIops"), out var __jsonSupportedIops) ? (long?)__jsonSupportedIops : SupportedIop;} + {_supportedMemoryPerVcoreMb = If( json?.PropertyT("supportedMemoryPerVcoreMB"), out var __jsonSupportedMemoryPerVcoreMb) ? (long?)__jsonSupportedMemoryPerVcoreMb : SupportedMemoryPerVcoreMb;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.PowerShell.cs new file mode 100644 index 000000000000..f2484eabfebc --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Virtual network subnet usage parameter + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkSubnetUsageParameterTypeConverter))] + public partial class VirtualNetworkSubnetUsageParameter + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VirtualNetworkSubnetUsageParameter(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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VirtualNetworkSubnetUsageParameter(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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VirtualNetworkSubnetUsageParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameterInternal)this).VirtualNetworkArmResourceId = (string) content.GetValueForProperty("VirtualNetworkArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameterInternal)this).VirtualNetworkArmResourceId, 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 VirtualNetworkSubnetUsageParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameterInternal)this).VirtualNetworkArmResourceId = (string) content.GetValueForProperty("VirtualNetworkArmResourceId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameterInternal)this).VirtualNetworkArmResourceId, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + } + /// Virtual network subnet usage parameter + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkSubnetUsageParameterTypeConverter))] + public partial interface IVirtualNetworkSubnetUsageParameter + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.TypeConverter.cs new file mode 100644 index 000000000000..9ad08ae94da7 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class VirtualNetworkSubnetUsageParameterTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return VirtualNetworkSubnetUsageParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return VirtualNetworkSubnetUsageParameter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return VirtualNetworkSubnetUsageParameter.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/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.cs new file mode 100644 index 000000000000..ccd0286ab071 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.cs @@ -0,0 +1,46 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Virtual network subnet usage parameter + public partial class VirtualNetworkSubnetUsageParameter : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameterInternal + { + + /// Backing field for property. + private string _virtualNetworkArmResourceId; + + /// Virtual network resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string VirtualNetworkArmResourceId { get => this._virtualNetworkArmResourceId; set => this._virtualNetworkArmResourceId = value; } + + /// Creates an new instance. + public VirtualNetworkSubnetUsageParameter() + { + + } + } + /// Virtual network subnet usage parameter + public partial interface IVirtualNetworkSubnetUsageParameter : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// Virtual network resource id. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Virtual network resource id.", + SerializedName = @"virtualNetworkArmResourceId", + PossibleTypes = new [] { typeof(string) })] + string VirtualNetworkArmResourceId { get; set; } + + } + /// Virtual network subnet usage parameter + internal partial interface IVirtualNetworkSubnetUsageParameterInternal + + { + /// Virtual network resource id. + string VirtualNetworkArmResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.json.cs new file mode 100644 index 000000000000..9f70fab87b81 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageParameter.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Virtual network subnet usage parameter + public partial class VirtualNetworkSubnetUsageParameter + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new VirtualNetworkSubnetUsageParameter(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._virtualNetworkArmResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._virtualNetworkArmResourceId.ToString()) : null, "virtualNetworkArmResourceId" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal VirtualNetworkSubnetUsageParameter(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_virtualNetworkArmResourceId = If( json?.PropertyT("virtualNetworkArmResourceId"), out var __jsonVirtualNetworkArmResourceId) ? (string)__jsonVirtualNetworkArmResourceId : (string)VirtualNetworkArmResourceId;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.PowerShell.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.PowerShell.cs new file mode 100644 index 000000000000..d2c8e8dd7a25 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.PowerShell.cs @@ -0,0 +1,133 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// Virtual network subnet usage data. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkSubnetUsageResultTypeConverter))] + public partial class VirtualNetworkSubnetUsageResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VirtualNetworkSubnetUsageResult(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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VirtualNetworkSubnetUsageResult(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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VirtualNetworkSubnetUsageResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal)this).DelegatedSubnetsUsage = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[]) content.GetValueForProperty("DelegatedSubnetsUsage",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal)this).DelegatedSubnetsUsage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetUsageTypeConverter.ConvertFrom)); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VirtualNetworkSubnetUsageResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal)this).DelegatedSubnetsUsage = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[]) content.GetValueForProperty("DelegatedSubnetsUsage",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal)this).DelegatedSubnetsUsage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetUsageTypeConverter.ConvertFrom)); + AfterDeserializePSObject(content); + } + } + /// Virtual network subnet usage data. + [System.ComponentModel.TypeConverter(typeof(VirtualNetworkSubnetUsageResultTypeConverter))] + public partial interface IVirtualNetworkSubnetUsageResult + + { + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.TypeConverter.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.TypeConverter.cs new file mode 100644 index 000000000000..db70cb58f571 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class VirtualNetworkSubnetUsageResultTypeConverter : 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 + /// parameter. + /// + /// 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.MySql.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.MySql.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 to the parameter using and + /// + /// 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.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return VirtualNetworkSubnetUsageResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return VirtualNetworkSubnetUsageResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return VirtualNetworkSubnetUsageResult.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/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.cs new file mode 100644 index 000000000000..1cecdca5d25e --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.cs @@ -0,0 +1,49 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Virtual network subnet usage data. + public partial class VirtualNetworkSubnetUsageResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[] _delegatedSubnetsUsage; + + /// A list of delegated subnet usage + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[] DelegatedSubnetsUsage { get => this._delegatedSubnetsUsage; } + + /// Internal Acessors for DelegatedSubnetsUsage + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[] Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResultInternal.DelegatedSubnetsUsage { get => this._delegatedSubnetsUsage; set { {_delegatedSubnetsUsage = value;} } } + + /// Creates an new instance. + public VirtualNetworkSubnetUsageResult() + { + + } + } + /// Virtual network subnet usage data. + public partial interface IVirtualNetworkSubnetUsageResult : + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IJsonSerializable + { + /// A list of delegated subnet usage + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A list of delegated subnet usage", + SerializedName = @"delegatedSubnetsUsage", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage) })] + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[] DelegatedSubnetsUsage { get; } + + } + /// Virtual network subnet usage data. + internal partial interface IVirtualNetworkSubnetUsageResultInternal + + { + /// A list of delegated subnet usage + Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage[] DelegatedSubnetsUsage { get; set; } + + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.json.cs b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.json.cs new file mode 100644 index 000000000000..dc159dbdc125 --- /dev/null +++ b/src/MySql/generated/api/Models/Api20200701Preview/VirtualNetworkSubnetUsageResult.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Virtual network subnet usage data. + public partial class VirtualNetworkSubnetUsageResult + { + + /// + /// 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.MySql.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.MySql.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.MySql.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.MySql.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json ? new VirtualNetworkSubnetUsageResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._delegatedSubnetsUsage) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.XNodeArray(); + foreach( var __x in this._delegatedSubnetsUsage ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("delegatedSubnetsUsage",__w); + } + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject instance to deserialize from. + internal VirtualNetworkSubnetUsageResult(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_delegatedSubnetsUsage = If( json?.PropertyT("delegatedSubnetsUsage"), out var __jsonDelegatedSubnetsUsage) ? If( __jsonDelegatedSubnetsUsage as Microsoft.Azure.PowerShell.Cmdlets.MySql.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.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage) (Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DelegatedSubnetUsage.FromJson(__u) )) ))() : null : DelegatedSubnetsUsage;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Models/MySqlIdentity.PowerShell.cs b/src/MySql/generated/api/Models/MySqlIdentity.PowerShell.cs index a3b04c184a13..1cc2e673d7f1 100644 --- a/src/MySql/generated/api/Models/MySqlIdentity.PowerShell.cs +++ b/src/MySql/generated/api/Models/MySqlIdentity.PowerShell.cs @@ -98,16 +98,17 @@ internal MySqlIdentity(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName = (string) content.GetValueForProperty("ConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName = (string) content.GetValueForProperty("DatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName = (string) content.GetValueForProperty("FirewallRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName = (string) content.GetValueForProperty("LocationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName?) content.GetValueForProperty("SecurityAlertPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ServerName = (string) content.GetValueForProperty("ServerName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ServerName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName = (string) content.GetValueForProperty("FirewallRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).VirtualNetworkRuleName = (string) content.GetValueForProperty("VirtualNetworkRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).VirtualNetworkRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName = (string) content.GetValueForProperty("DatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName = (string) content.GetValueForProperty("ConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName = (string) content.GetValueForProperty("LocationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName?) content.GetValueForProperty("SecurityAlertPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -125,16 +126,17 @@ internal MySqlIdentity(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName = (string) content.GetValueForProperty("ConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName = (string) content.GetValueForProperty("DatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName = (string) content.GetValueForProperty("FirewallRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName = (string) content.GetValueForProperty("LocationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName?) content.GetValueForProperty("SecurityAlertPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName.CreateFrom); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ServerName = (string) content.GetValueForProperty("ServerName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ServerName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName = (string) content.GetValueForProperty("FirewallRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).FirewallRuleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).VirtualNetworkRuleName = (string) content.GetValueForProperty("VirtualNetworkRuleName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).VirtualNetworkRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName = (string) content.GetValueForProperty("DatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).DatabaseName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName = (string) content.GetValueForProperty("ConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).ConfigurationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName = (string) content.GetValueForProperty("LocationName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).LocationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName = (Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName?) content.GetValueForProperty("SecurityAlertPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).SecurityAlertPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SecurityAlertPolicyName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/MySql/generated/api/Models/MySqlIdentity.cs b/src/MySql/generated/api/Models/MySqlIdentity.cs index d53b3a4505d6..87f45d9d204d 100644 --- a/src/MySql/generated/api/Models/MySqlIdentity.cs +++ b/src/MySql/generated/api/Models/MySqlIdentity.cs @@ -40,6 +40,13 @@ public partial class MySqlIdentity : [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Origin(Microsoft.Azure.PowerShell.Cmdlets.MySql.PropertyOrigin.Owned)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + /// Backing field for property. private string _locationName; @@ -123,6 +130,14 @@ public partial interface IMySqlIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } + /// The name of the server key. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + string KeyName { get; set; } /// The name of the location. [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( Required = false, @@ -184,6 +199,8 @@ internal partial interface IMySqlIdentityInternal string FirewallRuleName { get; set; } /// Resource identity path string Id { get; set; } + /// The name of the server key. + string KeyName { get; set; } /// The name of the location. string LocationName { get; set; } /// The name of the resource group. The name is case insensitive. diff --git a/src/MySql/generated/api/Models/MySqlIdentity.json.cs b/src/MySql/generated/api/Models/MySqlIdentity.json.cs index 440845492049..3534fecd326c 100644 --- a/src/MySql/generated/api/Models/MySqlIdentity.json.cs +++ b/src/MySql/generated/api/Models/MySqlIdentity.json.cs @@ -72,16 +72,17 @@ internal MySqlIdentity(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.Jso { return; } - {_configurationName = If( json?.PropertyT("configurationName"), out var __jsonConfigurationName) ? (string)__jsonConfigurationName : (string)ConfigurationName;} - {_databaseName = If( json?.PropertyT("databaseName"), out var __jsonDatabaseName) ? (string)__jsonDatabaseName : (string)DatabaseName;} - {_firewallRuleName = If( json?.PropertyT("firewallRuleName"), out var __jsonFirewallRuleName) ? (string)__jsonFirewallRuleName : (string)FirewallRuleName;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_locationName = If( json?.PropertyT("locationName"), out var __jsonLocationName) ? (string)__jsonLocationName : (string)LocationName;} + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} - {_securityAlertPolicyName = If( json?.PropertyT("securityAlertPolicyName"), out var __jsonSecurityAlertPolicyName) ? (string)__jsonSecurityAlertPolicyName : (string)SecurityAlertPolicyName;} {_serverName = If( json?.PropertyT("serverName"), out var __jsonServerName) ? (string)__jsonServerName : (string)ServerName;} - {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_firewallRuleName = If( json?.PropertyT("firewallRuleName"), out var __jsonFirewallRuleName) ? (string)__jsonFirewallRuleName : (string)FirewallRuleName;} {_virtualNetworkRuleName = If( json?.PropertyT("virtualNetworkRuleName"), out var __jsonVirtualNetworkRuleName) ? (string)__jsonVirtualNetworkRuleName : (string)VirtualNetworkRuleName;} + {_databaseName = If( json?.PropertyT("databaseName"), out var __jsonDatabaseName) ? (string)__jsonDatabaseName : (string)DatabaseName;} + {_configurationName = If( json?.PropertyT("configurationName"), out var __jsonConfigurationName) ? (string)__jsonConfigurationName : (string)ConfigurationName;} + {_locationName = If( json?.PropertyT("locationName"), out var __jsonLocationName) ? (string)__jsonLocationName : (string)LocationName;} + {_securityAlertPolicyName = If( json?.PropertyT("securityAlertPolicyName"), out var __jsonSecurityAlertPolicyName) ? (string)__jsonSecurityAlertPolicyName : (string)SecurityAlertPolicyName;} + {_keyName = If( json?.PropertyT("keyName"), out var __jsonKeyName) ? (string)__jsonKeyName : (string)KeyName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -104,16 +105,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode ToJson(Mic { return container; } - AddIf( null != (((object)this._configurationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._configurationName.ToString()) : null, "configurationName" ,container.Add ); - AddIf( null != (((object)this._databaseName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._databaseName.ToString()) : null, "databaseName" ,container.Add ); - AddIf( null != (((object)this._firewallRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._firewallRuleName.ToString()) : null, "firewallRuleName" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._locationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._locationName.ToString()) : null, "locationName" ,container.Add ); + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); - AddIf( null != (((object)this._securityAlertPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._securityAlertPolicyName.ToString()) : null, "securityAlertPolicyName" ,container.Add ); AddIf( null != (((object)this._serverName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._serverName.ToString()) : null, "serverName" ,container.Add ); - AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._firewallRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._firewallRuleName.ToString()) : null, "firewallRuleName" ,container.Add ); AddIf( null != (((object)this._virtualNetworkRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._virtualNetworkRuleName.ToString()) : null, "virtualNetworkRuleName" ,container.Add ); + AddIf( null != (((object)this._databaseName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._databaseName.ToString()) : null, "databaseName" ,container.Add ); + AddIf( null != (((object)this._configurationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._configurationName.ToString()) : null, "configurationName" ,container.Add ); + AddIf( null != (((object)this._locationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._locationName.ToString()) : null, "locationName" ,container.Add ); + AddIf( null != (((object)this._securityAlertPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._securityAlertPolicyName.ToString()) : null, "securityAlertPolicyName" ,container.Add ); + AddIf( null != (((object)this._keyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._keyName.ToString()) : null, "keyName" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/MySql/generated/api/MySql.cs b/src/MySql/generated/api/MySql.cs index 2fd996f32a00..28ee5062d9b8 100644 --- a/src/MySql/generated/api/MySql.cs +++ b/src/MySql/generated/api/MySql.cs @@ -9,165 +9,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql /// /// Low-level API implementation for the MySQL service. + /// The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including + /// servers, databases, firewall rules, VNET rules, log files and configurations with new business model. /// public partial class MySql { - /// Check the availability of name for resource - /// The ID of the target subscription. - /// The required parameters for checking if resource name is available. - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) - { - var apiVersion = @"2017-12-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DBforMySQL/checkNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.CheckNameAvailabilityExecute_Call(request,onOk,eventListener,sender); - } - } - - /// Check the availability of name for resource - /// - /// The required parameters for checking if resource name is available. - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecuteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) - { - var apiVersion = @"2017-12-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBforMySQL/checkNameAvailability$").Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + subscriptionId - + "/providers/Microsoft.DBforMySQL/checkNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.CheckNameAvailabilityExecute_Call(request,onOk,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.NameAvailability.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The ID of the target subscription. - /// The required parameters for checking if resource name is available. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - /// Updates a configuration of a server. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -192,7 +39,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations/" + global::System.Uri.EscapeDataString(configurationName) @@ -233,10 +80,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}'"); } // replace URI parameters with values from identity @@ -250,7 +97,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/configurations/" + configurationName @@ -464,7 +311,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations/" + global::System.Uri.EscapeDataString(configurationName) @@ -500,10 +347,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}'"); } // replace URI parameters with values from identity @@ -517,7 +364,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/configurations/" + configurationName @@ -630,7 +477,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/configurations" + "?" @@ -665,10 +512,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/configurations$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/configurations$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations'"); } // replace URI parameters with values from identity @@ -681,7 +528,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/configurations" + "?" @@ -793,7 +640,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/databases/" + global::System.Uri.EscapeDataString(databaseName) @@ -834,10 +681,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'"); } // replace URI parameters with values from identity @@ -851,7 +698,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/databases/" + databaseName @@ -1066,7 +913,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/databases/" + global::System.Uri.EscapeDataString(databaseName) @@ -1103,10 +950,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'"); } // replace URI parameters with values from identity @@ -1120,7 +967,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/databases/" + databaseName @@ -1335,7 +1182,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/databases/" + global::System.Uri.EscapeDataString(databaseName) @@ -1371,10 +1218,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}'"); } // replace URI parameters with values from identity @@ -1388,7 +1235,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/databases/" + databaseName @@ -1501,7 +1348,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/databases" + "?" @@ -1536,10 +1383,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/databases$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/databases$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases'"); } // replace URI parameters with values from identity @@ -1552,7 +1399,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/databases" + "?" @@ -1664,7 +1511,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -1705,10 +1552,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); } // replace URI parameters with values from identity @@ -1722,7 +1569,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/firewallRules/" + firewallRuleName @@ -1937,7 +1784,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -1974,10 +1821,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); } // replace URI parameters with values from identity @@ -1991,7 +1838,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/firewallRules/" + firewallRuleName @@ -2206,7 +2053,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/firewallRules/" + global::System.Uri.EscapeDataString(firewallRuleName) @@ -2222,11 +2069,6432 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); + await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); + } + } + + /// Gets information about a server firewall rule. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FirewallRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2017-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var firewallRuleName = _match.Groups["firewallRuleName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySQL/servers/" + + serverName + + "/firewallRules/" + + firewallRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FirewallRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FirewallRulesGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(firewallRuleName),firewallRuleName); + } + } + + /// List all the firewall rules in a given server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FirewallRulesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2017-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySQL/servers/" + + global::System.Uri.EscapeDataString(serverName) + + "/firewallRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); + } + } + + /// List all the firewall rules in a given server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FirewallRulesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2017-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/firewallRules$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySQL/servers/" + + serverName + + "/firewallRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FirewallRulesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FirewallRulesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Gets information about a configuration of server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server configuration. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsGet(string subscriptionId, string resourceGroupName, string serverName, string configurationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/configurations/" + + global::System.Uri.EscapeDataString(configurationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets information about a configuration of server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var configurationName = _match.Groups["configurationName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/configurations/" + + configurationName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server configuration. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string configurationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(configurationName),configurationName); + } + } + + /// List all the configurations in a given server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/configurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the configurations in a given server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/configurations$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/configurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Updates a configuration of a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server configuration. + /// The required parameters for updating a server configuration. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsUpdate(string subscriptionId, string resourceGroupName, string serverName, string configurationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/configurations/" + + global::System.Uri.EscapeDataString(configurationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a configuration of a server. + /// + /// The required parameters for updating a server configuration. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerConfigurationsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var configurationName = _match.Groups["configurationName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/configurations/" + + configurationName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerConfigurationsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server configuration. + /// The required parameters for updating a server configuration. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerConfigurationsUpdate_Validate(string subscriptionId, string resourceGroupName, string serverName, string configurationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(configurationName),configurationName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates a new database or updates an existing database. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// The required parameters for creating or updating a database. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesCreateOrUpdate(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/databases/" + + global::System.Uri.EscapeDataString(databaseName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates a new database or updates an existing database. + /// + /// The required parameters for creating or updating a database. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var databaseName = _match.Groups["databaseName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/databases/" + + databaseName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// The required parameters for creating or updating a database. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(databaseName),databaseName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a database. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesDelete(string subscriptionId, string resourceGroupName, string serverName, string databaseName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/databases/" + + global::System.Uri.EscapeDataString(databaseName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a database. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var databaseName = _match.Groups["databaseName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/databases/" + + databaseName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesDelete_Validate(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(databaseName),databaseName); + } + } + + /// Gets information about a database. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesGet(string subscriptionId, string resourceGroupName, string serverName, string databaseName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/databases/" + + global::System.Uri.EscapeDataString(databaseName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets information about a database. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/databases/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var databaseName = _match.Groups["databaseName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/databases/" + + databaseName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the database. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string databaseName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(databaseName),databaseName); + } + } + + /// List all the databases in a given server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/databases" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the databases in a given server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerDatabasesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/databases$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/databases" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerDatabasesListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.DatabaseListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerDatabasesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Creates a new firewall rule or updates an existing firewall rule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// The required parameters for creating or updating a firewall rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/firewallRules/" + + global::System.Uri.EscapeDataString(firewallRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// The required parameters for creating or updating a firewall rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var firewallRuleName = _match.Groups["firewallRuleName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/firewallRules/" + + firewallRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// The required parameters for creating or updating a firewall rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(firewallRuleName),firewallRuleName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a firewall rule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesDelete(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/firewallRules/" + + global::System.Uri.EscapeDataString(firewallRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a firewall rule. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var firewallRuleName = _match.Groups["firewallRuleName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/firewallRules/" + + firewallRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesDelete_Validate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(firewallRuleName),firewallRuleName); + } + } + + /// Gets information about a server firewall rule. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesGet(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/firewallRules/" + + global::System.Uri.EscapeDataString(firewallRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets information about a server firewall rule. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var firewallRuleName = _match.Groups["firewallRuleName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/firewallRules/" + + firewallRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server firewall rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(firewallRuleName),firewallRuleName); + } + } + + /// List all the firewall rules in a given server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/firewallRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the firewall rules in a given server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/firewallRules$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/firewallRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerFirewallRulesListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.FirewallRuleListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerFirewallRulesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Creates or updates a MySQL Server key. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// The requested MySQL Server key resource state. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysCreateOrUpdate(string subscriptionId, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/keys/" + + global::System.Uri.EscapeDataString(keyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a MySQL Server key. + /// + /// The requested MySQL Server key resource state. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/keys/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var keyName = _match.Groups["keyName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/keys/" + + keyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// The requested MySQL Server key resource state. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(keyName),keyName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes the MySQL Server key with the given name. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysDelete(string subscriptionId, string resourceGroupName, string serverName, string keyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/keys/" + + global::System.Uri.EscapeDataString(keyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes the MySQL Server key with the given name. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/keys/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var keyName = _match.Groups["keyName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/keys/" + + keyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysDelete_Validate(string subscriptionId, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(keyName),keyName); + } + } + + /// Gets a server key. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysGet(string subscriptionId, string resourceGroupName, string serverName, string keyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/keys/" + + global::System.Uri.EscapeDataString(keyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a server key. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/keys/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + var keyName = _match.Groups["keyName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/keys/" + + keyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The name of the server key. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(keyName),keyName); + } + } + + /// Gets a list of Server keys. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/keys" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a list of Server keys. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerKeysListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/keys$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/keys" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerKeysListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKeyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerKeysListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Get capabilities at specified location in a given subscription. + /// The ID of the target subscription. + /// The name of the location. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerLocationBasedCapabilitiesList(string subscriptionId, string locationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DBForMySql/locations/" + + global::System.Uri.EscapeDataString(locationName) + + "/capabilities" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerLocationBasedCapabilitiesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get capabilities at specified location in a given subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerLocationBasedCapabilitiesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySql/locations/(?[^/]+)/capabilities$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/capabilities'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var locationName = _match.Groups["locationName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.DBForMySql/locations/" + + locationName + + "/capabilities" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerLocationBasedCapabilitiesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerLocationBasedCapabilitiesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CapabilitiesListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the location. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerLocationBasedCapabilitiesList_Validate(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(locationName),locationName); + } + } + + /// Check the availability of name for server + /// The ID of the target subscription. + /// The required parameters for checking if server name is available. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerNameAvailabilityTest(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DBForMySql/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerNameAvailabilityTest_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Check the availability of name for server + /// + /// The required parameters for checking if server name is available. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerNameAvailabilityTestViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySql/checkNameAvailability$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/checkNameAvailability'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.DBForMySql/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerNameAvailabilityTest_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerNameAvailabilityTest_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.NameAvailability.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The required parameters for checking if server name is available. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerNameAvailabilityTest_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// List all the replicas for a given server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerReplicasListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/replicas" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerReplicasListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the replicas for a given server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerReplicasListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/replicas$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/replicas'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/replicas" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerReplicasListByServer_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerReplicasListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerReplicasListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Get virtual network subnet usage for a given vNet resource id. + /// The ID of the target subscription. + /// The name of the location. + /// The required parameters for creating or updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerVirtualNetworkSubnetUsageGet(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DBForMySql/locations/" + + global::System.Uri.EscapeDataString(locationName) + + "/checkVirtualNetworkSubnetUsage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerVirtualNetworkSubnetUsageGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get virtual network subnet usage for a given vNet resource id. + /// + /// The required parameters for creating or updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServerVirtualNetworkSubnetUsageGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySql/locations/(?[^/]+)/checkVirtualNetworkSubnetUsage$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/checkVirtualNetworkSubnetUsage'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var locationName = _match.Groups["locationName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.DBForMySql/locations/" + + locationName + + "/checkVirtualNetworkSubnetUsage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServerVirtualNetworkSubnetUsageGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerVirtualNetworkSubnetUsageGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VirtualNetworkSubnetUsageResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the location. + /// The required parameters for creating or updating a server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServerVirtualNetworkSubnetUsageGet_Validate(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(locationName),locationName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The required parameters for creating or updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersCreate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersCreate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// + /// The required parameters for creating or updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersCreate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The required parameters for creating or updating a server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersCreate_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersDelete(string subscriptionId, string resourceGroupName, string serverName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersDelete_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Gets information about a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersGet(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets information about a server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersGet_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// List all the servers in a given subscription. + /// The ID of the target subscription. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DBForMySql/flexibleServers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the servers in a given resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List all the servers in a given resource group. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + } + } + + /// List all the servers in a given subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/flexibleServers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.DBForMySql/flexibleServers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + } + } + + /// Restarts a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersRestart(string subscriptionId, string resourceGroupName, string serverName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Restarts a server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersRestartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/restart$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/restart'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/restart" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersRestart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersRestart_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Starts a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersStart(string subscriptionId, string resourceGroupName, string serverName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersStart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Starts a server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersStartViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/start$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/start'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersStart_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersStart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersStart_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// Stops a server. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersStop(string subscriptionId, string resourceGroupName, string serverName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "/stop" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersStop_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Stops a server. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersStopViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)/stop$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/stop'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "/stop" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersStop_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersStop_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersStop_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + } + } + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The required parameters for updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersUpdate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + global::System.Uri.EscapeDataString(serverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// + /// The required parameters for updating a server. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FlexibleServersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySql/flexibleServers/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var serverName = _match.Groups["serverName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DBForMySql/flexibleServers/" + + serverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FlexibleServersUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polling {_uri}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Polling, $"Polled {_uri} provisioning state {state}.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + switch( state?.ToString()?.ToLower() ) + { + case "succeeded": + case "failed": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the server. + /// The required parameters for updating a server. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FlexibleServersUpdate_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(serverName),serverName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// List all the performance tiers at specified location in a given subscription. + /// The ID of the target subscription. + /// The name of the location. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList(string subscriptionId, string locationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2017-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DBForMySQL/locations/" + + global::System.Uri.EscapeDataString(locationName) + + "/performanceTiers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); } } - /// Gets information about a server firewall rule. + /// List all the performance tiers at specified location in a given subscription. /// /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -2234,7 +8502,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FirewallRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LocationBasedPerformanceTierListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2242,27 +8510,22 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySQL/locations/(?[^/]+)/performanceTiers$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/locations/{locationName}/performanceTiers'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var serverName = _match.Groups["serverName"].Value; - var firewallRuleName = _match.Groups["firewallRuleName"].Value; + var locationName = _match.Groups["locationName"].Value; // construct URL var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( "https://management.azure.com/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" - + serverName - + "/firewallRules/" - + firewallRuleName + + "/providers/Microsoft.DBForMySQL/locations/" + + locationName + + "/performanceTiers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2275,11 +8538,11 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FirewallRulesGet_Call(request,onOk,eventListener,sender); + await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -2287,7 +8550,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FirewallRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2304,7 +8567,7 @@ public partial class MySql case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.PerformanceTierListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2324,33 +8587,26 @@ public partial class MySql } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the server. - /// The name of the server firewall rule. + /// The name of the location. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FirewallRulesGet_Validate(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList_Validate(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); - await eventListener.AssertNotNull(nameof(serverName),serverName); - await eventListener.AssertNotNull(nameof(firewallRuleName),firewallRuleName); + await eventListener.AssertNotNull(nameof(locationName),locationName); } } - /// List all the firewall rules in a given server. + /// List all the log files in a given server. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the server. @@ -2360,7 +8616,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FirewallRulesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LogFilesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2372,9 +8628,9 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) - + "/firewallRules" + + "/logFiles" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2387,11 +8643,11 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); + await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); } } - /// List all the firewall rules in a given server. + /// List all the log files in a given server. /// /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -2399,7 +8655,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FirewallRulesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LogFilesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2407,10 +8663,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/firewallRules$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/logFiles$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/logFiles'"); } // replace URI parameters with values from identity @@ -2423,9 +8679,9 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName - + "/firewallRules" + + "/logFiles" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2438,11 +8694,11 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FirewallRulesListByServer_Call(request,onOk,eventListener,sender); + await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -2450,7 +8706,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FirewallRulesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LogFilesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2467,7 +8723,7 @@ public partial class MySql case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.LogFileListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2487,8 +8743,8 @@ public partial class MySql } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -2497,7 +8753,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FirewallRulesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LogFilesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2511,16 +8767,16 @@ public partial class MySql } } - /// List all the performance tiers at specified location in a given subscription. + /// Check the availability of name for resource /// The ID of the target subscription. - /// The name of the location. + /// The required parameters for checking if resource name is available. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList(string subscriptionId, string locationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NameAvailabilityTest(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2530,9 +8786,7 @@ public partial class MySql var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( "https://management.azure.com/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DBforMySQL/locations/" - + global::System.Uri.EscapeDataString(locationName) - + "/performanceTiers" + + "/providers/Microsoft.DBForMySQL/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2540,24 +8794,29 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); + await this.NameAvailabilityTest_Call(request,onOk,eventListener,sender); } } - /// List all the performance tiers at specified location in a given subscription. + /// Check the availability of name for resource /// + /// The required parameters for checking if resource name is available. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationBasedPerformanceTierListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NameAvailabilityTestViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2565,22 +8824,19 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBforMySQL/locations/(?[^/]+)/performanceTiers$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySQL/checkNameAvailability$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var locationName = _match.Groups["locationName"].Value; // construct URL var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( "https://management.azure.com/subscriptions/" + subscriptionId - + "/providers/Microsoft.DBforMySQL/locations/" - + locationName - + "/performanceTiers" + + "/providers/Microsoft.DBForMySQL/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2588,16 +8844,20 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LocationBasedPerformanceTierList_Call(request,onOk,eventListener,sender); + await this.NameAvailabilityTest_Call(request,onOk,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -2605,7 +8865,7 @@ public partial class MySql /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NameAvailabilityTest_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2622,7 +8882,7 @@ public partial class MySql case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.PerformanceTierListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.NameAvailability.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2642,36 +8902,34 @@ public partial class MySql } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. - /// The name of the location. + /// The required parameters for checking if resource name is available. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationBasedPerformanceTierList_Validate(string subscriptionId, string locationName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task NameAvailabilityTest_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(locationName),locationName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// List all the log files in a given server. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the server. + /// Lists all of the available REST API operations. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LogFilesListByServer(string subscriptionId, string resourceGroupName, string serverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { var apiVersion = @"2017-12-01"; // Constant Parameters @@ -2679,13 +8937,7 @@ public partial class MySql { // construct URL var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" - + global::System.Uri.EscapeDataString(serverName) - + "/logFiles" + "https://management.azure.com/providers/Microsoft.DBForMySQL/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2698,45 +8950,72 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); + await this.OperationsList_Call(request,onOk,eventListener,sender); } } - /// List all the log files in a given server. + /// Lists all of the available REST API operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsList1(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + { + var apiVersion = @"2020-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.DBForMySql/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList1_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the available REST API operations. /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LogFilesListByServerViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList1ViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { - var apiVersion = @"2017-12-01"; + var apiVersion = @"2020-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/logFiles$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.DBForMySql/operations$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.DBForMySql/operations'"); } // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var serverName = _match.Groups["serverName"].Value; // construct URL var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" - + serverName - + "/logFiles" + "https://management.azure.com/providers/Microsoft.DBForMySql/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2749,19 +9028,21 @@ public partial class MySql await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LogFilesListByServer_Call(request,onOk,eventListener,sender); + await this.OperationsList1_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LogFilesListByServer_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList1_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2778,12 +9059,14 @@ public partial class MySql case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.LogFileListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.OperationListResultAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { - throw new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException(_response); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.CloudErrorAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } } } @@ -2798,59 +9081,18 @@ public partial class MySql } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the server. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task LogFilesListByServer_Validate(string subscriptionId, string resourceGroupName, string serverName, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertRegEx(nameof(resourceGroupName),resourceGroupName,@"^[-\w\._\(\)]+$"); - await eventListener.AssertNotNull(nameof(serverName),serverName); - } - } - - /// Lists all of the available REST API operations. - /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList1_Validate(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener eventListener) { - var apiVersion = @"2017-12-01"; - // Constant Parameters using( NoSynchronizationContext ) { - // construct URL - var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBforMySQL/operations" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.OperationsList_Call(request,onOk,eventListener,sender); } } @@ -2870,16 +9112,16 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.DBforMySQL/operations$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.DBForMySQL/operations$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.DBforMySQL/operations'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.DBForMySQL/operations'"); } // replace URI parameters with values from identity // construct URL var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( - "https://management.azure.com/providers/Microsoft.DBforMySQL/operations" + "https://management.azure.com/providers/Microsoft.DBForMySQL/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -2978,7 +9220,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/replicas" + "?" @@ -3013,10 +9255,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/replicas$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/replicas$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/replicas'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/replicas'"); } // replace URI parameters with values from identity @@ -3029,7 +9271,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/replicas" + "?" @@ -3145,7 +9387,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/Administrators/activeDirectory" + "?" @@ -3190,10 +9432,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'"); } // replace URI parameters with values from identity @@ -3206,7 +9448,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/Administrators/activeDirectory" + "?" @@ -3423,7 +9665,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/Administrators/activeDirectory" + "?" @@ -3461,10 +9703,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'"); } // replace URI parameters with values from identity @@ -3477,7 +9719,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/Administrators/activeDirectory" + "?" @@ -3694,7 +9936,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/Administrators/activeDirectory" + "?" @@ -3731,10 +9973,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/Administrators/activeDirectory$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory'"); } // replace URI parameters with values from identity @@ -3747,7 +9989,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/Administrators/activeDirectory" + "?" @@ -3863,7 +10105,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/administrators" + "?" @@ -3900,10 +10142,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/administrators$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/administrators$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/administrators'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/administrators'"); } // replace URI parameters with values from identity @@ -3916,7 +10158,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/administrators" + "?" @@ -4487,7 +10729,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4528,10 +10770,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}'"); } // replace URI parameters with values from identity @@ -4544,7 +10786,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4754,7 +10996,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -4789,10 +11031,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}'"); } // replace URI parameters with values from identity @@ -4805,7 +11047,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5015,7 +11257,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5049,10 +11291,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}'"); } // replace URI parameters with values from identity @@ -5065,7 +11307,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5170,7 +11412,7 @@ public partial class MySql var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( "https://management.azure.com/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DBforMySQL/servers" + + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -5208,7 +11450,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers" + + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -5241,10 +11483,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers'"); } // replace URI parameters with values from identity @@ -5256,7 +11498,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers" + + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -5356,10 +11598,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBforMySQL/servers$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DBForMySQL/servers$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/servers'"); } // replace URI parameters with values from identity @@ -5368,7 +11610,7 @@ public partial class MySql var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( "https://management.azure.com/subscriptions/" + subscriptionId - + "/providers/Microsoft.DBforMySQL/servers" + + "/providers/Microsoft.DBForMySQL/servers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); @@ -5471,7 +11713,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/restart" + "?" @@ -5508,10 +11750,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/restart$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/restart$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/restart'"); } // replace URI parameters with values from identity @@ -5524,7 +11766,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/restart" + "?" @@ -5735,7 +11977,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5776,10 +12018,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}'"); } // replace URI parameters with values from identity @@ -5792,7 +12034,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -6005,7 +12247,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/virtualNetworkRules/" + global::System.Uri.EscapeDataString(virtualNetworkRuleName) @@ -6048,10 +12290,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); } // replace URI parameters with values from identity @@ -6065,7 +12307,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/virtualNetworkRules/" + virtualNetworkRuleName @@ -6286,7 +12528,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/virtualNetworkRules/" + global::System.Uri.EscapeDataString(virtualNetworkRuleName) @@ -6325,10 +12567,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); } // replace URI parameters with values from identity @@ -6342,7 +12584,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/virtualNetworkRules/" + virtualNetworkRuleName @@ -6563,7 +12805,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/virtualNetworkRules/" + global::System.Uri.EscapeDataString(virtualNetworkRuleName) @@ -6601,10 +12843,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/virtualNetworkRules/(?[^/]+)$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'"); } // replace URI parameters with values from identity @@ -6618,7 +12860,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/virtualNetworkRules/" + virtualNetworkRuleName @@ -6737,7 +12979,7 @@ public partial class MySql + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + global::System.Uri.EscapeDataString(serverName) + "/virtualNetworkRules" + "?" @@ -6774,10 +13016,10 @@ public partial class MySql { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforMySQL/servers/(?[^/]+)/virtualNetworkRules$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForMySQL/servers/(?[^/]+)/virtualNetworkRules$").Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules'"); } // replace URI parameters with values from identity @@ -6790,7 +13032,7 @@ public partial class MySql + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DBforMySQL/servers/" + + "/providers/Microsoft.DBForMySQL/servers/" + serverName + "/virtualNetworkRules" + "?" diff --git a/src/MySql/generated/api/Support/CreateMode.Completer.cs b/src/MySql/generated/api/Support/CreateMode.Completer.cs index 9df130be1da7..29a648ac1cf5 100644 --- a/src/MySql/generated/api/Support/CreateMode.Completer.cs +++ b/src/MySql/generated/api/Support/CreateMode.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for CreateMode. + /// The mode to create a new server. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateModeTypeConverter))] public partial struct CreateMode : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/CreateMode.TypeConverter.cs b/src/MySql/generated/api/Support/CreateMode.TypeConverter.cs index e9624ec8453b..4a979dd6f19a 100644 --- a/src/MySql/generated/api/Support/CreateMode.TypeConverter.cs +++ b/src/MySql/generated/api/Support/CreateMode.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for CreateMode. + /// The mode to create a new server. public partial class CreateModeTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/CreateMode.cs b/src/MySql/generated/api/Support/CreateMode.cs index 6da5bc14af11..6f4f46fbef6b 100644 --- a/src/MySql/generated/api/Support/CreateMode.cs +++ b/src/MySql/generated/api/Support/CreateMode.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The mode to create a new server. public partial struct CreateMode : System.IEquatable { diff --git a/src/MySql/generated/api/Support/GeoRedundantBackup.Completer.cs b/src/MySql/generated/api/Support/GeoRedundantBackup.Completer.cs index c7880e6365d4..6bb80c6c0268 100644 --- a/src/MySql/generated/api/Support/GeoRedundantBackup.Completer.cs +++ b/src/MySql/generated/api/Support/GeoRedundantBackup.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for GeoRedundantBackup. + /// Enable Geo-redundant or not for server backup. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackupTypeConverter))] public partial struct GeoRedundantBackup : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/GeoRedundantBackup.TypeConverter.cs b/src/MySql/generated/api/Support/GeoRedundantBackup.TypeConverter.cs index 78c6b2fb484c..d8054a607296 100644 --- a/src/MySql/generated/api/Support/GeoRedundantBackup.TypeConverter.cs +++ b/src/MySql/generated/api/Support/GeoRedundantBackup.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for GeoRedundantBackup. + /// Enable Geo-redundant or not for server backup. public partial class GeoRedundantBackupTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/GeoRedundantBackup.cs b/src/MySql/generated/api/Support/GeoRedundantBackup.cs index 03f500e32a65..17cd4db957d7 100644 --- a/src/MySql/generated/api/Support/GeoRedundantBackup.cs +++ b/src/MySql/generated/api/Support/GeoRedundantBackup.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Enable Geo-redundant or not for server backup. public partial struct GeoRedundantBackup : System.IEquatable { diff --git a/src/MySql/generated/api/Support/HaEnabledEnum.Completer.cs b/src/MySql/generated/api/Support/HaEnabledEnum.Completer.cs new file mode 100644 index 000000000000..db280d872212 --- /dev/null +++ b/src/MySql/generated/api/Support/HaEnabledEnum.Completer.cs @@ -0,0 +1,41 @@ +// 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.MySql.Support +{ + + /// + /// Whether or not HA is enabled for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnumTypeConverter))] + public partial struct HaEnabledEnum : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/HaEnabledEnum.TypeConverter.cs b/src/MySql/generated/api/Support/HaEnabledEnum.TypeConverter.cs new file mode 100644 index 000000000000..72d15215dbb1 --- /dev/null +++ b/src/MySql/generated/api/Support/HaEnabledEnum.TypeConverter.cs @@ -0,0 +1,61 @@ +// 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.MySql.Support +{ + + /// + /// Whether or not HA is enabled for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + /// + public partial class HaEnabledEnumTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => HaEnabledEnum.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/HaEnabledEnum.cs b/src/MySql/generated/api/Support/HaEnabledEnum.cs new file mode 100644 index 000000000000..f070c288720c --- /dev/null +++ b/src/MySql/generated/api/Support/HaEnabledEnum.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// + /// Whether or not HA is enabled for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + /// + public partial struct HaEnabledEnum : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum Enabled = @"Enabled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to HaEnabledEnum + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new HaEnabledEnum(System.Convert.ToString(value)); + } + + /// Compares values of enum type HaEnabledEnum + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type HaEnabledEnum (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is HaEnabledEnum && Equals((HaEnabledEnum)obj); + } + + /// Returns hashCode for enum HaEnabledEnum + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private HaEnabledEnum(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for HaEnabledEnum + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to HaEnabledEnum + /// the value to convert to an instance of . + + public static implicit operator HaEnabledEnum(string value) + { + return new HaEnabledEnum(value); + } + + /// Implicit operator to convert HaEnabledEnum to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e) + { + return e._value; + } + + /// Overriding != operator for enum HaEnabledEnum + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum HaEnabledEnum + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IdentityType.Completer.cs b/src/MySql/generated/api/Support/IdentityType.Completer.cs index 0f955cd073d6..358897c8534a 100644 --- a/src/MySql/generated/api/Support/IdentityType.Completer.cs +++ b/src/MySql/generated/api/Support/IdentityType.Completer.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for IdentityType. + /// + /// The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory + /// principal for the resource. + /// [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityTypeTypeConverter))] public partial struct IdentityType : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/IdentityType.TypeConverter.cs b/src/MySql/generated/api/Support/IdentityType.TypeConverter.cs index 6ff0a5525909..40488feb65ed 100644 --- a/src/MySql/generated/api/Support/IdentityType.TypeConverter.cs +++ b/src/MySql/generated/api/Support/IdentityType.TypeConverter.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for IdentityType. + /// + /// The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory + /// principal for the resource. + /// public partial class IdentityTypeTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/IdentityType.cs b/src/MySql/generated/api/Support/IdentityType.cs index c708c3e8732b..0ea3bcd97987 100644 --- a/src/MySql/generated/api/Support/IdentityType.cs +++ b/src/MySql/generated/api/Support/IdentityType.cs @@ -6,6 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// + /// The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory + /// principal for the resource. + /// public partial struct IdentityType : System.IEquatable { diff --git a/src/MySql/generated/api/Support/InfrastructureEncryption.Completer.cs b/src/MySql/generated/api/Support/InfrastructureEncryption.Completer.cs index 1850aae0d56e..51579a0a528b 100644 --- a/src/MySql/generated/api/Support/InfrastructureEncryption.Completer.cs +++ b/src/MySql/generated/api/Support/InfrastructureEncryption.Completer.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for InfrastructureEncryption. + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionTypeConverter))] public partial struct InfrastructureEncryption : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/InfrastructureEncryption.TypeConverter.cs b/src/MySql/generated/api/Support/InfrastructureEncryption.TypeConverter.cs index 918009f2c0c5..0f2ca9dcb791 100644 --- a/src/MySql/generated/api/Support/InfrastructureEncryption.TypeConverter.cs +++ b/src/MySql/generated/api/Support/InfrastructureEncryption.TypeConverter.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for InfrastructureEncryption. + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// public partial class InfrastructureEncryptionTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/InfrastructureEncryption.cs b/src/MySql/generated/api/Support/InfrastructureEncryption.cs index c4e2d7ec09af..e57fd103dea0 100644 --- a/src/MySql/generated/api/Support/InfrastructureEncryption.cs +++ b/src/MySql/generated/api/Support/InfrastructureEncryption.cs @@ -6,6 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// public partial struct InfrastructureEncryption : System.IEquatable { diff --git a/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.Completer.cs b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.Completer.cs new file mode 100644 index 000000000000..684189284440 --- /dev/null +++ b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.Completer.cs @@ -0,0 +1,42 @@ +// 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.MySql.Support +{ + + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnumTypeConverter))] + public partial struct InfrastructureEncryptionEnum : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.TypeConverter.cs b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.TypeConverter.cs new file mode 100644 index 000000000000..72f7cf104003 --- /dev/null +++ b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.TypeConverter.cs @@ -0,0 +1,62 @@ +// 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.MySql.Support +{ + + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// + public partial class InfrastructureEncryptionEnumTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => InfrastructureEncryptionEnum.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs new file mode 100644 index 000000000000..00f260498889 --- /dev/null +++ b/src/MySql/generated/api/Support/InfrastructureEncryptionEnum.cs @@ -0,0 +1,105 @@ +// 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.MySql.Support +{ + + /// + /// Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. + /// Value is optional but if passed in, must be 'Disabled' or 'Enabled'. + /// + public partial struct InfrastructureEncryptionEnum : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum Enabled = @"Enabled"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to InfrastructureEncryptionEnum + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new InfrastructureEncryptionEnum(System.Convert.ToString(value)); + } + + /// Compares values of enum type InfrastructureEncryptionEnum + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type InfrastructureEncryptionEnum (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is InfrastructureEncryptionEnum && Equals((InfrastructureEncryptionEnum)obj); + } + + /// Returns hashCode for enum InfrastructureEncryptionEnum + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// + /// Creates an instance of the + /// + /// the value to create an instance for. + private InfrastructureEncryptionEnum(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for InfrastructureEncryptionEnum + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to InfrastructureEncryptionEnum + /// the value to convert to an instance of . + + public static implicit operator InfrastructureEncryptionEnum(string value) + { + return new InfrastructureEncryptionEnum(value); + } + + /// Implicit operator to convert InfrastructureEncryptionEnum to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e) + { + return e._value; + } + + /// Overriding != operator for enum InfrastructureEncryptionEnum + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum InfrastructureEncryptionEnum + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsConfigPendingRestart.Completer.cs b/src/MySql/generated/api/Support/IsConfigPendingRestart.Completer.cs new file mode 100644 index 000000000000..932250d803a9 --- /dev/null +++ b/src/MySql/generated/api/Support/IsConfigPendingRestart.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration pending restart or not. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestartTypeConverter))] + public partial struct IsConfigPendingRestart : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "True".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("True", "True", global::System.Management.Automation.CompletionResultType.ParameterValue, "True"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "False".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("False", "False", global::System.Management.Automation.CompletionResultType.ParameterValue, "False"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsConfigPendingRestart.TypeConverter.cs b/src/MySql/generated/api/Support/IsConfigPendingRestart.TypeConverter.cs new file mode 100644 index 000000000000..a907fd6025eb --- /dev/null +++ b/src/MySql/generated/api/Support/IsConfigPendingRestart.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration pending restart or not. + public partial class IsConfigPendingRestartTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => IsConfigPendingRestart.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsConfigPendingRestart.cs b/src/MySql/generated/api/Support/IsConfigPendingRestart.cs new file mode 100644 index 000000000000..dfd3c081f048 --- /dev/null +++ b/src/MySql/generated/api/Support/IsConfigPendingRestart.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration pending restart or not. + public partial struct IsConfigPendingRestart : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart False = @"False"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart True = @"True"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to IsConfigPendingRestart + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new IsConfigPendingRestart(System.Convert.ToString(value)); + } + + /// Compares values of enum type IsConfigPendingRestart + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type IsConfigPendingRestart (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is IsConfigPendingRestart && Equals((IsConfigPendingRestart)obj); + } + + /// Returns hashCode for enum IsConfigPendingRestart + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private IsConfigPendingRestart(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for IsConfigPendingRestart + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to IsConfigPendingRestart + /// the value to convert to an instance of . + + public static implicit operator IsConfigPendingRestart(string value) + { + return new IsConfigPendingRestart(value); + } + + /// Implicit operator to convert IsConfigPendingRestart to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e) + { + return e._value; + } + + /// Overriding != operator for enum IsConfigPendingRestart + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum IsConfigPendingRestart + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsConfigPendingRestart e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsDynamicConfig.Completer.cs b/src/MySql/generated/api/Support/IsDynamicConfig.Completer.cs new file mode 100644 index 000000000000..d94dc18d8e9a --- /dev/null +++ b/src/MySql/generated/api/Support/IsDynamicConfig.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration dynamic. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfigTypeConverter))] + public partial struct IsDynamicConfig : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "True".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("True", "True", global::System.Management.Automation.CompletionResultType.ParameterValue, "True"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "False".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("False", "False", global::System.Management.Automation.CompletionResultType.ParameterValue, "False"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsDynamicConfig.TypeConverter.cs b/src/MySql/generated/api/Support/IsDynamicConfig.TypeConverter.cs new file mode 100644 index 000000000000..39f4cf2f7fd5 --- /dev/null +++ b/src/MySql/generated/api/Support/IsDynamicConfig.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration dynamic. + public partial class IsDynamicConfigTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => IsDynamicConfig.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsDynamicConfig.cs b/src/MySql/generated/api/Support/IsDynamicConfig.cs new file mode 100644 index 000000000000..ae5357891782 --- /dev/null +++ b/src/MySql/generated/api/Support/IsDynamicConfig.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration dynamic. + public partial struct IsDynamicConfig : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig False = @"False"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig True = @"True"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to IsDynamicConfig + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new IsDynamicConfig(System.Convert.ToString(value)); + } + + /// Compares values of enum type IsDynamicConfig + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type IsDynamicConfig (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is IsDynamicConfig && Equals((IsDynamicConfig)obj); + } + + /// Returns hashCode for enum IsDynamicConfig + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private IsDynamicConfig(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for IsDynamicConfig + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to IsDynamicConfig + /// the value to convert to an instance of . + + public static implicit operator IsDynamicConfig(string value) + { + return new IsDynamicConfig(value); + } + + /// Implicit operator to convert IsDynamicConfig to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e) + { + return e._value; + } + + /// Overriding != operator for enum IsDynamicConfig + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum IsDynamicConfig + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsDynamicConfig e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsReadOnly.Completer.cs b/src/MySql/generated/api/Support/IsReadOnly.Completer.cs new file mode 100644 index 000000000000..ab4ac6444896 --- /dev/null +++ b/src/MySql/generated/api/Support/IsReadOnly.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration read only. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnlyTypeConverter))] + public partial struct IsReadOnly : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "True".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("True", "True", global::System.Management.Automation.CompletionResultType.ParameterValue, "True"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "False".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("False", "False", global::System.Management.Automation.CompletionResultType.ParameterValue, "False"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsReadOnly.TypeConverter.cs b/src/MySql/generated/api/Support/IsReadOnly.TypeConverter.cs new file mode 100644 index 000000000000..eba33e3f16e1 --- /dev/null +++ b/src/MySql/generated/api/Support/IsReadOnly.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration read only. + public partial class IsReadOnlyTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => IsReadOnly.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/IsReadOnly.cs b/src/MySql/generated/api/Support/IsReadOnly.cs new file mode 100644 index 000000000000..8df4d73400c5 --- /dev/null +++ b/src/MySql/generated/api/Support/IsReadOnly.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// If is the configuration read only. + public partial struct IsReadOnly : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly False = @"False"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly True = @"True"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to IsReadOnly + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new IsReadOnly(System.Convert.ToString(value)); + } + + /// Compares values of enum type IsReadOnly + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type IsReadOnly (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is IsReadOnly && Equals((IsReadOnly)obj); + } + + /// Returns hashCode for enum IsReadOnly + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private IsReadOnly(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for IsReadOnly + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to IsReadOnly + /// the value to convert to an instance of . + + public static implicit operator IsReadOnly(string value) + { + return new IsReadOnly(value); + } + + /// Implicit operator to convert IsReadOnly to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e) + { + return e._value; + } + + /// Overriding != operator for enum IsReadOnly + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum IsReadOnly + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IsReadOnly e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.Completer.cs b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.Completer.cs index e8906f2032cd..400fffcb4206 100644 --- a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.Completer.cs +++ b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for MinimalTlsVersionEnum. + /// Enforce a minimal Tls version for the server. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnumTypeConverter))] public partial struct MinimalTlsVersionEnum : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.TypeConverter.cs b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.TypeConverter.cs index a95ac693eed7..2470faaf0782 100644 --- a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.TypeConverter.cs +++ b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for MinimalTlsVersionEnum. + /// Enforce a minimal Tls version for the server. public partial class MinimalTlsVersionEnumTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs index 0ad52e85e3cd..e7290a8797b6 100644 --- a/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs +++ b/src/MySql/generated/api/Support/MinimalTlsVersionEnum.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Enforce a minimal Tls version for the server. public partial struct MinimalTlsVersionEnum : System.IEquatable { diff --git a/src/MySql/generated/api/Support/OperationOrigin.Completer.cs b/src/MySql/generated/api/Support/OperationOrigin.Completer.cs index 4c8e08027d52..7e9fb9f15d14 100644 --- a/src/MySql/generated/api/Support/OperationOrigin.Completer.cs +++ b/src/MySql/generated/api/Support/OperationOrigin.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for OperationOrigin. + /// The intended executor of the operation. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.OperationOriginTypeConverter))] public partial struct OperationOrigin : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/OperationOrigin.TypeConverter.cs b/src/MySql/generated/api/Support/OperationOrigin.TypeConverter.cs index fa29e3c36418..4faf92136156 100644 --- a/src/MySql/generated/api/Support/OperationOrigin.TypeConverter.cs +++ b/src/MySql/generated/api/Support/OperationOrigin.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for OperationOrigin. + /// The intended executor of the operation. public partial class OperationOriginTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/OperationOrigin.cs b/src/MySql/generated/api/Support/OperationOrigin.cs index 6aebe69eab4a..18342df618a3 100644 --- a/src/MySql/generated/api/Support/OperationOrigin.cs +++ b/src/MySql/generated/api/Support/OperationOrigin.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The intended executor of the operation. public partial struct OperationOrigin : System.IEquatable { diff --git a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.Completer.cs b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.Completer.cs index f82900de617e..e14b36ed66d7 100644 --- a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.Completer.cs +++ b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for PrivateEndpointProvisioningState. + /// State of the private endpoint connection. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateEndpointProvisioningStateTypeConverter))] public partial struct PrivateEndpointProvisioningState : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.TypeConverter.cs b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.TypeConverter.cs index ade2cfa52adf..bc7bf76617cc 100644 --- a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.TypeConverter.cs +++ b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for PrivateEndpointProvisioningState. + /// State of the private endpoint connection. public partial class PrivateEndpointProvisioningStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs index b95edc67392e..f7fda299b8f6 100644 --- a/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs +++ b/src/MySql/generated/api/Support/PrivateEndpointProvisioningState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// State of the private endpoint connection. public partial struct PrivateEndpointProvisioningState : System.IEquatable { diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.Completer.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.Completer.cs index 1669f35b95f9..a48fe2ff8364 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.Completer.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.Completer.cs @@ -6,9 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// - /// Argument completer implementation for PrivateLinkServiceConnectionStateActionsRequire. - /// + /// The actions required for private link service connection. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateActionsRequireTypeConverter))] public partial struct PrivateLinkServiceConnectionStateActionsRequire : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.TypeConverter.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.TypeConverter.cs index 7a1a26c4dea6..998583f93da2 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.TypeConverter.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.TypeConverter.cs @@ -6,9 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// - /// TypeConverter implementation for PrivateLinkServiceConnectionStateActionsRequire. - /// + /// The actions required for private link service connection. public partial class PrivateLinkServiceConnectionStateActionsRequireTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs index 8a5ae43412c5..ed86fd8c48b3 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The actions required for private link service connection. public partial struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable { diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.Completer.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.Completer.cs index 322b86214bf4..0ddea0a5b65a 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.Completer.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for PrivateLinkServiceConnectionStateStatus. + /// The private link service connection status. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PrivateLinkServiceConnectionStateStatusTypeConverter))] public partial struct PrivateLinkServiceConnectionStateStatus : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.TypeConverter.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.TypeConverter.cs index d61f8c857c8d..30b899110722 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.TypeConverter.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for PrivateLinkServiceConnectionStateStatus. + /// The private link service connection status. public partial class PrivateLinkServiceConnectionStateStatusTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs index 1f7b1efb04d0..3d73827b52c0 100644 --- a/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs +++ b/src/MySql/generated/api/Support/PrivateLinkServiceConnectionStateStatus.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The private link service connection status. public partial struct PrivateLinkServiceConnectionStateStatus : System.IEquatable { diff --git a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.Completer.cs b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.Completer.cs index e944be0bccaf..8ea203a65c8c 100644 --- a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.Completer.cs +++ b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.Completer.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for PublicNetworkAccessEnum. + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnumTypeConverter))] public partial struct PublicNetworkAccessEnum : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.TypeConverter.cs b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.TypeConverter.cs index afef8bcc2088..28b2054af6e6 100644 --- a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.TypeConverter.cs +++ b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.TypeConverter.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for PublicNetworkAccessEnum. + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// public partial class PublicNetworkAccessEnumTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs index b4161c24edba..28783da0b3b5 100644 --- a/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs +++ b/src/MySql/generated/api/Support/PublicNetworkAccessEnum.cs @@ -6,6 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' + /// or 'Disabled' + /// public partial struct PublicNetworkAccessEnum : System.IEquatable { diff --git a/src/MySql/generated/api/Support/ResourceIdentityType.Completer.cs b/src/MySql/generated/api/Support/ResourceIdentityType.Completer.cs new file mode 100644 index 000000000000..87baa9ecfcb2 --- /dev/null +++ b/src/MySql/generated/api/Support/ResourceIdentityType.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// The identity type. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityTypeTypeConverter))] + public partial struct ResourceIdentityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SystemAssigned".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("SystemAssigned", "SystemAssigned", global::System.Management.Automation.CompletionResultType.ParameterValue, "SystemAssigned"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ResourceIdentityType.TypeConverter.cs b/src/MySql/generated/api/Support/ResourceIdentityType.TypeConverter.cs new file mode 100644 index 000000000000..9aa933cff84a --- /dev/null +++ b/src/MySql/generated/api/Support/ResourceIdentityType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// The identity type. + public partial class ResourceIdentityTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ResourceIdentityType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ResourceIdentityType.cs b/src/MySql/generated/api/Support/ResourceIdentityType.cs new file mode 100644 index 000000000000..f28720cfde74 --- /dev/null +++ b/src/MySql/generated/api/Support/ResourceIdentityType.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// The identity type. + public partial struct ResourceIdentityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType SystemAssigned = @"SystemAssigned"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ResourceIdentityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ResourceIdentityType(System.Convert.ToString(value)); + } + + /// Compares values of enum type ResourceIdentityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ResourceIdentityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ResourceIdentityType && Equals((ResourceIdentityType)obj); + } + + /// Returns hashCode for enum ResourceIdentityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ResourceIdentityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ResourceIdentityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ResourceIdentityType + /// the value to convert to an instance of . + + public static implicit operator ResourceIdentityType(string value) + { + return new ResourceIdentityType(value); + } + + /// Implicit operator to convert ResourceIdentityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e) + { + return e._value; + } + + /// Overriding != operator for enum ResourceIdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ResourceIdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ServerHaState.Completer.cs b/src/MySql/generated/api/Support/ServerHaState.Completer.cs new file mode 100644 index 000000000000..9e5cfad55429 --- /dev/null +++ b/src/MySql/generated/api/Support/ServerHaState.Completer.cs @@ -0,0 +1,55 @@ +// 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.MySql.Support +{ + + /// The state of a HA server. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaStateTypeConverter))] + public partial struct ServerHaState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NotEnabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("NotEnabled", "NotEnabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "NotEnabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CreatingStandby".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("CreatingStandby", "CreatingStandby", global::System.Management.Automation.CompletionResultType.ParameterValue, "CreatingStandby"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ReplicatingData".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("ReplicatingData", "ReplicatingData", global::System.Management.Automation.CompletionResultType.ParameterValue, "ReplicatingData"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "FailingOver".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("FailingOver", "FailingOver", global::System.Management.Automation.CompletionResultType.ParameterValue, "FailingOver"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Healthy".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Healthy", "Healthy", global::System.Management.Automation.CompletionResultType.ParameterValue, "Healthy"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "RemovingStandby".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("RemovingStandby", "RemovingStandby", global::System.Management.Automation.CompletionResultType.ParameterValue, "RemovingStandby"); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ServerHaState.TypeConverter.cs b/src/MySql/generated/api/Support/ServerHaState.TypeConverter.cs new file mode 100644 index 000000000000..88d613f01d06 --- /dev/null +++ b/src/MySql/generated/api/Support/ServerHaState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support +{ + + /// The state of a HA server. + public partial class ServerHaStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ServerHaState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ServerHaState.cs b/src/MySql/generated/api/Support/ServerHaState.cs new file mode 100644 index 000000000000..5b3f6879cbe1 --- /dev/null +++ b/src/MySql/generated/api/Support/ServerHaState.cs @@ -0,0 +1,106 @@ +// 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.MySql.Support +{ + + /// The state of a HA server. + public partial struct ServerHaState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState CreatingStandby = @"CreatingStandby"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState FailingOver = @"FailingOver"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState Healthy = @"Healthy"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState NotEnabled = @"NotEnabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState RemovingStandby = @"RemovingStandby"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState ReplicatingData = @"ReplicatingData"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ServerHaState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ServerHaState(System.Convert.ToString(value)); + } + + /// Compares values of enum type ServerHaState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ServerHaState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ServerHaState && Equals((ServerHaState)obj); + } + + /// Returns hashCode for enum ServerHaState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the + /// the value to create an instance for. + private ServerHaState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ServerHaState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ServerHaState + /// the value to convert to an instance of . + + public static implicit operator ServerHaState(string value) + { + return new ServerHaState(value); + } + + /// Implicit operator to convert ServerHaState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e) + { + return e._value; + } + + /// Overriding != operator for enum ServerHaState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ServerHaState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e1, Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerHaState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.Completer.cs b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.Completer.cs index f512a639de74..c09dbcf617a1 100644 --- a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.Completer.cs +++ b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for ServerSecurityAlertPolicyState. + /// Specifies the state of the policy, whether it is enabled or disabled. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyStateTypeConverter))] public partial struct ServerSecurityAlertPolicyState : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.TypeConverter.cs b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.TypeConverter.cs index 466793ab50c8..ced5c8517935 100644 --- a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.TypeConverter.cs +++ b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for ServerSecurityAlertPolicyState. + /// Specifies the state of the policy, whether it is enabled or disabled. public partial class ServerSecurityAlertPolicyStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs index 20e2e1588bd4..ddbd78bd9c3e 100644 --- a/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs +++ b/src/MySql/generated/api/Support/ServerSecurityAlertPolicyState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Specifies the state of the policy, whether it is enabled or disabled. public partial struct ServerSecurityAlertPolicyState : System.IEquatable { diff --git a/src/MySql/generated/api/Support/ServerState.Completer.cs b/src/MySql/generated/api/Support/ServerState.Completer.cs index 92a6c84d58c3..35dddafe8412 100644 --- a/src/MySql/generated/api/Support/ServerState.Completer.cs +++ b/src/MySql/generated/api/Support/ServerState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for ServerState. + /// A state of a server that is visible to user. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerStateTypeConverter))] public partial struct ServerState : System.Management.Automation.IArgumentCompleter @@ -42,6 +42,22 @@ public partial struct ServerState : { yield return new global::System.Management.Automation.CompletionResult("Inaccessible", "Inaccessible", global::System.Management.Automation.CompletionResultType.ParameterValue, "Inaccessible"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Starting".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Starting", "Starting", global::System.Management.Automation.CompletionResultType.ParameterValue, "Starting"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Stopping".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Stopping", "Stopping", global::System.Management.Automation.CompletionResultType.ParameterValue, "Stopping"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Stopped".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Stopped", "Stopped", global::System.Management.Automation.CompletionResultType.ParameterValue, "Stopped"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Updating".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Updating", "Updating", global::System.Management.Automation.CompletionResultType.ParameterValue, "Updating"); + } } } } \ No newline at end of file diff --git a/src/MySql/generated/api/Support/ServerState.TypeConverter.cs b/src/MySql/generated/api/Support/ServerState.TypeConverter.cs index 785e21832a30..d73933220209 100644 --- a/src/MySql/generated/api/Support/ServerState.TypeConverter.cs +++ b/src/MySql/generated/api/Support/ServerState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for ServerState. + /// A state of a server that is visible to user. public partial class ServerStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/ServerState.cs b/src/MySql/generated/api/Support/ServerState.cs index ecfb9918f683..047069050448 100644 --- a/src/MySql/generated/api/Support/ServerState.cs +++ b/src/MySql/generated/api/Support/ServerState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// A state of a server that is visible to user. public partial struct ServerState : System.IEquatable { @@ -17,6 +18,14 @@ public partial struct ServerState : public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState Ready = @"Ready"; + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState Starting = @"Starting"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState Stopped = @"Stopped"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState Stopping = @"Stopping"; + + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerState Updating = @"Updating"; + /// the value for an instance of the Enum. private string _value { get; set; } diff --git a/src/MySql/generated/api/Support/ServerVersion.Completer.cs b/src/MySql/generated/api/Support/ServerVersion.Completer.cs index 4358128bbf4f..fa8c5009764f 100644 --- a/src/MySql/generated/api/Support/ServerVersion.Completer.cs +++ b/src/MySql/generated/api/Support/ServerVersion.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for ServerVersion. + /// The version of a server. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersionTypeConverter))] public partial struct ServerVersion : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/ServerVersion.TypeConverter.cs b/src/MySql/generated/api/Support/ServerVersion.TypeConverter.cs index 2ac8f18f016f..6a9553570b25 100644 --- a/src/MySql/generated/api/Support/ServerVersion.TypeConverter.cs +++ b/src/MySql/generated/api/Support/ServerVersion.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for ServerVersion. + /// The version of a server. public partial class ServerVersionTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/ServerVersion.cs b/src/MySql/generated/api/Support/ServerVersion.cs index f6d7d075b9cd..fac335f363ae 100644 --- a/src/MySql/generated/api/Support/ServerVersion.cs +++ b/src/MySql/generated/api/Support/ServerVersion.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The version of a server. public partial struct ServerVersion : System.IEquatable { diff --git a/src/MySql/generated/api/Support/SkuTier.Completer.cs b/src/MySql/generated/api/Support/SkuTier.Completer.cs index 408b96376b10..984ebcdf1d38 100644 --- a/src/MySql/generated/api/Support/SkuTier.Completer.cs +++ b/src/MySql/generated/api/Support/SkuTier.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for SkuTier. + /// The tier of the particular SKU, e.g. Basic. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTierTypeConverter))] public partial struct SkuTier : System.Management.Automation.IArgumentCompleter @@ -38,6 +38,10 @@ public partial struct SkuTier : { yield return new global::System.Management.Automation.CompletionResult("MemoryOptimized", "MemoryOptimized", global::System.Management.Automation.CompletionResultType.ParameterValue, "MemoryOptimized"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Burstable".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Burstable", "Burstable", global::System.Management.Automation.CompletionResultType.ParameterValue, "Burstable"); + } } } } \ No newline at end of file diff --git a/src/MySql/generated/api/Support/SkuTier.TypeConverter.cs b/src/MySql/generated/api/Support/SkuTier.TypeConverter.cs index 391b2b4a0784..94d95fa66f0b 100644 --- a/src/MySql/generated/api/Support/SkuTier.TypeConverter.cs +++ b/src/MySql/generated/api/Support/SkuTier.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for SkuTier. + /// The tier of the particular SKU, e.g. Basic. public partial class SkuTierTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/SkuTier.cs b/src/MySql/generated/api/Support/SkuTier.cs index 7ebeb5002404..336856258736 100644 --- a/src/MySql/generated/api/Support/SkuTier.cs +++ b/src/MySql/generated/api/Support/SkuTier.cs @@ -6,11 +6,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// The tier of the particular SKU, e.g. Basic. public partial struct SkuTier : System.IEquatable { public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier Basic = @"Basic"; + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier Burstable = @"Burstable"; + public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier GeneralPurpose = @"GeneralPurpose"; public static Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier MemoryOptimized = @"MemoryOptimized"; diff --git a/src/MySql/generated/api/Support/SslEnforcementEnum.Completer.cs b/src/MySql/generated/api/Support/SslEnforcementEnum.Completer.cs index b72e3b4d11d3..48e41d271b8e 100644 --- a/src/MySql/generated/api/Support/SslEnforcementEnum.Completer.cs +++ b/src/MySql/generated/api/Support/SslEnforcementEnum.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for SslEnforcementEnum. + /// Enable ssl enforcement or not when connect to server. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnumTypeConverter))] public partial struct SslEnforcementEnum : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/SslEnforcementEnum.TypeConverter.cs b/src/MySql/generated/api/Support/SslEnforcementEnum.TypeConverter.cs index f1b2c7f6de67..75a59e059681 100644 --- a/src/MySql/generated/api/Support/SslEnforcementEnum.TypeConverter.cs +++ b/src/MySql/generated/api/Support/SslEnforcementEnum.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for SslEnforcementEnum. + /// Enable ssl enforcement or not when connect to server. public partial class SslEnforcementEnumTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/SslEnforcementEnum.cs b/src/MySql/generated/api/Support/SslEnforcementEnum.cs index 2432bf1e1aa3..e552d6d2f48d 100644 --- a/src/MySql/generated/api/Support/SslEnforcementEnum.cs +++ b/src/MySql/generated/api/Support/SslEnforcementEnum.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Enable ssl enforcement or not when connect to server. public partial struct SslEnforcementEnum : System.IEquatable { diff --git a/src/MySql/generated/api/Support/StorageAutogrow.Completer.cs b/src/MySql/generated/api/Support/StorageAutogrow.Completer.cs index 233db0598d66..be2072d7211d 100644 --- a/src/MySql/generated/api/Support/StorageAutogrow.Completer.cs +++ b/src/MySql/generated/api/Support/StorageAutogrow.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for StorageAutogrow. + /// Enable Storage Auto Grow. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrowTypeConverter))] public partial struct StorageAutogrow : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/StorageAutogrow.TypeConverter.cs b/src/MySql/generated/api/Support/StorageAutogrow.TypeConverter.cs index 53b814298c28..3923d934a3d2 100644 --- a/src/MySql/generated/api/Support/StorageAutogrow.TypeConverter.cs +++ b/src/MySql/generated/api/Support/StorageAutogrow.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for StorageAutogrow. + /// Enable Storage Auto Grow. public partial class StorageAutogrowTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/StorageAutogrow.cs b/src/MySql/generated/api/Support/StorageAutogrow.cs index ae28ce7935c0..94aff9b19d0c 100644 --- a/src/MySql/generated/api/Support/StorageAutogrow.cs +++ b/src/MySql/generated/api/Support/StorageAutogrow.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Enable Storage Auto Grow. public partial struct StorageAutogrow : System.IEquatable { diff --git a/src/MySql/generated/api/Support/VirtualNetworkRuleState.Completer.cs b/src/MySql/generated/api/Support/VirtualNetworkRuleState.Completer.cs index a4fe30faa2bc..c6ea9b1f8bcb 100644 --- a/src/MySql/generated/api/Support/VirtualNetworkRuleState.Completer.cs +++ b/src/MySql/generated/api/Support/VirtualNetworkRuleState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// Argument completer implementation for VirtualNetworkRuleState. + /// Virtual Network Rule State [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.VirtualNetworkRuleStateTypeConverter))] public partial struct VirtualNetworkRuleState : System.Management.Automation.IArgumentCompleter diff --git a/src/MySql/generated/api/Support/VirtualNetworkRuleState.TypeConverter.cs b/src/MySql/generated/api/Support/VirtualNetworkRuleState.TypeConverter.cs index a581cd79356d..344a032b4359 100644 --- a/src/MySql/generated/api/Support/VirtualNetworkRuleState.TypeConverter.cs +++ b/src/MySql/generated/api/Support/VirtualNetworkRuleState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { - /// TypeConverter implementation for VirtualNetworkRuleState. + /// Virtual Network Rule State public partial class VirtualNetworkRuleStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs b/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs index 20fffe118158..2ac4d75c0f4e 100644 --- a/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs +++ b/src/MySql/generated/api/Support/VirtualNetworkRuleState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Support { + /// Virtual Network Rule State public partial struct VirtualNetworkRuleState : System.IEquatable { diff --git a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_Get.cs index 5c829fe86cc5..0a20ef6c0167 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a configuration of server. /// - /// [OpenAPI] Configurations_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlConfiguration_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_GetViaIdentity.cs index 297966103abd..82e09b05e92b 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a configuration of server. /// - /// [OpenAPI] Configurations_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlConfiguration_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_List.cs index c6f2cfdcdaba..340f482f8d67 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlConfiguration_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the configurations in a given server. /// - /// [OpenAPI] Configurations_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlConfiguration_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_Get.cs index 19f77e93266a..9e9542971581 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a database. /// - /// [OpenAPI] Databases_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlDatabase_Get")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_GetViaIdentity.cs index ca1435cac626..6120325a43f4 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a database. /// - /// [OpenAPI] Databases_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlDatabase_GetViaIdentity")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_List.cs index c35ee9fd45ec..db59823509b5 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlDatabase_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlDatabase_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the databases in a given server. /// - /// [OpenAPI] Databases_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlDatabase_List")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_Get.cs index 7fcfc7b88782..65bf29d9d128 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a server firewall rule. /// - /// [OpenAPI] FirewallRules_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFirewallRule_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_GetViaIdentity.cs index 8fb8b9dfbb48..233b6257a5dd 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a server firewall rule. /// - /// [OpenAPI] FirewallRules_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFirewallRule_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_List.cs index afa514a17655..df2612978493 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlFirewallRule_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the firewall rules in a given server. /// - /// [OpenAPI] FirewallRules_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFirewallRule_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_Get.cs new file mode 100644 index 000000000000..acae60b4f5ed --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_Get.cs @@ -0,0 +1,413 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a configuration of server. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerConfiguration_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a configuration of server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerConfiguration_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server configuration. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server configuration.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server configuration.", + SerializedName = @"configurationName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ConfigurationName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerConfiguration_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerConfigurationsGet(SubscriptionId, ResourceGroupName, ServerName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_GetViaIdentity.cs new file mode 100644 index 000000000000..798a97a7095f --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_GetViaIdentity.cs @@ -0,0 +1,381 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a configuration of server. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerConfiguration_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a configuration of server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerConfiguration_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerConfiguration_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerConfigurationsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ConfigurationName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ConfigurationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerConfigurationsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.ConfigurationName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_List.cs new file mode 100644 index 000000000000..2abf76bbe4d6 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerConfiguration_List.cs @@ -0,0 +1,409 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the configurations in a given server. + /// + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerConfiguration_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the configurations in a given server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerConfiguration_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerConfiguration_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerConfigurationsListByServer(SubscriptionId, ResourceGroupName, ServerName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerConfigurationsListByServer_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_Get.cs new file mode 100644 index 000000000000..6d6b4a2827cd --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_Get.cs @@ -0,0 +1,413 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a database. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerDatabase_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerDatabase_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerDatabase_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesGet(SubscriptionId, ResourceGroupName, ServerName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_GetViaIdentity.cs new file mode 100644 index 000000000000..3c83474050d3 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_GetViaIdentity.cs @@ -0,0 +1,381 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a database. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerDatabase_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerDatabase_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerDatabase_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_List.cs new file mode 100644 index 000000000000..a313d6b30cbe --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerDatabase_List.cs @@ -0,0 +1,409 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the databases in a given server. + /// + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerDatabase_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the databases in a given server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerDatabase_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerDatabase_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesListByServer(SubscriptionId, ResourceGroupName, ServerName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesListByServer_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_Get.cs new file mode 100644 index 000000000000..a9da7136b93a --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_Get.cs @@ -0,0 +1,413 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a server firewall rule. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerFirewallRule_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a server firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerFirewallRule_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerFirewallRule_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesGet(SubscriptionId, ResourceGroupName, ServerName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_GetViaIdentity.cs new file mode 100644 index 000000000000..e714c6008353 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_GetViaIdentity.cs @@ -0,0 +1,381 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a server firewall rule. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerFirewallRule_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a server firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerFirewallRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerFirewallRule_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_List.cs new file mode 100644 index 000000000000..7ecd68f2eb59 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerFirewallRule_List.cs @@ -0,0 +1,409 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the firewall rules in a given server. + /// + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerFirewallRule_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the firewall rules in a given server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerFirewallRule_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerFirewallRule_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesListByServer(SubscriptionId, ResourceGroupName, ServerName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesListByServer_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_Get.cs new file mode 100644 index 000000000000..c9f51a76c41b --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_Get.cs @@ -0,0 +1,413 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets a server key. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerKey_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets a server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerKey_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerKey_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysGet(SubscriptionId, ResourceGroupName, ServerName, KeyName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_GetViaIdentity.cs new file mode 100644 index 000000000000..8da6b28b5d03 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_GetViaIdentity.cs @@ -0,0 +1,382 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets a server key. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerKey_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets a server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerKey_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerKey_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerKeysGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.KeyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.KeyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerKeysGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.KeyName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_List.cs new file mode 100644 index 000000000000..d32c1726b929 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerKey_List.cs @@ -0,0 +1,410 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets a list of Server keys. + /// + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerKey_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets a list of Server keys.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerKey_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerKey_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysListByServer(SubscriptionId, ResourceGroupName, ServerName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysListByServer_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerLocationBasedCapability_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerLocationBasedCapability_List.cs new file mode 100644 index 000000000000..0113fe59adbe --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerLocationBasedCapability_List.cs @@ -0,0 +1,396 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Get capabilities at specified location in a given subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/capabilities" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerLocationBasedCapability_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Get capabilities at specified location in a given subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerLocationBasedCapability_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _locationName; + + /// The name of the location. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the location.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the location.", + SerializedName = @"locationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string LocationName { get => this._locationName; set => this._locationName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerLocationBasedCapability_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerLocationBasedCapabilitiesList(SubscriptionId, LocationName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,LocationName=LocationName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerLocationBasedCapabilitiesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerReplica_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerReplica_List.cs new file mode 100644 index 000000000000..92d3889b1435 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerReplica_List.cs @@ -0,0 +1,409 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the replicas for a given server. + /// + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/replicas" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerReplica_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the replicas for a given server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerReplica_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerReplica_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerReplicasListByServer(SubscriptionId, ResourceGroupName, ServerName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerReplicasListByServer_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get.cs new file mode 100644 index 000000000000..8c1889b14b69 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get.cs @@ -0,0 +1,402 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Get virtual network subnet usage for a given vNet resource id. + /// + /// [OpenAPI] Get=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/checkVirtualNetworkSubnetUsage" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Get virtual network subnet usage for a given vNet resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _locationName; + + /// The name of the location. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the location.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the location.", + SerializedName = @"locationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string LocationName { get => this._locationName; set => this._locationName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter _parameter; + + /// Virtual network subnet usage parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual network subnet usage parameter", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Virtual network subnet usage parameter", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerVirtualNetworkSubnetUsageGet' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGet(SubscriptionId, LocationName, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,LocationName=LocationName,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / delegatedSubnetsUsage / + WriteObject((await response).DelegatedSubnetsUsage, true); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded.cs new file mode 100644 index 000000000000..4e5130ccf83c --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded.cs @@ -0,0 +1,406 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Get virtual network subnet usage for a given vNet resource id. + /// + /// [OpenAPI] Get=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/checkVirtualNetworkSubnetUsage" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Get virtual network subnet usage for a given vNet resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _locationName; + + /// The name of the location. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the location.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the location.", + SerializedName = @"locationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string LocationName { get => this._locationName; set => this._locationName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VirtualNetworkSubnetUsageParameter(); + + /// Virtual network subnet usage parameter + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Virtual network resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Virtual network resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Virtual network resource id.", + SerializedName = @"virtualNetworkArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string VirtualNetworkArmResourceId { get => ParametersBody.VirtualNetworkArmResourceId ?? null; set => ParametersBody.VirtualNetworkArmResourceId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerVirtualNetworkSubnetUsageGet' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGet(SubscriptionId, LocationName, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,LocationName=LocationName,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, LocationName=LocationName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / delegatedSubnetsUsage / + WriteObject((await response).DelegatedSubnetsUsage, true); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity.cs new file mode 100644 index 000000000000..ec3110a285b6 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity.cs @@ -0,0 +1,392 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Get virtual network subnet usage for a given vNet resource id. + /// + /// [OpenAPI] Get=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/checkVirtualNetworkSubnetUsage" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Get virtual network subnet usage for a given vNet resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter _parameter; + + /// Virtual network subnet usage parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual network subnet usage parameter", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Virtual network subnet usage parameter", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerVirtualNetworkSubnetUsageGet' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGetViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.LocationName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.LocationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGet(InputObject.SubscriptionId ?? null, InputObject.LocationName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / delegatedSubnetsUsage / + WriteObject((await response).DelegatedSubnetsUsage, true); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded.cs new file mode 100644 index 000000000000..9886c189439a --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded.cs @@ -0,0 +1,396 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Get virtual network subnet usage for a given vNet resource id. + /// + /// [OpenAPI] Get=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/locations/{locationName}/checkVirtualNetworkSubnetUsage" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Get virtual network subnet usage for a given vNet resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.VirtualNetworkSubnetUsageParameter(); + + /// Virtual network subnet usage parameter + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Virtual network resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Virtual network resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Virtual network resource id.", + SerializedName = @"virtualNetworkArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string VirtualNetworkArmResourceId { get => ParametersBody.VirtualNetworkArmResourceId ?? null; set => ParametersBody.VirtualNetworkArmResourceId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerVirtualNetworkSubnetUsageGet' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGetViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.LocationName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.LocationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerVirtualNetworkSubnetUsageGet(InputObject.SubscriptionId ?? null, InputObject.LocationName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / delegatedSubnetsUsage / + WriteObject((await response).DelegatedSubnetsUsage, true); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_Get.cs new file mode 100644 index 000000000000..137ab685c9ca --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_Get.cs @@ -0,0 +1,399 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a server. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServer_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServer_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServer_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_GetViaIdentity.cs new file mode 100644 index 000000000000..0bcb4d5a87dd --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_GetViaIdentity.cs @@ -0,0 +1,377 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Gets information about a server. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServer_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Gets information about a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServer_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServer_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List.cs new file mode 100644 index 000000000000..f0e6bd2c021b --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List.cs @@ -0,0 +1,395 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the servers in a given resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServer_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the servers in a given resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServer_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServer_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersListByResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List1.cs b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List1.cs new file mode 100644 index 000000000000..11dee5d68e5f --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlFlexibleServer_List1.cs @@ -0,0 +1,381 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// List all the servers in a given subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/flexibleServers" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlFlexibleServer_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"List all the servers in a given subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlFlexibleServer_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlFlexibleServer_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersList(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlLocationBasedPerformanceTier_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlLocationBasedPerformanceTier_List.cs index fcb2b24eda44..0efa4e2b21d1 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlLocationBasedPerformanceTier_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlLocationBasedPerformanceTier_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the performance tiers at specified location in a given subscription. /// - /// [OpenAPI] LocationBasedPerformanceTier_List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/performanceTiers" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/locations/{locationName}/performanceTiers" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlLocationBasedPerformanceTier_List")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlLogFile_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlLogFile_List.cs index b730f4a61355..83524fd6a2f1 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlLogFile_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlLogFile_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the log files in a given server. /// - /// [OpenAPI] LogFiles_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/logFiles" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/logFiles" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlLogFile_List")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlOperation_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlOperation_List.cs index 49952a5de739..c9657cfac675 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlOperation_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlOperation_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Lists all of the available REST API operations. /// - /// [OpenAPI] Operations_List=>GET:"/providers/Microsoft.DBforMySQL/operations" + /// [OpenAPI] List=>GET:"/providers/Microsoft.DBForMySQL/operations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlOperation_List")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlOperation_List1.cs b/src/MySql/generated/cmdlets/GetAzMySqlOperation_List1.cs new file mode 100644 index 000000000000..5323a257f570 --- /dev/null +++ b/src/MySql/generated/cmdlets/GetAzMySqlOperation_List1.cs @@ -0,0 +1,361 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Lists all of the available REST API operations. + /// + /// [OpenAPI] List=>GET:"/providers/Microsoft.DBForMySql/operations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlOperation_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Lists all of the available REST API operations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class GetAzMySqlOperation_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzMySqlOperation_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList1(onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList1_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/GetAzMySqlReplica_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlReplica_List.cs index 85296d506873..a9335de4f40e 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlReplica_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlReplica_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the replicas for a given server. /// - /// [OpenAPI] Replicas_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/replicas" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/replicas" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlReplica_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_Get.cs index 51ecdfa9c7be..5f604a8c56c3 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a AAD server administrator. /// - /// [OpenAPI] ServerAdministrators_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServerAdministrator_Get")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_GetViaIdentity.cs index de51dca9c3c4..f3459cc92b1b 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a AAD server administrator. /// - /// [OpenAPI] ServerAdministrators_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServerAdministrator_GetViaIdentity")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_List.cs index a542246213fa..595efbfe09d7 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServerAdministrator_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Returns a list of server Administrators. /// - /// [OpenAPI] ServerAdministrators_List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/administrators" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/administrators" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServerAdministrator_List")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_Get.cs index 9c9373b15d2f..18b3eb72a68c 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Get a server's security alert policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServerSecurityAlertPolicy_Get")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_GetViaIdentity.cs index 7f525d425ad5..1f920044077c 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServerSecurityAlertPolicy_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Get a server's security alert policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServerSecurityAlertPolicy_GetViaIdentity")] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServer_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlServer_Get.cs index bbd7eaa8edaa..501f8c7b23b9 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServer_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServer_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a server. /// - /// [OpenAPI] Servers_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServer_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServer_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlServer_GetViaIdentity.cs index 71315cc47bf8..f16419688e47 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServer_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServer_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets information about a server. /// - /// [OpenAPI] Servers_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServer_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServer_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlServer_List.cs index 67b468b02972..c265252634f4 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServer_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServer_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the servers in a given resource group. /// - /// [OpenAPI] Servers_ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers" + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServer_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlServer_List1.cs b/src/MySql/generated/cmdlets/GetAzMySqlServer_List1.cs index 5763d13950dd..b382f2f2673a 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlServer_List1.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlServer_List1.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// List all the servers in a given subscription. /// - /// [OpenAPI] Servers_List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/servers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlServer_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_Get.cs b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_Get.cs index 76376fcb2fa1..c32e2f29f5bc 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_Get.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets a virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlVirtualNetworkRule_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_GetViaIdentity.cs b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_GetViaIdentity.cs index e0cc47f58ea7..27b71a318b30 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_GetViaIdentity.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets a virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlVirtualNetworkRule_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_List.cs b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_List.cs index 1bc64ee4c530..a88df8ca87fb 100644 --- a/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_List.cs +++ b/src/MySql/generated/cmdlets/GetAzMySqlVirtualNetworkRule_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Gets a list of virtual network rules in a server. /// - /// [OpenAPI] VirtualNetworkRules_ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules" + /// [OpenAPI] ListByServer=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMySqlVirtualNetworkRule_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_Create.cs index 8df26deb96a7..a1cf1f7aadbc 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlConfiguration_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateExpanded.cs index 73e105d034fe..66a886e372ea 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlConfiguration_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentity.cs index c3fd8e19efd4..c25418b6447a 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlConfiguration_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentityExpanded.cs index 667fcf440cb1..35d92841ac1b 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlConfiguration_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlConfiguration_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_Create.cs index 4d188f481c78..5b208c6cb5d1 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlDatabase_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateExpanded.cs index 586f95c226ce..18c3b49db68f 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlDatabase_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentity.cs index eb677821321b..e874391cf193 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlDatabase_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentityExpanded.cs index 024d478aa66c..e92958c2670a 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlDatabase_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlDatabase_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_Create.cs index eeeb7530c223..5c50ce37742b 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFirewallRule_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateExpanded.cs index 8e4bea0073d9..49b43707e2ef 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFirewallRule_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentity.cs index 031fbe6814de..6ab0006da220 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFirewallRule_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentityExpanded.cs index bc0fd22358e7..c6270edd82dc 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlFirewallRule_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFirewallRule_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_Create.cs new file mode 100644 index 000000000000..fa620802f07a --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_Create.cs @@ -0,0 +1,495 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerDatabase_Create", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerDatabase_Create : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parameter; + + /// Represents a Database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Database.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Database.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerDatabase_Create + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerDatabase_Create Clone() + { + var clone = new NewAzMySqlFlexibleServerDatabase_Create(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerDatabase_Create() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateExpanded.cs new file mode 100644 index 000000000000..76684af973f5 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateExpanded.cs @@ -0,0 +1,509 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerDatabase_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerDatabase_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The charset of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The charset of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The charset of the database.", + SerializedName = @"charset", + PossibleTypes = new [] { typeof(string) })] + public string Charset { get => ParametersBody.Charset ?? null; set => ParametersBody.Charset = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The collation of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The collation of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The collation of the database.", + SerializedName = @"collation", + PossibleTypes = new [] { typeof(string) })] + public string Collation { get => ParametersBody.Collation ?? null; set => ParametersBody.Collation = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database(); + + /// Represents a Database. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerDatabase_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerDatabase_CreateExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerDatabase_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerDatabase_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentity.cs new file mode 100644 index 000000000000..c8231bc9cd37 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentity.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerDatabase_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerDatabase_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parameter; + + /// Represents a Database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Database.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Database.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerDatabase_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerDatabase_CreateViaIdentity Clone() + { + var clone = new NewAzMySqlFlexibleServerDatabase_CreateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerDatabase_CreateViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..fab4025c590c --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded.cs @@ -0,0 +1,478 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The charset of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The charset of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The charset of the database.", + SerializedName = @"charset", + PossibleTypes = new [] { typeof(string) })] + public string Charset { get => ParametersBody.Charset ?? null; set => ParametersBody.Charset = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The collation of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The collation of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The collation of the database.", + SerializedName = @"collation", + PossibleTypes = new [] { typeof(string) })] + public string Collation { get => ParametersBody.Collation ?? null; set => ParametersBody.Collation = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database(); + + /// Represents a Database. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerDatabase_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_Create.cs new file mode 100644 index 000000000000..dd364cc81394 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_Create.cs @@ -0,0 +1,495 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerFirewallRule_Create", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerFirewallRule_Create : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parameter; + + /// Represents a server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server firewall rule.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server firewall rule.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerFirewallRule_Create + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerFirewallRule_Create Clone() + { + var clone = new NewAzMySqlFlexibleServerFirewallRule_Create(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerFirewallRule_Create() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateExpanded.cs new file mode 100644 index 000000000000..1c03756ca12b --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateExpanded.cs @@ -0,0 +1,510 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerFirewallRule_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerFirewallRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The end IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The end IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"endIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string EndIPAddress { get => ParametersBody.EndIPAddress ?? null; set => ParametersBody.EndIPAddress = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule(); + + /// Represents a server firewall rule. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// The start IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The start IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"startIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string StartIPAddress { get => ParametersBody.StartIPAddress ?? null; set => ParametersBody.StartIPAddress = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerFirewallRule_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerFirewallRule_CreateExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerFirewallRule_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerFirewallRule_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity.cs new file mode 100644 index 000000000000..05426f7ac30b --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerFirewallRule_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parameter; + + /// Represents a server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server firewall rule.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server firewall rule.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity Clone() + { + var clone = new NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..f4142b9b44d6 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded.cs @@ -0,0 +1,480 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The end IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The end IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"endIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string EndIPAddress { get => ParametersBody.EndIPAddress ?? null; set => ParametersBody.EndIPAddress = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule(); + + /// Represents a server firewall rule. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The start IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The start IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"startIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string StartIPAddress { get => ParametersBody.StartIPAddress ?? null; set => ParametersBody.StartIPAddress = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public NewAzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_Create.cs new file mode 100644 index 000000000000..d676aefc57a3 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_Create.cs @@ -0,0 +1,494 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerKey_Create", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerKey_Create : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parameter; + + /// A MySQL Server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A MySQL Server key.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A MySQL Server key.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerKey_Create + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerKey_Create Clone() + { + var clone = new NewAzMySqlFlexibleServerKey_Create(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.KeyName = this.KeyName; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerKey_Create() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, KeyName, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateExpanded.cs new file mode 100644 index 000000000000..6af728ac06c9 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateExpanded.cs @@ -0,0 +1,498 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerKey_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerKey_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey(); + + /// A MySQL Server key. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// The URI of the key. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The URI of the key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the key.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + public string Uri { get => ParametersBody.Uri ?? null; set => ParametersBody.Uri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerKey_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerKey_CreateExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerKey_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.KeyName = this.KeyName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerKey_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, KeyName, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentity.cs new file mode 100644 index 000000000000..14e39d64871e --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentity.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerKey_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerKey_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parameter; + + /// A MySQL Server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A MySQL Server key.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A MySQL Server key.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerKey_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerKey_CreateViaIdentity Clone() + { + var clone = new NewAzMySqlFlexibleServerKey_CreateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerKey_CreateViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerKeysCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.KeyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.KeyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerKeysCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.KeyName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..d14f2e9c2a82 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded.cs @@ -0,0 +1,466 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServerKey_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey(); + + /// A MySQL Server key. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The URI of the key. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The URI of the key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the key.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + public string Uri { get => ParametersBody.Uri ?? null; set => ParametersBody.Uri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServerKey_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerKeysCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.KeyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.KeyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerKeysCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.KeyName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_Create.cs new file mode 100644 index 000000000000..b319e315b376 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_Create.cs @@ -0,0 +1,482 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServer_Create", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new server or updates an existing server. The update action will overwrite the existing server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServer_Create : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated _parameter; + + /// Represents a server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServer_Create + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServer_Create Clone() + { + var clone = new NewAzMySqlFlexibleServer_Create(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServer_Create() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersCreate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersCreate(SubscriptionId, ResourceGroupName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateExpanded.cs new file mode 100644 index 000000000000..8bc5ad66b450 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateExpanded.cs @@ -0,0 +1,777 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServer_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new server or updates an existing server. The update action will overwrite the existing server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServer_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", + SerializedName = @"administratorLogin", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLogin { get => ParametersBody.AdministratorLogin ?? null; set => ParametersBody.AdministratorLogin = value; } + + /// The password of the administrator login (required for server creation). + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password of the administrator login (required for server creation).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login (required for server creation).", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// availability Zone information of the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "availability Zone information of the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"availability Zone information of the server.", + SerializedName = @"availabilityZone", + PossibleTypes = new [] { typeof(string) })] + public string AvailabilityZone { get => ParametersBody.AvailabilityZone ?? null; set => ParametersBody.AvailabilityZone = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The mode to create a new MySQL server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The mode to create a new MySQL server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The mode to create a new MySQL server.", + SerializedName = @"createMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode CreateMode { get => ParametersBody.CreateMode ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode)""); set => ParametersBody.CreateMode = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// delegated subnet arm resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated subnet arm resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId ?? null; set => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Enable HA or not for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable HA or not for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum HaEnabled { get => ParametersBody.HaEnabled ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum)""); set => ParametersBody.HaEnabled = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// The identity type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType IdentityType { get => ParametersBody.IdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType)""); set => ParametersBody.IdentityType = value; } + + /// Status showing whether the server enabled infrastructure encryption. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Status showing whether the server enabled infrastructure encryption.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Status showing whether the server enabled infrastructure encryption.", + SerializedName = @"infrastructureEncryption", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum InfrastructureEncryption { get => ParametersBody.InfrastructureEncryption ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum)""); set => ParametersBody.InfrastructureEncryption = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + + /// indicates whether custom window is enabled or disabled + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "indicates whether custom window is enabled or disabled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + public string MaintenanceWindowCustomWindow { get => ParametersBody.MaintenanceWindowCustomWindow ?? null; set => ParametersBody.MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "day of week for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowDayOfWeek { get => ParametersBody.MaintenanceWindowDayOfWeek ?? default(int); set => ParametersBody.MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start hour for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartHour { get => ParametersBody.MaintenanceWindowStartHour ?? default(int); set => ParametersBody.MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start minute for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartMinute { get => ParametersBody.MaintenanceWindowStartMinute ?? default(int); set => ParametersBody.MaintenanceWindowStartMinute = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated(); + + /// Represents a server. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// Application-specific metadata in the form of key-value pairs. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Application-specific metadata in the form of key-value pairs.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags PropertiesTag { get => ParametersBody.PropertiesTag ?? null /* object */; set => ParametersBody.PropertiesTag = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The replication role. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The replication role.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + public string ReplicationRole { get => ParametersBody.ReplicationRole ?? null; set => ParametersBody.ReplicationRole = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Restore point creation time (ISO8601 format), specifying the time to restore from.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restore point creation time (ISO8601 format), specifying the time to restore from.", + SerializedName = @"restorePointInTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RestorePointInTime { get => ParametersBody.RestorePointInTime ?? default(global::System.DateTime); set => ParametersBody.RestorePointInTime = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the sku, e.g. Standard_D32s_v3.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => ParametersBody.SkuName ?? null; set => ParametersBody.SkuName = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The tier of the particular SKU, e.g. GeneralPurpose.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ParametersBody.SkuTier; set => ParametersBody.SkuTier = value; } + + /// The source MySQL server id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The source MySQL server id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The source MySQL server id.", + SerializedName = @"sourceServerId", + PossibleTypes = new [] { typeof(string) })] + public string SourceServerId { get => ParametersBody.SourceServerId ?? null; set => ParametersBody.SourceServerId = value; } + + /// Enable ssl enforcement or not when connect to server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable ssl enforcement or not when connect to server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum SslEnforcement { get => ParametersBody.SslEnforcement ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum)""); set => ParametersBody.SslEnforcement = value; } + + /// Backup retention days for the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup retention days for the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + [System.Management.Automation.ValidateRangeAttribute(7,35)] + public int StorageProfileBackupRetentionDay { get => ParametersBody.StorageProfileBackupRetentionDay ?? default(int); set => ParametersBody.StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable Storage Auto Grow.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow StorageProfileStorageAutogrow { get => ParametersBody.StorageProfileStorageAutogrow ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow)""); set => ParametersBody.StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage IOPS for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageIop { get => ParametersBody.StorageProfileStorageIop ?? default(int); set => ParametersBody.StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Max storage allowed for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageMb { get => ParametersBody.StorageProfileStorageMb ?? default(int); set => ParametersBody.StorageProfileStorageMb = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + + /// Server version. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Server version.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Server version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion Version { get => ParametersBody.Version ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion)""); set => ParametersBody.Version = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServer_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServer_CreateExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServer_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServer_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersCreate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersCreate(SubscriptionId, ResourceGroupName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentity.cs new file mode 100644 index 000000000000..e9a5efd46182 --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentity.cs @@ -0,0 +1,460 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServer_CreateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new server or updates an existing server. The update action will overwrite the existing server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServer_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated _parameter; + + /// Represents a server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServer_CreateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServer_CreateViaIdentity Clone() + { + var clone = new NewAzMySqlFlexibleServer_CreateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServer_CreateViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersCreate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersCreateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersCreate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..62d36047598b --- /dev/null +++ b/src/MySql/generated/cmdlets/NewAzMySqlFlexibleServer_CreateViaIdentityExpanded.cs @@ -0,0 +1,755 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Creates a new server or updates an existing server. The update action will overwrite the existing server. + /// + /// + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlFlexibleServer_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new server or updates an existing server. The update action will overwrite the existing server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class NewAzMySqlFlexibleServer_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for + /// creation). + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", + SerializedName = @"administratorLogin", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLogin { get => ParametersBody.AdministratorLogin ?? null; set => ParametersBody.AdministratorLogin = value; } + + /// The password of the administrator login (required for server creation). + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password of the administrator login (required for server creation).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login (required for server creation).", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// availability Zone information of the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "availability Zone information of the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"availability Zone information of the server.", + SerializedName = @"availabilityZone", + PossibleTypes = new [] { typeof(string) })] + public string AvailabilityZone { get => ParametersBody.AvailabilityZone ?? null; set => ParametersBody.AvailabilityZone = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The mode to create a new MySQL server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The mode to create a new MySQL server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The mode to create a new MySQL server.", + SerializedName = @"createMode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode CreateMode { get => ParametersBody.CreateMode ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode)""); set => ParametersBody.CreateMode = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// delegated subnet arm resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated subnet arm resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId ?? null; set => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Enable HA or not for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable HA or not for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum HaEnabled { get => ParametersBody.HaEnabled ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum)""); set => ParametersBody.HaEnabled = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// The identity type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType IdentityType { get => ParametersBody.IdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType)""); set => ParametersBody.IdentityType = value; } + + /// Status showing whether the server enabled infrastructure encryption. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Status showing whether the server enabled infrastructure encryption.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Status showing whether the server enabled infrastructure encryption.", + SerializedName = @"infrastructureEncryption", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum InfrastructureEncryption { get => ParametersBody.InfrastructureEncryption ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum)""); set => ParametersBody.InfrastructureEncryption = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + + /// indicates whether custom window is enabled or disabled + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "indicates whether custom window is enabled or disabled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + public string MaintenanceWindowCustomWindow { get => ParametersBody.MaintenanceWindowCustomWindow ?? null; set => ParametersBody.MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "day of week for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowDayOfWeek { get => ParametersBody.MaintenanceWindowDayOfWeek ?? default(int); set => ParametersBody.MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start hour for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartHour { get => ParametersBody.MaintenanceWindowStartHour ?? default(int); set => ParametersBody.MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start minute for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartMinute { get => ParametersBody.MaintenanceWindowStartMinute ?? default(int); set => ParametersBody.MaintenanceWindowStartMinute = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerAutoGenerated(); + + /// Represents a server. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// Application-specific metadata in the form of key-value pairs. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Application-specific metadata in the form of key-value pairs.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags PropertiesTag { get => ParametersBody.PropertiesTag ?? null /* object */; set => ParametersBody.PropertiesTag = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The replication role. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The replication role.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + public string ReplicationRole { get => ParametersBody.ReplicationRole ?? null; set => ParametersBody.ReplicationRole = value; } + + /// + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Restore point creation time (ISO8601 format), specifying the time to restore from.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Restore point creation time (ISO8601 format), specifying the time to restore from.", + SerializedName = @"restorePointInTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime RestorePointInTime { get => ParametersBody.RestorePointInTime ?? default(global::System.DateTime); set => ParametersBody.RestorePointInTime = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the sku, e.g. Standard_D32s_v3.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => ParametersBody.SkuName ?? null; set => ParametersBody.SkuName = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The tier of the particular SKU, e.g. GeneralPurpose.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ParametersBody.SkuTier; set => ParametersBody.SkuTier = value; } + + /// The source MySQL server id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The source MySQL server id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The source MySQL server id.", + SerializedName = @"sourceServerId", + PossibleTypes = new [] { typeof(string) })] + public string SourceServerId { get => ParametersBody.SourceServerId ?? null; set => ParametersBody.SourceServerId = value; } + + /// Enable ssl enforcement or not when connect to server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable ssl enforcement or not when connect to server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum SslEnforcement { get => ParametersBody.SslEnforcement ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum)""); set => ParametersBody.SslEnforcement = value; } + + /// Backup retention days for the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup retention days for the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + [System.Management.Automation.ValidateRangeAttribute(7,35)] + public int StorageProfileBackupRetentionDay { get => ParametersBody.StorageProfileBackupRetentionDay ?? default(int); set => ParametersBody.StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable Storage Auto Grow.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow StorageProfileStorageAutogrow { get => ParametersBody.StorageProfileStorageAutogrow ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow)""); set => ParametersBody.StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage IOPS for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageIop { get => ParametersBody.StorageProfileStorageIop ?? default(int); set => ParametersBody.StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Max storage allowed for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageMb { get => ParametersBody.StorageProfileStorageMb ?? default(int); set => ParametersBody.StorageProfileStorageMb = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + + /// Server version. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Server version.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Server version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion Version { get => ParametersBody.Version ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion)""); set => ParametersBody.Version = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzMySqlFlexibleServer_CreateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.NewAzMySqlFlexibleServer_CreateViaIdentityExpanded Clone() + { + var clone = new NewAzMySqlFlexibleServer_CreateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzMySqlFlexibleServer_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersCreate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersCreateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersCreate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_Create.cs index 599d9d6d55b0..f895cef5ae56 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_Create.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerAdministrator_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateExpanded.cs index d2594d443b28..d2f65bb17970 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerAdministrator_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentity.cs index 320a28cfa1aa..2317e7f4f865 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentity.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerAdministrator_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentityExpanded.cs index a7a1aa451747..3c929ae9c803 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerAdministrator_CreateViaIdentityExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerAdministrator_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_Create.cs index 3772c92bac51..c442cdb07eb9 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerSecurityAlertPolicy_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateExpanded.cs index da0886a8a2be..d0128e61ec8b 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerSecurityAlertPolicy_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentity.cs index bfdac00cc003..42647615fbdb 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerSecurityAlertPolicy_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded.cs index afefc2b7d17d..75a49a4b7ddc 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServer_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlServer_Create.cs index e57fac65aaa8..2cb4477ed641 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServer_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServer_Create.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new server or updates an existing server. The update action will overwrite the existing server. /// /// - /// [OpenAPI] Servers_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServer_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateExpanded.cs index 879f70617860..0d7e91c08d72 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new server or updates an existing server. The update action will overwrite the existing server. /// /// - /// [OpenAPI] Servers_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServer_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentity.cs index 92eaccdc86c3..47657feb66a6 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentity.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new server or updates an existing server. The update action will overwrite the existing server. /// /// - /// [OpenAPI] Servers_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServer_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentityExpanded.cs index b824e9a67633..6054b154d3bb 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlServer_CreateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new server or updates an existing server. The update action will overwrite the existing server. /// /// - /// [OpenAPI] Servers_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlServer_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_Create.cs b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_Create.cs index d1f24b4ffed9..b1ea848cbe4c 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_Create.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_Create.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlVirtualNetworkRule_Create", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateExpanded.cs index ebeb34299b85..361eb23fe679 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlVirtualNetworkRule_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentity.cs b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentity.cs index 1d2784c39de7..0be3d60ca8f1 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlVirtualNetworkRule_CreateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentityExpanded.cs index 6b3fa3fac819..9b5ee99049cf 100644 --- a/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/NewAzMySqlVirtualNetworkRule_CreateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMySqlVirtualNetworkRule_CreateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_Delete.cs index 360ff4b65479..fc494da3fa2c 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_Delete.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a database. /// - /// [OpenAPI] Databases_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlDatabase_Delete", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_DeleteViaIdentity.cs index d382499c6829..17338cf4ca80 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_DeleteViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlDatabase_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a database. /// - /// [OpenAPI] Databases_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlDatabase_DeleteViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_Delete.cs index 6176cfd02688..a71dfba3476a 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_Delete.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a server firewall rule. /// - /// [OpenAPI] FirewallRules_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFirewallRule_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_DeleteViaIdentity.cs index 978a75b72137..47df300e1059 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_DeleteViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFirewallRule_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a server firewall rule. /// - /// [OpenAPI] FirewallRules_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFirewallRule_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_Delete.cs new file mode 100644 index 000000000000..0df5da62acea --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_Delete.cs @@ -0,0 +1,519 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a database. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerDatabase_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerDatabase_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServerDatabase_Delete + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerDatabase_Delete Clone() + { + var clone = new RemoveAzMySqlFlexibleServerDatabase_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesDelete(SubscriptionId, ResourceGroupName, ServerName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerDatabase_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity.cs new file mode 100644 index 000000000000..b8d4bdab5ffe --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity.cs @@ -0,0 +1,486 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a database. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerDatabase_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity Clone() + { + var clone = new RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerDatabase_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_Delete.cs new file mode 100644 index 000000000000..c18583beea86 --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_Delete.cs @@ -0,0 +1,519 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a firewall rule. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerFirewallRule_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerFirewallRule_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServerFirewallRule_Delete + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerFirewallRule_Delete Clone() + { + var clone = new RemoveAzMySqlFlexibleServerFirewallRule_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesDelete(SubscriptionId, ResourceGroupName, ServerName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerFirewallRule_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity.cs new file mode 100644 index 000000000000..401ab2d37e48 --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity.cs @@ -0,0 +1,488 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a firewall rule. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity Clone() + { + var clone = new RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerFirewallRule_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_Delete.cs new file mode 100644 index 000000000000..55eeb8b064a7 --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_Delete.cs @@ -0,0 +1,519 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes the MySQL Server key with the given name. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerKey_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes the MySQL Server key with the given name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerKey_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServerKey_Delete + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerKey_Delete Clone() + { + var clone = new RemoveAzMySqlFlexibleServerKey_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.KeyName = this.KeyName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysDelete(SubscriptionId, ResourceGroupName, ServerName, KeyName, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerKey_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity.cs new file mode 100644 index 000000000000..a3bbc9bb2b4f --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity.cs @@ -0,0 +1,487 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes the MySQL Server key with the given name. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServerKey_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes the MySQL Server key with the given name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity Clone() + { + var clone = new RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerKeysDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.KeyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.KeyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerKeysDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.KeyName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServerKey_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_Delete.cs new file mode 100644 index 000000000000..586dfe0d11b7 --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_Delete.cs @@ -0,0 +1,504 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a server. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServer_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServer_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServer_Delete + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServer_Delete Clone() + { + var clone = new RemoveAzMySqlFlexibleServer_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersDelete(SubscriptionId, ResourceGroupName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServer_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_DeleteViaIdentity.cs new file mode 100644 index 000000000000..f1c3bdee7215 --- /dev/null +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlFlexibleServer_DeleteViaIdentity.cs @@ -0,0 +1,482 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Deletes a server. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlFlexibleServer_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Deletes a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RemoveAzMySqlFlexibleServer_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzMySqlFlexibleServer_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RemoveAzMySqlFlexibleServer_DeleteViaIdentity Clone() + { + var clone = new RemoveAzMySqlFlexibleServer_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzMySqlFlexibleServer_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_Delete.cs index 99cb97751e01..dc53b98838fa 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_Delete.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes server active directory administrator. /// - /// [OpenAPI] ServerAdministrators_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlServerAdministrator_Delete", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_DeleteViaIdentity.cs index a76ef68a7721..d2c4021a25e3 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_DeleteViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlServerAdministrator_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes server active directory administrator. /// - /// [OpenAPI] ServerAdministrators_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlServerAdministrator_DeleteViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlServer_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlServer_Delete.cs index ead360831927..96d85a5331e1 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlServer_Delete.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlServer_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a server. /// - /// [OpenAPI] Servers_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlServer_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlServer_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlServer_DeleteViaIdentity.cs index a4955ad73fc7..a83c6b5b62ff 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlServer_DeleteViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlServer_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes a server. /// - /// [OpenAPI] Servers_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlServer_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_Delete.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_Delete.cs index b0337757dec3..735d6aa43973 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_Delete.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes the virtual network rule with the given name. /// - /// [OpenAPI] VirtualNetworkRules_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlVirtualNetworkRule_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_DeleteViaIdentity.cs b/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_DeleteViaIdentity.cs index f5ae94adb4c1..b678836239bc 100644 --- a/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_DeleteViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RemoveAzMySqlVirtualNetworkRule_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Deletes the virtual network rule with the given name. /// - /// [OpenAPI] VirtualNetworkRules_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzMySqlVirtualNetworkRule_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_Restart.cs b/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_Restart.cs new file mode 100644 index 000000000000..ce47447821a3 --- /dev/null +++ b/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_Restart.cs @@ -0,0 +1,470 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Restarts a server. + /// + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzMySqlFlexibleServer_Restart", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Restarts a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RestartAzMySqlFlexibleServer_Restart : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzMySqlFlexibleServer_Restart + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RestartAzMySqlFlexibleServer_Restart Clone() + { + var clone = new RestartAzMySqlFlexibleServer_Restart(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersRestart(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzMySqlFlexibleServer_Restart() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_RestartViaIdentity.cs b/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_RestartViaIdentity.cs new file mode 100644 index 000000000000..f855644aacc8 --- /dev/null +++ b/src/MySql/generated/cmdlets/RestartAzMySqlFlexibleServer_RestartViaIdentity.cs @@ -0,0 +1,448 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Restarts a server. + /// + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/restart" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzMySqlFlexibleServer_RestartViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Restarts a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class RestartAzMySqlFlexibleServer_RestartViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RestartAzMySqlFlexibleServer_RestartViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.RestartAzMySqlFlexibleServer_RestartViaIdentity Clone() + { + var clone = new RestartAzMySqlFlexibleServer_RestartViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersRestart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersRestartViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersRestart(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RestartAzMySqlFlexibleServer_RestartViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/RestartAzMySqlServer_Restart.cs b/src/MySql/generated/cmdlets/RestartAzMySqlServer_Restart.cs index 6c354151b8ea..1fd6941e42cd 100644 --- a/src/MySql/generated/cmdlets/RestartAzMySqlServer_Restart.cs +++ b/src/MySql/generated/cmdlets/RestartAzMySqlServer_Restart.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Restarts a server. /// - /// [OpenAPI] Servers_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart" + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzMySqlServer_Restart", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/RestartAzMySqlServer_RestartViaIdentity.cs b/src/MySql/generated/cmdlets/RestartAzMySqlServer_RestartViaIdentity.cs index 89a175ccd4ba..bec827f5945f 100644 --- a/src/MySql/generated/cmdlets/RestartAzMySqlServer_RestartViaIdentity.cs +++ b/src/MySql/generated/cmdlets/RestartAzMySqlServer_RestartViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Restarts a server. /// - /// [OpenAPI] Servers_Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/restart" + /// [OpenAPI] Restart=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/restart" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzMySqlServer_RestartViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlDatabase_Update.cs b/src/MySql/generated/cmdlets/SetAzMySqlDatabase_Update.cs index e92364dca2f3..2b731d112c08 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlDatabase_Update.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlDatabase_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlDatabase_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlDatabase_UpdateExpanded.cs b/src/MySql/generated/cmdlets/SetAzMySqlDatabase_UpdateExpanded.cs index 560bfc1bfe3f..ed4e867a9f82 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlDatabase_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlDatabase_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new database or updates an existing database. /// - /// [OpenAPI] Databases_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/databases/{databaseName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/databases/{databaseName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlDatabase_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_Update.cs b/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_Update.cs new file mode 100644 index 000000000000..a711d49d7297 --- /dev/null +++ b/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_Update.cs @@ -0,0 +1,494 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlFlexibleServerKey_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class SetAzMySqlFlexibleServerKey_Update : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parameter; + + /// A MySQL Server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A MySQL Server key.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A MySQL Server key.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzMySqlFlexibleServerKey_Update + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.SetAzMySqlFlexibleServerKey_Update Clone() + { + var clone = new SetAzMySqlFlexibleServerKey_Update(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.KeyName = this.KeyName; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, KeyName, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public SetAzMySqlFlexibleServerKey_Update() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_UpdateExpanded.cs b/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_UpdateExpanded.cs new file mode 100644 index 000000000000..823738c0b7f4 --- /dev/null +++ b/src/MySql/generated/cmdlets/SetAzMySqlFlexibleServerKey_UpdateExpanded.cs @@ -0,0 +1,498 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates or updates a MySQL Server key. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/keys/{keyName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlFlexibleServerKey_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates or updates a MySQL Server key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class SetAzMySqlFlexibleServerKey_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _keyName; + + /// The name of the server key. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server key.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string KeyName { get => this._keyName; set => this._keyName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerKey(); + + /// A MySQL Server key. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// The URI of the key. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The URI of the key.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the key.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + public string Uri { get => ParametersBody.Uri ?? null; set => ParametersBody.Uri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SetAzMySqlFlexibleServerKey_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.SetAzMySqlFlexibleServerKey_UpdateExpanded Clone() + { + var clone = new SetAzMySqlFlexibleServerKey_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.KeyName = this.KeyName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerKeysCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerKeysCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, KeyName, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,KeyName=KeyName,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public SetAzMySqlFlexibleServerKey_UpdateExpanded() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, KeyName=KeyName, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_Update.cs b/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_Update.cs index 702a10b01281..4995a07ab32c 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_Update.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_Update.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlServerAdministrator_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_UpdateExpanded.cs b/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_UpdateExpanded.cs index ace45364e238..add8ec540943 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlServerAdministrator_UpdateExpanded.cs @@ -12,7 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// administrator. /// /// - /// [OpenAPI] ServerAdministrators_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlServerAdministrator_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_Update.cs b/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_Update.cs index fbbb7d9911ee..11e26ad1259f 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_Update.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlServerSecurityAlertPolicy_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_UpdateExpanded.cs b/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_UpdateExpanded.cs index 622a3359496d..c0980d2bfeab 100644 --- a/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/SetAzMySqlServerSecurityAlertPolicy_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates a threat detection policy. /// - /// [OpenAPI] ServerSecurityAlertPolicies_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzMySqlServerSecurityAlertPolicy_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_Start.cs b/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_Start.cs new file mode 100644 index 000000000000..c27fe756c02c --- /dev/null +++ b/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_Start.cs @@ -0,0 +1,470 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Starts a server. + /// + /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/start" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzMySqlFlexibleServer_Start", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Starts a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class StartAzMySqlFlexibleServer_Start : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzMySqlFlexibleServer_Start + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.StartAzMySqlFlexibleServer_Start Clone() + { + var clone = new StartAzMySqlFlexibleServer_Start(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersStart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersStart(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StartAzMySqlFlexibleServer_Start() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_StartViaIdentity.cs b/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_StartViaIdentity.cs new file mode 100644 index 000000000000..6f189c9ccd7f --- /dev/null +++ b/src/MySql/generated/cmdlets/StartAzMySqlFlexibleServer_StartViaIdentity.cs @@ -0,0 +1,448 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Starts a server. + /// + /// [OpenAPI] Start=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/start" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzMySqlFlexibleServer_StartViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Starts a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class StartAzMySqlFlexibleServer_StartViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzMySqlFlexibleServer_StartViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.StartAzMySqlFlexibleServer_StartViaIdentity Clone() + { + var clone = new StartAzMySqlFlexibleServer_StartViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersStart' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersStartViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersStart(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StartAzMySqlFlexibleServer_StartViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_Stop.cs b/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_Stop.cs new file mode 100644 index 000000000000..78f4adb65113 --- /dev/null +++ b/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_Stop.cs @@ -0,0 +1,470 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Stops a server. + /// + /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/stop" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzMySqlFlexibleServer_Stop", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Stops a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class StopAzMySqlFlexibleServer_Stop : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StopAzMySqlFlexibleServer_Stop + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.StopAzMySqlFlexibleServer_Stop Clone() + { + var clone = new StopAzMySqlFlexibleServer_Stop(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersStop' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersStop(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzMySqlFlexibleServer_Stop() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_StopViaIdentity.cs b/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_StopViaIdentity.cs new file mode 100644 index 000000000000..bd2d2b28672a --- /dev/null +++ b/src/MySql/generated/cmdlets/StopAzMySqlFlexibleServer_StopViaIdentity.cs @@ -0,0 +1,448 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Stops a server. + /// + /// [OpenAPI] Stop=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/stop" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzMySqlFlexibleServer_StopViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Stops a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class StopAzMySqlFlexibleServer_StopViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StopAzMySqlFlexibleServer_StopViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.StopAzMySqlFlexibleServer_StopViaIdentity Clone() + { + var clone = new StopAzMySqlFlexibleServer_StopViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersStop' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersStopViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersStop(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzMySqlFlexibleServer_StopViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_Test.cs b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_Test.cs new file mode 100644 index 000000000000..54fff82f4802 --- /dev/null +++ b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_Test.cs @@ -0,0 +1,384 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Check the availability of name for server + /// + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/checkNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlFlexibleServerNameAvailability_Test", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for server")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class TestAzMySqlFlexibleServerNameAvailability_Test : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest _nameAvailabilityRequest; + + /// Request from client to check resource name availability. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Request from client to check resource name availability.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Request from client to check resource name availability.", + SerializedName = @"nameAvailabilityRequest", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest NameAvailabilityRequest { get => this._nameAvailabilityRequest; set => this._nameAvailabilityRequest = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerNameAvailabilityTest' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerNameAvailabilityTest(SubscriptionId, NameAvailabilityRequest, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,body=NameAvailabilityRequest}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlFlexibleServerNameAvailability_Test() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityRequest }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityRequest }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestExpanded.cs b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestExpanded.cs new file mode 100644 index 000000000000..43c0973a66ad --- /dev/null +++ b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestExpanded.cs @@ -0,0 +1,399 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Check the availability of name for server + /// + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/checkNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlFlexibleServerNameAvailability_TestExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for server")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class TestAzMySqlFlexibleServerNameAvailability_TestExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Resource name to verify. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource name to verify.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource name to verify.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string Name { get => NameAvailabilityRequestBody.Name ?? null; set => NameAvailabilityRequestBody.Name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest _nameAvailabilityRequestBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.NameAvailabilityRequest(); + + /// Request from client to check resource name availability. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest NameAvailabilityRequestBody { get => this._nameAvailabilityRequestBody; set => this._nameAvailabilityRequestBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource type used for verification. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource type used for verification.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource type used for verification.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + public string Type { get => NameAvailabilityRequestBody.Type ?? null; set => NameAvailabilityRequestBody.Type = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerNameAvailabilityTest' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerNameAvailabilityTest(SubscriptionId, NameAvailabilityRequestBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,body=NameAvailabilityRequestBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlFlexibleServerNameAvailability_TestExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityRequestBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, body=NameAvailabilityRequestBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentity.cs b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentity.cs new file mode 100644 index 000000000000..d6f11f64742b --- /dev/null +++ b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentity.cs @@ -0,0 +1,386 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Check the availability of name for server + /// + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/checkNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlFlexibleServerNameAvailability_TestViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for server")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class TestAzMySqlFlexibleServerNameAvailability_TestViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest _nameAvailabilityRequest; + + /// Request from client to check resource name availability. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Request from client to check resource name availability.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Request from client to check resource name availability.", + SerializedName = @"nameAvailabilityRequest", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest NameAvailabilityRequest { get => this._nameAvailabilityRequest; set => this._nameAvailabilityRequest = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerNameAvailabilityTest' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerNameAvailabilityTestViaIdentity(InputObject.Id, NameAvailabilityRequest, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerNameAvailabilityTest(InputObject.SubscriptionId ?? null, NameAvailabilityRequest, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequest}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlFlexibleServerNameAvailability_TestViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequest }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequest }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded.cs new file mode 100644 index 000000000000..fe3f1b51e3d1 --- /dev/null +++ b/src/MySql/generated/cmdlets/TestAzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded.cs @@ -0,0 +1,402 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Check the availability of name for server + /// + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySql/checkNameAvailability" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for server")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class TestAzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Resource name to verify. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource name to verify.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource name to verify.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string Name { get => NameAvailabilityRequestBody.Name ?? null; set => NameAvailabilityRequestBody.Name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest _nameAvailabilityRequestBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.NameAvailabilityRequest(); + + /// Request from client to check resource name availability. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest NameAvailabilityRequestBody { get => this._nameAvailabilityRequestBody; set => this._nameAvailabilityRequestBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Resource type used for verification. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource type used for verification.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource type used for verification.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + public string Type { get => NameAvailabilityRequestBody.Type ?? null; set => NameAvailabilityRequestBody.Type = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerNameAvailabilityTest' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerNameAvailabilityTestViaIdentity(InputObject.Id, NameAvailabilityRequestBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerNameAvailabilityTest(InputObject.SubscriptionId ?? null, NameAvailabilityRequestBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequestBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public TestAzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequestBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=NameAvailabilityRequestBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/InvokeAzMySqlExecuteCheckNameAvailability_Execute.cs b/src/MySql/generated/cmdlets/TestAzMySqlNameAvailability_Test.cs similarity index 96% rename from src/MySql/generated/cmdlets/InvokeAzMySqlExecuteCheckNameAvailability_Execute.cs rename to src/MySql/generated/cmdlets/TestAzMySqlNameAvailability_Test.cs index cb668ac9bf5b..2e8497582f5b 100644 --- a/src/MySql/generated/cmdlets/InvokeAzMySqlExecuteCheckNameAvailability_Execute.cs +++ b/src/MySql/generated/cmdlets/TestAzMySqlNameAvailability_Test.cs @@ -9,14 +9,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Check the availability of name for resource /// - /// [OpenAPI] CheckNameAvailability_Execute=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability" + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzMySqlExecuteCheckNameAvailability_Execute", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlNameAvailability_Test", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] - public partial class InvokeAzMySqlExecuteCheckNameAvailability_Execute : global::System.Management.Automation.PSCmdlet, + public partial class TestAzMySqlNameAvailability_Test : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -156,14 +156,6 @@ protected override void EndProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } - /// - /// Intializes a new instance of the cmdlet class. - /// - public InvokeAzMySqlExecuteCheckNameAvailability_Execute() - { - - } - /// Handles/Dispatches events during the call to the REST service. /// The message id /// The message cancellation token. When this call is cancelled, this should be true @@ -226,7 +218,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'CheckNameAvailabilityExecute' operation")) + if (ShouldProcess($"Call remote 'NameAvailabilityTest' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) { @@ -279,7 +271,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.CheckNameAvailabilityExecute(SubscriptionId, NameAvailabilityRequest, onOk, this, Pipeline); + await this.Client.NameAvailabilityTest(SubscriptionId, NameAvailabilityRequest, onOk, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) @@ -303,6 +295,14 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlNameAvailability_Test() + { + + } + /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Check the availability of name for resource /// - /// [OpenAPI] CheckNameAvailability_Execute=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability" + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzMySqlExecuteCheckNameAvailability_ExecuteExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlNameAvailability_TestExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] - public partial class InvokeAzMySqlExecuteCheckNameAvailability_ExecuteExpanded : global::System.Management.Automation.PSCmdlet, + public partial class TestAzMySqlNameAvailability_TestExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -171,14 +171,6 @@ protected override void EndProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } - /// - /// Intializes a new instance of the cmdlet class. - /// - public InvokeAzMySqlExecuteCheckNameAvailability_ExecuteExpanded() - { - - } - /// Handles/Dispatches events during the call to the REST service. /// The message id /// The message cancellation token. When this call is cancelled, this should be true @@ -241,7 +233,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'CheckNameAvailabilityExecute' operation")) + if (ShouldProcess($"Call remote 'NameAvailabilityTest' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) { @@ -294,7 +286,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.CheckNameAvailabilityExecute(SubscriptionId, NameAvailabilityRequestBody, onOk, this, Pipeline); + await this.Client.NameAvailabilityTest(SubscriptionId, NameAvailabilityRequestBody, onOk, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) @@ -318,6 +310,14 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlNameAvailability_TestExpanded() + { + + } + /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Check the availability of name for resource /// - /// [OpenAPI] CheckNameAvailability_Execute=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability" + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlNameAvailability_TestViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] - public partial class InvokeAzMySqlExecuteCheckNameAvailability_ExecuteViaIdentity : global::System.Management.Automation.PSCmdlet, + public partial class TestAzMySqlNameAvailability_TestViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -146,14 +146,6 @@ protected override void EndProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } - /// - /// Intializes a new instance of the cmdlet class. - /// - public InvokeAzMySqlExecuteCheckNameAvailability_ExecuteViaIdentity() - { - - } - /// Handles/Dispatches events during the call to the REST service. /// The message id /// The message cancellation token. When this call is cancelled, this should be true @@ -216,7 +208,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'CheckNameAvailabilityExecute' operation")) + if (ShouldProcess($"Call remote 'NameAvailabilityTest' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) { @@ -271,7 +263,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.CheckNameAvailabilityExecuteViaIdentity(InputObject.Id, NameAvailabilityRequest, onOk, this, Pipeline); + await this.Client.NameAvailabilityTestViaIdentity(InputObject.Id, NameAvailabilityRequest, onOk, this, Pipeline); } else { @@ -280,7 +272,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.CheckNameAvailabilityExecute(InputObject.SubscriptionId ?? null, NameAvailabilityRequest, onOk, this, Pipeline); + await this.Client.NameAvailabilityTest(InputObject.SubscriptionId ?? null, NameAvailabilityRequest, onOk, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -305,6 +297,14 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlNameAvailability_TestViaIdentity() + { + + } + /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Check the availability of name for resource /// - /// [OpenAPI] CheckNameAvailability_Execute=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability" + /// [OpenAPI] Test=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.DBForMySQL/checkNameAvailability" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMySqlNameAvailability_TestViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability))] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] - public partial class InvokeAzMySqlExecuteCheckNameAvailability_ExecuteViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + public partial class TestAzMySqlNameAvailability_TestViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener { /// A unique id generatd for the this cmdlet when it is instantiated. @@ -161,15 +161,6 @@ protected override void EndProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } - /// - /// Intializes a new instance of the cmdlet - /// class. - /// - public InvokeAzMySqlExecuteCheckNameAvailability_ExecuteViaIdentityExpanded() - { - - } - /// Handles/Dispatches events during the call to the REST service. /// The message id /// The message cancellation token. When this call is cancelled, this should be true @@ -232,7 +223,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'CheckNameAvailabilityExecute' operation")) + if (ShouldProcess($"Call remote 'NameAvailabilityTest' operation")) { using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) { @@ -287,7 +278,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.CheckNameAvailabilityExecuteViaIdentity(InputObject.Id, NameAvailabilityRequestBody, onOk, this, Pipeline); + await this.Client.NameAvailabilityTestViaIdentity(InputObject.Id, NameAvailabilityRequestBody, onOk, this, Pipeline); } else { @@ -296,7 +287,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.CheckNameAvailabilityExecute(InputObject.SubscriptionId ?? null, NameAvailabilityRequestBody, onOk, this, Pipeline); + await this.Client.NameAvailabilityTest(InputObject.SubscriptionId ?? null, NameAvailabilityRequestBody, onOk, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -321,6 +312,14 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzMySqlNameAvailability_TestViaIdentityExpanded() + { + + } + /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. /// the body result as a Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlConfiguration_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateExpanded.cs index 4346a6daabab..1cb2c4491f18 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlConfiguration_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentity.cs index 9041c6484393..63a94a15d2b7 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlConfiguration_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentityExpanded.cs index 41d919fcbca9..bcbbb21eca4f 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlConfiguration_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates a configuration of a server. /// - /// [OpenAPI] Configurations_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/configurations/{configurationName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlConfiguration_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_Update.cs index f56f3e0e0a5b..97514a942c37 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_Update.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFirewallRule_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateExpanded.cs index cad90538f7b7..510042cf036a 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFirewallRule_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentity.cs index 5c6cdd7f6dd5..8cd7215672fd 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFirewallRule_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentityExpanded.cs index 346aeae1d524..deaabf8b8008 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFirewallRule_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates a new firewall rule or updates an existing firewall rule. /// - /// [OpenAPI] FirewallRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/firewallRules/{firewallRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFirewallRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_Update.cs new file mode 100644 index 000000000000..7bdce5ddc59c --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_Update.cs @@ -0,0 +1,495 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Updates a configuration of a server. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerConfiguration_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates a configuration of a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerConfiguration_Update : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server configuration. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server configuration.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server configuration.", + SerializedName = @"configurationName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ConfigurationName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated _parameter; + + /// Represents a Configuration. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Configuration.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Configuration.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerConfiguration_Update + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerConfiguration_Update Clone() + { + var clone = new UpdateAzMySqlFlexibleServerConfiguration_Update(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerConfigurationsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerConfigurationsUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerConfiguration_Update() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded.cs new file mode 100644 index 000000000000..6d8aef8a1001 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded.cs @@ -0,0 +1,510 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Updates a configuration of a server. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerConfiguration_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates a configuration of a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server configuration. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server configuration.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server configuration.", + SerializedName = @"configurationName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ConfigurationName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated(); + + /// Represents a Configuration. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Source of the configuration. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Source of the configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of the configuration.", + SerializedName = @"source", + PossibleTypes = new [] { typeof(string) })] + public string Source { get => ParametersBody.Source ?? null; set => ParametersBody.Source = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Value of the configuration. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Value of the configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Value of the configuration.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + public string Value { get => ParametersBody.Value ?? null; set => ParametersBody.Value = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerConfigurationsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerConfigurationsUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerConfiguration_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity.cs new file mode 100644 index 000000000000..d0c9b0b2cbb1 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity.cs @@ -0,0 +1,464 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Updates a configuration of a server. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerConfiguration_UpdateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates a configuration of a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated _parameter; + + /// Represents a Configuration. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Configuration.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Configuration.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity Clone() + { + var clone = new UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerConfigurationsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerConfigurationsUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ConfigurationName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ConfigurationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerConfigurationsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.ConfigurationName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..cd54c4822de7 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded.cs @@ -0,0 +1,480 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Updates a configuration of a server. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations/{configurationName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates a configuration of a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ConfigurationAutoGenerated(); + + /// Represents a Configuration. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Source of the configuration. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Source of the configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source of the configuration.", + SerializedName = @"source", + PossibleTypes = new [] { typeof(string) })] + public string Source { get => ParametersBody.Source ?? null; set => ParametersBody.Source = value; } + + /// Value of the configuration. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Value of the configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Value of the configuration.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + public string Value { get => ParametersBody.Value ?? null; set => ParametersBody.Value = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerConfigurationsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerConfigurationsUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ConfigurationName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ConfigurationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerConfigurationsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.ConfigurationName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public UpdateAzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_Update.cs new file mode 100644 index 000000000000..46a4e9bdaf6a --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_Update.cs @@ -0,0 +1,495 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerDatabase_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerDatabase_Update : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parameter; + + /// Represents a Database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Database.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Database.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerDatabase_Update + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerDatabase_Update Clone() + { + var clone = new UpdateAzMySqlFlexibleServerDatabase_Update(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerDatabase_Update() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded.cs new file mode 100644 index 000000000000..a242f88edd58 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded.cs @@ -0,0 +1,509 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerDatabase_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The charset of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The charset of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The charset of the database.", + SerializedName = @"charset", + PossibleTypes = new [] { typeof(string) })] + public string Charset { get => ParametersBody.Charset ?? null; set => ParametersBody.Charset = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The collation of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The collation of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The collation of the database.", + SerializedName = @"collation", + PossibleTypes = new [] { typeof(string) })] + public string Collation { get => ParametersBody.Collation ?? null; set => ParametersBody.Collation = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the database.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the database.", + SerializedName = @"databaseName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DatabaseName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database(); + + /// Represents a Database. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerDatabase_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity.cs new file mode 100644 index 000000000000..5a32f64341d8 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerDatabase_UpdateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parameter; + + /// Represents a Database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a Database.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a Database.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity Clone() + { + var clone = new UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..a8c222179867 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded.cs @@ -0,0 +1,478 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new database or updates an existing database. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/databases/{databaseName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new database or updates an existing database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The charset of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The charset of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The charset of the database.", + SerializedName = @"charset", + PossibleTypes = new [] { typeof(string) })] + public string Charset { get => ParametersBody.Charset ?? null; set => ParametersBody.Charset = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// The collation of the database. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The collation of the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The collation of the database.", + SerializedName = @"collation", + PossibleTypes = new [] { typeof(string) })] + public string Collation { get => ParametersBody.Collation ?? null; set => ParametersBody.Collation = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.Database(); + + /// Represents a Database. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerDatabasesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerDatabasesCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DatabaseName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DatabaseName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerDatabasesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.DatabaseName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_Update.cs new file mode 100644 index 000000000000..49999456269e --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_Update.cs @@ -0,0 +1,495 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerFirewallRule_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerFirewallRule_Update : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parameter; + + /// Represents a server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server firewall rule.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server firewall rule.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerFirewallRule_Update + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerFirewallRule_Update Clone() + { + var clone = new UpdateAzMySqlFlexibleServerFirewallRule_Update(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerFirewallRule_Update() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded.cs new file mode 100644 index 000000000000..7e39909508d9 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded.cs @@ -0,0 +1,510 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerFirewallRule_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The end IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The end IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"endIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string EndIPAddress { get => ParametersBody.EndIPAddress ?? null; set => ParametersBody.EndIPAddress = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server firewall rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server firewall rule.", + SerializedName = @"firewallRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("FirewallRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule(); + + /// Represents a server firewall rule. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _serverName; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ServerName { get => this._serverName; set => this._serverName = value; } + + /// The start IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The start IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"startIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string StartIPAddress { get => ParametersBody.StartIPAddress ?? null; set => ParametersBody.StartIPAddress = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ServerName = this.ServerName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, ServerName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,ServerName=ServerName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerFirewallRule_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, ServerName=ServerName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity.cs new file mode 100644 index 000000000000..83ac7224fc0e --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity.cs @@ -0,0 +1,464 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerFirewallRule_UpdateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parameter; + + /// Represents a server firewall rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a server firewall rule.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a server firewall rule.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity Clone() + { + var clone = new UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesCreateOrUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..d6b8b3ce5932 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded.cs @@ -0,0 +1,480 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// Creates a new firewall rule or updates an existing firewall rule. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Creates a new firewall rule or updates an existing firewall rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The end IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The end IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The end IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"endIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string EndIPAddress { get => ParametersBody.EndIPAddress ?? null; set => ParametersBody.EndIPAddress = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.FirewallRule(); + + /// Represents a server firewall rule. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The start IP address of the server firewall rule. Must be IPv4 format. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The start IP address of the server firewall rule. Must be IPv4 format.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The start IP address of the server firewall rule. Must be IPv4 format.", + SerializedName = @"startIpAddress", + PossibleTypes = new [] { typeof(string) })] + public string StartIPAddress { get => ParametersBody.StartIPAddress ?? null; set => ParametersBody.StartIPAddress = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServerFirewallRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServerFirewallRulesCreateOrUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.FirewallRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FirewallRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServerFirewallRulesCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, InputObject.FirewallRuleName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public UpdateAzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_Update.cs new file mode 100644 index 000000000000..7b31f34348db --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_Update.cs @@ -0,0 +1,482 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServer_Update", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServer_Update : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate _parameter; + + /// Parameters allowed to update for a server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters allowed to update for a server.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Parameters allowed to update for a server.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServer_Update + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServer_Update Clone() + { + var clone = new UpdateAzMySqlFlexibleServer_Update(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersUpdate(SubscriptionId, ResourceGroupName, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServer_Update() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateExpanded.cs new file mode 100644 index 000000000000..138eb318cd1b --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateExpanded.cs @@ -0,0 +1,657 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServer_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServer_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// The password of the administrator login. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password of the administrator login.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login.", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// delegated subnet arm resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated subnet arm resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId ?? null; set => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Enable HA or not for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable HA or not for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum HaEnabled { get => ParametersBody.HaEnabled ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum)""); set => ParametersBody.HaEnabled = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// indicates whether custom window is enabled or disabled + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "indicates whether custom window is enabled or disabled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + public string MaintenanceWindowCustomWindow { get => ParametersBody.MaintenanceWindowCustomWindow ?? null; set => ParametersBody.MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "day of week for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowDayOfWeek { get => ParametersBody.MaintenanceWindowDayOfWeek ?? default(int); set => ParametersBody.MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start hour for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartHour { get => ParametersBody.MaintenanceWindowStartHour ?? default(int); set => ParametersBody.MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start minute for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartMinute { get => ParametersBody.MaintenanceWindowStartMinute ?? default(int); set => ParametersBody.MaintenanceWindowStartMinute = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the server.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the server.", + SerializedName = @"serverName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ServerName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdate(); + + /// Parameters allowed to update for a server. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The replication role of the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The replication role of the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role of the server.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + public string ReplicationRole { get => ParametersBody.ReplicationRole ?? null; set => ParametersBody.ReplicationRole = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the sku, e.g. Standard_D32s_v3.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => ParametersBody.SkuName ?? null; set => ParametersBody.SkuName = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The tier of the particular SKU, e.g. GeneralPurpose.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ParametersBody.SkuTier; set => ParametersBody.SkuTier = value; } + + /// Enable ssl enforcement or not when connect to server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable ssl enforcement or not when connect to server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum SslEnforcement { get => ParametersBody.SslEnforcement ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum)""); set => ParametersBody.SslEnforcement = value; } + + /// Backup retention days for the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup retention days for the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + [System.Management.Automation.ValidateRangeAttribute(7,35)] + public int StorageProfileBackupRetentionDay { get => ParametersBody.StorageProfileBackupRetentionDay ?? default(int); set => ParametersBody.StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable Storage Auto Grow.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow StorageProfileStorageAutogrow { get => ParametersBody.StorageProfileStorageAutogrow ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow)""); set => ParametersBody.StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage IOPS for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageIop { get => ParametersBody.StorageProfileStorageIop ?? default(int); set => ParametersBody.StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Max storage allowed for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageMb { get => ParametersBody.StorageProfileStorageMb ?? default(int); set => ParametersBody.StorageProfileStorageMb = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Application-specific metadata in the form of key-value pairs. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Application-specific metadata in the form of key-value pairs.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServer_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServer_UpdateExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServer_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.FlexibleServersUpdate(SubscriptionId, ResourceGroupName, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServer_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentity.cs new file mode 100644 index 000000000000..07821bfc5ebd --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentity.cs @@ -0,0 +1,460 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServer_UpdateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServer_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate _parameter; + + /// Parameters allowed to update for a server. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Parameters allowed to update for a server.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Parameters allowed to update for a server.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServer_UpdateViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServer_UpdateViaIdentity Clone() + { + var clone = new UpdateAzMySqlFlexibleServer_UpdateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersUpdateViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServer_UpdateViaIdentity() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..adebd52eaa72 --- /dev/null +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded.cs @@ -0,0 +1,635 @@ +// 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.MySql.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Extensions; + + /// + /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlFlexibleServer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated))] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Description(@"Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Generated] + public partial class UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// The password of the administrator login. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password of the administrator login.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password of the administrator login.", + SerializedName = @"administratorLoginPassword", + PossibleTypes = new [] { typeof(string) })] + public string AdministratorLoginPassword { get => ParametersBody.AdministratorLoginPassword ?? null; set => ParametersBody.AdministratorLoginPassword = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.MySql.MySql Client => Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// delegated subnet arm resource id. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated subnet arm resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated subnet arm resource id.", + SerializedName = @"subnetArmResourceId", + PossibleTypes = new [] { typeof(string) })] + public string DelegatedSubnetArgumentSubnetArmResourceId { get => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId ?? null; set => ParametersBody.DelegatedSubnetArgumentSubnetArmResourceId = value; } + + /// Enable HA or not for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable HA or not for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable HA or not for a server.", + SerializedName = @"haEnabled", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum HaEnabled { get => ParametersBody.HaEnabled ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum)""); set => ParametersBody.HaEnabled = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// indicates whether custom window is enabled or disabled + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "indicates whether custom window is enabled or disabled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"indicates whether custom window is enabled or disabled", + SerializedName = @"customWindow", + PossibleTypes = new [] { typeof(string) })] + public string MaintenanceWindowCustomWindow { get => ParametersBody.MaintenanceWindowCustomWindow ?? null; set => ParametersBody.MaintenanceWindowCustomWindow = value; } + + /// day of week for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "day of week for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"day of week for maintenance window", + SerializedName = @"dayOfWeek", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowDayOfWeek { get => ParametersBody.MaintenanceWindowDayOfWeek ?? default(int); set => ParametersBody.MaintenanceWindowDayOfWeek = value; } + + /// start hour for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start hour for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start hour for maintenance window", + SerializedName = @"startHour", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartHour { get => ParametersBody.MaintenanceWindowStartHour ?? default(int); set => ParametersBody.MaintenanceWindowStartHour = value; } + + /// start minute for maintenance window + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start minute for maintenance window")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"start minute for maintenance window", + SerializedName = @"startMinute", + PossibleTypes = new [] { typeof(int) })] + public int MaintenanceWindowStartMinute { get => ParametersBody.MaintenanceWindowStartMinute ?? default(int); set => ParametersBody.MaintenanceWindowStartMinute = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ServerForUpdate(); + + /// Parameters allowed to update for a server. + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// The replication role of the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The replication role of the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replication role of the server.", + SerializedName = @"replicationRole", + PossibleTypes = new [] { typeof(string) })] + public string ReplicationRole { get => ParametersBody.ReplicationRole ?? null; set => ParametersBody.ReplicationRole = value; } + + /// The name of the sku, e.g. Standard_D32s_v3. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the sku, e.g. Standard_D32s_v3.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the sku, e.g. Standard_D32s_v3.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => ParametersBody.SkuName ?? null; set => ParametersBody.SkuName = value; } + + /// The tier of the particular SKU, e.g. GeneralPurpose. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The tier of the particular SKU, e.g. GeneralPurpose.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tier of the particular SKU, e.g. GeneralPurpose.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier SkuTier { get => ParametersBody.SkuTier; set => ParametersBody.SkuTier = value; } + + /// Enable ssl enforcement or not when connect to server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable ssl enforcement or not when connect to server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable ssl enforcement or not when connect to server.", + SerializedName = @"sslEnforcement", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum SslEnforcement { get => ParametersBody.SslEnforcement ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum)""); set => ParametersBody.SslEnforcement = value; } + + /// Backup retention days for the server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup retention days for the server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Backup retention days for the server.", + SerializedName = @"backupRetentionDays", + PossibleTypes = new [] { typeof(int) })] + [System.Management.Automation.ValidateRangeAttribute(7,35)] + public int StorageProfileBackupRetentionDay { get => ParametersBody.StorageProfileBackupRetentionDay ?? default(int); set => ParametersBody.StorageProfileBackupRetentionDay = value; } + + /// Enable Storage Auto Grow. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enable Storage Auto Grow.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enable Storage Auto Grow.", + SerializedName = @"storageAutogrow", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow))] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow StorageProfileStorageAutogrow { get => ParametersBody.StorageProfileStorageAutogrow ?? ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow)""); set => ParametersBody.StorageProfileStorageAutogrow = value; } + + /// Storage IOPS for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage IOPS for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage IOPS for a server.", + SerializedName = @"storageIops", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageIop { get => ParametersBody.StorageProfileStorageIop ?? default(int); set => ParametersBody.StorageProfileStorageIop = value; } + + /// Max storage allowed for a server. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Max storage allowed for a server.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Max storage allowed for a server.", + SerializedName = @"storageMB", + PossibleTypes = new [] { typeof(int) })] + public int StorageProfileStorageMb { get => ParametersBody.StorageProfileStorageMb ?? default(int); set => ParametersBody.StorageProfileStorageMb = value; } + + /// Application-specific metadata in the form of key-value pairs. + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Application-specific metadata in the form of key-value pairs.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MySql.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Application-specific metadata in the form of key-value pairs.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets.UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ParametersBody = this.ParametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FlexibleServersUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MySql.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.FlexibleServersUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ServerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.FlexibleServersUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.ServerName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzMySqlFlexibleServer_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_Update.cs index 74192627f241..12f6582a184f 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_Update.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_Update.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Servers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlServer_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateExpanded.cs index d628a3e5be33..d5a7c7e3d6d9 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Servers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlServer_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentity.cs index 341829578d22..b884c7a8b0d8 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentity.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Servers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlServer_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentityExpanded.cs index 292622dcec0d..0e019ffc96cc 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlServer_UpdateViaIdentityExpanded.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. /// /// - /// [OpenAPI] Servers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlServer_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_Update.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_Update.cs index e040460fa09d..203d864a805f 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_Update.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_Update.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlVirtualNetworkRule_Update", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateExpanded.cs index 55edf0e40a65..3923022cb372 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlVirtualNetworkRule_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentity.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentity.cs index 578685acec9a..5e67e0b39d38 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentity.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.MySql.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlVirtualNetworkRule_UpdateViaIdentity", SupportsShouldProcess = true)] diff --git a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded.cs b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded.cs index 935c75de08b1..e813471aaaac 100644 --- a/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded.cs +++ b/src/MySql/generated/cmdlets/UpdateAzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MySql.Cmdlets /// Creates or updates an existing virtual network rule. /// - /// [OpenAPI] VirtualNetworkRules_CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMySqlVirtualNetworkRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule))] diff --git a/src/MySql/generated/runtime/ISendAsync.cs b/src/MySql/generated/runtime/ISendAsync.cs index f2f82d2084db..9b4e92b288e4 100644 --- a/src/MySql/generated/runtime/ISendAsync.cs +++ b/src/MySql/generated/runtime/ISendAsync.cs @@ -252,12 +252,19 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { + /* + **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } } - + return clone; } @@ -286,4 +293,4 @@ internal static async Task CloneWithContent(this HttpRequest return clone; } } -} \ No newline at end of file +} diff --git a/src/MySql/help/Az.MySql.md b/src/MySql/help/Az.MySql.md index 0aaaaba80eb9..dd32ccb6dd13 100644 --- a/src/MySql/help/Az.MySql.md +++ b/src/MySql/help/Az.MySql.md @@ -20,6 +20,21 @@ Get the connection string according to client connection provider. ### [Get-AzMySqlFirewallRule](Get-AzMySqlFirewallRule.md) Gets information about a server firewall rule. +### [Get-AzMySqlFlexibleServer](Get-AzMySqlFlexibleServer.md) +Gets information about a server. + +### [Get-AzMySqlFlexibleServerConfiguration](Get-AzMySqlFlexibleServerConfiguration.md) +Gets information about a configuration of server. + +### [Get-AzMySqlFlexibleServerDatabase](Get-AzMySqlFlexibleServerDatabase.md) +Gets information about a database. + +### [Get-AzMySqlFlexibleServerFirewallRule](Get-AzMySqlFlexibleServerFirewallRule.md) +Gets information about a server firewall rule. + +### [Get-AzMySqlFlexibleServerReplica](Get-AzMySqlFlexibleServerReplica.md) +List all the replicas for a given server. + ### [Get-AzMySqlReplica](Get-AzMySqlReplica.md) List all the replicas for a given server. @@ -32,6 +47,18 @@ Gets a virtual network rule. ### [New-AzMySqlFirewallRule](New-AzMySqlFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. +### [New-AzMySqlFlexibleServer](New-AzMySqlFlexibleServer.md) +Creates a new server. + +### [New-AzMySqlFlexibleServerDatabase](New-AzMySqlFlexibleServerDatabase.md) +Creates a new database or updates an existing database. + +### [New-AzMySqlFlexibleServerFirewallRule](New-AzMySqlFlexibleServerFirewallRule.md) +Creates a new firewall rule for MySQL flexible server + +### [New-AzMySqlFlexibleServerReplica](New-AzMySqlFlexibleServerReplica.md) +Creates a new replica from an existing database. + ### [New-AzMySqlReplica](New-AzMySqlReplica.md) Creates a new replica from an existing database. @@ -44,18 +71,39 @@ Creates or updates an existing virtual network rule. ### [Remove-AzMySqlFirewallRule](Remove-AzMySqlFirewallRule.md) Deletes a server firewall rule. +### [Remove-AzMySqlFlexibleServer](Remove-AzMySqlFlexibleServer.md) +Deletes a server. + +### [Remove-AzMySqlFlexibleServerDatabase](Remove-AzMySqlFlexibleServerDatabase.md) +Deletes a database. + +### [Remove-AzMySqlFlexibleServerFirewallRule](Remove-AzMySqlFlexibleServerFirewallRule.md) +Deletes a firewall rule. + ### [Remove-AzMySqlServer](Remove-AzMySqlServer.md) Deletes a server. ### [Remove-AzMySqlVirtualNetworkRule](Remove-AzMySqlVirtualNetworkRule.md) Deletes the virtual network rule with the given name. +### [Restart-AzMySqlFlexibleServer](Restart-AzMySqlFlexibleServer.md) +Restarts a server. + ### [Restart-AzMySqlServer](Restart-AzMySqlServer.md) Restarts a server. +### [Restore-AzMySqlFlexibleServer](Restore-AzMySqlFlexibleServer.md) +Restore a server from an existing backup + ### [Restore-AzMySqlServer](Restore-AzMySqlServer.md) Restore a server from an existing backup +### [Start-AzMySqlFlexibleServer](Start-AzMySqlFlexibleServer.md) +Starts a server. + +### [Stop-AzMySqlFlexibleServer](Stop-AzMySqlFlexibleServer.md) +Stops a server. + ### [Update-AzMySqlConfiguration](Update-AzMySqlConfiguration.md) Updates a configuration of a server. Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, sku, etc. @@ -63,6 +111,20 @@ Use Update-AzMySqlServer instead if you want update AdministratorLoginPassword, ### [Update-AzMySqlFirewallRule](Update-AzMySqlFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. +### [Update-AzMySqlFlexibleServer](Update-AzMySqlFlexibleServer.md) +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +### [Update-AzMySqlFlexibleServerConfiguration](Update-AzMySqlFlexibleServerConfiguration.md) +Updates information about a configuration of a MySQL flexible server. + +### [Update-AzMySqlFlexibleServerDatabase](Update-AzMySqlFlexibleServerDatabase.md) +Creates a new database or updates an existing database. + +### [Update-AzMySqlFlexibleServerFirewallRule](Update-AzMySqlFlexibleServerFirewallRule.md) +Updates an existing firewall rule. + ### [Update-AzMySqlServer](Update-AzMySqlServer.md) Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. diff --git a/src/MySql/help/Get-AzMySqlConfiguration.md b/src/MySql/help/Get-AzMySqlConfiguration.md index 50efb1f5315f..e38c2f7c6429 100644 --- a/src/MySql/help/Get-AzMySqlConfiguration.md +++ b/src/MySql/help/Get-AzMySqlConfiguration.md @@ -183,6 +183,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Get-AzMySqlConnectionString.md b/src/MySql/help/Get-AzMySqlConnectionString.md index 2a91f055d2ae..d586aefc49ad 100644 --- a/src/MySql/help/Get-AzMySqlConnectionString.md +++ b/src/MySql/help/Get-AzMySqlConnectionString.md @@ -161,8 +161,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : The source server object to create replica from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. + - `Location `: The geo-location where the resource lives + - `SkuName `: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) @@ -176,7 +177,6 @@ INPUTOBJECT : The source server object to create replica from. - `[ReplicationRole ]`: The replication role of the server. - `[SkuCapacity ]`: The scale up/out capacity, representing server's compute units. - `[SkuFamily ]`: The family of hardware. - - `[SkuName ]`: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - `[SkuSize ]`: The size code, to be interpreted by resource as appropriate. - `[SkuTier ]`: The tier of the particular SKU, e.g. Basic. - `[SslEnforcement ]`: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/help/Get-AzMySqlFirewallRule.md b/src/MySql/help/Get-AzMySqlFirewallRule.md index 02a7cf376106..9fa728f0c250 100644 --- a/src/MySql/help/Get-AzMySqlFirewallRule.md +++ b/src/MySql/help/Get-AzMySqlFirewallRule.md @@ -187,6 +187,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Get-AzMySqlFlexibleServer.md b/src/MySql/help/Get-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..fa0d8549a71a --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServer.md @@ -0,0 +1,201 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServer + +## SYNOPSIS +Gets information about a server. + +## SYNTAX + +### List1 (Default) +``` +Get-AzMySqlFlexibleServer [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMySqlFlexibleServer -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzMySqlFlexibleServer -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets information about a server. + +## EXAMPLES + +### Example 1: Get MySql server with default context +```powershell +PS C:\> Get-AzMySqlFlexibleServer + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql servers with default context. + +### Example 2: Get MySql server by resource group and server name +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql servers by resource group and server name. + +### Example 3: Lists all the MySql servers in specified resource group +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test-11 westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +mysql-test-12 westus2 mysql_test2 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet lists all the MySql servers in the specified resource group. + +### Example 4: Get MySql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServer -InputObject $ID + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet lists gets MySql servers by identity. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerConfiguration.md b/src/MySql/help/Get-AzMySqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..37ded752250f --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerConfiguration.md @@ -0,0 +1,202 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverconfiguration +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerConfiguration + +## SYNOPSIS +Gets information about a configuration of server. + +## SYNTAX + +### List (Default) +``` +Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMySqlFlexibleServerConfiguration -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMySqlFlexibleServerConfiguration -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets information about a configuration of server. + +## EXAMPLES + +### Example 1: List all configurations in specified MySql server +```powershell +PS C:\> Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +archive OFF OFF system-default ON, OFF Enumeration +... +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet lists all configurations in specified MySql server. + +### Example 2: Get specified MySql configuration by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet gets specified MySql configuration by name. + +### Example 3: List configuration by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +Get-AzMySqlFlexibleServerConfiguration -Name wait_timeout -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 28800 28800 system-default 1-31536000 Integer +``` + +This cmdlet gets specified MySql configuration by identity. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server configuration. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerDatabase.md b/src/MySql/help/Get-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..2a415e00e5c5 --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,202 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverdatabase +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerDatabase + +## SYNOPSIS +Gets information about a database. + +## SYNTAX + +### List (Default) +``` +Get-AzMySqlFlexibleServerDatabase -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMySqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMySqlFlexibleServerDatabase -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets information about a database. + +## EXAMPLES + +### Example 1: Get a MySql database by resource name +```powershell +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name flexibleserverdb + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +``` + +This cmdlet gets MySql server by resource name. + +### Example 2: Get MySql databases by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Get-AzMySqlFlexibleServerDatabase -InputObject $ID + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci +``` + +This cmdlet gets a MySql server by identity. + +### Example 3: Lists all the MySql databases in the specified server +```powershell +PS C:\> Get-AzMySqlFlexibleServerDatabase -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +flexibleserverdb latin1 latin1_swedish_ci +performance_schema latin1 latin1_swedish_ci +``` + +This cmdlet lists all the MySql servers in specified the server. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/help/Get-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..06986c636935 --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,201 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerFirewallRule + +## SYNOPSIS +Gets information about a server firewall rule. + +## SYNTAX + +### List (Default) +``` +Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMySqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMySqlFlexibleServerFirewallRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets information about a server firewall rule. + +## EXAMPLES + +### Example 1: Get firewall rules by name +```powershell +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by name. + +### Example 2: Get firewall rules by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/firewallRules/firewallrule-test" +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +``` + +This cmdlet gets firewall rules by identity. + +### Example 3: Lists all the firewall rules in the specified MySql server +```powershell +PS C:\> Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +FirewallRuleName StartIPAddress EndIPAddress +----------------- --------------- --------------- +firewallrule-test 12.12.12.12 23.23.23.23 +firewallrule-test2 12.12.12.15 23.23.23.25 +``` + +This cmdlet lists all the firewall rule in specified MySql server. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlFlexibleServerReplica.md b/src/MySql/help/Get-AzMySqlFlexibleServerReplica.md new file mode 100644 index 000000000000..63757da17977 --- /dev/null +++ b/src/MySql/help/Get-AzMySqlFlexibleServerReplica.md @@ -0,0 +1,113 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverreplica +schema: 2.0.0 +--- + +# Get-AzMySqlFlexibleServerReplica + +## SYNOPSIS +List all the replicas for a given server. + +## SYNTAX + +``` +Get-AzMySqlFlexibleServerReplica -ResourceGroupName -ServerName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +List all the replicas for a given server. + +## EXAMPLES + +### Example 1: Get MySql server replica by resource group and server name +```powershell +PS C:\> Get-AzMySqlFlexibleServerReplica -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet gets MySql server replica by resource group and server name. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/MySql/help/Get-AzMySqlServer.md b/src/MySql/help/Get-AzMySqlServer.md index 2858d27dc39f..0aecfacce834 100644 --- a/src/MySql/help/Get-AzMySqlServer.md +++ b/src/MySql/help/Get-AzMySqlServer.md @@ -188,6 +188,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Get-AzMySqlVirtualNetworkRule.md b/src/MySql/help/Get-AzMySqlVirtualNetworkRule.md index 1ec1563c6c33..133da7f19ef7 100644 --- a/src/MySql/help/Get-AzMySqlVirtualNetworkRule.md +++ b/src/MySql/help/Get-AzMySqlVirtualNetworkRule.md @@ -203,6 +203,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/New-AzMySqlFirewallRule.md b/src/MySql/help/New-AzMySqlFirewallRule.md index 731c8476850f..79ae7ecdd053 100644 --- a/src/MySql/help/New-AzMySqlFirewallRule.md +++ b/src/MySql/help/New-AzMySqlFirewallRule.md @@ -62,7 +62,7 @@ This cmdlets create a MySql Firewall Rule using -ClientIPAddress. ### Example 3: Create a new MySql Firewall Rule to allow all IPs ```powershell -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll Name StartIPAddress EndIPAddress ---- -------------- ------------ diff --git a/src/MySql/help/New-AzMySqlFlexibleServer.md b/src/MySql/help/New-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..ca3bb777bccb --- /dev/null +++ b/src/MySql/help/New-AzMySqlFlexibleServer.md @@ -0,0 +1,332 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserver +schema: 2.0.0 +--- + +# New-AzMySqlFlexibleServer + +## SYNOPSIS +Creates a new MySQL flexible server + +## SYNTAX + +``` +New-AzMySqlFlexibleServer -Name -ResourceGroupName + -AdministratorLoginPassword -AdministratorUserName [-SubscriptionId ] + [-BackupRetentionDay ] [-Location ] [-Sku ] [-SkuTier ] [-StorageInMb ] + [-Tag ] [-Version ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new server. + +## EXAMPLES + +### Example 1: Create a new MySql flexible server +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +``` + + + +### Example 2: Create a new MySql flexible server with default setting +```powershell +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable +``` + +Create MySql server with default values. +The default values of location is West US 2, Sku is Standard_B1ms, Sku tier is Burstable, and storage size is 10GiB. + +## PARAMETERS + +### -AdministratorLoginPassword +The password of the administrator. +Minimum 8 characters and maximum 128 characters. +Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. + +```yaml +Type: System.Security.SecureString +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AdministratorUserName +Administrator username for the server. +Once set, it cannot be changed. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupRetentionDay +Backup retention days for the server. +Day count is between 7 and 35. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The location the resource resides in. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The name of the sku, typically, tier + family + cores, e.g. +Standard_B1ms, Standard_D2ds_v4. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +Compute tier of the server. +Accepted values: Burstable, GeneralPurpose, Memory Optimized. +Default: Burstable. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageInMb +Max storage allowed for a server. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Application-specific metadata in the form of key-value pairs. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +Server version. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/MySql/help/New-AzMySqlFlexibleServerDatabase.md b/src/MySql/help/New-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..c6ff04d467bf --- /dev/null +++ b/src/MySql/help/New-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverdatabase +schema: 2.0.0 +--- + +# New-AzMySqlFlexibleServerDatabase + +## SYNOPSIS +Creates a new database or updates an existing database. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMySqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzMySqlFlexibleServerDatabase -InputObject [-Charset ] [-Collation ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new database or updates an existing database. + +## EXAMPLES + +### Example 1: Create a new MySql server database +```powershell +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci +``` + +Create a database with default settings. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Charset +The charset of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Collation +The collation of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/New-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/help/New-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..942359119206 --- /dev/null +++ b/src/MySql/help/New-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,292 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# New-AzMySqlFlexibleServerFirewallRule + +## SYNOPSIS +Creates a new firewall rule for MySQL flexible server + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName -ServerName -EndIPAddress + -StartIPAddress [-Name ] [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### AllowAll +``` +New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName -ServerName -AllowAll + [-Name ] [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### ClientIPAddress +``` +New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName -ServerName + -ClientIPAddress [-Name ] [-SubscriptionId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new firewall rule for MySQL flexible server + +## EXAMPLES + +### Example 1: Create a new MySql server Firewall Rule +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +``` + +This cmdlets create a MySql server Firewall Rule. + +### Example 2: Create a new MySql Firewall Rule using -ClientIPAddress. +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +``` + +This cmdlets create a MySql Firewall Rule using -ClientIPAddress. + +### Example 3: Create a new MySql Firewall Rule to allow all IPs +```powershell +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +``` + +This cmdlets create a new MySql Firewall Rule to allow all IPs. + +## PARAMETERS + +### -AllowAll +Present to allow all range IPs, from 0.0.0.0 to 255.255.255.255. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: AllowAll +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientIPAddress +Client specified single IP of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndIPAddress +The end IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. +If not specified, the default is undefined. +If AllowAll is present, the default name is AllowAll_yyyy-MM-dd_HH-mm-ss. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: FirewallRuleName + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartIPAddress +The start IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/MySql/help/New-AzMySqlFlexibleServerReplica.md b/src/MySql/help/New-AzMySqlFlexibleServerReplica.md new file mode 100644 index 000000000000..28a1fa98eeac --- /dev/null +++ b/src/MySql/help/New-AzMySqlFlexibleServerReplica.md @@ -0,0 +1,239 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverreplica +schema: 2.0.0 +--- + +# New-AzMySqlFlexibleServerReplica + +## SYNOPSIS +Creates a replica server for a MySQL flexible server + +## SYNTAX + +``` +New-AzMySqlFlexibleServerReplica -Replica -ResourceGroupName -Master + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates a new replica from an existing database. + +## EXAMPLES + +### Example 1: Create a new MySql server replica +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | New-AzMySqlFlexibleServerReplica -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +``` + +This cmdlet creates a new MySql server replica. + +### Example 2: Create a new MySql server replica +```powershell +PS C:\> $mysql = Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +PS C:\> New-AzMySqlFlexibleServerReplica -Master $mysql -Replica mysql-test-replica -ResourceGroupName PowershellMySqlTest + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-replica westus2 mysql_test 5.7 10240 Standard_B1ms Burstable +``` + +This cmdlet with parameter master(inputobject) creates a new MySql server replica. + +## PARAMETERS + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Master +The source server object to create replica from. +To construct, see NOTES section for MASTER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +Parameter Sets: (All) +Aliases: InputObject + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Replica +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ReplicaServerName, Name + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +MASTER : The source server object to create replica from. + - `Location `: The geo-location where the resource lives + - `SkuName `: The name of the sku, e.g. Standard_D32s_v3. + - `SkuTier `: The tier of the particular SKU, e.g. GeneralPurpose. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + - `[AdministratorLoginPassword ]`: The password of the administrator login (required for server creation). + - `[AvailabilityZone ]`: availability Zone information of the server. + - `[CreateMode ]`: The mode to create a new MySQL server. + - `[DelegatedSubnetArgumentSubnetArmResourceId ]`: delegated subnet arm resource id. + - `[HaEnabled ]`: Enable HA or not for a server. + - `[IdentityType ]`: The identity type. + - `[InfrastructureEncryption ]`: Status showing whether the server enabled infrastructure encryption. + - `[MaintenanceWindowCustomWindow ]`: indicates whether custom window is enabled or disabled + - `[MaintenanceWindowDayOfWeek ]`: day of week for maintenance window + - `[MaintenanceWindowStartHour ]`: start hour for maintenance window + - `[MaintenanceWindowStartMinute ]`: start minute for maintenance window + - `[PropertiesTag ]`: Application-specific metadata in the form of key-value pairs. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[ReplicationRole ]`: The replication role. + - `[RestorePointInTime ]`: Restore point creation time (ISO8601 format), specifying the time to restore from. + - `[SourceServerId ]`: The source MySQL server id. + - `[SslEnforcement ]`: Enable ssl enforcement or not when connect to server. + - `[StorageProfileBackupRetentionDay ]`: Backup retention days for the server. + - `[StorageProfileStorageAutogrow ]`: Enable Storage Auto Grow. + - `[StorageProfileStorageIop ]`: Storage IOPS for a server. + - `[StorageProfileStorageMb ]`: Max storage allowed for a server. + - `[Version ]`: Server version. + +## RELATED LINKS + diff --git a/src/MySql/help/New-AzMySqlReplica.md b/src/MySql/help/New-AzMySqlReplica.md index d3c68d7b46d0..4d23a93185b9 100644 --- a/src/MySql/help/New-AzMySqlReplica.md +++ b/src/MySql/help/New-AzMySqlReplica.md @@ -237,8 +237,9 @@ To create the parameters described below, construct a hash table containing the MASTER : The source server object to create replica from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. + - `Location `: The geo-location where the resource lives + - `SkuName `: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) @@ -252,7 +253,6 @@ MASTER : The source server object to create replica from. - `[ReplicationRole ]`: The replication role of the server. - `[SkuCapacity ]`: The scale up/out capacity, representing server's compute units. - `[SkuFamily ]`: The family of hardware. - - `[SkuName ]`: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - `[SkuSize ]`: The size code, to be interpreted by resource as appropriate. - `[SkuTier ]`: The tier of the particular SKU, e.g. Basic. - `[SslEnforcement ]`: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/help/New-AzMySqlServer.md b/src/MySql/help/New-AzMySqlServer.md index 551d9b624ac1..ae4ee28f4106 100644 --- a/src/MySql/help/New-AzMySqlServer.md +++ b/src/MySql/help/New-AzMySqlServer.md @@ -40,7 +40,9 @@ These cmdlets create a new MySql server. ## PARAMETERS ### -AdministratorLoginPassword -The location the resource resides in. +The password of the administrator. +Minimum 8 characters and maximum 128 characters. +Password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers, and non-alphanumeric characters. ```yaml Type: System.Security.SecureString @@ -55,7 +57,8 @@ Accept wildcard characters: False ``` ### -AdministratorUserName -The location the resource resides in. +Administrator username for the server. +Once set, it cannot be changed. ```yaml Type: System.String diff --git a/src/MySql/help/Remove-AzMySqlFirewallRule.md b/src/MySql/help/Remove-AzMySqlFirewallRule.md index 8b0940bf0560..2a9b617e855e 100644 --- a/src/MySql/help/Remove-AzMySqlFirewallRule.md +++ b/src/MySql/help/Remove-AzMySqlFirewallRule.md @@ -242,6 +242,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Remove-AzMySqlFlexibleServer.md b/src/MySql/help/Remove-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..116ce6de47de --- /dev/null +++ b/src/MySql/help/Remove-AzMySqlFlexibleServer.md @@ -0,0 +1,238 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Remove-AzMySqlFlexibleServer + +## SYNOPSIS +Deletes a server. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzMySqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a server. + +## EXAMPLES + +### Example 1: Remove MySql server by resourceGroup and server name +```powershell +PS C:\> Remove-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test + +``` + +This cmdlet removes MySql server by resourceGroup and server name. + +### Example 2: Remove MySql server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test" +PS C:\> Remove-AzMySqlFlexibleServer -InputObject $ID + +``` + +These cmdlets remove MySql server by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Remove-AzMySqlFlexibleServerDatabase.md b/src/MySql/help/Remove-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..075dbe0b59f4 --- /dev/null +++ b/src/MySql/help/Remove-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverdatabase +schema: 2.0.0 +--- + +# Remove-AzMySqlFlexibleServerDatabase + +## SYNOPSIS +Deletes a database. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMySqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzMySqlFlexibleServerDatabase -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a database. + +## EXAMPLES + +### Example 1: Remove MySql database by name +```powershell +PS C:\> Remove-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test +``` + +This cmdlet removes MySql database by name. + +### Example 2: Remove MySql database by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/databases/databasetest" +PS C:\> Remove-AzMySqlFlexibleServerDatabase -InputObject $ID + +``` + +These cmdlets remove MySql database by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Remove-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/help/Remove-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..0394443a21d0 --- /dev/null +++ b/src/MySql/help/Remove-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,254 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Remove-AzMySqlFlexibleServerFirewallRule + +## SYNOPSIS +Deletes a firewall rule. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMySqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzMySqlFlexibleServerFirewallRule -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a firewall rule. + +## EXAMPLES + +### Example 1: Remove MySql Firewall Rule by name +```powershell +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -Name firewall-rule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +``` + +This cmdlet removes MySql Firewall Rule by name. + +### Example 2: Remove MySql Firewall Rule by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/firewall-rule-test" +PS C:\> Remove-AzMySqlFlexibleServerFirewallRule -InputObject $ID + +``` + +These cmdlets remove MySql Firewall Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Remove-AzMySqlServer.md b/src/MySql/help/Remove-AzMySqlServer.md index fbf7d517afa1..37b1679472d0 100644 --- a/src/MySql/help/Remove-AzMySqlServer.md +++ b/src/MySql/help/Remove-AzMySqlServer.md @@ -226,6 +226,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md b/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md index 91b5ec97f8b8..0dfe8e08b23d 100644 --- a/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md +++ b/src/MySql/help/Remove-AzMySqlVirtualNetworkRule.md @@ -242,6 +242,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Restart-AzMySqlFlexibleServer.md b/src/MySql/help/Restart-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..32689ea9156c --- /dev/null +++ b/src/MySql/help/Restart-AzMySqlFlexibleServer.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/restart-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Restart-AzMySqlFlexibleServer + +## SYNOPSIS +Restarts a server. + +## SYNTAX + +### Restart (Default) +``` +Restart-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### RestartViaIdentity +``` +Restart-AzMySqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Restarts a server. + +## EXAMPLES + +### Example 1: Restart the server by resource name +```powershell +PS C:\> Restart-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Restart the server by name + +### Example 2: Restart the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/restart" +PS C:\> Restart-AzMySqlFlexibleServer -InputObject $ID +``` + +Restart the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: RestartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Restart +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Restart-AzMySqlServer.md b/src/MySql/help/Restart-AzMySqlServer.md index f194edec1de0..b5f309d4a9bc 100644 --- a/src/MySql/help/Restart-AzMySqlServer.md +++ b/src/MySql/help/Restart-AzMySqlServer.md @@ -226,6 +226,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Restore-AzMySqlFlexibleServer.md b/src/MySql/help/Restore-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..b9b725c632f5 --- /dev/null +++ b/src/MySql/help/Restore-AzMySqlFlexibleServer.md @@ -0,0 +1,258 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/restore-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Restore-AzMySqlFlexibleServer + +## SYNOPSIS +Restore a server from an existing backup + +## SYNTAX + +``` +Restore-AzMySqlFlexibleServer -Name -ResourceGroupName -InputObject + -RestorePointInTime [-SubscriptionId ] [-Sku ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Restore a server from an existing backup + +## EXAMPLES + +### Example 1: Restore MySql server using PointInTime Restore +```powershell +PS C:\> $restorePointInTime = (Get-Date).AddMinutes(-10) +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Restore-AzMySqlFlexibleServer -Name mysql-test-restore -ResourceGroupName PowershellMySqlTest -RestorePointInTime $restorePointInTime + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------- ------- +mysql-test-restore eastus mysql_test 5.7 10240 Standard_D2ds_v4 GeneralPurpose +``` + +These cmdlets restore MySql server using PointInTime Restore. + +## PARAMETERS + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The source server object to restore from. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestorePointInTime +The location the resource resides in. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The name of the sku, e.g., Standard_D2ds_v4, Standard_B1ms + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : The source server object to restore from. + - `Location `: The geo-location where the resource lives + - `SkuName `: The name of the sku, e.g. Standard_D32s_v3. + - `SkuTier `: The tier of the particular SKU, e.g. GeneralPurpose. + - `[Tag ]`: Resource tags. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + - `[AdministratorLoginPassword ]`: The password of the administrator login (required for server creation). + - `[AvailabilityZone ]`: availability Zone information of the server. + - `[CreateMode ]`: The mode to create a new MySQL server. + - `[DelegatedSubnetArgumentSubnetArmResourceId ]`: delegated subnet arm resource id. + - `[HaEnabled ]`: Enable HA or not for a server. + - `[IdentityType ]`: The identity type. + - `[InfrastructureEncryption ]`: Status showing whether the server enabled infrastructure encryption. + - `[MaintenanceWindowCustomWindow ]`: indicates whether custom window is enabled or disabled + - `[MaintenanceWindowDayOfWeek ]`: day of week for maintenance window + - `[MaintenanceWindowStartHour ]`: start hour for maintenance window + - `[MaintenanceWindowStartMinute ]`: start minute for maintenance window + - `[PropertiesTag ]`: Application-specific metadata in the form of key-value pairs. + - `[(Any) ]`: This indicates any property can be added to this object. + - `[ReplicationRole ]`: The replication role. + - `[RestorePointInTime ]`: Restore point creation time (ISO8601 format), specifying the time to restore from. + - `[SourceServerId ]`: The source MySQL server id. + - `[SslEnforcement ]`: Enable ssl enforcement or not when connect to server. + - `[StorageProfileBackupRetentionDay ]`: Backup retention days for the server. + - `[StorageProfileStorageAutogrow ]`: Enable Storage Auto Grow. + - `[StorageProfileStorageIop ]`: Storage IOPS for a server. + - `[StorageProfileStorageMb ]`: Max storage allowed for a server. + - `[Version ]`: Server version. + +## RELATED LINKS + diff --git a/src/MySql/help/Restore-AzMySqlServer.md b/src/MySql/help/Restore-AzMySqlServer.md index c2f21f5f2f55..c58cb2f77b2b 100644 --- a/src/MySql/help/Restore-AzMySqlServer.md +++ b/src/MySql/help/Restore-AzMySqlServer.md @@ -306,8 +306,9 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : The source server object to restore from. - - `Location `: The location the resource resides in. - - `[Tag ]`: Application-specific metadata in the form of key-value pairs. + - `Location `: The geo-location where the resource lives + - `SkuName `: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + - `[Tag ]`: Resource tags. - `[(Any) ]`: This indicates any property can be added to this object. - `[AdministratorLogin ]`: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). - `[EarliestRestoreDate ]`: Earliest restore point creation time (ISO8601 format) @@ -321,7 +322,6 @@ INPUTOBJECT : The source server object to restore from. - `[ReplicationRole ]`: The replication role of the server. - `[SkuCapacity ]`: The scale up/out capacity, representing server's compute units. - `[SkuFamily ]`: The family of hardware. - - `[SkuName ]`: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - `[SkuSize ]`: The size code, to be interpreted by resource as appropriate. - `[SkuTier ]`: The tier of the particular SKU, e.g. Basic. - `[SslEnforcement ]`: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/help/Start-AzMySqlFlexibleServer.md b/src/MySql/help/Start-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..366316fc0535 --- /dev/null +++ b/src/MySql/help/Start-AzMySqlFlexibleServer.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/start-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Start-AzMySqlFlexibleServer + +## SYNOPSIS +Starts a server. + +## SYNTAX + +### Start (Default) +``` +Start-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StartViaIdentity +``` +Start-AzMySqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Starts a server. + +## EXAMPLES + +### Example 1: Start the server by resource name +```powershell +PS C:\> Start-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Start the server by name + +### Example 2: Start the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/start" +PS C:\> Start-AzMySqlFlexibleServer -InputObject $ID +``` + +Start the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: StartViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Start +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Stop-AzMySqlFlexibleServer.md b/src/MySql/help/Stop-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..5d2ebe73959a --- /dev/null +++ b/src/MySql/help/Stop-AzMySqlFlexibleServer.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/stop-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Stop-AzMySqlFlexibleServer + +## SYNOPSIS +Stops a server. + +## SYNTAX + +### Stop (Default) +``` +Stop-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### StopViaIdentity +``` +Stop-AzMySqlFlexibleServer -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Stops a server. + +## EXAMPLES + +### Example 1: Stop the server by resource name +```powershell +PS C:\> Stop-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test +``` + +Stop the server by name + +### Example 2: Stop the server by identity +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/stop" +PS C:\> Stop-AzMySqlFlexibleServer -InputObject $ID +``` + +Stop the server by identity + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: StopViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Update-AzMySqlConfiguration.md b/src/MySql/help/Update-AzMySqlConfiguration.md index 3a5d7fd00c2b..7203046c366a 100644 --- a/src/MySql/help/Update-AzMySqlConfiguration.md +++ b/src/MySql/help/Update-AzMySqlConfiguration.md @@ -265,6 +265,7 @@ INPUTOBJECT : Identity Parameter. - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Update-AzMySqlFirewallRule.md b/src/MySql/help/Update-AzMySqlFirewallRule.md index 2e3b54ae6b30..d26c38c6f3a5 100644 --- a/src/MySql/help/Update-AzMySqlFirewallRule.md +++ b/src/MySql/help/Update-AzMySqlFirewallRule.md @@ -306,6 +306,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Update-AzMySqlFlexibleServer.md b/src/MySql/help/Update-AzMySqlFlexibleServer.md new file mode 100644 index 000000000000..7288b6a7ab1c --- /dev/null +++ b/src/MySql/help/Update-AzMySqlFlexibleServer.md @@ -0,0 +1,391 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserver +schema: 2.0.0 +--- + +# Update-AzMySqlFlexibleServer + +## SYNOPSIS +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzMySqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] + [-ReplicationRole ] [-Sku ] [-SkuTier ] [-SslEnforcement ] + [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzMySqlFlexibleServer -InputObject [-AdministratorLoginPassword ] + [-BackupRetentionDay ] [-HaEnabled ] [-ReplicationRole ] [-Sku ] + [-SkuTier ] [-SslEnforcement ] [-StorageAutogrow ] + [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Updates an existing MySQL flexible server. +The request body can contain one to many of the properties present in the normal server definition. +Use Update-AzMySqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. + +## EXAMPLES + +### Example 1: Update MySql server by resource group and server name +```powershell +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose +``` + +This cmdlet updates MySql server by resource group and server name. + +### Example 2: Update MySql server by identity. +```powershell +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose +``` + +This cmdlet updates MySql server by identity. + +## PARAMETERS + +### -AdministratorLoginPassword +The password of the administrator login. + +```yaml +Type: System.Security.SecureString +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupRetentionDay +Backup retention days for the server. +Day count is between 7 and 35. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HaEnabled +Enable or disable high availability feature. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter. +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ServerName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReplicationRole +The replication role of the server. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the resource. +You can obtain this value from the Azure Resource Manager API or the portal. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The name of the sku, typically, tier + family + cores, e.g. +B_Gen4_1, GP_Gen5_8. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +The tier of the particular SKU, e.g. +Basic. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SslEnforcement +Enable ssl enforcement or not when connect to server. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAutogrow +Enable Storage Auto Grow. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageInMb +Max storage allowed for a server. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription ID that identifies an Azure subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Application-specific metadata in the form of key-value pairs. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter. + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Update-AzMySqlFlexibleServerConfiguration.md b/src/MySql/help/Update-AzMySqlFlexibleServerConfiguration.md new file mode 100644 index 000000000000..263d9da398e9 --- /dev/null +++ b/src/MySql/help/Update-AzMySqlFlexibleServerConfiguration.md @@ -0,0 +1,276 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverconfiguration +schema: 2.0.0 +--- + +# Update-AzMySqlFlexibleServerConfiguration + +## SYNOPSIS +Updates information about a configuration of a MySQL flexible server. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzMySqlFlexibleServerConfiguration -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Source ] [-Value ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzMySqlFlexibleServerConfiguration -InputObject [-Source ] [-Value ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates information about a configuration of a MySQL flexible server. + +## EXAMPLES + +### Example 1: Update MySql configuration by name +```powershell +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer +``` + +This cmdlet updates MySql configuration by name. + +### Example 2: Update MySql configuration by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer +``` + +These cmdlets update MySql configuration by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server configuration. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Source +The source of the updating value. +The default value is user-override + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Value +Value of the configuration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Update-AzMySqlFlexibleServerDatabase.md b/src/MySql/help/Update-AzMySqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..8e3121154039 --- /dev/null +++ b/src/MySql/help/Update-AzMySqlFlexibleServerDatabase.md @@ -0,0 +1,275 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverdatabase +schema: 2.0.0 +--- + +# Update-AzMySqlFlexibleServerDatabase + +## SYNOPSIS +Creates a new database or updates an existing database. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzMySqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzMySqlFlexibleServerDatabase -InputObject [-Charset ] [-Collation ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new database or updates an existing database. + +## EXAMPLES + +### Example 1: Update a MySql server database by name +```powershell +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +``` + +Update a database by resource name. + +### Example 2: Update MySql database by parameter. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +``` + +Update a database by parameter + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Charset +The charset of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Collation +The collation of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Update-AzMySqlFlexibleServerFirewallRule.md b/src/MySql/help/Update-AzMySqlFlexibleServerFirewallRule.md new file mode 100644 index 000000000000..ad043dede440 --- /dev/null +++ b/src/MySql/help/Update-AzMySqlFlexibleServerFirewallRule.md @@ -0,0 +1,307 @@ +--- +external help file: +Module Name: Az.MySql +online version: https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverfirewallrule +schema: 2.0.0 +--- + +# Update-AzMySqlFlexibleServerFirewallRule + +## SYNOPSIS +Updates an existing firewall rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzMySqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + -EndIPAddress -StartIPAddress [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### ClientIPAddress +``` +Update-AzMySqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName + -ClientIPAddress [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### ClientIPAddressViaIdentity +``` +Update-AzMySqlFlexibleServerFirewallRule -InputObject -ClientIPAddress + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzMySqlFlexibleServerFirewallRule -InputObject -EndIPAddress + -StartIPAddress [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates an existing firewall rule. + +## EXAMPLES + +### Example 1: Update MySql Firewall Rule by name +```powershell +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +This cmdlet updates MySql Firewall Rule by name. + +### Example 2: Update MySql Firewall Rule by identity. +```powershell +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +``` + +These cmdlets update MySql Firewall Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClientIPAddress +Client specified single IP of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, ClientIPAddressViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EndIPAddress +The end IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +Parameter Sets: ClientIPAddressViaIdentity, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the server firewall rule. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: FirewallRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StartIPAddress +The start IP address of the server firewall rule. +Must be IPv4 format. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: ClientIPAddress, UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[ConfigurationName ]`: The name of the server configuration. + - `[DatabaseName ]`: The name of the database. + - `[FirewallRuleName ]`: The name of the server firewall rule. + - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. + - `[LocationName ]`: The name of the location. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. + - `[SecurityAlertPolicyName ]`: The name of the security alert policy. + - `[ServerName ]`: The name of the server. + - `[SubscriptionId ]`: The ID of the target subscription. + - `[VirtualNetworkRuleName ]`: The name of the virtual network rule. + +## RELATED LINKS + diff --git a/src/MySql/help/Update-AzMySqlServer.md b/src/MySql/help/Update-AzMySqlServer.md index 31a878f86612..c430adbd3387 100644 --- a/src/MySql/help/Update-AzMySqlServer.md +++ b/src/MySql/help/Update-AzMySqlServer.md @@ -394,6 +394,7 @@ INPUTOBJECT : Identity Parameter. - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/help/Update-AzMySqlVirtualNetworkRule.md b/src/MySql/help/Update-AzMySqlVirtualNetworkRule.md index 1a0be2260199..72812b741b8d 100644 --- a/src/MySql/help/Update-AzMySqlVirtualNetworkRule.md +++ b/src/MySql/help/Update-AzMySqlVirtualNetworkRule.md @@ -281,6 +281,7 @@ INPUTOBJECT : Identity Parameter - `[DatabaseName ]`: The name of the database. - `[FirewallRuleName ]`: The name of the server firewall rule. - `[Id ]`: Resource identity path + - `[KeyName ]`: The name of the server key. - `[LocationName ]`: The name of the location. - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[SecurityAlertPolicyName ]`: The name of the security alert policy. diff --git a/src/MySql/internal/Get-AzMySqlDatabase.ps1 b/src/MySql/internal/Get-AzMySqlDatabase.ps1 index 22296d221185..55c45268879f 100644 --- a/src/MySql/internal/Get-AzMySqlDatabase.ps1 +++ b/src/MySql/internal/Get-AzMySqlDatabase.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Get-AzMySqlFlexibleServerKey.ps1 b/src/MySql/internal/Get-AzMySqlFlexibleServerKey.ps1 new file mode 100644 index 000000000000..8d00b46bc734 --- /dev/null +++ b/src/MySql/internal/Get-AzMySqlFlexibleServerKey.ps1 @@ -0,0 +1,181 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets a server key. +.Description +Gets a server key. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverkey +#> +function Get-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 b/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 new file mode 100644 index 000000000000..44cfcb276f76 --- /dev/null +++ b/src/MySql/internal/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1 @@ -0,0 +1,137 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get capabilities at specified location in a given subscription. +.Description +Get capabilities at specified location in a given subscription. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverlocationbasedcapability +#> +function Get-AzMySqlFlexibleServerLocationBasedCapability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${LocationName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerLocationBasedCapability_List'; + } + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage.ps1 b/src/MySql/internal/Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage.ps1 new file mode 100644 index 000000000000..c98a4fc3f726 --- /dev/null +++ b/src/MySql/internal/Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage.ps1 @@ -0,0 +1,189 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get virtual network subnet usage for a given vNet resource id. +.Description +Get virtual network subnet usage for a given vNet resource id. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Virtual network subnet usage parameter + [VirtualNetworkArmResourceId ]: Virtual network resource id. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleservervirtualnetworksubnetusage +#> +function Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage])] +[CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${LocationName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter] + # Virtual network subnet usage parameter + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='GetExpanded')] + [Parameter(ParameterSetName='GetViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Virtual network resource id. + ${VirtualNetworkArmResourceId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get'; + GetExpanded = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity'; + GetViaIdentityExpanded = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded'; + } + if (('Get', 'GetExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Get-AzMySqlOperation.ps1 b/src/MySql/internal/Get-AzMySqlOperation.ps1 index 9db1daad2717..028f89340a3f 100644 --- a/src/MySql/internal/Get-AzMySqlOperation.ps1 +++ b/src/MySql/internal/Get-AzMySqlOperation.ps1 @@ -29,11 +29,13 @@ PS C:\> {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated .Link https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqloperation #> function Get-AzMySqlOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -93,6 +95,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.MySql.private\Get-AzMySqlOperation_List'; + List1 = 'Az.MySql.private\Get-AzMySqlOperation_List1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} diff --git a/src/MySql/internal/Get-AzMySqlServerAdministrator.ps1 b/src/MySql/internal/Get-AzMySqlServerAdministrator.ps1 index 74f5a87976be..cd86d35ba00b 100644 --- a/src/MySql/internal/Get-AzMySqlServerAdministrator.ps1 +++ b/src/MySql/internal/Get-AzMySqlServerAdministrator.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Get-AzMySqlServerSecurityAlertPolicy.ps1 b/src/MySql/internal/Get-AzMySqlServerSecurityAlertPolicy.ps1 index 9ec4d77a8350..d9428511cc72 100644 --- a/src/MySql/internal/Get-AzMySqlServerSecurityAlertPolicy.ps1 +++ b/src/MySql/internal/Get-AzMySqlServerSecurityAlertPolicy.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlConfiguration.ps1 b/src/MySql/internal/New-AzMySqlConfiguration.ps1 index 93a403844e29..a7496920fb8a 100644 --- a/src/MySql/internal/New-AzMySqlConfiguration.ps1 +++ b/src/MySql/internal/New-AzMySqlConfiguration.ps1 @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlDatabase.ps1 b/src/MySql/internal/New-AzMySqlDatabase.ps1 index bf8dc3f686d1..5743249c9cc9 100644 --- a/src/MySql/internal/New-AzMySqlDatabase.ps1 +++ b/src/MySql/internal/New-AzMySqlDatabase.ps1 @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlFirewallRule.ps1 b/src/MySql/internal/New-AzMySqlFirewallRule.ps1 index 644f4e427d60..97a23d1ceac9 100644 --- a/src/MySql/internal/New-AzMySqlFirewallRule.ps1 +++ b/src/MySql/internal/New-AzMySqlFirewallRule.ps1 @@ -31,7 +31,7 @@ Name StartIPAddress EndIPAddress ---- -------------- ------------ ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 .Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll Name StartIPAddress EndIPAddress ---- -------------- ------------ @@ -53,6 +53,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 b/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..db588bdf1544 --- /dev/null +++ b/src/MySql/internal/New-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,433 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Description +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserver +#> +function New-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # Represents a server. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The administrator's login name of a server. + # Can only be specified when the server is being created (and is required for creation). + ${AdministratorLogin}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The password of the administrator login (required for server creation). + ${AdministratorLoginPassword}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # availability Zone information of the server. + ${AvailabilityZone}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode] + # The mode to create a new MySQL server. + ${CreateMode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # delegated subnet arm resource id. + ${DelegatedSubnetArgumentSubnetArmResourceId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType] + # The identity type. + ${IdentityType}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum] + # Status showing whether the server enabled infrastructure encryption. + ${InfrastructureEncryption}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # indicates whether custom window is enabled or disabled + ${MaintenanceWindowCustomWindow}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # day of week for maintenance window + ${MaintenanceWindowDayOfWeek}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start hour for maintenance window + ${MaintenanceWindowStartHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start minute for maintenance window + ${MaintenanceWindowStartMinute}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${PropertiesTag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The replication role. + ${ReplicationRole}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + # Restore point creation time (ISO8601 format), specifying the time to restore from. + ${RestorePointInTime}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g. + # Standard_D32s_v3. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # GeneralPurpose. + ${SkuTier}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The source MySQL server id. + ${SourceServerId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + ${StorageProfileBackupRetentionDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageProfileStorageAutogrow}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Storage IOPS for a server. + ${StorageProfileStorageIop}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageProfileStorageMb}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServer_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/New-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/internal/New-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..127d45bbffca --- /dev/null +++ b/src/MySql/internal/New-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,201 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test + +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverdatabase +#> +function New-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_Create'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateViaIdentity'; + } + if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/New-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/internal/New-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..c9e7f84f3817 --- /dev/null +++ b/src/MySql/internal/New-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,237 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverfirewallrule +#> +function New-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/New-AzMySqlFlexibleServerKey.ps1 b/src/MySql/internal/New-AzMySqlFlexibleServerKey.ps1 new file mode 100644 index 000000000000..709d965262d0 --- /dev/null +++ b/src/MySql/internal/New-AzMySqlFlexibleServerKey.ps1 @@ -0,0 +1,216 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a MySQL Server key. +.Description +Creates or updates a MySQL Server key. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : A MySQL Server key. + [Uri ]: The URI of the key. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverkey +#> +function New-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey] + # A MySQL Server key. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The URI of the key. + ${Uri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/New-AzMySqlServer.ps1 b/src/MySql/internal/New-AzMySqlServer.ps1 index 2c681e2272a6..035f753df547 100644 --- a/src/MySql/internal/New-AzMySqlServer.ps1 +++ b/src/MySql/internal/New-AzMySqlServer.ps1 @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -53,13 +54,13 @@ INPUTOBJECT : Identity Parameter PARAMETER : Represents a server to be created. CreateMode : The mode to create a new server. Location : The location the resource resides in. + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/internal/New-AzMySqlServerAdministrator.ps1 b/src/MySql/internal/New-AzMySqlServerAdministrator.ps1 index b68bb5bc5e19..453a76a5521b 100644 --- a/src/MySql/internal/New-AzMySqlServerAdministrator.ps1 +++ b/src/MySql/internal/New-AzMySqlServerAdministrator.ps1 @@ -45,6 +45,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlServerSecurityAlertPolicy.ps1 b/src/MySql/internal/New-AzMySqlServerSecurityAlertPolicy.ps1 index dbde7a634233..6a3adc005798 100644 --- a/src/MySql/internal/New-AzMySqlServerSecurityAlertPolicy.ps1 +++ b/src/MySql/internal/New-AzMySqlServerSecurityAlertPolicy.ps1 @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/New-AzMySqlVirtualNetworkRule.ps1 b/src/MySql/internal/New-AzMySqlVirtualNetworkRule.ps1 index 9612e532e618..197dc4805642 100644 --- a/src/MySql/internal/New-AzMySqlVirtualNetworkRule.ps1 +++ b/src/MySql/internal/New-AzMySqlVirtualNetworkRule.ps1 @@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/ProxyCmdletDefinitions.ps1 b/src/MySql/internal/ProxyCmdletDefinitions.ps1 index bcbe5ed285d5..62a6a0e29a60 100644 --- a/src/MySql/internal/ProxyCmdletDefinitions.ps1 +++ b/src/MySql/internal/ProxyCmdletDefinitions.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -196,9 +197,9 @@ end { <# .Synopsis -List all the performance tiers at specified location in a given subscription. +Gets a server key. .Description -List all the performance tiers at specified location in a given subscription. +Gets a server key. .Example PS C:\> {{ Add code here }} @@ -208,28 +209,70 @@ PS C:\> {{ Add code here }} {{ Add output here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierProperties +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqllocationbasedperformancetier +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverkey #> -function Get-AzMySqlLocationBasedPerformanceTier { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierProperties])] +function Get-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the location. - ${LocationName}, + # The name of the server key. + ${KeyName}, - [Parameter()] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -286,9 +329,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.MySql.private\Get-AzMySqlLocationBasedPerformanceTier_List'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerKey_List'; } - if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -333,9 +378,9 @@ end { <# .Synopsis -List all the log files in a given server. +Get capabilities at specified location in a given subscription. .Description -List all the log files in a given server. +Get capabilities at specified location in a given subscription. .Example PS C:\> {{ Add code here }} @@ -346,26 +391,19 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFile +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqllogfile +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleserverlocationbasedcapability #> -function Get-AzMySqlLogFile { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFile])] +function Get-AzMySqlFlexibleServerLocationBasedCapability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.ICapabilityProperties])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${ServerName}, + # The name of the location. + ${LocationName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] @@ -430,7 +468,7 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.MySql.private\Get-AzMySqlLogFile_List'; + List = 'Az.MySql.private\Get-AzMySqlFlexibleServerLocationBasedCapability_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -477,9 +515,9 @@ end { <# .Synopsis -Lists all of the available REST API operations. +Get virtual network subnet usage for a given vNet resource id. .Description -Lists all of the available REST API operations. +Get virtual network subnet usage for a given vNet resource id. .Example PS C:\> {{ Add code here }} @@ -489,15 +527,77 @@ PS C:\> {{ Add code here }} {{ Add output here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Virtual network subnet usage parameter + [VirtualNetworkArmResourceId ]: Virtual network resource id. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqloperation +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlflexibleservervirtualnetworksubnetusage #> -function Get-AzMySqlOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IDelegatedSubnetUsage])] +[CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the location. + ${LocationName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IVirtualNetworkSubnetUsageParameter] + # Virtual network subnet usage parameter + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='GetExpanded')] + [Parameter(ParameterSetName='GetViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Virtual network resource id. + ${VirtualNetworkArmResourceId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -554,7 +654,13 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.MySql.private\Get-AzMySqlOperation_List'; + Get = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_Get'; + GetExpanded = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetExpanded'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentity'; + GetViaIdentityExpanded = 'Az.MySql.private\Get-AzMySqlFlexibleServerVirtualNetworkSubnetUsage_GetViaIdentityExpanded'; + } + if (('Get', 'GetExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} @@ -598,9 +704,9 @@ end { <# .Synopsis -Gets information about a AAD server administrator. +List all the performance tiers at specified location in a given subscription. .Description -Gets information about a AAD server administrator. +List all the performance tiers at specified location in a given subscription. .Example PS C:\> {{ Add code here }} @@ -610,63 +716,28 @@ PS C:\> {{ Add code here }} {{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ConfigurationName ]: The name of the server configuration. - [DatabaseName ]: The name of the database. - [FirewallRuleName ]: The name of the server firewall rule. - [Id ]: Resource identity path - [LocationName ]: The name of the location. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SecurityAlertPolicyName ]: The name of the security alert policy. - [ServerName ]: The name of the server. - [SubscriptionId ]: The ID of the target subscription. - [VirtualNetworkRuleName ]: The name of the virtual network rule. +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierProperties .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserveradministrator +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqllocationbasedperformancetier #> -function Get-AzMySqlServerAdministrator { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function Get-AzMySqlLocationBasedPerformanceTier { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IPerformanceTierProperties])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. - ${ServerName}, + # The name of the location. + ${LocationName}, - [Parameter(ParameterSetName='Get')] - [Parameter(ParameterSetName='List')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -723,11 +794,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.MySql.private\Get-AzMySqlServerAdministrator_Get'; - GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServerAdministrator_GetViaIdentity'; - List = 'Az.MySql.private\Get-AzMySqlServerAdministrator_List'; + List = 'Az.MySql.private\Get-AzMySqlLocationBasedPerformanceTier_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -772,9 +841,9 @@ end { <# .Synopsis -Get a server's security alert policy. +List all the log files in a given server. .Description -Get a server's security alert policy. +List all the log files in a given server. .Example PS C:\> {{ Add code here }} @@ -784,60 +853,35 @@ PS C:\> {{ Add code here }} {{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ConfigurationName ]: The name of the server configuration. - [DatabaseName ]: The name of the database. - [FirewallRuleName ]: The name of the server firewall rule. - [Id ]: Resource identity path - [LocationName ]: The name of the location. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SecurityAlertPolicyName ]: The name of the security alert policy. - [ServerName ]: The name of the server. - [SubscriptionId ]: The ID of the target subscription. - [VirtualNetworkRuleName ]: The name of the virtual network rule. +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFile .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserversecurityalertpolicy +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqllogfile #> -function Get-AzMySqlServerSecurityAlertPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function Get-AzMySqlLogFile { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.ILogFile])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='Get')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -866,12 +910,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -900,10 +938,9 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.MySql.private\Get-AzMySqlServerSecurityAlertPolicy_Get'; - GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServerSecurityAlertPolicy_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlLogFile_List'; } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -948,9 +985,9 @@ end { <# .Synopsis -Check the availability of name for resource +Lists all of the available REST API operations. .Description -Check the availability of name for resource +Lists all of the available REST API operations. .Example PS C:\> {{ Add code here }} @@ -960,77 +997,17 @@ PS C:\> {{ Add code here }} {{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [ConfigurationName ]: The name of the server configuration. - [DatabaseName ]: The name of the database. - [FirewallRuleName ]: The name of the server firewall rule. - [Id ]: Resource identity path - [LocationName ]: The name of the location. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SecurityAlertPolicyName ]: The name of the security alert policy. - [ServerName ]: The name of the server. - [SubscriptionId ]: The ID of the target subscription. - [VirtualNetworkRuleName ]: The name of the virtual network rule. - -NAMEAVAILABILITYREQUEST : Request from client to check resource name availability. - Name : Resource name to verify. - [Type ]: Resource type used for verification. +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/invoke-azmysqlexecutechecknameavailability +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqloperation #> -function Invoke-AzMySqlExecuteCheckNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability])] -[CmdletBinding(DefaultParameterSetName='ExecuteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IOperationListResultAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Execute')] - [Parameter(ParameterSetName='ExecuteExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter(ParameterSetName='Execute', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest] - # Request from client to check resource name availability. - # To construct, see NOTES section for NAMEAVAILABILITYREQUEST properties and create a hash table. - ${NameAvailabilityRequest}, - - [Parameter(ParameterSetName='ExecuteExpanded', Mandatory)] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Resource name to verify. - ${Name}, - - [Parameter(ParameterSetName='ExecuteExpanded')] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Resource type used for verification. - ${Type}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1087,13 +1064,8 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Execute = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_Execute'; - ExecuteExpanded = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteExpanded'; - ExecuteViaIdentity = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentity'; - ExecuteViaIdentityExpanded = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentityExpanded'; - } - if (('Execute', 'ExecuteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + List = 'Az.MySql.private\Get-AzMySqlOperation_List'; + List1 = 'Az.MySql.private\Get-AzMySqlOperation_List1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} @@ -1137,9 +1109,9 @@ end { <# .Synopsis -Updates a configuration of a server. +Gets information about a AAD server administrator. .Description -Updates a configuration of a server. +Gets information about a AAD server administrator. .Example PS C:\> {{ Add code here }} @@ -1149,12 +1121,10 @@ PS C:\> {{ Add code here }} {{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1165,84 +1135,50 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. [ServerName ]: The name of the server. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. - -PARAMETER : Represents a Configuration. - [Source ]: Source of the configuration. - [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlconfiguration +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserveradministrator #> -function New-AzMySqlConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlServerAdministrator { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('ConfigurationName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server configuration. - ${Name}, - - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration] - # Represents a Configuration. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Source of the configuration. - ${Source}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Value of the configuration. - ${Value}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1251,12 +1187,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1277,12 +1207,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -1311,12 +1235,11 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlConfiguration_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlConfiguration_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlConfiguration_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlConfiguration_CreateViaIdentityExpanded'; + Get = 'Az.MySql.private\Get-AzMySqlServerAdministrator_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServerAdministrator_GetViaIdentity'; + List = 'Az.MySql.private\Get-AzMySqlServerAdministrator_List'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1361,9 +1284,9 @@ end { <# .Synopsis -Creates a new database or updates an existing database. +Get a server's security alert policy. .Description -Creates a new database or updates an existing database. +Get a server's security alert policy. .Example PS C:\> {{ Add code here }} @@ -1373,12 +1296,10 @@ PS C:\> {{ Add code here }} {{ Add output here }} -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -1389,84 +1310,47 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. [ServerName ]: The name of the server. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. - -PARAMETER : Represents a Database. - [Charset ]: The charset of the database. - [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqldatabase +https://docs.microsoft.com/en-us/powershell/module/az.mysql/get-azmysqlserversecurityalertpolicy #> -function New-AzMySqlDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzMySqlServerSecurityAlertPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('DatabaseName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the database. - ${Name}, - - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] - # Represents a Database. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The charset of the database. - ${Charset}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The collation of the database. - ${Collation}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1475,12 +1359,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1504,8 +1382,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, + # Returns true when the command succeeds + ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] @@ -1535,12 +1413,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlDatabase_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlDatabase_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlDatabase_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlDatabase_CreateViaIdentityExpanded'; + Get = 'Az.MySql.private\Get-AzMySqlServerSecurityAlertPolicy_Get'; + GetViaIdentity = 'Az.MySql.private\Get-AzMySqlServerSecurityAlertPolicy_GetViaIdentity'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1585,34 +1461,24 @@ end { <# .Synopsis -Creates a new firewall rule or updates an existing firewall rule. +Updates a configuration of a server. .Description -Creates a new firewall rule or updates an existing firewall rule. -.Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 - -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.0 0.0.0.1 +Updates a configuration of a server. .Example -PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 +PS C:\> {{ Add code here }} -Name StartIPAddress EndIPAddress ----- -------------- ------------ -ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +{{ Add output here }} .Example -PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll +PS C:\> {{ Add code here }} -Name StartIPAddress EndIPAddress ----- -------------- ------------ -AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 +{{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration .Notes COMPLEX PARAMETER PROPERTIES @@ -1623,6 +1489,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1630,22 +1497,22 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : Represents a server firewall rule. - EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. - StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. +PARAMETER : Represents a Configuration. + [Source ]: Source of the configuration. + [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlfirewallrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlconfiguration #> -function New-AzMySqlFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +function New-AzMySqlConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('FirewallRuleName')] + [Alias('ConfigurationName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server firewall rule. + # The name of the server configuration. ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] @@ -1682,26 +1549,24 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] - # Represents a server firewall rule. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration] + # Represents a Configuration. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The end IP address of the server firewall rule. - # Must be IPv4 format. - ${EndIPAddress}, + # Source of the configuration. + ${Source}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The start IP address of the server firewall rule. - # Must be IPv4 format. - ${StartIPAddress}, + # Value of the configuration. + ${Value}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1771,10 +1636,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlFirewallRule_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateViaIdentityExpanded'; + Create = 'Az.MySql.private\New-AzMySqlConfiguration_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlConfiguration_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlConfiguration_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlConfiguration_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1821,11 +1686,9 @@ end { <# .Synopsis -Creates or update active directory administrator on an existing server. -The update action will overwrite the existing administrator. +Creates a new database or updates an existing database. .Description -Creates or update active directory administrator on an existing server. -The update action will overwrite the existing administrator. +Creates a new database or updates an existing database. .Example PS C:\> {{ Add code here }} @@ -1836,11 +1699,11 @@ PS C:\> {{ Add code here }} {{ Add output here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -1851,6 +1714,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -1858,17 +1722,24 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PROPERTY : Represents a and external administrator to be created. - Login : The server administrator login account name. - Sid : The server administrator Sid (Secure ID). - TenantId : The server Active Directory Administrator tenant id. +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserveradministrator +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqldatabase #> -function New-AzMySqlServerAdministrator { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] +function New-AzMySqlDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] @@ -1903,31 +1774,24 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource] - # Represents a and external administrator to be created. - # To construct, see NOTES section for PROPERTY properties and create a hash table. - ${Property}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The server administrator login account name. - ${Login}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The server administrator Sid (Secure ID). - ${Sid}, + # The charset of the database. + ${Charset}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The server Active Directory Administrator tenant id. - ${TenantId}, + # The collation of the database. + ${Collation}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1997,10 +1861,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlServerAdministrator_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateViaIdentityExpanded'; + Create = 'Az.MySql.private\New-AzMySqlDatabase_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlDatabase_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlDatabase_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlDatabase_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -2047,24 +1911,34 @@ end { <# .Synopsis -Creates or updates a threat detection policy. +Creates a new firewall rule or updates an existing firewall rule. .Description -Creates or updates a threat detection policy. +Creates a new firewall rule or updates an existing firewall rule. .Example -PS C:\> {{ Add code here }} +PS C:\> New-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 -{{ Add output here }} +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.0 0.0.0.1 .Example -PS C:\> {{ Add code here }} +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 -{{ Add output here }} +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Notes COMPLEX PARAMETER PROPERTIES @@ -2075,6 +1949,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -2082,21 +1957,24 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : A server security alert policy. - State : Specifies the state of the policy, whether it is enabled or disabled. - [DisabledAlert ]: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly - [EmailAccountAdmin ]: Specifies that the alert is sent to the account administrators. - [EmailAddress ]: Specifies an array of e-mail addresses to which the alert is sent. - [RetentionDay ]: Specifies the number of days to keep in the Threat Detection audit logs. - [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. - [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserversecurityalertpolicy +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlfirewallrule #> -function New-AzMySqlServerSecurityAlertPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] +function New-AzMySqlFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] @@ -2131,63 +2009,26 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy] - # A server security alert policy. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String[]] - # Specifies an array of alerts that are disabled. - # Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly - ${DisabledAlert}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Specifies that the alert is sent to the account administrators. - ${EmailAccountAdmin}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String[]] - # Specifies an array of e-mail addresses to which the alert is sent. - ${EmailAddress}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Specifies the number of days to keep in the Threat Detection audit logs. - ${RetentionDay}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState] - # Specifies the state of the policy, whether it is enabled or disabled. - ${State}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # Specifies the identifier key of the Threat Detection audit storage account. - ${StorageAccountAccessKey}, + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # Specifies the blob storage endpoint (e.g. - # https://MyAccount.blob.core.windows.net). - # This blob storage will hold all Threat Detection audit logs. - ${StorageEndpoint}, + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2229,12 +2070,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -2263,10 +2098,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded'; + Create = 'Az.MySql.private\New-AzMySqlFirewallRule_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFirewallRule_CreateViaIdentityExpanded'; } if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -2313,24 +2148,22 @@ end { <# .Synopsis -Creates a new server or updates an existing server. -The update action will overwrite the existing server. +Creates a new database or updates an existing database. .Description -Creates a new server or updates an existing server. -The update action will overwrite the existing server. +Creates a new database or updates an existing database. .Example -PS C:\> New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUser mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 +PS C:\> New-AzMySqlFlexibleServerDatabase -Name databasetest -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ----- -------- ------------------ ------- ----------------------- ------- ------- ------------ -mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled +Name Charset Collation +---- -------- ------------------ +databasetest latin1 latin1_swedish_ci .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreate +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Notes COMPLEX PARAMETER PROPERTIES @@ -2341,6 +2174,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -2348,51 +2182,37 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : Represents a server to be created. - CreateMode : The mode to create a new server. - Location : The location the resource resides in. - [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. - [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. - [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. - [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' - [SkuCapacity ]: The scale up/out capacity, representing server's compute units. - [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. - [SkuSize ]: The size code, to be interpreted by resource as appropriate. - [SkuTier ]: The tier of the particular SKU, e.g. Basic. - [SslEnforcement ]: Enable ssl enforcement or not when connect to server. - [StorageProfileBackupRetentionDay ]: Backup retention days for the server. - [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. - [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. - [StorageProfileStorageMb ]: Max storage allowed for a server. - [Tag ]: Application-specific metadata in the form of key-value pairs. - [(Any) ]: This indicates any property can be added to this object. - [Version ]: Server version. +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserver +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverdatabase #> -function New-AzMySqlServer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('ServerName')] + [Alias('DatabaseName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server. + # The name of the database. ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, + [Parameter(ParameterSetName='Create', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + [Parameter(ParameterSetName='Create')] - [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -2400,163 +2220,19 @@ param( ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreate] - # Represents a server to be created. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode] - # The mode to create a new server. - ${CreateMode}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The location the resource resides in. - ${Location}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType] - # The identity type. - # Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. - ${IdentityType}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption] - # Status showing whether the server enabled infrastructure encryption. - ${InfrastructureEncryption}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum] - # Enforce a minimal Tls version for the server. - ${MinimalTlsVersion}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum] - # Whether or not public network access is allowed for this server. - # Value is optional but if passed in, must be 'Enabled' or 'Disabled' - ${PublicNetworkAccess}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # The scale up/out capacity, representing server's compute units. - ${SkuCapacity}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The family of hardware. - ${SkuFamily}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The name of the sku, typically, tier + family + cores, e.g. - # B_Gen4_1, GP_Gen5_8. - ${SkuName}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The size code, to be interpreted by resource as appropriate. - ${SkuSize}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] - # The tier of the particular SKU, e.g. - # Basic. - ${SkuTier}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] - # Enable ssl enforcement or not when connect to server. - ${SslEnforcement}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Backup retention days for the server. - # Day count is between 7 and 35. - ${StorageProfileBackupRetentionDay}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup] - # Enable Geo-redundant or not for server backup. - ${StorageProfileGeoRedundantBackup}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] - # Enable Storage Auto Grow. - ${StorageProfileStorageAutogrow}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Max storage allowed for a server. - ${StorageProfileStorageMb}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] - [System.Collections.Hashtable] - # Application-specific metadata in the form of key-value pairs. - ${Tag}, - - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] - # Server version. - ${Version}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2625,12 +2301,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlServer_Create'; - CreateExpanded = 'Az.MySql.private\New-AzMySqlServer_CreateExpanded'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServer_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServer_CreateViaIdentityExpanded'; + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_Create'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerDatabase_CreateViaIdentity'; } - if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2675,23 +2349,34 @@ end { <# .Synopsis -Creates or updates an existing virtual network rule. +Creates a new firewall rule or updates an existing firewall rule. .Description -Creates or updates an existing virtual network rule. +Creates a new firewall rule or updates an existing firewall rule. .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" -PS C:\> New-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -SubnetId $ID +PS C:\> New-AzMySqlFlexibleServerFirewallRule -Name firewallrule-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 -Name Type ----- ---- -vnet Microsoft.DBforMySQL/servers/virtualNetworkRules +Name StartIPAddress EndIPAddress +----------------- -------------- ------------ +firewallrule-test 0.0.0.0 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -ClientIPAddress 0.0.0.1 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +ClientIPAddress_2020-08-11_18-19-27 0.0.0.1 0.0.0.1 +.Example +PS C:\> New-AzMySqlFlexibleServerFirewallRule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -AllowAll + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Notes COMPLEX PARAMETER PROPERTIES @@ -2702,6 +2387,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -2709,24 +2395,26 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : A virtual network rule. - VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. - [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlvirtualnetworkrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverfirewallrule #> -function New-AzMySqlVirtualNetworkRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] -[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create', Mandatory)] - [Alias('VirtualNetworkRuleName')] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the virtual network rule. + # The name of the server firewall rule. ${Name}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. @@ -2734,45 +2422,3366 @@ param( ${ResourceGroupName}, [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerFirewallRule_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a MySQL Server key. +.Description +Creates or updates a MySQL Server key. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : A MySQL Server key. + [Uri ]: The URI of the key. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserverkey +#> +function New-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey] + # A MySQL Server key. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The URI of the key. + ${Uri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServerKey_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Description +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-Location eastus -AdministratorUserName mysqltest -AdministratorLoginPassword $password -Sku Standard_B1ms -SkuTier Burstable -Version 12 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 10240 Standard_B1ms Burstable +.Example +PS C:\> New-AzMySqlFlexibleServer -Name mysql-test -ResourceGroupName PowershellMySqlTest \ +-AdministratorUserName mysqltest -AdministratorLoginPassword $password + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ------------ ------------- +mysql-test West US 2 mysqltest 5.7 131072 Standard_B1ms Burstable + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server. + Location : The geo-location where the resource lives + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [Tag ]: Resource tags. + [(Any) ]: This indicates any property can be added to this object. + [AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + [AdministratorLoginPassword ]: The password of the administrator login (required for server creation). + [AvailabilityZone ]: availability Zone information of the server. + [CreateMode ]: The mode to create a new MySQL server. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [IdentityType ]: The identity type. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [PropertiesTag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [ReplicationRole ]: The replication role. + [RestorePointInTime ]: Restore point creation time (ISO8601 format), specifying the time to restore from. + [SourceServerId ]: The source MySQL server id. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlflexibleserver +#> +function New-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated] + # Represents a server. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The administrator's login name of a server. + # Can only be specified when the server is being created (and is required for creation). + ${AdministratorLogin}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The password of the administrator login (required for server creation). + ${AdministratorLoginPassword}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # availability Zone information of the server. + ${AvailabilityZone}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode] + # The mode to create a new MySQL server. + ${CreateMode}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # delegated subnet arm resource id. + ${DelegatedSubnetArgumentSubnetArmResourceId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ResourceIdentityType] + # The identity type. + ${IdentityType}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryptionEnum] + # Status showing whether the server enabled infrastructure encryption. + ${InfrastructureEncryption}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # indicates whether custom window is enabled or disabled + ${MaintenanceWindowCustomWindow}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # day of week for maintenance window + ${MaintenanceWindowDayOfWeek}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start hour for maintenance window + ${MaintenanceWindowStartHour}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start minute for maintenance window + ${MaintenanceWindowStartMinute}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerPropertiesTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${PropertiesTag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The replication role. + ${ReplicationRole}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.DateTime] + # Restore point creation time (ISO8601 format), specifying the time to restore from. + ${RestorePointInTime}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g. + # Standard_D32s_v3. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # GeneralPurpose. + ${SkuTier}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The source MySQL server id. + ${SourceServerId}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + ${StorageProfileBackupRetentionDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageProfileStorageAutogrow}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Storage IOPS for a server. + ${StorageProfileStorageIop}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageProfileStorageMb}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api10.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlFlexibleServer_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlFlexibleServer_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or update active directory administrator on an existing server. +The update action will overwrite the existing administrator. +.Description +Creates or update active directory administrator on an existing server. +The update action will overwrite the existing administrator. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PROPERTY : Represents a and external administrator to be created. + Login : The server administrator login account name. + Sid : The server administrator Sid (Secure ID). + TenantId : The server Active Directory Administrator tenant id. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserveradministrator +#> +function New-AzMySqlServerAdministrator { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource] + # Represents a and external administrator to be created. + # To construct, see NOTES section for PROPERTY properties and create a hash table. + ${Property}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server administrator login account name. + ${Login}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server administrator Sid (Secure ID). + ${Sid}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server Active Directory Administrator tenant id. + ${TenantId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlServerAdministrator_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServerAdministrator_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a threat detection policy. +.Description +Creates or updates a threat detection policy. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : A server security alert policy. + State : Specifies the state of the policy, whether it is enabled or disabled. + [DisabledAlert ]: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly + [EmailAccountAdmin ]: Specifies that the alert is sent to the account administrators. + [EmailAddress ]: Specifies an array of e-mail addresses to which the alert is sent. + [RetentionDay ]: Specifies the number of days to keep in the Threat Detection audit logs. + [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. + [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserversecurityalertpolicy +#> +function New-AzMySqlServerSecurityAlertPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy] + # A server security alert policy. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String[]] + # Specifies an array of alerts that are disabled. + # Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly + ${DisabledAlert}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Specifies that the alert is sent to the account administrators. + ${EmailAccountAdmin}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String[]] + # Specifies an array of e-mail addresses to which the alert is sent. + ${EmailAddress}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Specifies the number of days to keep in the Threat Detection audit logs. + ${RetentionDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState] + # Specifies the state of the policy, whether it is enabled or disabled. + ${State}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Specifies the identifier key of the Threat Detection audit storage account. + ${StorageAccountAccessKey}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Specifies the blob storage endpoint (e.g. + # https://MyAccount.blob.core.windows.net). + # This blob storage will hold all Threat Detection audit logs. + ${StorageEndpoint}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServerSecurityAlertPolicy_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Description +Creates a new server or updates an existing server. +The update action will overwrite the existing server. +.Example +PS C:\> New-AzMySqlServer -Name mysql-test -ResourceGroupName PowershellMySqlTest -Location eastus -AdministratorUser mysql_test -AdministratorLoginPassword $password -Sku GP_Gen5_4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement +---- -------- ------------------ ------- ----------------------- ------- ------- ------------ +mysql-test eastus mysql_test 5.7 5120 GP_Gen5_4 GeneralPurpose Enabled + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreate +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server to be created. + CreateMode : The mode to create a new server. + Location : The location the resource resides in. + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. + [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. + [InfrastructureEncryption ]: Status showing whether the server enabled infrastructure encryption. + [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. + [PublicNetworkAccess ]: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' + [SkuCapacity ]: The scale up/out capacity, representing server's compute units. + [SkuFamily ]: The family of hardware. + [SkuSize ]: The size code, to be interpreted by resource as appropriate. + [SkuTier ]: The tier of the particular SKU, e.g. Basic. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileGeoRedundantBackup ]: Enable Geo-redundant or not for server backup. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Tag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. + [Version ]: Server version. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlserver +#> +function New-AzMySqlServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create')] + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreate] + # Represents a server to be created. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.CreateMode] + # The mode to create a new server. + ${CreateMode}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The location the resource resides in. + ${Location}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.IdentityType] + # The identity type. + # Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. + ${IdentityType}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.InfrastructureEncryption] + # Status showing whether the server enabled infrastructure encryption. + ${InfrastructureEncryption}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.MinimalTlsVersionEnum] + # Enforce a minimal Tls version for the server. + ${MinimalTlsVersion}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.PublicNetworkAccessEnum] + # Whether or not public network access is allowed for this server. + # Value is optional but if passed in, must be 'Enabled' or 'Disabled' + ${PublicNetworkAccess}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # The scale up/out capacity, representing server's compute units. + ${SkuCapacity}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The family of hardware. + ${SkuFamily}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, typically, tier + family + cores, e.g. + # B_Gen4_1, GP_Gen5_8. + ${SkuName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The size code, to be interpreted by resource as appropriate. + ${SkuSize}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # Basic. + ${SkuTier}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + # Day count is between 7 and 35. + ${StorageProfileBackupRetentionDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.GeoRedundantBackup] + # Enable Geo-redundant or not for server backup. + ${StorageProfileGeoRedundantBackup}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageProfileStorageAutogrow}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageProfileStorageMb}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerForCreateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerVersion] + # Server version. + ${Version}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlServer_Create'; + CreateExpanded = 'Az.MySql.private\New-AzMySqlServer_CreateExpanded'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlServer_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlServer_CreateViaIdentityExpanded'; + } + if (('Create', 'CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates an existing virtual network rule. +.Description +Creates or updates an existing virtual network rule. +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" +PS C:\> New-AzMySqlVirtualNetworkRule -Name vnet -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -SubnetId $ID + +Name Type +---- ---- +vnet Microsoft.DBforMySQL/servers/virtualNetworkRules + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : A virtual network rule. + VirtualNetworkSubnetId : The ARM resource id of the virtual network subnet. + [IgnoreMissingVnetServiceEndpoint ]: Create firewall rule before the virtual network has vnet service endpoint enabled. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/new-azmysqlvirtualnetworkrule +#> +function New-AzMySqlVirtualNetworkRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule])] +[CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Create', Mandatory)] + [Alias('VirtualNetworkRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the virtual network rule. + ${Name}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Create', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Create')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule] + # A virtual network rule. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The ARM resource id of the virtual network subnet. + ${SubnetId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Create firewall rule before the virtual network has vnet service endpoint enabled. + ${IgnoreMissingVnetServiceEndpoint}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Create = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_Create'; + CreateViaIdentity = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateViaIdentity'; + CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateViaIdentityExpanded'; + } + if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a database. +.Description +Deletes a database. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqldatabase +#> +function Remove-AzMySqlDatabase { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlDatabase_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlDatabase_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes the MySQL Server key with the given name. +.Description +Deletes the MySQL Server key with the given name. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverkey +#> +function Remove-AzMySqlFlexibleServerKey { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerKey_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerKey_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes server active directory administrator. +.Description +Deletes server active directory administrator. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlserveradministrator +#> +function Remove-AzMySqlServerAdministrator { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlServerAdministrator_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlServerAdministrator_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqldatabase +#> +function Set-AzMySqlDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The charset of the database. + ${Charset}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The collation of the database. + ${Collation}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Set-AzMySqlDatabase_Update'; + UpdateExpanded = 'Az.MySql.private\Set-AzMySqlDatabase_UpdateExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a MySQL Server key. +.Description +Creates or updates a MySQL Server key. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +PARAMETER : A MySQL Server key. + [Uri ]: The URI of the key. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlflexibleserverkey +#> +function Set-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey] + # A MySQL Server key. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The URI of the key. + ${Uri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Set-AzMySqlFlexibleServerKey_Update'; + UpdateExpanded = 'Az.MySql.private\Set-AzMySqlFlexibleServerKey_UpdateExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or update active directory administrator on an existing server. +The update action will overwrite the existing administrator. +.Description +Creates or update active directory administrator on an existing server. +The update action will overwrite the existing administrator. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +PROPERTY : Represents a and external administrator to be created. + Login : The server administrator login account name. + Sid : The server administrator Sid (Secure ID). + TenantId : The server Active Directory Administrator tenant id. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlserveradministrator +#> +function Set-AzMySqlServerAdministrator { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource] + # Represents a and external administrator to be created. + # To construct, see NOTES section for PROPERTY properties and create a hash table. + ${Property}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server administrator login account name. + ${Login}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server administrator Sid (Secure ID). + ${Sid}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The server Active Directory Administrator tenant id. + ${TenantId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Set-AzMySqlServerAdministrator_Update'; + UpdateExpanded = 'Az.MySql.private\Set-AzMySqlServerAdministrator_UpdateExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a threat detection policy. +.Description +Creates or updates a threat detection policy. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +PARAMETER : A server security alert policy. + State : Specifies the state of the policy, whether it is enabled or disabled. + [DisabledAlert ]: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly + [EmailAccountAdmin ]: Specifies that the alert is sent to the account administrators. + [EmailAddress ]: Specifies an array of e-mail addresses to which the alert is sent. + [RetentionDay ]: Specifies the number of days to keep in the Threat Detection audit logs. + [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. + [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlserversecurityalertpolicy +#> +function Set-AzMySqlServerSecurityAlertPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy] + # A server security alert policy. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String[]] + # Specifies an array of alerts that are disabled. + # Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly + ${DisabledAlert}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Specifies that the alert is sent to the account administrators. + ${EmailAccountAdmin}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String[]] + # Specifies an array of e-mail addresses to which the alert is sent. + ${EmailAddress}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Specifies the number of days to keep in the Threat Detection audit logs. + ${RetentionDay}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState] + # Specifies the state of the policy, whether it is enabled or disabled. + ${State}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Specifies the identifier key of the Threat Detection audit storage account. + ${StorageAccountAccessKey}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Specifies the blob storage endpoint (e.g. + # https://MyAccount.blob.core.windows.net). + # This blob storage will hold all Threat Detection audit logs. + ${StorageEndpoint}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Set-AzMySqlServerSecurityAlertPolicy_Update'; + UpdateExpanded = 'Az.MySql.private\Set-AzMySqlServerSecurityAlertPolicy_UpdateExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Check the availability of name for server +.Description +Check the availability of name for server +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +NAMEAVAILABILITYREQUEST : Request from client to check resource name availability. + Name : Resource name to verify. + [Type ]: Resource type used for verification. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/test-azmysqlflexibleservernameavailability +#> +function Test-AzMySqlFlexibleServerNameAvailability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability])] +[CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Test')] + [Parameter(ParameterSetName='TestExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='Test', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IVirtualNetworkRule] - # A virtual network rule. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest] + # Request from client to check resource name availability. + # To construct, see NOTES section for NAMEAVAILABILITYREQUEST properties and create a hash table. + ${NameAvailabilityRequest}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='TestExpanded', Mandatory)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The ARM resource id of the virtual network subnet. - ${SubnetId}, + # Resource name to verify. + ${Name}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter(ParameterSetName='TestExpanded')] + [Parameter(ParameterSetName='TestViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Create firewall rule before the virtual network has vnet service endpoint enabled. - ${IgnoreMissingVnetServiceEndpoint}, + [System.String] + # Resource type used for verification. + ${Type}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2782,12 +5791,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2808,18 +5811,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -2848,11 +5839,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Create = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_Create'; - CreateViaIdentity = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateViaIdentity'; - CreateViaIdentityExpanded = 'Az.MySql.private\New-AzMySqlVirtualNetworkRule_CreateViaIdentityExpanded'; + Test = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_Test'; + TestExpanded = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestExpanded'; + TestViaIdentity = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestViaIdentity'; + TestViaIdentityExpanded = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded'; } - if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Test', 'TestExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -2897,9 +5889,9 @@ end { <# .Synopsis -Deletes a database. +Check the availability of name for resource .Description -Deletes a database. +Check the availability of name for resource .Example PS C:\> {{ Add code here }} @@ -2909,10 +5901,12 @@ PS C:\> {{ Add code here }} {{ Add output here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability .Notes COMPLEX PARAMETER PROPERTIES @@ -2923,53 +5917,62 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. [ServerName ]: The name of the server. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. + +NAMEAVAILABILITYREQUEST : Request from client to check resource name availability. + Name : Resource name to verify. + [Type ]: Resource type used for verification. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqldatabase +https://docs.microsoft.com/en-us/powershell/module/az.mysql/test-azmysqlnameavailability #> -function Remove-AzMySqlDatabase { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Test-AzMySqlNameAvailability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability])] +[CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DatabaseName')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the database. - ${Name}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${ServerName}, - - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Test')] + [Parameter(ParameterSetName='TestExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='Test', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest] + # Request from client to check resource name availability. + # To construct, see NOTES section for NAMEAVAILABILITYREQUEST properties and create a hash table. + ${NameAvailabilityRequest}, + + [Parameter(ParameterSetName='TestExpanded', Mandatory)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Resource name to verify. + ${Name}, + + [Parameter(ParameterSetName='TestExpanded')] + [Parameter(ParameterSetName='TestViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Resource type used for verification. + ${Type}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2978,12 +5981,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3004,18 +6001,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -3044,10 +6029,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.MySql.private\Remove-AzMySqlDatabase_Delete'; - DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlDatabase_DeleteViaIdentity'; + Test = 'Az.MySql.private\Test-AzMySqlNameAvailability_Test'; + TestExpanded = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestExpanded'; + TestViaIdentity = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestViaIdentity'; + TestViaIdentityExpanded = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Test', 'TestExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3092,22 +6079,29 @@ end { <# .Synopsis -Deletes server active directory administrator. +Updates a configuration of a server. .Description -Deletes server active directory administrator. +Updates a configuration of a server. .Example -PS C:\> {{ Add code here }} +PS C:\> Update-AzMySqlConfiguration -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 -{{ Add output here }} +Name Value +---- ----- +net_retry_count 15 .Example -PS C:\> {{ Add code here }} +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlConfiguration -InputObject $ID -Value 150 -{{ Add output here }} +Name Value +---- ----- +wait_timeout 150 +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration .Notes COMPLEX PARAMETER PROPERTIES @@ -3118,46 +6112,85 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. [ServerName ]: The name of the server. [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Configuration. + [Source ]: Source of the configuration. + [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlserveradministrator +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlconfiguration #> -function Remove-AzMySqlServerAdministrator { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMySqlConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration] + # Represents a Configuration. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Source of the configuration. + ${Source}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Value of the configuration. + ${Value}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3198,12 +6231,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -3232,10 +6259,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.MySql.private\Remove-AzMySqlServerAdministrator_Delete'; - DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlServerAdministrator_DeleteViaIdentity'; + Update = 'Az.MySql.private\Update-AzMySqlConfiguration_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3280,82 +6309,126 @@ end { <# .Synopsis -Creates a new database or updates an existing database. +Creates a new firewall rule or updates an existing firewall rule. .Description -Creates a new database or updates an existing database. +Creates a new firewall rule or updates an existing firewall rule. .Example -PS C:\> {{ Add code here }} +PS C:\> Update-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 -{{ Add output here }} +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 .Example -PS C:\> {{ Add code here }} +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 -{{ Add output here }} +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.2 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PARAMETER : Represents a Database. - [Charset ]: The charset of the database. - [Collation ]: The collation of the database. +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqldatabase +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlfirewallrule #> -function Set-AzMySqlDatabase { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +function Update-AzMySqlFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('DatabaseName')] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the database. + # The name of the server firewall rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter()] + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] - # Represents a Database. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The charset of the database. - ${Charset}, + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The collation of the database. - ${Collation}, + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3425,8 +6498,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.MySql.private\Set-AzMySqlDatabase_Update'; - UpdateExpanded = 'Az.MySql.private\Set-AzMySqlDatabase_UpdateExpanded'; + Update = 'Az.MySql.private\Update-AzMySqlFirewallRule_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -3473,84 +6548,117 @@ end { <# .Synopsis -Creates or update active directory administrator on an existing server. -The update action will overwrite the existing administrator. +Updates a configuration of a server. .Description -Creates or update active directory administrator on an existing server. -The update action will overwrite the existing administrator. +Updates a configuration of a server. .Example -PS C:\> {{ Add code here }} +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 -{{ Add output here }} +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer .Example -PS C:\> {{ Add code here }} +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 -{{ Add output here }} +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PROPERTY : Represents a and external administrator to be created. - Login : The server administrator login account name. - Sid : The server administrator Sid (Secure ID). - TenantId : The server Active Directory Administrator tenant id. +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Configuration. + [Source ]: Source of the configuration. + [Value ]: Value of the configuration. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlserveradministrator +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverconfiguration #> -function Set-AzMySqlServerAdministrator { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource])] +function Update-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter()] + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerAdministratorResource] - # Represents a and external administrator to be created. - # To construct, see NOTES section for PROPERTY properties and create a hash table. - ${Property}, + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # The server administrator login account name. - ${Login}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated] + # Represents a Configuration. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The server administrator Sid (Secure ID). - ${Sid}, + # Source of the configuration. + ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The server Active Directory Administrator tenant id. - ${TenantId}, + # Value of the configuration. + ${Value}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3620,8 +6728,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.MySql.private\Set-AzMySqlServerAdministrator_Update'; - UpdateExpanded = 'Az.MySql.private\Set-AzMySqlServerAdministrator_UpdateExpanded'; + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -3668,114 +6778,97 @@ end { <# .Synopsis -Creates or updates a threat detection policy. +Creates a new database or updates an existing database. .Description -Creates or updates a threat detection policy. +Creates a new database or updates an existing database. .Example -PS C:\> {{ Add code here }} +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 -{{ Add output here }} +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci .Example -PS C:\> {{ Add code here }} +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 -{{ Add output here }} +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PARAMETER : A server security alert policy. - State : Specifies the state of the policy, whether it is enabled or disabled. - [DisabledAlert ]: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly - [EmailAccountAdmin ]: Specifies that the alert is sent to the account administrators. - [EmailAddress ]: Specifies an array of e-mail addresses to which the alert is sent. - [RetentionDay ]: Specifies the number of days to keep in the Threat Detection audit logs. - [StorageAccountAccessKey ]: Specifies the identifier key of the Threat Detection audit storage account. - [StorageEndpoint ]: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlserversecurityalertpolicy +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverdatabase #> -function Set-AzMySqlServerSecurityAlertPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='UpdateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Update', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] # The name of the server. ${ServerName}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServerSecurityAlertPolicy] - # A server security alert policy. - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String[]] - # Specifies an array of alerts that are disabled. - # Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly - ${DisabledAlert}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Management.Automation.SwitchParameter] - # Specifies that the alert is sent to the account administrators. - ${EmailAccountAdmin}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String[]] - # Specifies an array of e-mail addresses to which the alert is sent. - ${EmailAddress}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.Int32] - # Specifies the number of days to keep in the Threat Detection audit logs. - ${RetentionDay}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState])] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.ServerSecurityAlertPolicyState] - # Specifies the state of the policy, whether it is enabled or disabled. - ${State}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Parameter(ParameterSetName='Update')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Specifies the identifier key of the Threat Detection audit storage account. - ${StorageAccountAccessKey}, + # The ID of the target subscription. + ${SubscriptionId}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [System.String] - # Specifies the blob storage endpoint (e.g. - # https://MyAccount.blob.core.windows.net). - # This blob storage will hold all Threat Detection audit logs. - ${StorageEndpoint}, + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3817,12 +6910,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] [System.Uri] @@ -3851,10 +6938,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.MySql.private\Set-AzMySqlServerSecurityAlertPolicy_Update'; - UpdateExpanded = 'Az.MySql.private\Set-AzMySqlServerSecurityAlertPolicy_UpdateExpanded'; + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_Update'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentity'; } - if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Update') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3899,29 +6986,29 @@ end { <# .Synopsis -Updates a configuration of a server. +Creates a new firewall rule or updates an existing firewall rule. .Description -Updates a configuration of a server. +Creates a new firewall rule or updates an existing firewall rule. .Example -PS C:\> Update-AzMySqlConfiguration -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 -Name Value ----- ----- -net_retry_count 15 +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/configurations/wait_timeout" -PS C:\> Update-AzMySqlConfiguration -InputObject $ID -Value 150 +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 -Name Value ----- ----- -wait_timeout 150 +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule .Notes COMPLEX PARAMETER PROPERTIES @@ -3932,6 +7019,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -3939,22 +7027,22 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : Represents a Configuration. - [Source ]: Source of the configuration. - [Value ]: Value of the configuration. +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlconfiguration +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverfirewallrule #> -function Update-AzMySqlConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration])] +function Update-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('ConfigurationName')] + [Alias('FirewallRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server configuration. + # The name of the server firewall rule. ${Name}, [Parameter(ParameterSetName='Update', Mandatory)] @@ -3991,24 +7079,26 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IConfiguration] - # Represents a Configuration. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # Source of the configuration. - ${Source}, + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # Value of the configuration. - ${Value}, + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4078,10 +7168,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.MySql.private\Update-AzMySqlConfiguration_Update'; - UpdateExpanded = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateExpanded'; - UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlConfiguration_UpdateViaIdentityExpanded'; + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -4128,36 +7218,30 @@ end { <# .Synopsis -Creates a new firewall rule or updates an existing firewall rule. +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. .Description -Creates a new firewall rule or updates an existing firewall rule. -.Example -PS C:\> Update-AzMySqlFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 - -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.2 0.0.0.3 +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -PS C:\> Update-AzMySqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.2 0.0.0.3 +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose .Example -PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test/firewallRules/rule" -PS C:\> Update-AzMySqlFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 -Name StartIPAddress EndIPAddress ----- -------------- ------------ -rule 0.0.0.2 0.0.0.2 +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose .Inputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate .Inputs Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated .Notes COMPLEX PARAMETER PROPERTIES @@ -4168,6 +7252,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -4175,22 +7260,37 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. [VirtualNetworkRuleName ]: The name of the virtual network rule. -PARAMETER : Represents a server firewall rule. - EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. - StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. +PARAMETER : Parameters allowed to update for a server. + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [AdministratorLoginPassword ]: The password of the administrator login. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [ReplicationRole ]: The replication role of the server. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Tag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlfirewallrule +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserver #> -function Update-AzMySqlFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +function Update-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('FirewallRuleName')] + [Alias('ServerName')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [System.String] - # The name of the server firewall rule. + # The name of the server. ${Name}, [Parameter(ParameterSetName='Update', Mandatory)] @@ -4201,13 +7301,6 @@ param( # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Update', Mandatory)] - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] - [System.String] - # The name of the server. - ${ServerName}, - [Parameter(ParameterSetName='Update')] [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] @@ -4227,26 +7320,129 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] - # Represents a server firewall rule. + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate] + # Parameters allowed to update for a server. # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The end IP address of the server firewall rule. - # Must be IPv4 format. - ${EndIPAddress}, + # The password of the administrator login. + ${AdministratorLoginPassword}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] - # The start IP address of the server firewall rule. - # Must be IPv4 format. - ${StartIPAddress}, + # delegated subnet arm resource id. + ${DelegatedSubnetArgumentSubnetArmResourceId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # indicates whether custom window is enabled or disabled + ${MaintenanceWindowCustomWindow}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # day of week for maintenance window + ${MaintenanceWindowDayOfWeek}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start hour for maintenance window + ${MaintenanceWindowStartHour}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start minute for maintenance window + ${MaintenanceWindowStartMinute}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The replication role of the server. + ${ReplicationRole}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g. + # Standard_D32s_v3. + ${SkuName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # GeneralPurpose. + ${SkuTier}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + ${StorageProfileBackupRetentionDay}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageProfileStorageAutogrow}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Storage IOPS for a server. + ${StorageProfileStorageIop}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageProfileStorageMb}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4316,10 +7512,10 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Update = 'Az.MySql.private\Update-AzMySqlFirewallRule_Update'; - UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateExpanded'; - UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateViaIdentity'; - UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFirewallRule_UpdateViaIdentityExpanded'; + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServer_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateViaIdentityExpanded'; } if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -4400,6 +7596,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -4408,6 +7605,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Parameters allowed to update for a server. + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [AdministratorLoginPassword ]: The password of the administrator login. [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. @@ -4415,7 +7613,6 @@ PARAMETER : Parameters allowed to update for a server. [ReplicationRole ]: The replication role of the server. [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. @@ -4759,6 +7956,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Remove-AzMySqlDatabase.ps1 b/src/MySql/internal/Remove-AzMySqlDatabase.ps1 index c1430fc938f7..821722a86f6f 100644 --- a/src/MySql/internal/Remove-AzMySqlDatabase.ps1 +++ b/src/MySql/internal/Remove-AzMySqlDatabase.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Remove-AzMySqlFlexibleServerKey.ps1 b/src/MySql/internal/Remove-AzMySqlFlexibleServerKey.ps1 new file mode 100644 index 000000000000..94e4a61e3c53 --- /dev/null +++ b/src/MySql/internal/Remove-AzMySqlFlexibleServerKey.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes the MySQL Server key with the given name. +.Description +Deletes the MySQL Server key with the given name. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/remove-azmysqlflexibleserverkey +#> +function Remove-AzMySqlFlexibleServerKey { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.MySql.private\Remove-AzMySqlFlexibleServerKey_Delete'; + DeleteViaIdentity = 'Az.MySql.private\Remove-AzMySqlFlexibleServerKey_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Remove-AzMySqlServerAdministrator.ps1 b/src/MySql/internal/Remove-AzMySqlServerAdministrator.ps1 index cc91e55d378c..4800d98d56b9 100644 --- a/src/MySql/internal/Remove-AzMySqlServerAdministrator.ps1 +++ b/src/MySql/internal/Remove-AzMySqlServerAdministrator.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Set-AzMySqlFlexibleServerKey.ps1 b/src/MySql/internal/Set-AzMySqlFlexibleServerKey.ps1 new file mode 100644 index 000000000000..f330eae9a64b --- /dev/null +++ b/src/MySql/internal/Set-AzMySqlFlexibleServerKey.ps1 @@ -0,0 +1,185 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a MySQL Server key. +.Description +Creates or updates a MySQL Server key. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +PARAMETER : A MySQL Server key. + [Uri ]: The URI of the key. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/set-azmysqlflexibleserverkey +#> +function Set-AzMySqlFlexibleServerKey { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server key. + ${KeyName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerKey] + # A MySQL Server key. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The URI of the key. + ${Uri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Set-AzMySqlFlexibleServerKey_Update'; + UpdateExpanded = 'Az.MySql.private\Set-AzMySqlFlexibleServerKey_UpdateExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Test-AzMySqlFlexibleServerNameAvailability.ps1 b/src/MySql/internal/Test-AzMySqlFlexibleServerNameAvailability.ps1 new file mode 100644 index 000000000000..a75aedfd3ef3 --- /dev/null +++ b/src/MySql/internal/Test-AzMySqlFlexibleServerNameAvailability.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Check the availability of name for server +.Description +Check the availability of name for server +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +NAMEAVAILABILITYREQUEST : Request from client to check resource name availability. + Name : Resource name to verify. + [Type ]: Resource type used for verification. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/test-azmysqlflexibleservernameavailability +#> +function Test-AzMySqlFlexibleServerNameAvailability { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability])] +[CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Test')] + [Parameter(ParameterSetName='TestExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Test', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest] + # Request from client to check resource name availability. + # To construct, see NOTES section for NAMEAVAILABILITYREQUEST properties and create a hash table. + ${NameAvailabilityRequest}, + + [Parameter(ParameterSetName='TestExpanded', Mandatory)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Resource name to verify. + ${Name}, + + [Parameter(ParameterSetName='TestExpanded')] + [Parameter(ParameterSetName='TestViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Resource type used for verification. + ${Type}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Test = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_Test'; + TestExpanded = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestExpanded'; + TestViaIdentity = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestViaIdentity'; + TestViaIdentityExpanded = 'Az.MySql.private\Test-AzMySqlFlexibleServerNameAvailability_TestViaIdentityExpanded'; + } + if (('Test', 'TestExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Invoke-AzMySqlExecuteCheckNameAvailability.ps1 b/src/MySql/internal/Test-AzMySqlNameAvailability.ps1 similarity index 80% rename from src/MySql/internal/Invoke-AzMySqlExecuteCheckNameAvailability.ps1 rename to src/MySql/internal/Test-AzMySqlNameAvailability.ps1 index ed83ed05a522..b69e03140a0e 100644 --- a/src/MySql/internal/Invoke-AzMySqlExecuteCheckNameAvailability.ps1 +++ b/src/MySql/internal/Test-AzMySqlNameAvailability.ps1 @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -54,45 +55,45 @@ NAMEAVAILABILITYREQUEST : Request from client to check Name : Resource name to verify. [Type ]: Resource type used for verification. .Link -https://docs.microsoft.com/en-us/powershell/module/az.mysql/invoke-azmysqlexecutechecknameavailability +https://docs.microsoft.com/en-us/powershell/module/az.mysql/test-azmysqlnameavailability #> -function Invoke-AzMySqlExecuteCheckNameAvailability { +function Test-AzMySqlNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailability])] -[CmdletBinding(DefaultParameterSetName='ExecuteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Execute')] - [Parameter(ParameterSetName='ExecuteExpanded')] + [Parameter(ParameterSetName='Test')] + [Parameter(ParameterSetName='TestExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Execute', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='ExecuteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='Test', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='TestViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.INameAvailabilityRequest] # Request from client to check resource name availability. # To construct, see NOTES section for NAMEAVAILABILITYREQUEST properties and create a hash table. ${NameAvailabilityRequest}, - [Parameter(ParameterSetName='ExecuteExpanded', Mandatory)] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='TestExpanded', Mandatory)] + [Parameter(ParameterSetName='TestViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # Resource name to verify. ${Name}, - [Parameter(ParameterSetName='ExecuteExpanded')] - [Parameter(ParameterSetName='ExecuteViaIdentityExpanded')] + [Parameter(ParameterSetName='TestExpanded')] + [Parameter(ParameterSetName='TestViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] [System.String] # Resource type used for verification. @@ -154,12 +155,12 @@ begin { } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Execute = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_Execute'; - ExecuteExpanded = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteExpanded'; - ExecuteViaIdentity = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentity'; - ExecuteViaIdentityExpanded = 'Az.MySql.private\Invoke-AzMySqlExecuteCheckNameAvailability_ExecuteViaIdentityExpanded'; + Test = 'Az.MySql.private\Test-AzMySqlNameAvailability_Test'; + TestExpanded = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestExpanded'; + TestViaIdentity = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestViaIdentity'; + TestViaIdentityExpanded = 'Az.MySql.private\Test-AzMySqlNameAvailability_TestViaIdentityExpanded'; } - if (('Execute', 'ExecuteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Test', 'TestExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/MySql/internal/Update-AzMySqlConfiguration.ps1 b/src/MySql/internal/Update-AzMySqlConfiguration.ps1 index deb6387bd381..3b5427a64e9f 100644 --- a/src/MySql/internal/Update-AzMySqlConfiguration.ps1 +++ b/src/MySql/internal/Update-AzMySqlConfiguration.ps1 @@ -48,6 +48,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Update-AzMySqlFirewallRule.ps1 b/src/MySql/internal/Update-AzMySqlFirewallRule.ps1 index 720309f4363c..cd2749b94496 100644 --- a/src/MySql/internal/Update-AzMySqlFirewallRule.ps1 +++ b/src/MySql/internal/Update-AzMySqlFirewallRule.ps1 @@ -55,6 +55,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/internal/Update-AzMySqlFlexibleServer.ps1 b/src/MySql/internal/Update-AzMySqlFlexibleServer.ps1 new file mode 100644 index 000000000000..80b7f5c966bd --- /dev/null +++ b/src/MySql/internal/Update-AzMySqlFlexibleServer.ps1 @@ -0,0 +1,344 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +.Description +Updates an existing server. +The request body can contain one to many of the properties present in the normal server definition. +.Example +PS C:\> Update-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -Name mysql-test -Sku Standard_D4ds_v4 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D4ds_v4 GeneralPurpose +.Example +PS C:\> Get-AzMySqlFlexibleServer -ResourceGroupName PowershellMySqlTest -ServerName mysql-test | Update-AzMySqlFlexibleServer -BackupRetentionDay 23 -StorageInMb 10240 + +Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier +---- -------- ------------------ ------- ----------------------- ---------------- ------------- +mysql-test westus2 mysql_test 5.7 5120 Standard_D2ds_v4 GeneralPurpose + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Parameters allowed to update for a server. + SkuName : The name of the sku, e.g. Standard_D32s_v3. + SkuTier : The tier of the particular SKU, e.g. GeneralPurpose. + [AdministratorLoginPassword ]: The password of the administrator login. + [DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id. + [HaEnabled ]: Enable HA or not for a server. + [MaintenanceWindowCustomWindow ]: indicates whether custom window is enabled or disabled + [MaintenanceWindowDayOfWeek ]: day of week for maintenance window + [MaintenanceWindowStartHour ]: start hour for maintenance window + [MaintenanceWindowStartMinute ]: start minute for maintenance window + [ReplicationRole ]: The replication role of the server. + [SslEnforcement ]: Enable ssl enforcement or not when connect to server. + [StorageProfileBackupRetentionDay ]: Backup retention days for the server. + [StorageProfileStorageAutogrow ]: Enable Storage Auto Grow. + [StorageProfileStorageIop ]: Storage IOPS for a server. + [StorageProfileStorageMb ]: Max storage allowed for a server. + [Tag ]: Application-specific metadata in the form of key-value pairs. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserver +#> +function Update-AzMySqlFlexibleServer { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ServerName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdate] + # Parameters allowed to update for a server. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The password of the administrator login. + ${AdministratorLoginPassword}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # delegated subnet arm resource id. + ${DelegatedSubnetArgumentSubnetArmResourceId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.HaEnabledEnum] + # Enable HA or not for a server. + ${HaEnabled}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # indicates whether custom window is enabled or disabled + ${MaintenanceWindowCustomWindow}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # day of week for maintenance window + ${MaintenanceWindowDayOfWeek}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start hour for maintenance window + ${MaintenanceWindowStartHour}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # start minute for maintenance window + ${MaintenanceWindowStartMinute}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The replication role of the server. + ${ReplicationRole}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The name of the sku, e.g. + # Standard_D32s_v3. + ${SkuName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SkuTier] + # The tier of the particular SKU, e.g. + # GeneralPurpose. + ${SkuTier}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.SslEnforcementEnum] + # Enable ssl enforcement or not when connect to server. + ${SslEnforcement}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Backup retention days for the server. + ${StorageProfileBackupRetentionDay}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Support.StorageAutogrow] + # Enable Storage Auto Grow. + ${StorageProfileStorageAutogrow}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Storage IOPS for a server. + ${StorageProfileStorageIop}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.Int32] + # Max storage allowed for a server. + ${StorageProfileStorageMb}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IServerForUpdateTags]))] + [System.Collections.Hashtable] + # Application-specific metadata in the form of key-value pairs. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServer_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServer_UpdateViaIdentityExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Update-AzMySqlFlexibleServerConfiguration.ps1 b/src/MySql/internal/Update-AzMySqlFlexibleServerConfiguration.ps1 new file mode 100644 index 000000000000..d725ca70401f --- /dev/null +++ b/src/MySql/internal/Update-AzMySqlFlexibleServerConfiguration.ps1 @@ -0,0 +1,230 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a configuration of a server. +.Description +Updates a configuration of a server. +.Example +PS C:\> Update-AzMySqlFlexibleServer -Name net_retry_count -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Value 15 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +net_retry_count 15 10 user-override 1-4294967295 Integer +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/configurations/wait_timeout" +PS C:\> Update-AzMySqlFlexibleServer -InputObject $ID -Value 150 + +Name Value DefaultValue Source AllowedValues DataType +---- ------ ------------ ------- ------------- --------- +wait_timeout 150 28800 system-default 1-31536000 Integer + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Configuration. + [Source ]: Source of the configuration. + [Value ]: Value of the configuration. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverconfiguration +#> +function Update-AzMySqlFlexibleServerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ConfigurationName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server configuration. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20200701Preview.IConfigurationAutoGenerated] + # Represents a Configuration. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Source of the configuration. + ${Source}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # Value of the configuration. + ${Value}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Update-AzMySqlFlexibleServerDatabase.ps1 b/src/MySql/internal/Update-AzMySqlFlexibleServerDatabase.ps1 new file mode 100644 index 000000000000..8cb780ffae49 --- /dev/null +++ b/src/MySql/internal/Update-AzMySqlFlexibleServerDatabase.ps1 @@ -0,0 +1,208 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new database or updates an existing database. +.Description +Creates a new database or updates an existing database. +.Example +PS C:\> Update-AzMySqlFlexibleServerDatabase -Name database-test -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/servers/mysql-test/databases/databasetest" +PS C:\> Update-AzMySqlFlexibleServerDatabase -Parameter $ID -Charset utf8 + +Name Charset Collation +---- -------- ------------------ +databasetest utf8 latin1_swedish_ci + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a Database. + [Charset ]: The charset of the database. + [Collation ]: The collation of the database. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverdatabase +#> +function Update-AzMySqlFlexibleServerDatabase { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase])] +[CmdletBinding(DefaultParameterSetName='UpdateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Update', Mandatory)] + [Alias('DatabaseName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the database. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Update')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IDatabase] + # Represents a Database. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_Update'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentity'; + } + if (('Update') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Update-AzMySqlFlexibleServerFirewallRule.ps1 b/src/MySql/internal/Update-AzMySqlFlexibleServerFirewallRule.ps1 new file mode 100644 index 000000000000..d184f3695ef2 --- /dev/null +++ b/src/MySql/internal/Update-AzMySqlFlexibleServerFirewallRule.ps1 @@ -0,0 +1,232 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a new firewall rule or updates an existing firewall rule. +.Description +Creates a new firewall rule or updates an existing firewall rule. +.Example +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -Name rule -ResourceGroupName PowershellMySqlTest -ServerName mysql-test -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 +.Example +PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test/firewallRules/rule" +PS C:\> Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + +Name StartIPAddress EndIPAddress +---- -------------- ------------ +rule 0.0.0.2 0.0.0.3 + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConfigurationName ]: The name of the server configuration. + [DatabaseName ]: The name of the database. + [FirewallRuleName ]: The name of the server firewall rule. + [Id ]: Resource identity path + [KeyName ]: The name of the server key. + [LocationName ]: The name of the location. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SecurityAlertPolicyName ]: The name of the security alert policy. + [ServerName ]: The name of the server. + [SubscriptionId ]: The ID of the target subscription. + [VirtualNetworkRuleName ]: The name of the virtual network rule. + +PARAMETER : Represents a server firewall rule. + EndIPAddress : The end IP address of the server firewall rule. Must be IPv4 format. + StartIPAddress : The start IP address of the server firewall rule. Must be IPv4 format. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.mysql/update-azmysqlflexibleserverfirewallrule +#> +function Update-AzMySqlFlexibleServerFirewallRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('FirewallRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server firewall rule. + ${Name}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Update', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [System.String] + # The name of the server. + ${ServerName}, + + [Parameter(ParameterSetName='Update')] + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.IMySqlIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule] + # Represents a server firewall rule. + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The end IP address of the server firewall rule. + # Must be IPv4 format. + ${EndIPAddress}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Body')] + [System.String] + # The start IP address of the server firewall rule. + # Must be IPv4 format. + ${StartIPAddress}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Update = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_Update'; + UpdateExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded'; + UpdateViaIdentity = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentity'; + UpdateViaIdentityExpanded = 'Az.MySql.private\Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded'; + } + if (('Update', 'UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/MySql/internal/Update-AzMySqlServer.ps1 b/src/MySql/internal/Update-AzMySqlServer.ps1 index af9e300d8565..1781536ffa1a 100644 --- a/src/MySql/internal/Update-AzMySqlServer.ps1 +++ b/src/MySql/internal/Update-AzMySqlServer.ps1 @@ -49,6 +49,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. @@ -57,6 +58,7 @@ INPUTOBJECT : Identity Parameter [VirtualNetworkRuleName ]: The name of the virtual network rule. PARAMETER : Parameters allowed to update for a server. + SkuName : The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [AdministratorLoginPassword ]: The password of the administrator login. [IdentityType ]: The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. [MinimalTlsVersion ]: Enforce a minimal Tls version for the server. @@ -64,7 +66,6 @@ PARAMETER : Parameters allowed to update for a server. [ReplicationRole ]: The replication role of the server. [SkuCapacity ]: The scale up/out capacity, representing server's compute units. [SkuFamily ]: The family of hardware. - [SkuName ]: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. [SkuSize ]: The size code, to be interpreted by resource as appropriate. [SkuTier ]: The tier of the particular SKU, e.g. Basic. [SslEnforcement ]: Enable ssl enforcement or not when connect to server. diff --git a/src/MySql/internal/Update-AzMySqlVirtualNetworkRule.ps1 b/src/MySql/internal/Update-AzMySqlVirtualNetworkRule.ps1 index 679d80b16e04..914a2950973a 100644 --- a/src/MySql/internal/Update-AzMySqlVirtualNetworkRule.ps1 +++ b/src/MySql/internal/Update-AzMySqlVirtualNetworkRule.ps1 @@ -50,6 +50,7 @@ INPUTOBJECT : Identity Parameter [DatabaseName ]: The name of the database. [FirewallRuleName ]: The name of the server firewall rule. [Id ]: Resource identity path + [KeyName ]: The name of the server key. [LocationName ]: The name of the location. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SecurityAlertPolicyName ]: The name of the security alert policy. diff --git a/src/MySql/readme.md b/src/MySql/readme.md index 9b6ec9968612..0ef581d6ec22 100644 --- a/src/MySql/readme.md +++ b/src/MySql/readme.md @@ -47,48 +47,71 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml +branch: ea6d1725ca9669714cd5f5f969d026b90ecffbd1 require: - $(this-folder)/../readme.azure.noprofile.md input-file: - $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json - $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/ServerSecurityAlertPolicies.json + - $(repo)/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json module-version: 0.1.0 title: MySQL subject-prefix: 'MySQL' directive: - - from: mysql.json + - from: swagger-document + where: $.paths..operationId + transform: return $.replace(/^CheckNameAvailability_Execute$/g, "NameAvailability_Test") + - from: Microsoft.DBforMySQL/stable/2017-12-01/mysql.json where: $.definitions.VirtualNetworkRule transform: $['required'] = ['properties'] + - from: Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json + where: $.paths..operationId + transform: return $.replace(/^(Servers|ServerKeys)_/g, "flexible$1_") + - from: Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json + where: $.paths..operationId + transform: return $.replace(/^(Replicas|FirewallRules|Databases|Configurations|NameAvailability|LocationBasedCapabilities)_/g, "flexibleServer$1_") + - from: Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json + where: $.paths..operationId + transform: return $.replace(/^CheckVirtualNetworkSubnetUsage_Execute$/g,"flexibleServerVirtualNetworkSubnetUsage_Get") + - from: Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json + where: + verb: Restore$ + subject: ^FlexibleServer$ + hide: true + - where: + verb: Get$ + subject: ^FlexibleServerVirtualNetworkSubnetUsage$|^FlexibleServerLocationBasedCapability$ + hide: true + - where: + verb: Test$ + subject: ^FlexibleServerNameAvailability$ + hide: true - where: verb: Set - subject: Configuration$|FirewallRule$|VirtualNetworkRule$ + subject: ^Configuration$|^FirewallRule$|^VirtualNetworkRule$|^flexibleServerDatabase|^flexibleServerFirewallRule$ set: verb: Update - where: - verb: ^New$|^Set$|^Remove$|^Get|^Update$|^Invoke$ - subject: Database$|SecurityAlertPolicy$|Administrator$|LocationBasedPerformanceTier$|LogFile$|ExecuteCheckNameAvailability$ + subject: ^Database$|^LocationBasedPerformanceTier$|^LogFile$|SecurityAlertPolicy$|Administrator$|NameAvailability$|^FlexibleServerKey$|^FlexibleServerVirtualNetworkSubnetUsage$ hide: true - where: verb: New$|Update$ - subject: Server$|Configuration$|FirewallRule$ + subject: ^Server$|^Configuration$|^FirewallRule$|^FlexibleServer$|^FlexibleServerFirewallRule$ hide: true - where: - verb: New$ - variant: ^Create$ + verb: Update$ + subject: ^FlexibleServerConfiguration$ hide: true - where: - verb: New$ - variant: ^CreateViaIdentity + verb: New$ + variant: ^Create$|^CreateViaIdentity + subject: ^Server$|^Configuration$|^FirewallRule$|^Database$|^LocationBasedPerformanceTier$|^LogFile$|SecurityAlertPolicy$|Administrator$|NameAvailability$|^VirtualNetworkRule$ hide: true - where: verb: New$|Update$ variant: ^(?!.*?Expanded) hide: true - - where: - verb: New - subject: Configuration - hide: true - where: parameter-name: VirtualNetworkSubnetId subject: VirtualNetworkRule @@ -107,6 +130,18 @@ directive: - SkuName - SkuTier - SslEnforcement + - where: + model-name: ServerAutoGenerated + set: + format-table: + properties: + - Name + - Location + - SkuName + - SkuTier + - AdministratorLogin + - Version + - StorageProfileStorageMb - where: model-name: Configuration set: @@ -114,6 +149,19 @@ directive: properties: - Name - Value + - AllowedValue + - Source + - DefaultValue + - where: + model-name: ConfigurationAutoGenerated + set: + format-table: + properties: + - Name + - Value + - AllowedValue + - Source + - DefaultValue - where: model-name: FirewallRule set: @@ -122,6 +170,39 @@ directive: - Name - StartIPAddress - EndIPAddress + - where: + model-name: Database + set: + format-table: + properties: + - Name + - Charset + - Collation + - Id + - where: + subject: ^FlexibleServer$ + parameter-name: ServerName + set: + parameter-name: Name + alias: ServerName + - where: + subject: ^FlexibleServerFirewallRule$ + parameter-name: FirewallRuleName + set: + parameter-name: Name + alias: FirewallRuleName + - where: + subject: ^FlexibleServerDatabase$ + parameter-name: DatabaseName + set: + parameter-name: Name + alias: DatabaseName + - where: + subject: ^FlexibleServerConfiguration$ + parameter-name: ConfigurationName + set: + parameter-name: Name + alias: ConfigurationName - where: parameter-name: StorageProfileBackupRetentionDay subject: Server diff --git a/src/MySql/test/Az.MySql-TestResults.xml b/src/MySql/test/Az.MySql-TestResults.xml index 5e76d1522486..92794ed677db 100644 --- a/src/MySql/test/Az.MySql-TestResults.xml +++ b/src/MySql/test/Az.MySql-TestResults.xml @@ -1,197 +1,400 @@  - - + + - + - + - + - - - + + + - + - + - - + + - + - + - - - + + + - + - + - + + + + - + - + - - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + - + - + - + - + - + - + + + + - + - + - - + + + - + - + - - + + + - + - + - - + - + - + - - + - + - + - - + + + - + - + - - + - + - + - - + - + - + - - + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/MySql/test/Get-AzMySqlConfiguration.Recording.json b/src/MySql/test/Get-AzMySqlConfiguration.Recording.json index 0849b54d8500..bb8a9f595bd9 100644 --- a/src/MySql/test/Get-AzMySqlConfiguration.Recording.json +++ b/src/MySql/test/Get-AzMySqlConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMySqlConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations?api-version=2017-12-01+1": { + "Get-AzMySqlConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"value\":\"OFF\",\"description\":\"Allow to audit the log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/audit_log_enabled\",\"name\":\"audit_log_enabled\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"CONNECTION\",\"description\":\"Select the events to audit logs.\",\"defaultValue\":\"CONNECTION\",\"dataType\":\"Set\",\"allowedValues\":\"DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/audit_log_events\",\"name\":\"audit_log_events\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"azure_superuser\",\"description\":\"The comma-separated user list whose commands will not be in the audit logs.\",\"defaultValue\":\"azure_superuser\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/audit_log_exclude_users\",\"name\":\"audit_log_exclude_users\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/audit_log_include_users\",\"name\":\"audit_log_include_users\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of seconds for automatic binary log file removal. The default is 0, which means no automatic removal. Possible removals happen at startup and when the binary log is flushed.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/binlog_expire_logs_seconds\",\"name\":\"binlog_expire_logs_seconds\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Controls how many microseconds the binary log commit waits before synchronizing the binary log file to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,11-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/binlog_group_commit_sync_delay\",\"name\":\"binlog_group_commit_sync_delay\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of transactions to wait for before aborting the current delay as specified by binlog-group-commit-sync-delay.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/binlog_group_commit_sync_no_delay_count\",\"name\":\"binlog_group_commit_sync_no_delay_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"minimal\",\"description\":\"For MySQL row-based replication, this variable determines how row images are written to the binary log.\",\"defaultValue\":\"minimal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"full,minimal,noblob\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/binlog_row_image\",\"name\":\"binlog_row_image\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"The binlog max capacity for stop.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/binlog_sum_size_for_stop_pct_max\",\"name\":\"binlog_sum_size_for_stop_pct_max\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"latin1\",\"description\":\"Use charset_name as the default server character set.\",\"defaultValue\":\"latin1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8,ASCII,BIG5,BINARY,CP1250,CP1251,CP1256,CP1257,CP850,CP852,CP866,CP932,DEC8,EUCJPMS,EUCKR,GB18030,GB2312,GBK,GEOSTD8,GREEK,HEBREW,HP8,KEYBCS2,KOI8R,KOI8U,LATIN1,LATIN2,LATIN5,LATIN7,MACCE,MACROMAN,SJIS,SWE7,TIS620,UCS2,UJIS,UTF16,UTF16LE,UTF32,UTF8,UTF8MB4\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/character_set_server\",\"name\":\"character_set_server\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"latin1_swedish_ci\",\"description\":\"The server\u0027s default collation.\",\"defaultValue\":\"latin1_swedish_ci\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8_BIN,ARMSCII8_GENERAL_CI,ASCII_BIN,ASCII_GENERAL_CI,BIG5_BIN,BIG5_CHINESE_CI,BINARY,CP1250_BIN,CP1250_CROATIAN_CI,CP1250_CZECH_CS,CP1250_GENERAL_CI,CP1250_POLISH_CI,CP1251_BIN,CP1251_BULGARIAN_CI,CP1251_GENERAL_CI,CP1251_GENERAL_CS,CP1251_UKRAINIAN_CI,CP1256_BIN,CP1256_GENERAL_CI,CP1257_BIN,CP1257_GENERAL_CI,CP1257_LITHUANIAN_CI,CP850_BIN,CP850_GENERAL_CI,CP852_BIN,CP852_GENERAL_CI,CP866_BIN,CP866_GENERAL_CI,CP932_BIN,CP932_JAPANESE_CI,DEC8_BIN,DEC8_SWEDISH_CI,EUCJPMS_BIN,EUCJPMS_JAPANESE_CI,EUCKR_BIN,EUCKR_KOREAN_CI,GB18030_BIN,GB18030_CHINESE_CI,GB18030_UNICODE_520_CI,GB2312_BIN,GB2312_CHINESE_CI,GBK_BIN,GBK_CHINESE_CI,GEOSTD8_BIN,GEOSTD8_GENERAL_CI,GREEK_BIN,GREEK_GENERAL_CI,HEBREW_BIN,HEBREW_GENERAL_CI,HP8_BIN,HP8_ENGLISH_CI,KEYBCS2_BIN,KEYBCS2_GENERAL_CI,KOI8R_BIN,KOI8R_GENERAL_CI,KOI8U_BIN,KOI8U_GENERAL_CI,LATIN1_BIN,LATIN1_DANISH_CI,LATIN1_GENERAL_CI,LATIN1_GENERAL_CS,LATIN1_GERMAN1_CI,LATIN1_GERMAN2_CI,LATIN1_SPANISH_CI,LATIN1_SWEDISH_CI,LATIN2_BIN,LATIN2_CROATIAN_CI,LATIN2_CZECH_CS,LATIN2_GENERAL_CI,LATIN2_HUNGARIAN_CI,LATIN5_BIN,LATIN5_TURKISH_CI,LATIN7_BIN,LATIN7_ESTONIAN_CS,LATIN7_GENERAL_CI,LATIN7_GENERAL_CS,MACCE_BIN,MACCE_GENERAL_CI,MACROMAN_BIN,MACROMAN_GENERAL_CI,SJIS_BIN,SJIS_JAPANESE_CI,SWE7_BIN,SWE7_SWEDISH_CI,TIS620_BIN,TIS620_THAI_CI,UCS2_BIN,UCS2_CROATIAN_CI,UCS2_CZECH_CI,UCS2_DANISH_CI,UCS2_ESPERANTO_CI,UCS2_ESTONIAN_CI,UCS2_GENERAL_CI,UCS2_GENERAL_MYSQL500_CI,UCS2_GERMAN2_CI,UCS2_HUNGARIAN_CI,UCS2_ICELANDIC_CI,UCS2_LATVIAN_CI,UCS2_LITHUANIAN_CI,UCS2_PERSIAN_CI,UCS2_POLISH_CI,UCS2_ROMAN_CI,UCS2_ROMANIAN_CI,UCS2_SINHALA_CI,UCS2_SLOVAK_CI,UCS2_SLOVENIAN_CI,UCS2_SPANISH_CI,UCS2_SPANISH2_CI,UCS2_SWEDISH_CI,UCS2_TURKISH_CI,UCS2_UNICODE_520_CI,UCS2_UNICODE_CI,UCS2_VIETNAMESE_CI,UJIS_BIN,UJIS_JAPANESE_CI,UTF16_BIN,UTF16_CROATIAN_CI,UTF16_CZECH_CI,UTF16_DANISH_CI,UTF16_ESPERANTO_CI,UTF16_ESTONIAN_CI,UTF16_GENERAL_CI,UTF16_GERMAN2_CI,UTF16_HUNGARIAN_CI,UTF16_ICELANDIC_CI,UTF16_LATVIAN_CI,UTF16_LITHUANIAN_CI,UTF16_PERSIAN_CI,UTF16_POLISH_CI,UTF16_ROMAN_CI,UTF16_ROMANIAN_CI,UTF16_SINHALA_CI,UTF16_SLOVAK_CI,UTF16_SLOVENIAN_CI,UTF16_SPANISH_CI,UTF16_SPANISH2_CI,UTF16_SWEDISH_CI,UTF16_TURKISH_CI,UTF16_UNICODE_520_CI,UTF16_UNICODE_CI,UTF16_VIETNAMESE_CI,UTF16LE_BIN,UTF16LE_GENERAL_CI,UTF32_BIN,UTF32_CROATIAN_CI,UTF32_CZECH_CI,UTF32_DANISH_CI,UTF32_ESPERANTO_CI,UTF32_ESTONIAN_CI,UTF32_GENERAL_CI,UTF32_GERMAN2_CI,UTF32_HUNGARIAN_CI,UTF32_ICELANDIC_CI,UTF32_LATVIAN_CI,UTF32_LITHUANIAN_CI,UTF32_PERSIAN_CI,UTF32_POLISH_CI,UTF32_ROMAN_CI,UTF32_ROMANIAN_CI,UTF32_SINHALA_CI,UTF32_SLOVAK_CI,UTF32_SLOVENIAN_CI,UTF32_SPANISH_CI,UTF32_SPANISH2_CI,UTF32_SWEDISH_CI,UTF32_TURKISH_CI,UTF32_UNICODE_520_CI,UTF32_UNICODE_CI,UTF32_VIETNAMESE_CI,UTF8_BIN,UTF8_CROATIAN_CI,UTF8_CZECH_CI,UTF8_DANISH_CI,UTF8_ESPERANTO_CI,UTF8_ESTONIAN_CI,UTF8_GENERAL_CI,UTF8_GENERAL_MYSQL500_CI,UTF8_GERMAN2_CI,UTF8_HUNGARIAN_CI,UTF8_ICELANDIC_CI,UTF8_LATVIAN_CI,UTF8_LITHUANIAN_CI,UTF8_PERSIAN_CI,UTF8_POLISH_CI,UTF8_ROMAN_CI,UTF8_ROMANIAN_CI,UTF8_SINHALA_CI,UTF8_SLOVAK_CI,UTF8_SLOVENIAN_CI,UTF8_SPANISH_CI,UTF8_SPANISH2_CI,UTF8_SWEDISH_CI,UTF8_TURKISH_CI,UTF8_UNICODE_520_CI,UTF8_UNICODE_CI,UTF8_VIETNAMESE_CI,UTF8MB4_BIN,UTF8MB4_CROATIAN_CI,UTF8MB4_CZECH_CI,UTF8MB4_DANISH_CI,UTF8MB4_ESPERANTO_CI,UTF8MB4_ESTONIAN_CI,UTF8MB4_GENERAL_CI,UTF8MB4_GERMAN2_CI,UTF8MB4_HUNGARIAN_CI,UTF8MB4_ICELANDIC_CI,UTF8MB4_LATVIAN_CI,UTF8MB4_LITHUANIAN_CI,UTF8MB4_PERSIAN_CI,UTF8MB4_POLISH_CI,UTF8MB4_ROMAN_CI,UTF8MB4_ROMANIAN_CI,UTF8MB4_SINHALA_CI,UTF8MB4_SLOVAK_CI,UTF8MB4_SLOVENIAN_CI,UTF8MB4_SPANISH_CI,UTF8MB4_SPANISH2_CI,UTF8MB4_SWEDISH_CI,UTF8MB4_TURKISH_CI,UTF8MB4_UNICODE_520_CI,UTF8MB4_UNICODE_CI,UTF8MB4_VIETNAMESE_CI\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/collation_server\",\"name\":\"collation_server\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The default mode value to use for the WEEK() function.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-7\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/default_week_format\",\"name\":\"default_week_format\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"Number of digits by which to increase the scale of the result of division operations.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"0-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/div_precision_increment\",\"name\":\"div_precision_increment\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"This variable indicates the number of equality ranges in an equality comparison condition when the optimizer should switch from using index dives to index statistics in estimating the number of qualifying rows.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/eq_range_index_dive_limit\",\"name\":\"eq_range_index_dive_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/event_scheduler\",\"name\":\"event_scheduler\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and synchronize unflushed data to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-8640000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/flush_time\",\"name\":\"flush_time\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of top matches to use for full-text searches performed using WITH QUERY EXPANSION.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/ft_query_expansion_limit\",\"name\":\"ft_query_expansion_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Maximum allowed result length in bytes for the GROUP_CONCAT().\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-16777216\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/group_concat_max_len\",\"name\":\"group_concat_max_len\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"A string to be executed by the server for each client that connects.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/init_connect\",\"name\":\"init_connect\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether to dynamically adjust the rate of flushing dirty pages in the InnoDB buffer pool based on the workload. Adjusting the flush rate dynamically is intended to avoid bursts of I/O activity.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_adaptive_flushing\",\"name\":\"innodb_adaptive_flushing\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Defines the low water mark representing percentage of redo log capacity at which adaptive flushing is enabled.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-70\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_adaptive_flushing_lwm\",\"name\":\"innodb_adaptive_flushing_lwm\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether innodb adaptive hash indexes are enabled or disabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_adaptive_hash_index\",\"name\":\"innodb_adaptive_hash_index\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Partitions the adaptive hash index search system. Each index is bound to a specific partition, with each partition protected by a separate latch. \",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-512\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_adaptive_hash_index_parts\",\"name\":\"innodb_adaptive_hash_index_parts\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"150000\",\"description\":\"Permits InnoDB to automatically adjust the value of innodb_thread_sleep_delay up or down according to the current workload.\",\"defaultValue\":\"150000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_adaptive_max_sleep_delay\",\"name\":\"innodb_adaptive_max_sleep_delay\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The increment size (in megabytes) for extending the size of an auto-extending InnoDB system tablespace file when it becomes full.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_autoextend_increment\",\"name\":\"innodb_autoextend_increment\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The lock mode to use for generating auto-increment values.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_autoinc_lock_mode\",\"name\":\"innodb_autoinc_lock_mode\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Specifies the percentage of the most recently used pages for each buffer pool to read out and dump.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_buffer_pool_dump_pct\",\"name\":\"innodb_buffer_pool_dump_pct\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16106127360\",\"description\":\"The size in bytes of the buffer pool, the memory area where InnoDB caches table and index data.\",\"defaultValue\":\"16106127360\",\"dataType\":\"Integer\",\"allowedValues\":\"134217728-16106127360\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_buffer_pool_size\",\"name\":\"innodb_buffer_pool_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. You might increase this value for a MySQL server with heavy insert, update, and delete activity, or decrease it for a MySQL server with unchanging data used for reporting.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"0-50\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_change_buffer_max_size\",\"name\":\"innodb_change_buffer_max_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"all\",\"description\":\"Whether InnoDB performs change buffering, an optimization that delays write operations to secondary indexes so that the I/O operations can be performed sequentially.\",\"defaultValue\":\"all\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,inserts,deletes,changes,purges,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_change_buffering\",\"name\":\"innodb_change_buffering\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables per-index compression-related statistics in the INFORMATION_SCHEMA.INNODB_CMP_PER_INDEX table. Because these statistics can be expensive to gather, only enable this option on development, test, or slave instances during performance tuning related to InnoDB compressed tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_cmp_per_index_enabled\",\"name\":\"innodb_cmp_per_index_enabled\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of threads that can commit at the same time. A value of 0 (the default) permits any number of transactions to commit simultaneously. The value of innodb_commit_concurrency cannot be changed at runtime from zero to nonzero or vice versa. The value can be changed from one nonzero value to another.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_commit_concurrency\",\"name\":\"innodb_commit_concurrency\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Defines the compression failure rate threshold for a table, as a percentage, at which point MySQL begins adding padding within compressed pages to avoid expensive compression failures.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_compression_failure_threshold_pct\",\"name\":\"innodb_compression_failure_threshold_pct\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"6\",\"description\":\"Specifies the level of zlib compression to use for InnoDB compressed tables and indexes. A higher value lets you fit more data onto a storage device, at the expense of more CPU overhead during compression. A lower value lets you reduce CPU overhead when storage space is not critical, or you expect the data is not especially compressible.\",\"defaultValue\":\"6\",\"dataType\":\"Integer\",\"allowedValues\":\"0-9\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_compression_level\",\"name\":\"innodb_compression_level\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Specifies the maximum percentage that can be reserved as free space within each compressed page, allowing room to reorganize the data and modification log within the page when a compressed table or index is updated and the data might be recompressed. Only applies when innodb_compression_failure_threshold_pct is set to a nonzero value, and the rate of compression failures passes the cutoff point.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-75\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_compression_pad_pct_max\",\"name\":\"innodb_compression_pad_pct_max\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Determines the number of threads that can enter InnoDB concurrently.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_concurrency_tickets\",\"name\":\"innodb_concurrency_tickets\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This option is used to disable deadlock detection. On high concurrency systems, deadlock detection can cause a slowdown when numerous threads wait for the same lock.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_deadlock_detect\",\"name\":\"innodb_deadlock_detect\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"DYNAMIC\",\"description\":\"The innodb_default_row_format option defines the default row format for InnoDB tables and user-created temporary tables.\",\"defaultValue\":\"DYNAMIC\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DYNAMIC,COMPACT,REDUNDANT\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_default_row_format\",\"name\":\"innodb_default_row_format\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"Barracuda\",\"description\":\"Indicates the InnoDB file format for file-per-table tablespaces.\",\"defaultValue\":\"Barracuda\",\"dataType\":\"Enumeration\",\"allowedValues\":\"Antelope,Barracuda\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_file_format\",\"name\":\"innodb_file_format\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"InnoDB stores the data and indexes for each newly created table in a separate .ibd file instead of the system tablespace. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_file_per_table\",\"name\":\"innodb_file_per_table\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"InnoDB performs a bulk load when creating or rebuilding indexes.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"10-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_fill_factor\",\"name\":\"innodb_fill_factor\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8000000\",\"description\":\"The memory allocated, in bytes, for the InnoDB FULLTEXT search index cache, which holds a parsed document in memory while creating an InnoDB FULLTEXT index.\",\"defaultValue\":\"8000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1600000-80000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_cache_size\",\"name\":\"innodb_ft_cache_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies that a set of stopwords is associated with an InnoDB FULLTEXT index at the time the index is created.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_enable_stopword\",\"name\":\"innodb_ft_enable_stopword\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"84\",\"description\":\"Maximum character length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"84\",\"dataType\":\"Integer\",\"allowedValues\":\"10-84\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_max_token_size\",\"name\":\"innodb_ft_max_token_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Minimum length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_min_token_size\",\"name\":\"innodb_ft_min_token_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"Number of words to process during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_num_word_optimize\",\"name\":\"innodb_ft_num_word_optimize\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000000000\",\"description\":\"The InnoDB full-text search query result cache limit (defined in bytes) per full-text search query or per thread.\",\"defaultValue\":\"2000000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000000-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_result_cache_limit\",\"name\":\"innodb_ft_result_cache_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Number of threads used in parallel to index and tokenize text in an InnoDB FULLTEXT index when building a search index.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_sort_pll_degree\",\"name\":\"innodb_ft_sort_pll_degree\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"640000000\",\"description\":\"The total memory allocated, in bytes, for the InnoDB full-text search index cache for all tables.\",\"defaultValue\":\"640000000\",\"dataType\":\"Integer\",\"allowedValues\":\"32000000-1280000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_ft_total_cache_size\",\"name\":\"innodb_ft_total_cache_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Sets an upper limit on I/O activity performed by InnoDB background tasks, such as flushing pages from the buffer pool and merging data from the change buffer.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_io_capacity\",\"name\":\"innodb_io_capacity\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"If flushing activity falls behind, InnoDB can flush more aggressively than the limit imposed by innodb_io_capacity. innodb_io_capacity_max defines an upper limit the number of I/O operations performed per second by InnoDB background tasks in such situations.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_io_capacity_max\",\"name\":\"innodb_io_capacity_max\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"When this option is enabled, index key prefixes longer than 767 bytes (up to 3072 bytes) are allowed for InnoDB tables that use DYNAMIC or COMPRESSED row format.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_large_prefix\",\"name\":\"innodb_large_prefix\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"The length of time in seconds an InnoDB transaction waits for a row lock before giving up.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_lock_wait_timeout\",\"name\":\"innodb_lock_wait_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether images of re-compressed pages are written to the redo log.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_log_compressed_pages\",\"name\":\"innodb_log_compressed_pages\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"A parameter that influences the algorithms and heuristics for the flush operation for the InnoDB buffer pool.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_lru_scan_depth\",\"name\":\"innodb_lru_scan_depth\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"75\",\"description\":\"InnoDB tries to flush data from the buffer pool so that the percentage of dirty pages does not exceed this value.\",\"defaultValue\":\"75\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_max_dirty_pages_pct\",\"name\":\"innodb_max_dirty_pages_pct\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines a low water mark representing the percentage of dirty pages at which preflushing is enabled to control the dirty page ratio.\",\"defaultValue\":\"0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_max_dirty_pages_pct_lwm\",\"name\":\"innodb_max_dirty_pages_pct_lwm\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines the maximum length of the purge queue. The default value of 0 indicates no limit (no delays).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_max_purge_lag\",\"name\":\"innodb_max_purge_lag\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Specifies the maximum delay in microseconds for the delay imposed by the innodb_max_purge_lag configuration option.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_max_purge_lag_delay\",\"name\":\"innodb_max_purge_lag_delay\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"37\",\"description\":\"Specifies the approximate percentage of the InnoDB buffer pool used for the old block sublist.\",\"defaultValue\":\"37\",\"dataType\":\"Integer\",\"allowedValues\":\"5-95\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_old_blocks_pct\",\"name\":\"innodb_old_blocks_pct\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Non-zero values protect against the buffer pool being filled by data that is referenced only for a brief period, such as during a full table scan.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_old_blocks_time\",\"name\":\"innodb_old_blocks_time\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"134217728\",\"description\":\"Specifies an upper limit on the size of the temporary log files used during online DDL operations for InnoDB tables.\",\"defaultValue\":\"134217728\",\"dataType\":\"Integer\",\"allowedValues\":\"65536-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_online_alter_log_max_size\",\"name\":\"innodb_online_alter_log_max_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Changes the way OPTIMIZE TABLE operates on InnoDB tables. Intended to be enabled temporarily, during maintenance operations for InnoDB tables with FULLTEXT indexes.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_optimize_fulltext_only\",\"name\":\"innodb_optimize_fulltext_only\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of page cleaner threads that flush dirty pages from buffer pool instances.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_page_cleaners\",\"name\":\"innodb_page_cleaners\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Defines the number of undo log pages that purge parses and processes in one batch from the history list.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"1-5000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_purge_batch_size\",\"name\":\"innodb_purge_batch_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the frequency with which the purge system frees rollback segments in terms of the number of times that purge is invoked. Reducing this value increases the frequency with which the purge thread frees rollback segments.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_purge_rseg_truncate_frequency\",\"name\":\"innodb_purge_rseg_truncate_frequency\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of background threads devoted to the InnoDB purge operation.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_purge_threads\",\"name\":\"innodb_purge_threads\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables the random read-ahead technique for optimizing InnoDB I/O.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_random_read_ahead\",\"name\":\"innodb_random_read_ahead\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"56\",\"description\":\"Controls the sensitivity of linear read-ahead that InnoDB uses to prefetch pages into the buffer pool.\",\"defaultValue\":\"56\",\"dataType\":\"Integer\",\"allowedValues\":\"0-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_read_ahead_threshold\",\"name\":\"innodb_read_ahead_threshold\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for read operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_read_io_threads\",\"name\":\"innodb_read_io_threads\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the number of rollback segments used by InnoDB.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_rollback_segments\",\"name\":\"innodb_rollback_segments\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Causes InnoDB to automatically recalculate persistent statistics after the data in a table is changed substantially.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_auto_recalc\",\"name\":\"innodb_stats_auto_recalc\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\" Enabled to ensure that InnoDB includes delete-marked records when calculating persistent optimizer statistics.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_include_delete_marked\",\"name\":\"innodb_stats_include_delete_marked\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"nulls_equal\",\"description\":\"How the server treats NULL values when collecting statistics about the distribution of index values for InnoDB tables.\",\"defaultValue\":\"nulls_equal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"nulls_equal,nulls_unequal,nulls_ignored\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_method\",\"name\":\"innodb_stats_method\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This option only applies when optimizer statistics are configured to be non-persistent. When innodb_stats_on_metadata is enabled, InnoDB updates non-persistent statistics when metadata statements such as SHOW TABLE STATUS or when accessing the INFORMATION_SCHEMA.TABLES or INFORMATION_SCHEMA.STATISTICS tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_on_metadata\",\"name\":\"innodb_stats_on_metadata\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether InnoDB index statistics are persisted to disk. Otherwise, statistics may be recalculated frequently which can lead to variations in query execution plans.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_persistent\",\"name\":\"innodb_stats_persistent\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_persistent_sample_pages\",\"name\":\"innodb_stats_persistent_sample_pages\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_stats_transient_sample_pages\",\"name\":\"innodb_stats_transient_sample_pages\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Defines the size of the mutex/lock wait array. Increasing the value splits the internal data structure used to coordinate threads, for higher concurrency in workloads with large numbers of waiting threads. \",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_sync_array_size\",\"name\":\"innodb_sync_array_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The default value of innodb_table_locks is 1, which means that LOCK TABLES causes InnoDB to lock a table internally if autocommit = 0.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_table_locks\",\"name\":\"innodb_table_locks\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"InnoDB tries to keep the number of operating system threads concurrently inside InnoDB less than or equal to the limit given by this variable.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_thread_concurrency\",\"name\":\"innodb_thread_concurrency\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10000\",\"description\":\"Defines how long InnoDB threads sleep before joining the InnoDB queue, in microseconds.\",\"defaultValue\":\"10000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_thread_sleep_delay\",\"name\":\"innodb_thread_sleep_delay\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for write operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/innodb_write_io_threads\",\"name\":\"innodb_write_io_threads\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"28800\",\"description\":\"Number of seconds the server waits for activity on an interactive connection before closing it.\",\"defaultValue\":\"28800\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/interactive_timeout\",\"name\":\"interactive_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use indexes and thus perform full table scans.\",\"defaultValue\":\"262144\",\"dataType\":\"Integer\",\"allowedValues\":\"128-536870912\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/join_buffer_size\",\"name\":\"join_buffer_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This variable controls server-side LOCAL capability for LOAD DATA statements.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/local_infile\",\"name\":\"local_infile\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"31536000\",\"description\":\"This variable specifies the timeout in seconds for attempts to acquire metadata locks.\",\"defaultValue\":\"31536000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/lock_wait_timeout\",\"name\":\"lock_wait_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_bin_trust_function_creators\",\"name\":\"log_bin_trust_function_creators\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"FILE\",\"description\":\"The destination for general query log and slow query log output.\",\"defaultValue\":\"FILE\",\"dataType\":\"Set\",\"allowedValues\":\"FILE,NONE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_output\",\"name\":\"log_output\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Logs queries that are expected to retrieve all rows to slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_queries_not_using_indexes\",\"name\":\"log_queries_not_using_indexes\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Include slow administrative statements in the statements written to the slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_slow_admin_statements\",\"name\":\"log_slow_admin_statements\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When the slow query log is enabled, this variable enables logging for queries that have taken more than long_query_time seconds to execute on the slave.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_slow_slave_statements\",\"name\":\"log_slow_slave_statements\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Limits the number of such queries per minute that can be written to the slow query log.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/log_throttle_queries_not_using_indexes\",\"name\":\"log_throttle_queries_not_using_indexes\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a query takes longer than this many seconds, the server increments the Slow_queries status variable.\",\"defaultValue\":\"10\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/long_query_time\",\"name\":\"long_query_time\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive. If set to 2, table names are stored as given but compared in lowercase.\",\"defaultValue\":\"1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/lower_case_table_names\",\"name\":\"lower_case_table_names\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"536870912\",\"description\":\"The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.\",\"defaultValue\":\"536870912\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_allowed_packet\",\"name\":\"max_allowed_packet\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"If more than this many successive connection requests from a host are interrupted without a successful connection, the server blocks that host from further connections.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_connect_errors\",\"name\":\"max_connect_errors\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"625\",\"description\":\"The maximum permitted number of simultaneous client connections.\",\"defaultValue\":\"625\",\"dataType\":\"Integer\",\"allowedValues\":\"10-1250\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_connections\",\"name\":\"max_connections\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The maximum number of bytes available for computing normalized statement digests.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_digest_length\",\"name\":\"max_digest_length\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The maximum number of error, warning, and note messages to be stored for display by the SHOW ERRORS and SHOW WARNINGS statements.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_error_count\",\"name\":\"max_error_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The execution timeout for SELECT statements, in milliseconds. If the value is 0, timeouts are not enabled.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_execution_time\",\"name\":\"max_execution_time\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"This variable sets the maximum size to which user-created MEMORY tables are permitted to grow.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"16384-536870912\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_heap_table_size\",\"name\":\"max_heap_table_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"Do not permit statements that probably need to examine more than max_join_size rows\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_join_size\",\"name\":\"max_join_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The cutoff on the size of index values that determines which filesort algorithm to use.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_length_for_sort_data\",\"name\":\"max_length_for_sort_data\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"65536\",\"description\":\"The maximum value of the points_per_circle argument to the ST_Buffer_Strategy() function.\",\"defaultValue\":\"65536\",\"dataType\":\"Integer\",\"allowedValues\":\"3-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_points_in_geometry\",\"name\":\"max_points_in_geometry\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16382\",\"description\":\"This variable limits the total number of prepared statements in the server.\",\"defaultValue\":\"16382\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_prepared_stmt_count\",\"name\":\"max_prepared_stmt_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"Limit the assumed maximum number of seeks when looking up rows based on a key.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_seeks_for_key\",\"name\":\"max_seeks_for_key\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The number of bytes to use when sorting data values.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_sort_length\",\"name\":\"max_sort_length\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of times that any given stored procedure may be called recursively. The default value for this option is 0, which completely disables recursion in stored procedures.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-255\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_sp_recursion_depth\",\"name\":\"max_sp_recursion_depth\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of simultaneous connections permitted to any given MySQL user account. A value of 0 (the default) means \u0027no limit.\u0027\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_user_connections\",\"name\":\"max_user_connections\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"After this many write locks, permit some pending read lock requests to be processed in between.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/max_write_lock_count\",\"name\":\"max_write_lock_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Can be used to cause queries which examine fewer than the stated number of rows not to be logged.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/min_examined_row_limit\",\"name\":\"min_examined_row_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16384\",\"description\":\"Each client thread is associated with a connection buffer and result buffer. Both begin with a size given by net_buffer_length but are dynamically enlarged up to max_allowed_packet bytes as needed.\",\"defaultValue\":\"16384\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_buffer_length\",\"name\":\"net_buffer_length\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"The number of seconds the server waits for network reading action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_read_timeout\",\"name\":\"net_read_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"240\",\"description\":\"The number of seconds the server waits for network writing action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"240\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_write_timeout\",\"name\":\"net_write_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Defines the n-gram token size for the n-gram full-text parser. \",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/ngram_token_size\",\"name\":\"ngram_token_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Controls the heuristics applied during query optimization to prune less-promising partial plans from the optimizer search space.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/optimizer_prune_level\",\"name\":\"optimizer_prune_level\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"62\",\"description\":\"The maximum depth of search performed by the query optimizer.\",\"defaultValue\":\"62\",\"dataType\":\"Integer\",\"allowedValues\":\"0-62\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/optimizer_search_depth\",\"name\":\"optimizer_search_depth\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"The value of this variable is a set of flags, each of which has a value of on or off to indicate whether the corresponding optimizer behavior is enabled or disabled.\",\"defaultValue\":\"default\",\"dataType\":\"Set\",\"allowedValues\":\"default,batched_key_access=on,batched_key_access=off,block_nested_loop=on,block_nested_loop=off,condition_fanout_filter=on,condition_fanout_filter=off,derived_merge=on,derived_merge=off,duplicateweedout=on,duplicateweedout=off,engine_condition_pushdown=on,engine_condition_pushdown=off,firstmatch=on,firstmatch=off,index_condition_pushdown=on,index_condition_pushdown=off,index_merge=on,index_merge=off,index_merge_intersection=on,index_merge_intersection=off,index_merge_sort_union=on,index_merge_sort_union=off,index_merge_union=on,index_merge_union=off,loosescan=on,loosescan=off,materialization=on,materialization=off,mrr=on,mrr=off,mrr_cost_based=on,mrr_cost_based=off,semijoin=on,semijoin=off,subquery_materialization_cost_based=on,subquery_materialization_cost_based=off,use_index_extensions=on,use_index_extensions=off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/optimizer_switch\",\"name\":\"optimizer_switch\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"The maximum amount of memory available to the parser.\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"10000000-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/parser_max_mem_size\",\"name\":\"parser_max_mem_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The value of this variable is ON or OFF to indicate whether the Performance Schema is enabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/performance_schema\",\"name\":\"performance_schema\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"The size of the buffer that is allocated when preloading indexes.\",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/preload_buffer_size\",\"name\":\"preload_buffer_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"Do not cache results that are larger than this number of bytes.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"0-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_cache_limit\",\"name\":\"query_cache_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The minimum size (in bytes) for blocks allocated by the query cache.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"512-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_cache_min_res_unit\",\"name\":\"query_cache_min_res_unit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The amount of memory allocated for caching query results.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,102400-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_cache_size\",\"name\":\"query_cache_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Set the query cache type.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF,DEMAND\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_cache_type\",\"name\":\"query_cache_type\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The size of the persistent buffer used for statement parsing and execution. This buffer is not freed between statements. If you are running complex queries, a larger value might be helpful in improving performance, because it can reduce the need for the server to perform memory allocation during query execution operations.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"8192-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_prealloc_size\",\"name\":\"query_prealloc_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"15\",\"description\":\"The query store capture interval in minutes. Allows to specify the interval in which the query metrics are aggregated.\",\"defaultValue\":\"15\",\"dataType\":\"Integer\",\"allowedValues\":\"5-60\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_capture_interval\",\"name\":\"query_store_capture_interval\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NONE\",\"description\":\"The query store capture mode, NONE means do not capture any statements. NOTE: If performance_schema is OFF, turning on query_store_capture_mode will turn on performance_schema and a subset of performance schema instruments required for this feature.\",\"defaultValue\":\"NONE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NONE,ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_capture_mode\",\"name\":\"query_store_capture_mode\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NO\",\"description\":\"Turning ON or OFF to capture all the utility queries that is executing in the system.\",\"defaultValue\":\"NO\",\"dataType\":\"Enumeration\",\"allowedValues\":\"YES,NO\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_capture_utility_queries\",\"name\":\"query_store_capture_utility_queries\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"7\",\"description\":\"The query store capture interval in minutes. Allows to specify the interval in which the query metrics are aggregated.\",\"defaultValue\":\"7\",\"dataType\":\"Integer\",\"allowedValues\":\"1-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_retention_period_in_days\",\"name\":\"query_store_retention_period_in_days\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NONE\",\"description\":\"The query store wait event sampling capture mode, NONE means do not capture any wait events.\",\"defaultValue\":\"NONE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NONE,ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_wait_sampling_capture_mode\",\"name\":\"query_store_wait_sampling_capture_mode\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"The query store wait event sampling frequency in seconds.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"5-300\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/query_store_wait_sampling_frequency\",\"name\":\"query_store_wait_sampling_frequency\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The size of blocks that are allocated when doing range optimization.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/range_alloc_block_size\",\"name\":\"range_alloc_block_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"The limit on memory consumption for the range optimizer. A value of 0 means \u0027no limit.\u0027\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/range_optimizer_max_mem_size\",\"name\":\"range_optimizer_max_mem_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This parameter controls whetherthe server permits no client updates. When the server is read replica or server storage is full, this parameter will not take effect.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/read_only\",\"name\":\"read_only\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicate server support redirection.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/redirect_enabled\",\"name\":\"redirect_enabled\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1073741824\",\"description\":\"This option places an upper limit on the total size in bytes of all relay logs on the slave.\",\"defaultValue\":\"1073741824\",\"dataType\":\"Integer\",\"allowedValues\":\"1073741824-3221225472\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/relay_log_space_limit\",\"name\":\"relay_log_space_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"mysql.%\",\"description\":\"Creates a replication filter which keeps the slave thread from replicating a statement in which any table matches the given wildcard pattern. To specify more than one table to ignore, use comma-separated list.\",\"defaultValue\":\"mysql.%\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/replicate_wild_ignore_table\",\"name\":\"replicate_wild_ignore_table\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1409435902\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls whether the server tracks changes to the default schema (database) name within the current session and makes this information available to the client when changes occur.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/session_track_schema\",\"name\":\"session_track_schema\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Controls whether the server tracks changes to the state of the current session and notifies the client when state changes occur.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/session_track_state_change\",\"name\":\"session_track_state_change\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Affects whether MySQL 5.6 compatibility is enabled with respect to how system and status variable information is provided by the INFORMATION_SCHEMA and Performance Schema tables, and also by the SHOW VARIABLES and SHOW STATUS statements.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/show_compatibility_56\",\"name\":\"show_compatibility_56\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This prevents people from using the SHOW DATABASES statement if they do not have the SHOW DATABASES privilege. \",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/skip_show_database\",\"name\":\"skip_show_database\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"60\",\"description\":\"The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.\",\"defaultValue\":\"60\",\"dataType\":\"Integer\",\"allowedValues\":\"30-3600\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/slave_net_timeout\",\"name\":\"slave_net_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enable or disable the slow query log\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/slow_query_log\",\"name\":\"slow_query_log\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"524288\",\"description\":\"Each session that must perform a sort allocates a buffer of this size.\",\"defaultValue\":\"524288\",\"dataType\":\"Integer\",\"allowedValues\":\"32768-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/sort_buffer_size\",\"name\":\"sort_buffer_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The current server SQL mode.\",\"defaultValue\":\"\",\"dataType\":\"Set\",\"allowedValues\":\",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/sql_mode\",\"name\":\"sql_mode\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"256\",\"description\":\"Sets a soft upper limit for the number of cached stored routines per connection.\",\"defaultValue\":\"256\",\"dataType\":\"Integer\",\"allowedValues\":\"16-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/stored_program_cache\",\"name\":\"stored_program_cache\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"The number of table definitions (from .frm files) that can be stored in the definition cache.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"400-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/table_definition_cache\",\"name\":\"table_definition_cache\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"The number of open tables for all threads.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-40000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/table_open_cache\",\"name\":\"table_open_cache\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The number of open tables cache instances.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-16\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/table_open_cache_instances\",\"name\":\"table_open_cache_instances\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"14\",\"description\":\"How many threads the server should cache for reuse. The default value is 8 + (max_connections / 100), capped to a limit of 100.\",\"defaultValue\":\"14\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_cache_size\",\"name\":\"thread_cache_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"one-thread-per-connection\",\"description\":\"The thread-handling model used by the server for connection threads.\",\"defaultValue\":\"one-thread-per-connection\",\"dataType\":\"Enumeration\",\"allowedValues\":\"one-thread-per-connection,pool-of-threads\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_handling\",\"name\":\"thread_handling\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum time for a thread to run continously (unit: us).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_pool_batch_max_time\",\"name\":\"thread_pool_batch_max_time\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum time for a thread to wait for socket ready (unit: us).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_pool_batch_wait_timeout\",\"name\":\"thread_pool_batch_wait_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"65535\",\"description\":\"The minimal number of threads in the thread pool. Only works when thread_handling=pool-of-threads.\",\"defaultValue\":\"65535\",\"dataType\":\"Integer\",\"allowedValues\":\"1-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_pool_max_threads\",\"name\":\"thread_pool_max_threads\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The maximal number of threads in the thread pool. Only works when thread_handling=pool-of-threads.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/thread_pool_min_threads\",\"name\":\"thread_pool_min_threads\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"SYSTEM\",\"description\":\"The server time zone\",\"defaultValue\":\"SYSTEM\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"The maximum size of internal in-memory temporary tables. This variable does not apply to user-created MEMORY tables.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-134217728\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/tmp_table_size\",\"name\":\"tmp_table_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The amount in bytes by which to increase a per-transaction memory pool which needs memory.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/transaction_alloc_block_size\",\"name\":\"transaction_alloc_block_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"There is a per-transaction memory pool from which various transaction-related allocations take memory. The initial size of the pool in bytes is transaction_prealloc_size.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/transaction_prealloc_size\",\"name\":\"transaction_prealloc_size\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"REPEATABLE-READ\",\"description\":\"The default transaction isolation level.\",\"defaultValue\":\"REPEATABLE-READ\",\"dataType\":\"Enumeration\",\"allowedValues\":\"READ-UNCOMMITTED,READ-COMMITTED,REPEATABLE-READ,SERIALIZABLE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/tx_isolation\",\"name\":\"tx_isolation\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"YES\",\"description\":\"This variable controls whether updates to a view can be made when the view does not contain all columns of the primary key defined in the underlying table, if the update statement contains a LIMIT clause.\",\"defaultValue\":\"YES\",\"dataType\":\"Enumeration\",\"allowedValues\":\"YES,NO\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/updatable_views_with_limit\",\"name\":\"updatable_views_with_limit\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"}]}" + "Content": "{\"value\":[{\"properties\":{\"value\":\"OFF\",\"description\":\"Allow to audit the log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/audit_log_enabled\",\"name\":\"audit_log_enabled\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"CONNECTION\",\"description\":\"Select the events to audit logs.\",\"defaultValue\":\"CONNECTION\",\"dataType\":\"Set\",\"allowedValues\":\"DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/audit_log_events\",\"name\":\"audit_log_events\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"azure_superuser\",\"description\":\"The comma-separated user list whose commands will not be in the audit logs.\",\"defaultValue\":\"azure_superuser\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/audit_log_exclude_users\",\"name\":\"audit_log_exclude_users\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/audit_log_include_users\",\"name\":\"audit_log_include_users\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of seconds for automatic binary log file removal. The default is 0, which means no automatic removal. Possible removals happen at startup and when the binary log is flushed.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/binlog_expire_logs_seconds\",\"name\":\"binlog_expire_logs_seconds\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Controls how many microseconds the binary log commit waits before synchronizing the binary log file to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,11-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/binlog_group_commit_sync_delay\",\"name\":\"binlog_group_commit_sync_delay\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of transactions to wait for before aborting the current delay as specified by binlog-group-commit-sync-delay.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/binlog_group_commit_sync_no_delay_count\",\"name\":\"binlog_group_commit_sync_no_delay_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"minimal\",\"description\":\"For MySQL row-based replication, this variable determines how row images are written to the binary log.\",\"defaultValue\":\"minimal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"full,minimal,noblob\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/binlog_row_image\",\"name\":\"binlog_row_image\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"The binlog max capacity for stop.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/binlog_sum_size_for_stop_pct_max\",\"name\":\"binlog_sum_size_for_stop_pct_max\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"latin1\",\"description\":\"Use charset_name as the default server character set.\",\"defaultValue\":\"latin1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8,ASCII,BIG5,BINARY,CP1250,CP1251,CP1256,CP1257,CP850,CP852,CP866,CP932,DEC8,EUCJPMS,EUCKR,GB18030,GB2312,GBK,GEOSTD8,GREEK,HEBREW,HP8,KEYBCS2,KOI8R,KOI8U,LATIN1,LATIN2,LATIN5,LATIN7,MACCE,MACROMAN,SJIS,SWE7,TIS620,UCS2,UJIS,UTF16,UTF16LE,UTF32,UTF8,UTF8MB4\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/character_set_server\",\"name\":\"character_set_server\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"latin1_swedish_ci\",\"description\":\"The server\u0027s default collation.\",\"defaultValue\":\"latin1_swedish_ci\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8_BIN,ARMSCII8_GENERAL_CI,ASCII_BIN,ASCII_GENERAL_CI,BIG5_BIN,BIG5_CHINESE_CI,BINARY,CP1250_BIN,CP1250_CROATIAN_CI,CP1250_CZECH_CS,CP1250_GENERAL_CI,CP1250_POLISH_CI,CP1251_BIN,CP1251_BULGARIAN_CI,CP1251_GENERAL_CI,CP1251_GENERAL_CS,CP1251_UKRAINIAN_CI,CP1256_BIN,CP1256_GENERAL_CI,CP1257_BIN,CP1257_GENERAL_CI,CP1257_LITHUANIAN_CI,CP850_BIN,CP850_GENERAL_CI,CP852_BIN,CP852_GENERAL_CI,CP866_BIN,CP866_GENERAL_CI,CP932_BIN,CP932_JAPANESE_CI,DEC8_BIN,DEC8_SWEDISH_CI,EUCJPMS_BIN,EUCJPMS_JAPANESE_CI,EUCKR_BIN,EUCKR_KOREAN_CI,GB18030_BIN,GB18030_CHINESE_CI,GB18030_UNICODE_520_CI,GB2312_BIN,GB2312_CHINESE_CI,GBK_BIN,GBK_CHINESE_CI,GEOSTD8_BIN,GEOSTD8_GENERAL_CI,GREEK_BIN,GREEK_GENERAL_CI,HEBREW_BIN,HEBREW_GENERAL_CI,HP8_BIN,HP8_ENGLISH_CI,KEYBCS2_BIN,KEYBCS2_GENERAL_CI,KOI8R_BIN,KOI8R_GENERAL_CI,KOI8U_BIN,KOI8U_GENERAL_CI,LATIN1_BIN,LATIN1_DANISH_CI,LATIN1_GENERAL_CI,LATIN1_GENERAL_CS,LATIN1_GERMAN1_CI,LATIN1_GERMAN2_CI,LATIN1_SPANISH_CI,LATIN1_SWEDISH_CI,LATIN2_BIN,LATIN2_CROATIAN_CI,LATIN2_CZECH_CS,LATIN2_GENERAL_CI,LATIN2_HUNGARIAN_CI,LATIN5_BIN,LATIN5_TURKISH_CI,LATIN7_BIN,LATIN7_ESTONIAN_CS,LATIN7_GENERAL_CI,LATIN7_GENERAL_CS,MACCE_BIN,MACCE_GENERAL_CI,MACROMAN_BIN,MACROMAN_GENERAL_CI,SJIS_BIN,SJIS_JAPANESE_CI,SWE7_BIN,SWE7_SWEDISH_CI,TIS620_BIN,TIS620_THAI_CI,UCS2_BIN,UCS2_CROATIAN_CI,UCS2_CZECH_CI,UCS2_DANISH_CI,UCS2_ESPERANTO_CI,UCS2_ESTONIAN_CI,UCS2_GENERAL_CI,UCS2_GENERAL_MYSQL500_CI,UCS2_GERMAN2_CI,UCS2_HUNGARIAN_CI,UCS2_ICELANDIC_CI,UCS2_LATVIAN_CI,UCS2_LITHUANIAN_CI,UCS2_PERSIAN_CI,UCS2_POLISH_CI,UCS2_ROMAN_CI,UCS2_ROMANIAN_CI,UCS2_SINHALA_CI,UCS2_SLOVAK_CI,UCS2_SLOVENIAN_CI,UCS2_SPANISH_CI,UCS2_SPANISH2_CI,UCS2_SWEDISH_CI,UCS2_TURKISH_CI,UCS2_UNICODE_520_CI,UCS2_UNICODE_CI,UCS2_VIETNAMESE_CI,UJIS_BIN,UJIS_JAPANESE_CI,UTF16_BIN,UTF16_CROATIAN_CI,UTF16_CZECH_CI,UTF16_DANISH_CI,UTF16_ESPERANTO_CI,UTF16_ESTONIAN_CI,UTF16_GENERAL_CI,UTF16_GERMAN2_CI,UTF16_HUNGARIAN_CI,UTF16_ICELANDIC_CI,UTF16_LATVIAN_CI,UTF16_LITHUANIAN_CI,UTF16_PERSIAN_CI,UTF16_POLISH_CI,UTF16_ROMAN_CI,UTF16_ROMANIAN_CI,UTF16_SINHALA_CI,UTF16_SLOVAK_CI,UTF16_SLOVENIAN_CI,UTF16_SPANISH_CI,UTF16_SPANISH2_CI,UTF16_SWEDISH_CI,UTF16_TURKISH_CI,UTF16_UNICODE_520_CI,UTF16_UNICODE_CI,UTF16_VIETNAMESE_CI,UTF16LE_BIN,UTF16LE_GENERAL_CI,UTF32_BIN,UTF32_CROATIAN_CI,UTF32_CZECH_CI,UTF32_DANISH_CI,UTF32_ESPERANTO_CI,UTF32_ESTONIAN_CI,UTF32_GENERAL_CI,UTF32_GERMAN2_CI,UTF32_HUNGARIAN_CI,UTF32_ICELANDIC_CI,UTF32_LATVIAN_CI,UTF32_LITHUANIAN_CI,UTF32_PERSIAN_CI,UTF32_POLISH_CI,UTF32_ROMAN_CI,UTF32_ROMANIAN_CI,UTF32_SINHALA_CI,UTF32_SLOVAK_CI,UTF32_SLOVENIAN_CI,UTF32_SPANISH_CI,UTF32_SPANISH2_CI,UTF32_SWEDISH_CI,UTF32_TURKISH_CI,UTF32_UNICODE_520_CI,UTF32_UNICODE_CI,UTF32_VIETNAMESE_CI,UTF8_BIN,UTF8_CROATIAN_CI,UTF8_CZECH_CI,UTF8_DANISH_CI,UTF8_ESPERANTO_CI,UTF8_ESTONIAN_CI,UTF8_GENERAL_CI,UTF8_GENERAL_MYSQL500_CI,UTF8_GERMAN2_CI,UTF8_HUNGARIAN_CI,UTF8_ICELANDIC_CI,UTF8_LATVIAN_CI,UTF8_LITHUANIAN_CI,UTF8_PERSIAN_CI,UTF8_POLISH_CI,UTF8_ROMAN_CI,UTF8_ROMANIAN_CI,UTF8_SINHALA_CI,UTF8_SLOVAK_CI,UTF8_SLOVENIAN_CI,UTF8_SPANISH_CI,UTF8_SPANISH2_CI,UTF8_SWEDISH_CI,UTF8_TURKISH_CI,UTF8_UNICODE_520_CI,UTF8_UNICODE_CI,UTF8_VIETNAMESE_CI,UTF8MB4_BIN,UTF8MB4_CROATIAN_CI,UTF8MB4_CZECH_CI,UTF8MB4_DANISH_CI,UTF8MB4_ESPERANTO_CI,UTF8MB4_ESTONIAN_CI,UTF8MB4_GENERAL_CI,UTF8MB4_GERMAN2_CI,UTF8MB4_HUNGARIAN_CI,UTF8MB4_ICELANDIC_CI,UTF8MB4_LATVIAN_CI,UTF8MB4_LITHUANIAN_CI,UTF8MB4_PERSIAN_CI,UTF8MB4_POLISH_CI,UTF8MB4_ROMAN_CI,UTF8MB4_ROMANIAN_CI,UTF8MB4_SINHALA_CI,UTF8MB4_SLOVAK_CI,UTF8MB4_SLOVENIAN_CI,UTF8MB4_SPANISH_CI,UTF8MB4_SPANISH2_CI,UTF8MB4_SWEDISH_CI,UTF8MB4_TURKISH_CI,UTF8MB4_UNICODE_520_CI,UTF8MB4_UNICODE_CI,UTF8MB4_VIETNAMESE_CI\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/collation_server\",\"name\":\"collation_server\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The default mode value to use for the WEEK() function.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-7\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/default_week_format\",\"name\":\"default_week_format\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"Number of digits by which to increase the scale of the result of division operations.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"0-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/div_precision_increment\",\"name\":\"div_precision_increment\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"This variable indicates the number of equality ranges in an equality comparison condition when the optimizer should switch from using index dives to index statistics in estimating the number of qualifying rows.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/eq_range_index_dive_limit\",\"name\":\"eq_range_index_dive_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/event_scheduler\",\"name\":\"event_scheduler\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and synchronize unflushed data to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-8640000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/flush_time\",\"name\":\"flush_time\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of top matches to use for full-text searches performed using WITH QUERY EXPANSION.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/ft_query_expansion_limit\",\"name\":\"ft_query_expansion_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Maximum allowed result length in bytes for the GROUP_CONCAT().\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-16777216\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/group_concat_max_len\",\"name\":\"group_concat_max_len\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"A string to be executed by the server for each client that connects.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/init_connect\",\"name\":\"init_connect\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether to dynamically adjust the rate of flushing dirty pages in the InnoDB buffer pool based on the workload. Adjusting the flush rate dynamically is intended to avoid bursts of I/O activity.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_adaptive_flushing\",\"name\":\"innodb_adaptive_flushing\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Defines the low water mark representing percentage of redo log capacity at which adaptive flushing is enabled.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-70\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_adaptive_flushing_lwm\",\"name\":\"innodb_adaptive_flushing_lwm\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether innodb adaptive hash indexes are enabled or disabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_adaptive_hash_index\",\"name\":\"innodb_adaptive_hash_index\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Partitions the adaptive hash index search system. Each index is bound to a specific partition, with each partition protected by a separate latch. \",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-512\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_adaptive_hash_index_parts\",\"name\":\"innodb_adaptive_hash_index_parts\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"150000\",\"description\":\"Permits InnoDB to automatically adjust the value of innodb_thread_sleep_delay up or down according to the current workload.\",\"defaultValue\":\"150000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_adaptive_max_sleep_delay\",\"name\":\"innodb_adaptive_max_sleep_delay\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The increment size (in megabytes) for extending the size of an auto-extending InnoDB system tablespace file when it becomes full.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_autoextend_increment\",\"name\":\"innodb_autoextend_increment\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The lock mode to use for generating auto-increment values.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_autoinc_lock_mode\",\"name\":\"innodb_autoinc_lock_mode\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Specifies the percentage of the most recently used pages for each buffer pool to read out and dump.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_buffer_pool_dump_pct\",\"name\":\"innodb_buffer_pool_dump_pct\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16106127360\",\"description\":\"The size in bytes of the buffer pool, the memory area where InnoDB caches table and index data.\",\"defaultValue\":\"16106127360\",\"dataType\":\"Integer\",\"allowedValues\":\"134217728-16106127360\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_buffer_pool_size\",\"name\":\"innodb_buffer_pool_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. You might increase this value for a MySQL server with heavy insert, update, and delete activity, or decrease it for a MySQL server with unchanging data used for reporting.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"0-50\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_change_buffer_max_size\",\"name\":\"innodb_change_buffer_max_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"all\",\"description\":\"Whether InnoDB performs change buffering, an optimization that delays write operations to secondary indexes so that the I/O operations can be performed sequentially.\",\"defaultValue\":\"all\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,inserts,deletes,changes,purges,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_change_buffering\",\"name\":\"innodb_change_buffering\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables per-index compression-related statistics in the INFORMATION_SCHEMA.INNODB_CMP_PER_INDEX table. Because these statistics can be expensive to gather, only enable this option on development, test, or slave instances during performance tuning related to InnoDB compressed tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_cmp_per_index_enabled\",\"name\":\"innodb_cmp_per_index_enabled\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of threads that can commit at the same time. A value of 0 (the default) permits any number of transactions to commit simultaneously. The value of innodb_commit_concurrency cannot be changed at runtime from zero to nonzero or vice versa. The value can be changed from one nonzero value to another.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_commit_concurrency\",\"name\":\"innodb_commit_concurrency\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Defines the compression failure rate threshold for a table, as a percentage, at which point MySQL begins adding padding within compressed pages to avoid expensive compression failures.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_compression_failure_threshold_pct\",\"name\":\"innodb_compression_failure_threshold_pct\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"6\",\"description\":\"Specifies the level of zlib compression to use for InnoDB compressed tables and indexes. A higher value lets you fit more data onto a storage device, at the expense of more CPU overhead during compression. A lower value lets you reduce CPU overhead when storage space is not critical, or you expect the data is not especially compressible.\",\"defaultValue\":\"6\",\"dataType\":\"Integer\",\"allowedValues\":\"0-9\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_compression_level\",\"name\":\"innodb_compression_level\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Specifies the maximum percentage that can be reserved as free space within each compressed page, allowing room to reorganize the data and modification log within the page when a compressed table or index is updated and the data might be recompressed. Only applies when innodb_compression_failure_threshold_pct is set to a nonzero value, and the rate of compression failures passes the cutoff point.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-75\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_compression_pad_pct_max\",\"name\":\"innodb_compression_pad_pct_max\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Determines the number of threads that can enter InnoDB concurrently.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_concurrency_tickets\",\"name\":\"innodb_concurrency_tickets\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This option is used to disable deadlock detection. On high concurrency systems, deadlock detection can cause a slowdown when numerous threads wait for the same lock.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_deadlock_detect\",\"name\":\"innodb_deadlock_detect\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"DYNAMIC\",\"description\":\"The innodb_default_row_format option defines the default row format for InnoDB tables and user-created temporary tables.\",\"defaultValue\":\"DYNAMIC\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DYNAMIC,COMPACT,REDUNDANT\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_default_row_format\",\"name\":\"innodb_default_row_format\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"Barracuda\",\"description\":\"Indicates the InnoDB file format for file-per-table tablespaces.\",\"defaultValue\":\"Barracuda\",\"dataType\":\"Enumeration\",\"allowedValues\":\"Antelope,Barracuda\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_file_format\",\"name\":\"innodb_file_format\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"InnoDB stores the data and indexes for each newly created table in a separate .ibd file instead of the system tablespace. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_file_per_table\",\"name\":\"innodb_file_per_table\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"InnoDB performs a bulk load when creating or rebuilding indexes.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"10-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_fill_factor\",\"name\":\"innodb_fill_factor\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8000000\",\"description\":\"The memory allocated, in bytes, for the InnoDB FULLTEXT search index cache, which holds a parsed document in memory while creating an InnoDB FULLTEXT index.\",\"defaultValue\":\"8000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1600000-80000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_cache_size\",\"name\":\"innodb_ft_cache_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies that a set of stopwords is associated with an InnoDB FULLTEXT index at the time the index is created.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_enable_stopword\",\"name\":\"innodb_ft_enable_stopword\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"84\",\"description\":\"Maximum character length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"84\",\"dataType\":\"Integer\",\"allowedValues\":\"10-84\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_max_token_size\",\"name\":\"innodb_ft_max_token_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Minimum length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_min_token_size\",\"name\":\"innodb_ft_min_token_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"Number of words to process during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_num_word_optimize\",\"name\":\"innodb_ft_num_word_optimize\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000000000\",\"description\":\"The InnoDB full-text search query result cache limit (defined in bytes) per full-text search query or per thread.\",\"defaultValue\":\"2000000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000000-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_result_cache_limit\",\"name\":\"innodb_ft_result_cache_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Number of threads used in parallel to index and tokenize text in an InnoDB FULLTEXT index when building a search index.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_sort_pll_degree\",\"name\":\"innodb_ft_sort_pll_degree\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"640000000\",\"description\":\"The total memory allocated, in bytes, for the InnoDB full-text search index cache for all tables.\",\"defaultValue\":\"640000000\",\"dataType\":\"Integer\",\"allowedValues\":\"32000000-1280000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_ft_total_cache_size\",\"name\":\"innodb_ft_total_cache_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Sets an upper limit on I/O activity performed by InnoDB background tasks, such as flushing pages from the buffer pool and merging data from the change buffer.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_io_capacity\",\"name\":\"innodb_io_capacity\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"If flushing activity falls behind, InnoDB can flush more aggressively than the limit imposed by innodb_io_capacity. innodb_io_capacity_max defines an upper limit the number of I/O operations performed per second by InnoDB background tasks in such situations.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_io_capacity_max\",\"name\":\"innodb_io_capacity_max\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"When this option is enabled, index key prefixes longer than 767 bytes (up to 3072 bytes) are allowed for InnoDB tables that use DYNAMIC or COMPRESSED row format.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_large_prefix\",\"name\":\"innodb_large_prefix\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"The length of time in seconds an InnoDB transaction waits for a row lock before giving up.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_lock_wait_timeout\",\"name\":\"innodb_lock_wait_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether images of re-compressed pages are written to the redo log.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_log_compressed_pages\",\"name\":\"innodb_log_compressed_pages\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"A parameter that influences the algorithms and heuristics for the flush operation for the InnoDB buffer pool.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_lru_scan_depth\",\"name\":\"innodb_lru_scan_depth\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"75\",\"description\":\"InnoDB tries to flush data from the buffer pool so that the percentage of dirty pages does not exceed this value.\",\"defaultValue\":\"75\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_max_dirty_pages_pct\",\"name\":\"innodb_max_dirty_pages_pct\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines a low water mark representing the percentage of dirty pages at which preflushing is enabled to control the dirty page ratio.\",\"defaultValue\":\"0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_max_dirty_pages_pct_lwm\",\"name\":\"innodb_max_dirty_pages_pct_lwm\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines the maximum length of the purge queue. The default value of 0 indicates no limit (no delays).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_max_purge_lag\",\"name\":\"innodb_max_purge_lag\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Specifies the maximum delay in microseconds for the delay imposed by the innodb_max_purge_lag configuration option.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_max_purge_lag_delay\",\"name\":\"innodb_max_purge_lag_delay\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"37\",\"description\":\"Specifies the approximate percentage of the InnoDB buffer pool used for the old block sublist.\",\"defaultValue\":\"37\",\"dataType\":\"Integer\",\"allowedValues\":\"5-95\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_old_blocks_pct\",\"name\":\"innodb_old_blocks_pct\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Non-zero values protect against the buffer pool being filled by data that is referenced only for a brief period, such as during a full table scan.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_old_blocks_time\",\"name\":\"innodb_old_blocks_time\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"134217728\",\"description\":\"Specifies an upper limit on the size of the temporary log files used during online DDL operations for InnoDB tables.\",\"defaultValue\":\"134217728\",\"dataType\":\"Integer\",\"allowedValues\":\"65536-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_online_alter_log_max_size\",\"name\":\"innodb_online_alter_log_max_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Changes the way OPTIMIZE TABLE operates on InnoDB tables. Intended to be enabled temporarily, during maintenance operations for InnoDB tables with FULLTEXT indexes.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_optimize_fulltext_only\",\"name\":\"innodb_optimize_fulltext_only\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of page cleaner threads that flush dirty pages from buffer pool instances.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_page_cleaners\",\"name\":\"innodb_page_cleaners\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Defines the number of undo log pages that purge parses and processes in one batch from the history list.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"1-5000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_purge_batch_size\",\"name\":\"innodb_purge_batch_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the frequency with which the purge system frees rollback segments in terms of the number of times that purge is invoked. Reducing this value increases the frequency with which the purge thread frees rollback segments.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_purge_rseg_truncate_frequency\",\"name\":\"innodb_purge_rseg_truncate_frequency\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of background threads devoted to the InnoDB purge operation.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_purge_threads\",\"name\":\"innodb_purge_threads\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables the random read-ahead technique for optimizing InnoDB I/O.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_random_read_ahead\",\"name\":\"innodb_random_read_ahead\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"56\",\"description\":\"Controls the sensitivity of linear read-ahead that InnoDB uses to prefetch pages into the buffer pool.\",\"defaultValue\":\"56\",\"dataType\":\"Integer\",\"allowedValues\":\"0-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_read_ahead_threshold\",\"name\":\"innodb_read_ahead_threshold\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for read operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_read_io_threads\",\"name\":\"innodb_read_io_threads\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the number of rollback segments used by InnoDB.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_rollback_segments\",\"name\":\"innodb_rollback_segments\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Causes InnoDB to automatically recalculate persistent statistics after the data in a table is changed substantially.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_auto_recalc\",\"name\":\"innodb_stats_auto_recalc\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\" Enabled to ensure that InnoDB includes delete-marked records when calculating persistent optimizer statistics.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_include_delete_marked\",\"name\":\"innodb_stats_include_delete_marked\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"nulls_equal\",\"description\":\"How the server treats NULL values when collecting statistics about the distribution of index values for InnoDB tables.\",\"defaultValue\":\"nulls_equal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"nulls_equal,nulls_unequal,nulls_ignored\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_method\",\"name\":\"innodb_stats_method\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This option only applies when optimizer statistics are configured to be non-persistent. When innodb_stats_on_metadata is enabled, InnoDB updates non-persistent statistics when metadata statements such as SHOW TABLE STATUS or when accessing the INFORMATION_SCHEMA.TABLES or INFORMATION_SCHEMA.STATISTICS tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_on_metadata\",\"name\":\"innodb_stats_on_metadata\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether InnoDB index statistics are persisted to disk. Otherwise, statistics may be recalculated frequently which can lead to variations in query execution plans.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_persistent\",\"name\":\"innodb_stats_persistent\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_persistent_sample_pages\",\"name\":\"innodb_stats_persistent_sample_pages\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_stats_transient_sample_pages\",\"name\":\"innodb_stats_transient_sample_pages\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Defines the size of the mutex/lock wait array. Increasing the value splits the internal data structure used to coordinate threads, for higher concurrency in workloads with large numbers of waiting threads. \",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_sync_array_size\",\"name\":\"innodb_sync_array_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The default value of innodb_table_locks is 1, which means that LOCK TABLES causes InnoDB to lock a table internally if autocommit = 0.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_table_locks\",\"name\":\"innodb_table_locks\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"InnoDB tries to keep the number of operating system threads concurrently inside InnoDB less than or equal to the limit given by this variable.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_thread_concurrency\",\"name\":\"innodb_thread_concurrency\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10000\",\"description\":\"Defines how long InnoDB threads sleep before joining the InnoDB queue, in microseconds.\",\"defaultValue\":\"10000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_thread_sleep_delay\",\"name\":\"innodb_thread_sleep_delay\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for write operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/innodb_write_io_threads\",\"name\":\"innodb_write_io_threads\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"28800\",\"description\":\"Number of seconds the server waits for activity on an interactive connection before closing it.\",\"defaultValue\":\"28800\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/interactive_timeout\",\"name\":\"interactive_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use indexes and thus perform full table scans.\",\"defaultValue\":\"262144\",\"dataType\":\"Integer\",\"allowedValues\":\"128-536870912\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/join_buffer_size\",\"name\":\"join_buffer_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This variable controls server-side LOCAL capability for LOAD DATA statements.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/local_infile\",\"name\":\"local_infile\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"31536000\",\"description\":\"This variable specifies the timeout in seconds for attempts to acquire metadata locks.\",\"defaultValue\":\"31536000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/lock_wait_timeout\",\"name\":\"lock_wait_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_bin_trust_function_creators\",\"name\":\"log_bin_trust_function_creators\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"FILE\",\"description\":\"The destination for general query log and slow query log output.\",\"defaultValue\":\"FILE\",\"dataType\":\"Set\",\"allowedValues\":\"FILE,NONE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_output\",\"name\":\"log_output\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Logs queries that are expected to retrieve all rows to slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_queries_not_using_indexes\",\"name\":\"log_queries_not_using_indexes\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Include slow administrative statements in the statements written to the slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_slow_admin_statements\",\"name\":\"log_slow_admin_statements\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When the slow query log is enabled, this variable enables logging for queries that have taken more than long_query_time seconds to execute on the slave.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_slow_slave_statements\",\"name\":\"log_slow_slave_statements\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Limits the number of such queries per minute that can be written to the slow query log.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/log_throttle_queries_not_using_indexes\",\"name\":\"log_throttle_queries_not_using_indexes\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a query takes longer than this many seconds, the server increments the Slow_queries status variable.\",\"defaultValue\":\"10\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/long_query_time\",\"name\":\"long_query_time\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive. If set to 2, table names are stored as given but compared in lowercase.\",\"defaultValue\":\"1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/lower_case_table_names\",\"name\":\"lower_case_table_names\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"536870912\",\"description\":\"The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.\",\"defaultValue\":\"536870912\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_allowed_packet\",\"name\":\"max_allowed_packet\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"If more than this many successive connection requests from a host are interrupted without a successful connection, the server blocks that host from further connections.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_connect_errors\",\"name\":\"max_connect_errors\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"625\",\"description\":\"The maximum permitted number of simultaneous client connections.\",\"defaultValue\":\"625\",\"dataType\":\"Integer\",\"allowedValues\":\"10-1250\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_connections\",\"name\":\"max_connections\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The maximum number of bytes available for computing normalized statement digests.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_digest_length\",\"name\":\"max_digest_length\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The maximum number of error, warning, and note messages to be stored for display by the SHOW ERRORS and SHOW WARNINGS statements.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_error_count\",\"name\":\"max_error_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The execution timeout for SELECT statements, in milliseconds. If the value is 0, timeouts are not enabled.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_execution_time\",\"name\":\"max_execution_time\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"This variable sets the maximum size to which user-created MEMORY tables are permitted to grow.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"16384-536870912\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_heap_table_size\",\"name\":\"max_heap_table_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"Do not permit statements that probably need to examine more than max_join_size rows\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_join_size\",\"name\":\"max_join_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The cutoff on the size of index values that determines which filesort algorithm to use.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_length_for_sort_data\",\"name\":\"max_length_for_sort_data\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"65536\",\"description\":\"The maximum value of the points_per_circle argument to the ST_Buffer_Strategy() function.\",\"defaultValue\":\"65536\",\"dataType\":\"Integer\",\"allowedValues\":\"3-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_points_in_geometry\",\"name\":\"max_points_in_geometry\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16382\",\"description\":\"This variable limits the total number of prepared statements in the server.\",\"defaultValue\":\"16382\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_prepared_stmt_count\",\"name\":\"max_prepared_stmt_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"Limit the assumed maximum number of seeks when looking up rows based on a key.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_seeks_for_key\",\"name\":\"max_seeks_for_key\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The number of bytes to use when sorting data values.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_sort_length\",\"name\":\"max_sort_length\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of times that any given stored procedure may be called recursively. The default value for this option is 0, which completely disables recursion in stored procedures.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-255\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_sp_recursion_depth\",\"name\":\"max_sp_recursion_depth\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of simultaneous connections permitted to any given MySQL user account. A value of 0 (the default) means \u0027no limit.\u0027\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_user_connections\",\"name\":\"max_user_connections\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"After this many write locks, permit some pending read lock requests to be processed in between.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/max_write_lock_count\",\"name\":\"max_write_lock_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Can be used to cause queries which examine fewer than the stated number of rows not to be logged.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/min_examined_row_limit\",\"name\":\"min_examined_row_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16384\",\"description\":\"Each client thread is associated with a connection buffer and result buffer. Both begin with a size given by net_buffer_length but are dynamically enlarged up to max_allowed_packet bytes as needed.\",\"defaultValue\":\"16384\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_buffer_length\",\"name\":\"net_buffer_length\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"The number of seconds the server waits for network reading action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_read_timeout\",\"name\":\"net_read_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"240\",\"description\":\"The number of seconds the server waits for network writing action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"240\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_write_timeout\",\"name\":\"net_write_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Defines the n-gram token size for the n-gram full-text parser. \",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/ngram_token_size\",\"name\":\"ngram_token_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Controls the heuristics applied during query optimization to prune less-promising partial plans from the optimizer search space.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/optimizer_prune_level\",\"name\":\"optimizer_prune_level\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"62\",\"description\":\"The maximum depth of search performed by the query optimizer.\",\"defaultValue\":\"62\",\"dataType\":\"Integer\",\"allowedValues\":\"0-62\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/optimizer_search_depth\",\"name\":\"optimizer_search_depth\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"The value of this variable is a set of flags, each of which has a value of on or off to indicate whether the corresponding optimizer behavior is enabled or disabled.\",\"defaultValue\":\"default\",\"dataType\":\"Set\",\"allowedValues\":\"default,batched_key_access=on,batched_key_access=off,block_nested_loop=on,block_nested_loop=off,condition_fanout_filter=on,condition_fanout_filter=off,derived_merge=on,derived_merge=off,duplicateweedout=on,duplicateweedout=off,engine_condition_pushdown=on,engine_condition_pushdown=off,firstmatch=on,firstmatch=off,index_condition_pushdown=on,index_condition_pushdown=off,index_merge=on,index_merge=off,index_merge_intersection=on,index_merge_intersection=off,index_merge_sort_union=on,index_merge_sort_union=off,index_merge_union=on,index_merge_union=off,loosescan=on,loosescan=off,materialization=on,materialization=off,mrr=on,mrr=off,mrr_cost_based=on,mrr_cost_based=off,semijoin=on,semijoin=off,subquery_materialization_cost_based=on,subquery_materialization_cost_based=off,use_index_extensions=on,use_index_extensions=off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/optimizer_switch\",\"name\":\"optimizer_switch\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"The maximum amount of memory available to the parser.\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"10000000-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/parser_max_mem_size\",\"name\":\"parser_max_mem_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The value of this variable is ON or OFF to indicate whether the Performance Schema is enabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/performance_schema\",\"name\":\"performance_schema\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"The size of the buffer that is allocated when preloading indexes.\",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/preload_buffer_size\",\"name\":\"preload_buffer_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"Do not cache results that are larger than this number of bytes.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"0-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_cache_limit\",\"name\":\"query_cache_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The minimum size (in bytes) for blocks allocated by the query cache.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"512-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_cache_min_res_unit\",\"name\":\"query_cache_min_res_unit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The amount of memory allocated for caching query results.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,102400-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_cache_size\",\"name\":\"query_cache_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Set the query cache type.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF,DEMAND\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_cache_type\",\"name\":\"query_cache_type\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The size of the persistent buffer used for statement parsing and execution. This buffer is not freed between statements. If you are running complex queries, a larger value might be helpful in improving performance, because it can reduce the need for the server to perform memory allocation during query execution operations.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"8192-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_prealloc_size\",\"name\":\"query_prealloc_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"15\",\"description\":\"The query store capture interval in minutes. Allows to specify the interval in which the query metrics are aggregated.\",\"defaultValue\":\"15\",\"dataType\":\"Integer\",\"allowedValues\":\"5-60\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_capture_interval\",\"name\":\"query_store_capture_interval\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NONE\",\"description\":\"The query store capture mode, NONE means do not capture any statements. NOTE: If performance_schema is OFF, turning on query_store_capture_mode will turn on performance_schema and a subset of performance schema instruments required for this feature.\",\"defaultValue\":\"NONE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NONE,ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_capture_mode\",\"name\":\"query_store_capture_mode\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NO\",\"description\":\"Turning ON or OFF to capture all the utility queries that is executing in the system.\",\"defaultValue\":\"NO\",\"dataType\":\"Enumeration\",\"allowedValues\":\"YES,NO\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_capture_utility_queries\",\"name\":\"query_store_capture_utility_queries\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"7\",\"description\":\"The query store capture interval in minutes. Allows to specify the interval in which the query metrics are aggregated.\",\"defaultValue\":\"7\",\"dataType\":\"Integer\",\"allowedValues\":\"1-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_retention_period_in_days\",\"name\":\"query_store_retention_period_in_days\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"NONE\",\"description\":\"The query store wait event sampling capture mode, NONE means do not capture any wait events.\",\"defaultValue\":\"NONE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NONE,ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_wait_sampling_capture_mode\",\"name\":\"query_store_wait_sampling_capture_mode\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"The query store wait event sampling frequency in seconds.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"5-300\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/query_store_wait_sampling_frequency\",\"name\":\"query_store_wait_sampling_frequency\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The size of blocks that are allocated when doing range optimization.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-32768\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/range_alloc_block_size\",\"name\":\"range_alloc_block_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"The limit on memory consumption for the range optimizer. A value of 0 means \u0027no limit.\u0027\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/range_optimizer_max_mem_size\",\"name\":\"range_optimizer_max_mem_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This parameter controls whetherthe server permits no client updates. When the server is read replica or server storage is full, this parameter will not take effect.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/read_only\",\"name\":\"read_only\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicate server support redirection.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/redirect_enabled\",\"name\":\"redirect_enabled\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1073741824\",\"description\":\"This option places an upper limit on the total size in bytes of all relay logs on the slave.\",\"defaultValue\":\"1073741824\",\"dataType\":\"Integer\",\"allowedValues\":\"1073741824-3221225472\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/relay_log_space_limit\",\"name\":\"relay_log_space_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"mysql.%\",\"description\":\"Creates a replication filter which keeps the slave thread from replicating a statement in which any table matches the given wildcard pattern. To specify more than one table to ignore, use comma-separated list.\",\"defaultValue\":\"mysql.%\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/replicate_wild_ignore_table\",\"name\":\"replicate_wild_ignore_table\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1409435902\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls whether the server tracks changes to the default schema (database) name within the current session and makes this information available to the client when changes occur.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/session_track_schema\",\"name\":\"session_track_schema\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Controls whether the server tracks changes to the state of the current session and notifies the client when state changes occur.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/session_track_state_change\",\"name\":\"session_track_state_change\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Affects whether MySQL 5.6 compatibility is enabled with respect to how system and status variable information is provided by the INFORMATION_SCHEMA and Performance Schema tables, and also by the SHOW VARIABLES and SHOW STATUS statements.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/show_compatibility_56\",\"name\":\"show_compatibility_56\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This prevents people from using the SHOW DATABASES statement if they do not have the SHOW DATABASES privilege. \",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/skip_show_database\",\"name\":\"skip_show_database\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"60\",\"description\":\"The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.\",\"defaultValue\":\"60\",\"dataType\":\"Integer\",\"allowedValues\":\"30-3600\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/slave_net_timeout\",\"name\":\"slave_net_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enable or disable the slow query log\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/slow_query_log\",\"name\":\"slow_query_log\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"524288\",\"description\":\"Each session that must perform a sort allocates a buffer of this size.\",\"defaultValue\":\"524288\",\"dataType\":\"Integer\",\"allowedValues\":\"32768-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/sort_buffer_size\",\"name\":\"sort_buffer_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The current server SQL mode.\",\"defaultValue\":\"\",\"dataType\":\"Set\",\"allowedValues\":\",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/sql_mode\",\"name\":\"sql_mode\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"256\",\"description\":\"Sets a soft upper limit for the number of cached stored routines per connection.\",\"defaultValue\":\"256\",\"dataType\":\"Integer\",\"allowedValues\":\"16-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/stored_program_cache\",\"name\":\"stored_program_cache\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"The number of table definitions (from .frm files) that can be stored in the definition cache.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"400-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/table_definition_cache\",\"name\":\"table_definition_cache\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"The number of open tables for all threads.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-40000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/table_open_cache\",\"name\":\"table_open_cache\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The number of open tables cache instances.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-16\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/table_open_cache_instances\",\"name\":\"table_open_cache_instances\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"14\",\"description\":\"How many threads the server should cache for reuse. The default value is 8 + (max_connections / 100), capped to a limit of 100.\",\"defaultValue\":\"14\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_cache_size\",\"name\":\"thread_cache_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"one-thread-per-connection\",\"description\":\"The thread-handling model used by the server for connection threads.\",\"defaultValue\":\"one-thread-per-connection\",\"dataType\":\"Enumeration\",\"allowedValues\":\"one-thread-per-connection,pool-of-threads\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_handling\",\"name\":\"thread_handling\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum time for a thread to run continously (unit: us).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_pool_batch_max_time\",\"name\":\"thread_pool_batch_max_time\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Maximum time for a thread to wait for socket ready (unit: us).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_pool_batch_wait_timeout\",\"name\":\"thread_pool_batch_wait_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"65535\",\"description\":\"The minimal number of threads in the thread pool. Only works when thread_handling=pool-of-threads.\",\"defaultValue\":\"65535\",\"dataType\":\"Integer\",\"allowedValues\":\"1-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_pool_max_threads\",\"name\":\"thread_pool_max_threads\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The maximal number of threads in the thread pool. Only works when thread_handling=pool-of-threads.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/thread_pool_min_threads\",\"name\":\"thread_pool_min_threads\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"SYSTEM\",\"description\":\"The server time zone\",\"defaultValue\":\"SYSTEM\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"The maximum size of internal in-memory temporary tables. This variable does not apply to user-created MEMORY tables.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-134217728\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/tmp_table_size\",\"name\":\"tmp_table_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The amount in bytes by which to increase a per-transaction memory pool which needs memory.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/transaction_alloc_block_size\",\"name\":\"transaction_alloc_block_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"There is a per-transaction memory pool from which various transaction-related allocations take memory. The initial size of the pool in bytes is transaction_prealloc_size.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/transaction_prealloc_size\",\"name\":\"transaction_prealloc_size\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"REPEATABLE-READ\",\"description\":\"The default transaction isolation level.\",\"defaultValue\":\"REPEATABLE-READ\",\"dataType\":\"Enumeration\",\"allowedValues\":\"READ-UNCOMMITTED,READ-COMMITTED,REPEATABLE-READ,SERIALIZABLE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/tx_isolation\",\"name\":\"tx_isolation\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"YES\",\"description\":\"This variable controls whether updates to a view can be made when the view does not contain all columns of the primary key defined in the underlying table, if the update statement contains a LIMIT clause.\",\"defaultValue\":\"YES\",\"dataType\":\"Enumeration\",\"allowedValues\":\"YES,NO\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/updatable_views_with_limit\",\"name\":\"updatable_views_with_limit\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"}]}" } }, - "Get-AzMySqlConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/time_zone?api-version=2017-12-01+1": { + "Get-AzMySqlConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/time_zone?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/time_zone?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/time_zone?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"SYSTEM\",\"description\":\"The server time zone\",\"defaultValue\":\"SYSTEM\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"SYSTEM\",\"description\":\"The server time zone\",\"defaultValue\":\"SYSTEM\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"}" } }, - "Get-AzMySqlConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/server_id?api-version=2017-12-01+1": { + "Get-AzMySqlConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/server_id?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/server_id?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/server_id?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "3" ], @@ -113,7 +113,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"1409435902\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"1409435902\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlConfiguration.Tests.ps1 b/src/MySql/test/Get-AzMySqlConfiguration.Tests.ps1 index 866bb437dbfd..71a64cc7421b 100644 --- a/src/MySql/test/Get-AzMySqlConfiguration.Tests.ps1 +++ b/src/MySql/test/Get-AzMySqlConfiguration.Tests.ps1 @@ -23,7 +23,7 @@ Describe 'Get-AzMySqlConfiguration' { } It 'GetViaIdentity' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/configurations/server_id" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/configurations/server_id" $config = Get-AzMySqlConfiguration -InputObject $ID $config.Name | Should -Be server_id } diff --git a/src/MySql/test/Get-AzMySqlConnectionString.Recording.json b/src/MySql/test/Get-AzMySqlConnectionString.Recording.json index 0e531a8ab8e9..0ebeee730f7e 100644 --- a/src/MySql/test/Get-AzMySqlConnectionString.Recording.json +++ b/src/MySql/test/Get-AzMySqlConnectionString.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMySqlConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Get-AzMySqlConnectionString+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+2": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "3" ], @@ -113,13 +113,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+3": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -152,13 +152,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+4": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5" ], @@ -191,13 +191,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+5": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "6" ], @@ -230,13 +230,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+6": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7" ], @@ -269,13 +269,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+7": { + "Get-AzMySqlConnectionString+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8" ], @@ -308,7 +308,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFirewallRule.Recording.json b/src/MySql/test/Get-AzMySqlFirewallRule.Recording.json index f81bce1b53ce..490c40f2621d 100644 --- a/src/MySql/test/Get-AzMySqlFirewallRule.Recording.json +++ b/src/MySql/test/Get-AzMySqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMySqlFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01" ], "x-ms-request-id": [ "6be5f02d-99c6-48a2-b817-a102f1802474" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T05:24:25.77Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01+2": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/6be5f02d-99c6-48a2-b817-a102f1802474?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"6be5f02d-99c6-48a2-b817-a102f1802474\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:24:25.77Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules?api-version=2017-12-01+4": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}]}" + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}]}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5" ], @@ -176,9 +176,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01" ], "x-ms-request-id": [ "a0fe98ac-ab84-42fc-a143-e4f0905a1843" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], @@ -196,10 +196,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T05:24:43.817Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01+6": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6" ], @@ -236,10 +236,10 @@ "Content": "{\"name\":\"a0fe98ac-ab84-42fc-a143-e4f0905a1843\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:24:43.817Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01+7": { + "Get-AzMySqlFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a0fe98ac-ab84-42fc-a143-e4f0905a1843?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6", "7" ], @@ -274,10 +274,10 @@ "Content": null } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", "Headers": { }, @@ -291,9 +291,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01" ], "x-ms-request-id": [ "32c7fbff-0076-4284-88ed-a58c6c5dc049" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -311,10 +311,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T05:25:01.13Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01+2": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/32c7fbff-0076-4284-88ed-a58c6c5dc049?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8", "9" ], @@ -351,10 +351,10 @@ "Content": "{\"name\":\"32c7fbff-0076-4284-88ed-a58c6c5dc049\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:25:01.13Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8", "9", "10" ], @@ -387,13 +387,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "11" ], @@ -426,13 +426,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12" ], @@ -451,9 +451,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01" ], "x-ms-request-id": [ "ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], @@ -471,10 +471,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T05:25:18.897Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01+6": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12", "13" ], @@ -511,10 +511,10 @@ "Content": "{\"name\":\"ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:25:18.897Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01+7": { + "Get-AzMySqlFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ec6ea1ad-4667-4ae5-aa62-19a01bd6b18c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12", "13", "14" ], @@ -549,10 +549,10 @@ "Content": null } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", "Headers": { }, @@ -566,9 +566,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01" ], "x-ms-request-id": [ "45403173-0f51-4d6c-be03-f0b08a4ea1fa" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], @@ -586,10 +586,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T05:25:36.24Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01+2": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/45403173-0f51-4d6c-be03-f0b08a4ea1fa?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15", "16" ], @@ -626,10 +626,10 @@ "Content": "{\"name\":\"45403173-0f51-4d6c-be03-f0b08a4ea1fa\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:25:36.24Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15", "16", "17" ], @@ -662,13 +662,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "18" ], @@ -701,13 +701,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], @@ -726,9 +726,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01" ], "x-ms-request-id": [ "03d7b0c5-6fc4-44b0-a051-0df46b347c8c" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -746,10 +746,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T05:25:54.037Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01+6": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19", "20" ], @@ -786,10 +786,10 @@ "Content": "{\"name\":\"03d7b0c5-6fc4-44b0-a051-0df46b347c8c\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T05:25:54.037Z\"}" } }, - "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01+7": { + "Get-AzMySqlFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/03d7b0c5-6fc4-44b0-a051-0df46b347c8c?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19", "20", "21" ], diff --git a/src/MySql/test/Get-AzMySqlFirewallRule.Tests.ps1 b/src/MySql/test/Get-AzMySqlFirewallRule.Tests.ps1 index a7db033c8870..b983ac336cf1 100644 --- a/src/MySql/test/Get-AzMySqlFirewallRule.Tests.ps1 +++ b/src/MySql/test/Get-AzMySqlFirewallRule.Tests.ps1 @@ -29,7 +29,7 @@ Describe 'Get-AzMySqlFirewallRule' { It 'GetViaIdentity' { New-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" $rule = Get-AzMySqlFirewallRule -InputObject $ID $rule.StartIPAddress | Should -Be 0.0.0.0 $rule.EndIPAddress | Should -Be 0.0.0.1 diff --git a/src/MySql/test/Get-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..d1dc52ca890e --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,158 @@ +{ + "Get-AzMySqlFlexibleServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySql/flexibleServers?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySql/flexibleServers?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "f88474f9-0a45-4b75-b14a-6917c8cc1a4b" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "dda5279c-7870-48c2-b639-7dde2d2fd031", "37561901-7038-4788-9406-15360c6342bf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "7263f6c4-d61b-48e3-8b71-edc311c24626" ], + "x-ms-correlation-request-id": [ "7263f6c4-d61b-48e3-8b71-edc311c24626" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064349Z:7263f6c4-d61b-48e3-8b71-edc311c24626" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "9128" ] + }, + "Content": "{\"value\":[{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"daeunyim\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"daeun-powershell-server.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-05T22:52:03.0402396+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-mysql/providers/Microsoft.DBforMySQL/flexibleServers/daeun-powershell-server\",\"name\":\"daeun-powershell-server\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"speedySnail9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server012637588.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-05T18:08:43.7580523+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-cli-test/providers/Microsoft.Network/virtualNetworks/VNET012637588/subnets/Subnet012637588\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-cli-test/providers/Microsoft.DBforMySQL/flexibleServers/server012637588\",\"name\":\"server012637588\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"liquidRaccoon8\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server022804110.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-04T19:54:26.7636175+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group1482159619/providers/Microsoft.Network/virtualNetworks/VNET022804110/subnets/Subnet022804110\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group1482159619/providers/Microsoft.DBforMySQL/flexibleServers/server022804110\",\"name\":\"server022804110\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"prizeStork9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server168864419.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-04T19:38:08.4695498+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4637056872/providers/Microsoft.Network/virtualNetworks/VNET168864419/subnets/Subnet168864419\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group4637056872/providers/Microsoft.DBforMySQL/flexibleServers/server168864419\",\"name\":\"server168864419\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"famousOstrich3\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server293736511.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-04T21:33:22.0805152+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group2718179930/providers/Microsoft.Network/virtualNetworks/VNET293736511/subnets/Subnet293736511\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group2718179930/providers/Microsoft.DBforMySQL/flexibleServers/server293736511\",\"name\":\"server293736511\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"admiredCattle5\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server353717254.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-04T19:02:49.9648937+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group2742570377/providers/Microsoft.Network/virtualNetworks/VNET353717254/subnets/Subnet353717254\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/group2742570377/providers/Microsoft.DBforMySQL/flexibleServers/server353717254\",\"name\":\"server353717254\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"shyGull9\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"server561537754.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Disabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-09T09:20:18.4548363+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"delegatedSubnetArguments\":{\"subnetArmResourceId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-mysql/providers/Microsoft.Network/virtualNetworks/VNET561537754/subnets/Subnet561537754\"},\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/daeun-powershell-mysql/providers/Microsoft.DBforMySQL/flexibleServers/server561537754\",\"name\":\"server561537754\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"},{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysqlrwtestfs.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-04T06:43:49.6738646+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"East US\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/mysqlrwtestrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqlrwtestfs\",\"name\":\"mysqlrwtestfs\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}]}" + } + }, + "Get-AzMySqlFlexibleServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c75b0008-9695-4b92-b8de-3f53651f27f0" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82ca106e-1c62-4c12-8754-f6c7a86549fe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "1579df2f-2813-4d93-b932-7d72edbfd533" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:1579df2f-2813-4d93-b932-7d72edbfd533" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "8be249c5-1955-4cbb-9fc8-3b2c7957a631" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "68a8fe03-8523-4667-907d-1868b369e2d6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "8856ded0-6cd5-4da6-81cf-0299c1985c3d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:8856ded0-6cd5-4da6-81cf-0299c1985c3d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "857" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}]}" + } + }, + "Get-AzMySqlFlexibleServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "254d0724-6b69-4292-bb6f-7cffd6abd89e" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9acc05e7-ad2f-48fe-afe3-1a471fa64c0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "e39dee8d-5c5f-4dc9-a7e3-3b96c44516a4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T064350Z:e39dee8d-5c5f-4dc9-a7e3-3b96c44516a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:43:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..9b2dbbcb7745 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,43 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServer' { + It 'List1' { + { + $servers = Get-AzMySqlFlexibleServer + $servers.Count | Should -BeGreaterOrEqual 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $servers = Get-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + $servers.Name | Should -Be $env.serverName + } | Should -Not -Throw + } + + It 'List' { + { + $servers = Get-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup + $servers.Count | Should -Be 1 + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)" + $servers = Get-AzMySqlFlexibleServer -InputObject $ID + $servers.Name | Should -Be $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Recording.json new file mode 100644 index 000000000000..693f3ad39045 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Recording.json @@ -0,0 +1,119 @@ +{ + "Get-AzMySqlFlexibleServerConfiguration+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "16855943-b601-4c48-83f2-44da7e2d9c3b" ], + "CommandName": [ "Get-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerConfiguration_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b38ee2d9-9fb0-4022-8d24-cd23153b589f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "aeeaaeb8-c890-48bf-bb08-0a83f5f51211" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222004Z:aeeaaeb8-c890-48bf-bb08-0a83f5f51211" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "223458" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"value\":\"OFF\",\"description\":\"Tell the server to enable or disable archive engine.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/archive\",\"name\":\"archive\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Allow to audit the log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/audit_log_enabled\",\"name\":\"audit_log_enabled\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"CONNECTION\",\"description\":\"Select the events to audit logs.\",\"defaultValue\":\"CONNECTION\",\"dataType\":\"Set\",\"allowedValues\":\"DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/audit_log_events\",\"name\":\"audit_log_events\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"azure_superuser\",\"description\":\"The comma-separated user list whose commands will not be in the audit logs.\",\"defaultValue\":\"azure_superuser\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/audit_log_exclude_users\",\"name\":\"audit_log_exclude_users\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/audit_log_include_users\",\"name\":\"audit_log_include_users\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Allow to audit the slow log.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/audit_slow_log_enabled\",\"name\":\"audit_slow_log_enabled\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Controls whether the server autogenerates SSL key and certificate files in the data directory, if they do not already exist.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/auto_generate_certs\",\"name\":\"auto_generate_certs\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The autocommit mode. If set to ON, all changes to a table take effect immediately. If set to OFF, you must use COMMIT to accept a transaction or ROLLBACK to cancel it.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/autocommit\",\"name\":\"autocommit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This variable controls whether ALTER TABLE implicitly upgrades temporal columns found to be in pre-5.6.4 format.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/avoid_temporal_upgrade\",\"name\":\"avoid_temporal_upgrade\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"271\",\"description\":\"The number of outstanding connection requests MySQL can have\",\"defaultValue\":\"271\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/back_log\",\"name\":\"back_log\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"The size of the cache to hold changes to the binary log during a transaction.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967296\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_cache_size\",\"name\":\"binlog_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"CRC32\",\"description\":\"When enabled, this variable causes the master to write a checksum for each event in the binary log.\",\"defaultValue\":\"CRC32\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NONE,CRC32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_checksum\",\"name\":\"binlog_checksum\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ABORT_SERVER\",\"description\":\"Controls what happens when the server cannot write to the binary log, which can cause the master\u0027s log to become inconsistent and replication slaves to lose synchronization.\",\"defaultValue\":\"ABORT_SERVER\",\"dataType\":\"Enumeration\",\"allowedValues\":\"IGNORE_ERROR,ABORT_SERVER\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_error_action\",\"name\":\"binlog_error_action\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of seconds for automatic binary log file removal. The default is 0, which means no automatic removal. Possible removals happen at startup and when the binary log is flushed.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_expire_logs_seconds\",\"name\":\"binlog_expire_logs_seconds\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ROW\",\"description\":\"This variable sets the binary logging format, and can be any one of STATEMENT, ROW, or MIXED.\",\"defaultValue\":\"ROW\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ROW,STATEMENT,MIXED\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_format\",\"name\":\"binlog_format\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Controls how many microseconds the binary log commit waits before synchronizing the binary log file to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,11-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_group_commit_sync_delay\",\"name\":\"binlog_group_commit_sync_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of transactions to wait for before aborting the current delay as specified by binlog-group-commit-sync-delay.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_group_commit_sync_no_delay_count\",\"name\":\"binlog_group_commit_sync_no_delay_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This variable controls how binary log files are iterated during the search for GTIDs when MySQL starts or restarts.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_gtid_simple_recovery\",\"name\":\"binlog_gtid_simple_recovery\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"If this variable is enabled (the default), transactions are committed in the same order they are written to the binary log. If disabled, transactions may be committed in parallel.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_order_commits\",\"name\":\"binlog_order_commits\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"minimal\",\"description\":\"For MySQL row-based replication, this variable determines how row images are written to the binary log.\",\"defaultValue\":\"minimal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"full,minimal,noblob\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_row_image\",\"name\":\"binlog_row_image\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"The binlog_rows_query_log_events system variable affects row-based logging only. When enabled, it causes the MySQL Server to write informational log events such as row query log events into its binary log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_rows_query_log_events\",\"name\":\"binlog_rows_query_log_events\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"This variable determines the size of the cache for the binary log to hold nontransactional statements issued during a transaction.\",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog_stmt_cache_size\",\"name\":\"binlog_stmt_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"Specify the maximum size of a row-based binary log event in bytes.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"256-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/binlog-row-event-max-size\",\"name\":\"binlog-row-event-max-size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Tell the server to enable or disable blackhole engine.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/blackhole\",\"name\":\"blackhole\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"aes-128-ecb\",\"description\":\"This variable controls the block encryption mode for block-based algorithms such as AES.\",\"defaultValue\":\"aes-128-ecb\",\"dataType\":\"Enumeration\",\"allowedValues\":\"aes-128-ecb,aes-192-ecb,aes-256-ecb,aes-128-cbc,aes-192-cbc,aes-256-cbc\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/block_encryption_mode\",\"name\":\"block_encryption_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"Limits the size of the MyISAM cache tree in bytes per thread.\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"0-18446744073709547520\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/bulk_insert_buffer_size\",\"name\":\"bulk_insert_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"latin1\",\"description\":\"Use charset_name as the default server character set.\",\"defaultValue\":\"latin1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8,ASCII,BIG5,BINARY,CP1250,CP1251,CP1256,CP1257,CP850,CP852,CP866,CP932,DEC8,EUCJPMS,EUCKR,GB18030,GB2312,GBK,GEOSTD8,GREEK,HEBREW,HP8,KEYBCS2,KOI8R,KOI8U,LATIN1,LATIN2,LATIN5,LATIN7,MACCE,MACROMAN,SJIS,SWE7,TIS620,UCS2,UJIS,UTF16,UTF16LE,UTF32,UTF8,UTF8MB4\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/character_set_server\",\"name\":\"character_set_server\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"latin1_swedish_ci\",\"description\":\"The server\u0027s default collation.\",\"defaultValue\":\"latin1_swedish_ci\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ARMSCII8_BIN,ARMSCII8_GENERAL_CI,ASCII_BIN,ASCII_GENERAL_CI,BIG5_BIN,BIG5_CHINESE_CI,BINARY,CP1250_BIN,CP1250_CROATIAN_CI,CP1250_CZECH_CS,CP1250_GENERAL_CI,CP1250_POLISH_CI,CP1251_BIN,CP1251_BULGARIAN_CI,CP1251_GENERAL_CI,CP1251_GENERAL_CS,CP1251_UKRAINIAN_CI,CP1256_BIN,CP1256_GENERAL_CI,CP1257_BIN,CP1257_GENERAL_CI,CP1257_LITHUANIAN_CI,CP850_BIN,CP850_GENERAL_CI,CP852_BIN,CP852_GENERAL_CI,CP866_BIN,CP866_GENERAL_CI,CP932_BIN,CP932_JAPANESE_CI,DEC8_BIN,DEC8_SWEDISH_CI,EUCJPMS_BIN,EUCJPMS_JAPANESE_CI,EUCKR_BIN,EUCKR_KOREAN_CI,GB18030_BIN,GB18030_CHINESE_CI,GB18030_UNICODE_520_CI,GB2312_BIN,GB2312_CHINESE_CI,GBK_BIN,GBK_CHINESE_CI,GEOSTD8_BIN,GEOSTD8_GENERAL_CI,GREEK_BIN,GREEK_GENERAL_CI,HEBREW_BIN,HEBREW_GENERAL_CI,HP8_BIN,HP8_ENGLISH_CI,KEYBCS2_BIN,KEYBCS2_GENERAL_CI,KOI8R_BIN,KOI8R_GENERAL_CI,KOI8U_BIN,KOI8U_GENERAL_CI,LATIN1_BIN,LATIN1_DANISH_CI,LATIN1_GENERAL_CI,LATIN1_GENERAL_CS,LATIN1_GERMAN1_CI,LATIN1_GERMAN2_CI,LATIN1_SPANISH_CI,LATIN1_SWEDISH_CI,LATIN2_BIN,LATIN2_CROATIAN_CI,LATIN2_CZECH_CS,LATIN2_GENERAL_CI,LATIN2_HUNGARIAN_CI,LATIN5_BIN,LATIN5_TURKISH_CI,LATIN7_BIN,LATIN7_ESTONIAN_CS,LATIN7_GENERAL_CI,LATIN7_GENERAL_CS,MACCE_BIN,MACCE_GENERAL_CI,MACROMAN_BIN,MACROMAN_GENERAL_CI,SJIS_BIN,SJIS_JAPANESE_CI,SWE7_BIN,SWE7_SWEDISH_CI,TIS620_BIN,TIS620_THAI_CI,UCS2_BIN,UCS2_CROATIAN_CI,UCS2_CZECH_CI,UCS2_DANISH_CI,UCS2_ESPERANTO_CI,UCS2_ESTONIAN_CI,UCS2_GENERAL_CI,UCS2_GENERAL_MYSQL500_CI,UCS2_GERMAN2_CI,UCS2_HUNGARIAN_CI,UCS2_ICELANDIC_CI,UCS2_LATVIAN_CI,UCS2_LITHUANIAN_CI,UCS2_PERSIAN_CI,UCS2_POLISH_CI,UCS2_ROMAN_CI,UCS2_ROMANIAN_CI,UCS2_SINHALA_CI,UCS2_SLOVAK_CI,UCS2_SLOVENIAN_CI,UCS2_SPANISH_CI,UCS2_SPANISH2_CI,UCS2_SWEDISH_CI,UCS2_TURKISH_CI,UCS2_UNICODE_520_CI,UCS2_UNICODE_CI,UCS2_VIETNAMESE_CI,UJIS_BIN,UJIS_JAPANESE_CI,UTF16_BIN,UTF16_CROATIAN_CI,UTF16_CZECH_CI,UTF16_DANISH_CI,UTF16_ESPERANTO_CI,UTF16_ESTONIAN_CI,UTF16_GENERAL_CI,UTF16_GERMAN2_CI,UTF16_HUNGARIAN_CI,UTF16_ICELANDIC_CI,UTF16_LATVIAN_CI,UTF16_LITHUANIAN_CI,UTF16_PERSIAN_CI,UTF16_POLISH_CI,UTF16_ROMAN_CI,UTF16_ROMANIAN_CI,UTF16_SINHALA_CI,UTF16_SLOVAK_CI,UTF16_SLOVENIAN_CI,UTF16_SPANISH_CI,UTF16_SPANISH2_CI,UTF16_SWEDISH_CI,UTF16_TURKISH_CI,UTF16_UNICODE_520_CI,UTF16_UNICODE_CI,UTF16_VIETNAMESE_CI,UTF16LE_BIN,UTF16LE_GENERAL_CI,UTF32_BIN,UTF32_CROATIAN_CI,UTF32_CZECH_CI,UTF32_DANISH_CI,UTF32_ESPERANTO_CI,UTF32_ESTONIAN_CI,UTF32_GENERAL_CI,UTF32_GERMAN2_CI,UTF32_HUNGARIAN_CI,UTF32_ICELANDIC_CI,UTF32_LATVIAN_CI,UTF32_LITHUANIAN_CI,UTF32_PERSIAN_CI,UTF32_POLISH_CI,UTF32_ROMAN_CI,UTF32_ROMANIAN_CI,UTF32_SINHALA_CI,UTF32_SLOVAK_CI,UTF32_SLOVENIAN_CI,UTF32_SPANISH_CI,UTF32_SPANISH2_CI,UTF32_SWEDISH_CI,UTF32_TURKISH_CI,UTF32_UNICODE_520_CI,UTF32_UNICODE_CI,UTF32_VIETNAMESE_CI,UTF8_BIN,UTF8_CROATIAN_CI,UTF8_CZECH_CI,UTF8_DANISH_CI,UTF8_ESPERANTO_CI,UTF8_ESTONIAN_CI,UTF8_GENERAL_CI,UTF8_GENERAL_MYSQL500_CI,UTF8_GERMAN2_CI,UTF8_HUNGARIAN_CI,UTF8_ICELANDIC_CI,UTF8_LATVIAN_CI,UTF8_LITHUANIAN_CI,UTF8_PERSIAN_CI,UTF8_POLISH_CI,UTF8_ROMAN_CI,UTF8_ROMANIAN_CI,UTF8_SINHALA_CI,UTF8_SLOVAK_CI,UTF8_SLOVENIAN_CI,UTF8_SPANISH_CI,UTF8_SPANISH2_CI,UTF8_SWEDISH_CI,UTF8_TURKISH_CI,UTF8_UNICODE_520_CI,UTF8_UNICODE_CI,UTF8_VIETNAMESE_CI,UTF8MB4_BIN,UTF8MB4_CROATIAN_CI,UTF8MB4_CZECH_CI,UTF8MB4_DANISH_CI,UTF8MB4_ESPERANTO_CI,UTF8MB4_ESTONIAN_CI,UTF8MB4_GENERAL_CI,UTF8MB4_GERMAN2_CI,UTF8MB4_HUNGARIAN_CI,UTF8MB4_ICELANDIC_CI,UTF8MB4_LATVIAN_CI,UTF8MB4_LITHUANIAN_CI,UTF8MB4_PERSIAN_CI,UTF8MB4_POLISH_CI,UTF8MB4_ROMAN_CI,UTF8MB4_ROMANIAN_CI,UTF8MB4_SINHALA_CI,UTF8MB4_SLOVAK_CI,UTF8MB4_SLOVENIAN_CI,UTF8MB4_SPANISH_CI,UTF8MB4_SPANISH2_CI,UTF8MB4_SWEDISH_CI,UTF8MB4_TURKISH_CI,UTF8MB4_UNICODE_520_CI,UTF8MB4_UNICODE_CI,UTF8MB4_VIETNAMESE_CI\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/collation_server\",\"name\":\"collation_server\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"NO_CHAIN\",\"description\":\"The transaction completion type.\",\"defaultValue\":\"NO_CHAIN\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NO_CHAIN,CHAIN,RELEASE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/completion_type\",\"name\":\"completion_type\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"AUTO\",\"description\":\"Allows INSERT and SELECT statements to run concurrently for MyISAM tables that have no free blocks in the middle of the data file.\",\"defaultValue\":\"AUTO\",\"dataType\":\"Enumeration\",\"allowedValues\":\"NEVER,AUTO,ALWAYS\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/concurrent_insert\",\"name\":\"concurrent_insert\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"2-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/connect_timeout\",\"name\":\"connect_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"mysql_native_password\",\"description\":\"The default authentication plugin\",\"defaultValue\":\"mysql_native_password\",\"dataType\":\"Enumeration\",\"allowedValues\":\"mysql_native_password,sha256_password\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/default_authentication_plugin\",\"name\":\"default_authentication_plugin\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"This variable defines the global automatic password expiration policy.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/default_password_lifetime\",\"name\":\"default_password_lifetime\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"InnoDB\",\"description\":\"The default storage engine (table type).\",\"defaultValue\":\"InnoDB\",\"dataType\":\"Enumeration\",\"allowedValues\":\"InnoDB,CSV,MEMORY\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/default_storage_engine\",\"name\":\"default_storage_engine\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"InnoDB\",\"description\":\"The default storage engine for TEMPORARY tables.\",\"defaultValue\":\"InnoDB\",\"dataType\":\"Enumeration\",\"allowedValues\":\"InnoDB,MyISAM,CSV,PERFORMANCE_SCHEMA,MEMORY,MRG_MYISAM\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/default_tmp_storage_engine\",\"name\":\"default_tmp_storage_engine\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The default mode value to use for the WEEK() function.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-7\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/default_week_format\",\"name\":\"default_week_format\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"It specifies how to use delayed key writes.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF,ALL\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/delay_key_write\",\"name\":\"delay_key_write\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"After inserting delayed_insert_limit delayed rows, the INSERT DELAYED handler thread checks whether there are any SELECT statements pending. If so, it allows them to execute before continuing to insert delayed rows.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-9223372036854775807\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/delayed_insert_limit\",\"name\":\"delayed_insert_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"How many seconds an INSERT DELAYED handler thread should wait for INSERT statements before terminating.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/delayed_insert_timeout\",\"name\":\"delayed_insert_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"If the queue becomes full, any client that issues an INSERT DELAYED statement waits until there is room in the queue again.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-9223372036854775807\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/delayed_queue_size\",\"name\":\"delayed_queue_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"MyISAM,BLACKHOLE,FEDEATED,ARCHIVE\",\"description\":\"This variable indicates which storage engines cannot be used to create tables or tablespaces.\",\"defaultValue\":\"MyISAM,BLACKHOLE,FEDEATED,ARCHIVE\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/disabled_storage_engines\",\"name\":\"disabled_storage_engines\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether to disable the startup check for tables with nonnative partitioning.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/disable-partition-engine-check\",\"name\":\"disable-partition-engine-check\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls how the server handles clients with expired passwords:\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/disconnect_on_expired_password\",\"name\":\"disconnect_on_expired_password\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"Number of digits by which to increase the scale of the result of division operations.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"0-30\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/div_precision_increment\",\"name\":\"div_precision_increment\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether optimizer JSON output should add end markers.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/end_markers_in_json\",\"name\":\"end_markers_in_json\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When enable, this option enforces GTID consistency by allowing execution of only those statements that can be logged in a transactionally safe manner.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF,WARN\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/enforce_gtid_consistency\",\"name\":\"enforce_gtid_consistency\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"This variable indicates the number of equality ranges in an equality comparison condition when the optimizer should switch from using index dives to index statistics in estimating the number of qualifying rows.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/eq_range_index_dive_limit\",\"name\":\"eq_range_index_dive_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/event_scheduler\",\"name\":\"event_scheduler\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of days for automatic binary log file removal. The default is 0, which means no automatic removal. Possible removals happen at startup and when the binary log is flushed.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/expire_logs_days\",\"name\":\"expire_logs_days\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"[Deprecated] This system variable determines whether the server enables certain nonstandard behaviors for default values and NULL-value handling in TIMESTAMP columns.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/explicit_defaults_for_timestamp\",\"name\":\"explicit_defaults_for_timestamp\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"If ON, the server flushes (synchronizes) all changes to disk after each SQL statement. Normally, MySQL does a write of all changes to disk only after each SQL statement and lets the operating system handle the synchronizing to disk.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/flush\",\"name\":\"flush\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and synchronize unflushed data to disk.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-8640000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/flush_time\",\"name\":\"flush_time\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"+ -\u003e\u003c()~*:\\\"\\\"\u0026|\",\"description\":\"The list of operators supported by boolean full-text searches performed using IN BOOLEAN MODE.\",\"defaultValue\":\"+ -\u003e\u003c()~*:\\\"\\\"\u0026|\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/ft_boolean_syntax\",\"name\":\"ft_boolean_syntax\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of top matches to use for full-text searches performed using WITH QUERY EXPANSION.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/ft_query_expansion_limit\",\"name\":\"ft_query_expansion_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether the general query log is enabled.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/general_log\",\"name\":\"general_log\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/serverlogs/mysql-general-mysql-test-100-2020111008.log\",\"description\":\"The name of the general query log file. \",\"defaultValue\":\"mysql-general.log\",\"dataType\":\"String\",\"allowedValues\":\"mysql-general.log\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/general_log_file\",\"name\":\"general_log_file\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Maximum allowed result length in bytes for the GROUP_CONCAT().\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-16777216\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/group_concat_max_len\",\"name\":\"group_concat_max_len\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Compress the mysql.gtid_executed table each time this many transactions have taken place.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/gtid_executed_compression_period\",\"name\":\"gtid_executed_compression_period\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Indicates if global transaction identifiers (GTIDs) are used to identify transactions.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,OFF_PERMISSIVE,ON_PERMISSIVE,ON\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/gtid_mode\",\"name\":\"gtid_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"279\",\"description\":\"The size of the internal host cache.\",\"defaultValue\":\"279\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65536\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/host_cache_size\",\"name\":\"host_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"A string to be executed by the server for each client that connects.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/init_connect\",\"name\":\"init_connect\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether to dynamically adjust the rate of flushing dirty pages in the InnoDB buffer pool based on the workload. Adjusting the flush rate dynamically is intended to avoid bursts of I/O activity.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_adaptive_flushing\",\"name\":\"innodb_adaptive_flushing\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"Defines the low water mark representing percentage of redo log capacity at which adaptive flushing is enabled.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-70\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_adaptive_flushing_lwm\",\"name\":\"innodb_adaptive_flushing_lwm\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether innodb adaptive hash indexes are enabled or disabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_adaptive_hash_index\",\"name\":\"innodb_adaptive_hash_index\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"Partitions the adaptive hash index search system. Each index is bound to a specific partition, with each partition protected by a separate latch. \",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-512\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_adaptive_hash_index_parts\",\"name\":\"innodb_adaptive_hash_index_parts\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"150000\",\"description\":\"Permits InnoDB to automatically adjust the value of innodb_thread_sleep_delay up or down according to the current workload.\",\"defaultValue\":\"150000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_adaptive_max_sleep_delay\",\"name\":\"innodb_adaptive_max_sleep_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The increment size (in megabytes) for extending the size of an auto-extending InnoDB system tablespace file when it becomes full.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_autoextend_increment\",\"name\":\"innodb_autoextend_increment\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The lock mode to use for generating auto-increment values.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_autoinc_lock_mode\",\"name\":\"innodb_autoinc_lock_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"134217728\",\"description\":\"Defines the chunk size for online InnoDB buffer pool resizing operations.\",\"defaultValue\":\"134217728\",\"dataType\":\"Integer\",\"allowedValues\":\"1048576-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_chunk_size\",\"name\":\"innodb_buffer_pool_chunk_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Dump the buffer pool into a file named @@innodb_buffer_pool_filename\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_dump_at_shutdown\",\"name\":\"innodb_buffer_pool_dump_at_shutdown\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Immediately records the pages cached in the InnoDB buffer pool.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_dump_now\",\"name\":\"innodb_buffer_pool_dump_now\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Specifies the percentage of the most recently used pages for each buffer pool to read out and dump.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_dump_pct\",\"name\":\"innodb_buffer_pool_dump_pct\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ib_buffer_pool\",\"description\":\"Specifies the file that holds the list of page numbers produced by innodb_buffer_pool_dump_at_shutdown or innodb_buffer_pool_dump_now.\",\"defaultValue\":\"ib_buffer_pool\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_filename\",\"name\":\"innodb_buffer_pool_filename\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The number of regions that the InnoDB buffer pool is divided into\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_instances\",\"name\":\"innodb_buffer_pool_instances\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Interrupts the process of restoring InnoDB buffer pool contents triggered by innodb_buffer_pool_load_at_startup or innodb_buffer_pool_load_now.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_load_abort\",\"name\":\"innodb_buffer_pool_load_abort\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Load the buffer pool from a file named @@innodb_buffer_pool_filename\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_load_at_startup\",\"name\":\"innodb_buffer_pool_load_at_startup\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Immediately warms up the InnoDB buffer pool by loading a set of data pages, without waiting for a server restart.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_load_now\",\"name\":\"innodb_buffer_pool_load_now\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"536870912\",\"description\":\"The size in bytes of the buffer pool, the memory area where InnoDB caches table and index data.\",\"defaultValue\":\"536870912\",\"dataType\":\"Integer\",\"allowedValues\":\"134217728-536870912\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_buffer_pool_size\",\"name\":\"innodb_buffer_pool_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"25\",\"description\":\"Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. You might increase this value for a MySQL server with heavy insert, update, and delete activity, or decrease it for a MySQL server with unchanging data used for reporting.\",\"defaultValue\":\"25\",\"dataType\":\"Integer\",\"allowedValues\":\"0-50\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_change_buffer_max_size\",\"name\":\"innodb_change_buffer_max_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"all\",\"description\":\"Whether InnoDB performs change buffering, an optimization that delays write operations to secondary indexes so that the I/O operations can be performed sequentially.\",\"defaultValue\":\"all\",\"dataType\":\"Enumeration\",\"allowedValues\":\"none,inserts,deletes,changes,purges,all\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_change_buffering\",\"name\":\"innodb_change_buffering\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"crc32\",\"description\":\"Specifies how to generate and verify the checksum stored in the disk blocks of InnoDB tablespaces.\",\"defaultValue\":\"crc32\",\"dataType\":\"Enumeration\",\"allowedValues\":\"innodb,crc32,none,strict_innodb,strict_crc32,strict_none\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_checksum_algorithm\",\"name\":\"innodb_checksum_algorithm\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables per-index compression-related statistics in the INFORMATION_SCHEMA.INNODB_CMP_PER_INDEX table. Because these statistics can be expensive to gather, only enable this option on development, test, or slave instances during performance tuning related to InnoDB compressed tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_cmp_per_index_enabled\",\"name\":\"innodb_cmp_per_index_enabled\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of threads that can commit at the same time. A value of 0 (the default) permits any number of transactions to commit simultaneously. The value of innodb_commit_concurrency cannot be changed at runtime from zero to nonzero or vice versa. The value can be changed from one nonzero value to another.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_commit_concurrency\",\"name\":\"innodb_commit_concurrency\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5\",\"description\":\"Defines the compression failure rate threshold for a table, as a percentage, at which point MySQL begins adding padding within compressed pages to avoid expensive compression failures.\",\"defaultValue\":\"5\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_compression_failure_threshold_pct\",\"name\":\"innodb_compression_failure_threshold_pct\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"6\",\"description\":\"Specifies the level of zlib compression to use for InnoDB compressed tables and indexes. A higher value lets you fit more data onto a storage device, at the expense of more CPU overhead during compression. A lower value lets you reduce CPU overhead when storage space is not critical, or you expect the data is not especially compressible.\",\"defaultValue\":\"6\",\"dataType\":\"Integer\",\"allowedValues\":\"0-9\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_compression_level\",\"name\":\"innodb_compression_level\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"Specifies the maximum percentage that can be reserved as free space within each compressed page, allowing room to reorganize the data and modification log within the page when a compressed table or index is updated and the data might be recompressed. Only applies when innodb_compression_failure_threshold_pct is set to a nonzero value, and the rate of compression failures passes the cutoff point.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-75\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_compression_pad_pct_max\",\"name\":\"innodb_compression_pad_pct_max\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"Determines the number of threads that can enter InnoDB concurrently.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_concurrency_tickets\",\"name\":\"innodb_concurrency_tickets\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This option is used to disable deadlock detection. On high concurrency systems, deadlock detection can cause a slowdown when numerous threads wait for the same lock.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_deadlock_detect\",\"name\":\"innodb_deadlock_detect\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"DYNAMIC\",\"description\":\"The innodb_default_row_format option defines the default row format for InnoDB tables and user-created temporary tables.\",\"defaultValue\":\"DYNAMIC\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DYNAMIC,COMPACT,REDUNDANT\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_default_row_format\",\"name\":\"innodb_default_row_format\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Disables the operating system file system cache for merge-sort temporary files. The effect is to open such files with the equivalent of O_DIRECT.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_disable_sort_file_cache\",\"name\":\"innodb_disable_sort_file_cache\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/diskcache.data\",\"description\":\"File name of MySQL BPE file\",\"defaultValue\":\"/app/work/diskcache.data\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_disk_buffer_pool_filename\",\"name\":\"innodb_disk_buffer_pool_filename\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Size of MySQL BPE in byte\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-515396075520\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_disk_buffer_pool_size\",\"name\":\"innodb_disk_buffer_pool_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When enabled, InnoDB stores all data twice, first to the doublewrite buffer, then to the actual data files.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_doublewrite\",\"name\":\"innodb_doublewrite\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The InnoDB shutdown mode. If the value is 0, InnoDB does a slow shutdown, a full purge and a change buffer merge before shutting down. If the value is 1 (the default), InnoDB skips these operations at shutdown, a process known as a fast shutdown. If the value is 2, InnoDB flushes its logs and shuts down cold, as if MySQL had crashed; no committed transactions are lost, but the crash recovery operation makes the next startup take longer.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_fast_shutdown\",\"name\":\"innodb_fast_shutdown\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"7201\",\"description\":\"The seconds of mysql engine waiting for I/O, this threshold timeout will result in mysql engine crash.\",\"defaultValue\":\"7201\",\"dataType\":\"Integer\",\"allowedValues\":\"1-864000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_fatal_semaphore_wait_threshold\",\"name\":\"innodb_fatal_semaphore_wait_threshold\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"Barracuda\",\"description\":\"Indicates the InnoDB file format for file-per-table tablespaces.\",\"defaultValue\":\"Barracuda\",\"dataType\":\"Enumeration\",\"allowedValues\":\"Antelope,Barracuda\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_file_format\",\"name\":\"innodb_file_format\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"InnoDB stores the data and indexes for each newly created table in a separate .ibd file instead of the system tablespace. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_file_per_table\",\"name\":\"innodb_file_per_table\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"InnoDB performs a bulk load when creating or rebuilding indexes.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"10-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_fill_factor\",\"name\":\"innodb_fill_factor\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Write and flush the logs every N seconds. This setting has an effect only when innodb_flush_log_at_trx_commit has a value of 2.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2700\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flush_log_at_timeout\",\"name\":\"innodb_flush_log_at_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Controls the balance between strict ACID compliance for commit operations and higher performance that is possible when commit-related I/O operations are rearranged and done in batches.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flush_log_at_trx_commit\",\"name\":\"innodb_flush_log_at_trx_commit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"fsync\",\"description\":\"Defines the method used to flush data to InnoDB data files and log files, which can affect I/O throughput. \",\"defaultValue\":\"fsync\",\"dataType\":\"Enumeration\",\"allowedValues\":\"fsync,O_DSYNC,littlesync,nosync,O_DIRECT,O_DIRECT_NO_FSYNC\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flush_method\",\"name\":\"innodb_flush_method\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Specifies whether flushing a page from the InnoDB buffer pool also flushes other dirty pages in the same extent.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flush_neighbors\",\"name\":\"innodb_flush_neighbors\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Causes the innodb_io_capacity setting to be ignored for bursts of I/O activity that occur at checkpoints.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flush_sync\",\"name\":\"innodb_flush_sync\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"Number of iterations for which InnoDB keeps the previously calculated snapshot of the flushing state, controlling how quickly adaptive flushing responds to changing workloads.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_flushing_avg_loops\",\"name\":\"innodb_flushing_avg_loops\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Permits InnoDB to load tables at startup that are marked as corrupted. Use only during troubleshooting, to recover data that is otherwise inaccessible.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_force_load_corrupted\",\"name\":\"innodb_force_load_corrupted\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The crash recovery mode, typically only changed in serious troubleshooting situations.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-6\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_force_recovery\",\"name\":\"innodb_force_recovery\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8000000\",\"description\":\"The memory allocated, in bytes, for the InnoDB FULLTEXT search index cache, which holds a parsed document in memory while creating an InnoDB FULLTEXT index.\",\"defaultValue\":\"8000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1600000-80000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_cache_size\",\"name\":\"innodb_ft_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether to enable additional full-text search (FTS) diagnostic output. This option is primarily intended for advanced FTS debugging and will not be of interest to most users. Output is printed to the error log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_enable_diag_print\",\"name\":\"innodb_ft_enable_diag_print\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies that a set of stopwords is associated with an InnoDB FULLTEXT index at the time the index is created.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_enable_stopword\",\"name\":\"innodb_ft_enable_stopword\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"84\",\"description\":\"Maximum character length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"84\",\"dataType\":\"Integer\",\"allowedValues\":\"10-84\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_max_token_size\",\"name\":\"innodb_ft_max_token_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"3\",\"description\":\"Minimum length of words that are stored in an InnoDB FULLTEXT index.\",\"defaultValue\":\"3\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_min_token_size\",\"name\":\"innodb_ft_min_token_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"Number of words to process during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-10000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_num_word_optimize\",\"name\":\"innodb_ft_num_word_optimize\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2000000000\",\"description\":\"The InnoDB full-text search query result cache limit (defined in bytes) per full-text search query or per thread.\",\"defaultValue\":\"2000000000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000000-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_result_cache_limit\",\"name\":\"innodb_ft_result_cache_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"This option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_server_stopword_table\",\"name\":\"innodb_ft_server_stopword_table\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Number of threads used in parallel to index and tokenize text in an InnoDB FULLTEXT index when building a search index.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_sort_pll_degree\",\"name\":\"innodb_ft_sort_pll_degree\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"640000000\",\"description\":\"The total memory allocated, in bytes, for the InnoDB full-text search index cache for all tables.\",\"defaultValue\":\"640000000\",\"dataType\":\"Integer\",\"allowedValues\":\"32000000-1600000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_total_cache_size\",\"name\":\"innodb_ft_total_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"This option is used to specify your own InnoDB FULLTEXT index stopword list on a specific table.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_ft_user_stopword_table\",\"name\":\"innodb_ft_user_stopword_table\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"Sets an upper limit on I/O activity performed by InnoDB background tasks, such as flushing pages from the buffer pool and merging data from the change buffer.\",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_io_capacity\",\"name\":\"innodb_io_capacity\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2000\",\"description\":\"If flushing activity falls behind, InnoDB can flush more aggressively than the limit imposed by innodb_io_capacity. innodb_io_capacity_max defines an upper limit the number of I/O operations performed per second by InnoDB background tasks in such situations.\",\"defaultValue\":\"2000\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_io_capacity_max\",\"name\":\"innodb_io_capacity_max\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"When this option is enabled, index key prefixes longer than 767 bytes (up to 3072 bytes) are allowed for InnoDB tables that use DYNAMIC or COMPRESSED row format.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_large_prefix\",\"name\":\"innodb_large_prefix\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"The length of time in seconds an InnoDB transaction waits for a row lock before giving up.\",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_lock_wait_timeout\",\"name\":\"innodb_lock_wait_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"The size in bytes of the buffer that InnoDB uses to write to the log files on disk.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"1048576-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_log_buffer_size\",\"name\":\"innodb_log_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Enables or disables checksums for redo log pages.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_log_checksums\",\"name\":\"innodb_log_checksums\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether images of re-compressed pages are written to the redo log.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_log_compressed_pages\",\"name\":\"innodb_log_compressed_pages\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"268435456\",\"description\":\"The size in bytes of each log file in a log group. The combined size of log files (innodb_log_file_size * innodb_log_files_in_group) cannot exceed a maximum value that is slightly less than 512GB.\",\"defaultValue\":\"268435456\",\"dataType\":\"Integer\",\"allowedValues\":\"268435456-137438953472\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_log_file_size\",\"name\":\"innodb_log_file_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The write-ahead block size for the redo log, in bytes.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"512-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_log_write_ahead_size\",\"name\":\"innodb_log_write_ahead_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"A parameter that influences the algorithms and heuristics for the flush operation for the InnoDB buffer pool.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"100-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_lru_scan_depth\",\"name\":\"innodb_lru_scan_depth\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"75\",\"description\":\"InnoDB tries to flush data from the buffer pool so that the percentage of dirty pages does not exceed this value.\",\"defaultValue\":\"75\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_max_dirty_pages_pct\",\"name\":\"innodb_max_dirty_pages_pct\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines a low water mark representing the percentage of dirty pages at which preflushing is enabled to control the dirty page ratio.\",\"defaultValue\":\"0\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-99.99\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_max_dirty_pages_pct_lwm\",\"name\":\"innodb_max_dirty_pages_pct_lwm\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Defines the maximum length of the purge queue. The default value of 0 indicates no limit (no delays).\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_max_purge_lag\",\"name\":\"innodb_max_purge_lag\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Specifies the maximum delay in microseconds for the delay imposed by the innodb_max_purge_lag configuration option.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-10000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_max_purge_lag_delay\",\"name\":\"innodb_max_purge_lag_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1073741824\",\"description\":\"Defines a threshold size for undo tablespaces.\",\"defaultValue\":\"1073741824\",\"dataType\":\"Integer\",\"allowedValues\":\"10485760-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_max_undo_log_size\",\"name\":\"innodb_max_undo_log_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Disables InnoDB metrics counters. Counter data may be queried using the INFORMATION_SCHEMA.INNODB_METRICS table.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_monitor_disable\",\"name\":\"innodb_monitor_disable\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Enables InnoDB metrics counters.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_monitor_enable\",\"name\":\"innodb_monitor_enable\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Resets the count value for InnoDB metrics counters to zero.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_monitor_reset\",\"name\":\"innodb_monitor_reset\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Resets all values (minimum, maximum, and so on) for InnoDB metrics counters.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_monitor_reset_all\",\"name\":\"innodb_monitor_reset_all\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"37\",\"description\":\"Specifies the approximate percentage of the InnoDB buffer pool used for the old block sublist.\",\"defaultValue\":\"37\",\"dataType\":\"Integer\",\"allowedValues\":\"5-95\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_old_blocks_pct\",\"name\":\"innodb_old_blocks_pct\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1000\",\"description\":\"Non-zero values protect against the buffer pool being filled by data that is referenced only for a brief period, such as during a full table scan.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_old_blocks_time\",\"name\":\"innodb_old_blocks_time\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"134217728\",\"description\":\"Specifies an upper limit on the size of the temporary log files used during online DDL operations for InnoDB tables.\",\"defaultValue\":\"134217728\",\"dataType\":\"Integer\",\"allowedValues\":\"65536-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_online_alter_log_max_size\",\"name\":\"innodb_online_alter_log_max_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"This configuration option is only relevant if you use multiple InnoDB tablespaces. It specifies the maximum number of .ibd files that MySQL can keep open at one time.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-1,10-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_open_files\",\"name\":\"innodb_open_files\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Changes the way OPTIMIZE TABLE operates on InnoDB tables. Intended to be enabled temporarily, during maintenance operations for InnoDB tables with FULLTEXT indexes.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_optimize_fulltext_only\",\"name\":\"innodb_optimize_fulltext_only\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of page cleaner threads that flush dirty pages from buffer pool instances.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_page_cleaners\",\"name\":\"innodb_page_cleaners\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16384\",\"description\":\"Specifies the page size for all InnoDB tablespaces in a MySQL instance.\",\"defaultValue\":\"16384\",\"dataType\":\"Enumeration\",\"allowedValues\":\"4096,8192,16384,32768,65536\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_page_size\",\"name\":\"innodb_page_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When this option is enabled, information about all deadlocks in InnoDB user transactions is recorded in the mysqld error log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_print_all_deadlocks\",\"name\":\"innodb_print_all_deadlocks\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Defines the number of undo log pages that purge parses and processes in one batch from the history list.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"1-5000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_purge_batch_size\",\"name\":\"innodb_purge_batch_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the frequency with which the purge system frees rollback segments in terms of the number of times that purge is invoked. Reducing this value increases the frequency with which the purge thread frees rollback segments.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_purge_rseg_truncate_frequency\",\"name\":\"innodb_purge_rseg_truncate_frequency\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of background threads devoted to the InnoDB purge operation.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_purge_threads\",\"name\":\"innodb_purge_threads\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables the random read-ahead technique for optimizing InnoDB I/O.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_random_read_ahead\",\"name\":\"innodb_random_read_ahead\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"56\",\"description\":\"Controls the sensitivity of linear read-ahead that InnoDB uses to prefetch pages into the buffer pool.\",\"defaultValue\":\"56\",\"dataType\":\"Integer\",\"allowedValues\":\"0-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_read_ahead_threshold\",\"name\":\"innodb_read_ahead_threshold\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for read operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_read_io_threads\",\"name\":\"innodb_read_io_threads\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Starts InnoDB in read-only mode. \",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_read_only\",\"name\":\"innodb_read_only\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The replication thread delay in milliseconds on a slave server if innodb_thread_concurrency is reached.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_replication_delay\",\"name\":\"innodb_replication_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"InnoDB rolls back only the last statement on a transaction timeout by default. If --innodb_rollback_on_timeout is specified, a transaction timeout causes InnoDB to abort and roll back the entire transaction.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_rollback_on_timeout\",\"name\":\"innodb_rollback_on_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines the number of rollback segments used by InnoDB.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_rollback_segments\",\"name\":\"innodb_rollback_segments\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"Specifies the sizes of several buffers used for sorting data during creation of an InnoDB index.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"65536-67108864\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_sort_buffer_size\",\"name\":\"innodb_sort_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"6\",\"description\":\"The maximum delay between polls for a spin lock. \",\"defaultValue\":\"6\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_spin_wait_delay\",\"name\":\"innodb_spin_wait_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Causes InnoDB to automatically recalculate persistent statistics after the data in a table is changed substantially.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_auto_recalc\",\"name\":\"innodb_stats_auto_recalc\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\" Enabled to ensure that InnoDB includes delete-marked records when calculating persistent optimizer statistics.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_include_delete_marked\",\"name\":\"innodb_stats_include_delete_marked\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"nulls_equal\",\"description\":\"How the server treats NULL values when collecting statistics about the distribution of index values for InnoDB tables.\",\"defaultValue\":\"nulls_equal\",\"dataType\":\"Enumeration\",\"allowedValues\":\"nulls_equal,nulls_unequal,nulls_ignored\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_method\",\"name\":\"innodb_stats_method\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This option only applies when optimizer statistics are configured to be non-persistent. When innodb_stats_on_metadata is enabled, InnoDB updates non-persistent statistics when metadata statements such as SHOW TABLE STATUS or when accessing the INFORMATION_SCHEMA.TABLES or INFORMATION_SCHEMA.STATISTICS tables.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_on_metadata\",\"name\":\"innodb_stats_on_metadata\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Specifies whether InnoDB index statistics are persisted to disk. Otherwise, statistics may be recalculated frequently which can lead to variations in query execution plans.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_persistent\",\"name\":\"innodb_stats_persistent\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_persistent_sample_pages\",\"name\":\"innodb_stats_persistent_sample_pages\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8\",\"description\":\"The number of index pages to sample when estimating cardinality and other statistics for an indexed column, such as those calculated by ANALYZE TABLE.\",\"defaultValue\":\"8\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_stats_transient_sample_pages\",\"name\":\"innodb_stats_transient_sample_pages\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables or disables periodic output for the standard InnoDB Monitor.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_status_output\",\"name\":\"innodb_status_output\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enables or disables the InnoDB Lock Monitor.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_status_output_locks\",\"name\":\"innodb_status_output_locks\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"When innodb_strict_mode is enabled, InnoDB returns errors rather than warnings for certain conditions.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_strict_mode\",\"name\":\"innodb_strict_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Enables two phase commit in XA transactions\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_support_xa\",\"name\":\"innodb_support_xa\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Defines the size of the mutex/lock wait array. Increasing the value splits the internal data structure used to coordinate threads, for higher concurrency in workloads with large numbers of waiting threads. \",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_sync_array_size\",\"name\":\"innodb_sync_array_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"30\",\"description\":\"The number of times a thread waits for an InnoDB mutex to be freed before the thread is suspended.\",\"defaultValue\":\"30\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_sync_spin_loops\",\"name\":\"innodb_sync_spin_loops\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The default value of innodb_table_locks is 1, which means that LOCK TABLES causes InnoDB to lock a table internally if autocommit = 0.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_table_locks\",\"name\":\"innodb_table_locks\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ibtmp1:12M:autoextend\",\"description\":\"Specifies the path, file name, and file size for InnoDB temporary tablespace data files.\",\"defaultValue\":\"ibtmp1:12M:autoextend\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_temp_data_file_path\",\"name\":\"innodb_temp_data_file_path\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"InnoDB tries to keep the number of operating system threads concurrently inside InnoDB less than or equal to the limit given by this variable.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_thread_concurrency\",\"name\":\"innodb_thread_concurrency\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10000\",\"description\":\"Defines how long InnoDB threads sleep before joining the InnoDB queue, in microseconds.\",\"defaultValue\":\"10000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1000000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_thread_sleep_delay\",\"name\":\"innodb_thread_sleep_delay\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/temp\",\"description\":\"Used to define an alternate directory for temporary sort files created during online ALTER TABLE operations that rebuild the table.\",\"defaultValue\":\"/app/work/temp\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_tmpdir\",\"name\":\"innodb_tmpdir\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When enabled, undo tablespaces that exceed the threshold value defined by innodb_max_undo_log_size are marked for truncation.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_undo_log_truncate\",\"name\":\"innodb_undo_log_truncate\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"128\",\"description\":\"Defines how many of the rollback segments in the system tablespace that InnoDB uses within a transaction.\",\"defaultValue\":\"128\",\"dataType\":\"Integer\",\"allowedValues\":\"1-128\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_undo_logs\",\"name\":\"innodb_undo_logs\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of tablespace files that the undo logs are divided between, when you use a non-zero innodb_undo_logs setting.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-95\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_undo_tablespaces\",\"name\":\"innodb_undo_tablespaces\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls whether or not MySQL uses Linux native asynchronous IO.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_use_native_aio\",\"name\":\"innodb_use_native_aio\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4\",\"description\":\"The number of I/O threads for write operations in InnoDB.\",\"defaultValue\":\"4\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/innodb_write_io_threads\",\"name\":\"innodb_write_io_threads\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"28800\",\"description\":\"Number of seconds the server waits for activity on an interactive connection before closing it.\",\"defaultValue\":\"28800\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/interactive_timeout\",\"name\":\"interactive_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"INNODB\",\"description\":\"The storage engine for on-disk internal temporary tables \",\"defaultValue\":\"INNODB\",\"dataType\":\"Enumeration\",\"allowedValues\":\"INNODB,MYISAM\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/internal_tmp_disk_storage_engine\",\"name\":\"internal_tmp_disk_storage_engine\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use indexes and thus perform full table scans.\",\"defaultValue\":\"262144\",\"dataType\":\"Integer\",\"allowedValues\":\"128-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/join_buffer_size\",\"name\":\"join_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Suppress behavior to overwrite MyISAM file created in DATA DIRECTORY or INDEX DIRECTORY.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/keep_files_on_create\",\"name\":\"keep_files_on_create\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"Increase the buffer size to get better index handling used for index blocks (for all reads and multiple writes).\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"8-9223372036854771712\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/key_buffer_size\",\"name\":\"key_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Controls the demotion of buffers from the hot sub-chain of a key cache to the warm sub-chain. Lower values cause demotion to happen more quickly.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"100-18446744073709547520\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/key_cache_age_threshold\",\"name\":\"key_cache_age_threshold\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"Size in bytes of blocks in the key cache.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"512-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/key_cache_block_size\",\"name\":\"key_cache_block_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"The division point between the hot and warm sub-chains of the key cache buffer chain. The value is the percentage of the buffer chain to use for the warm sub-chain.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/key_cache_division_limit\",\"name\":\"key_cache_division_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"en_US\",\"description\":\"This variable specifies the locale that controls the language used to display day and month names and abbreviations.\",\"defaultValue\":\"en_US\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ar_AE,ar_BH,ar_DZ,ar_EG,ar_IN,ar_IQ,ar_JO,ar_KW,ar_LB,ar_LY,ar_MA,ar_OM,ar_QA,ar_SA,ar_SD,ar_SY,ar_TN,ar_YE,be_BY,bg_BG,ca_ES,cs_CZ,da_DK,de_AT,de_BE,de_CH,de_DE,de_LU,el_GR,en_AU,en_CA,en_GB,en_IN,en_NZ,en_PH,en_US,en_ZA,en_ZW,es_AR,es_BO,es_CL,es_CO,es_CR,es_DO,es_EC,es_ES,es_GT,es_HN,es_MX,es_NI,es_PA,es_PE,es_PR,es_PY,es_SV,es_US,es_UY,es_VE,et_EE,eu_ES,fi_FI,fo_FO,fr_BE,fr_CA,fr_CH,fr_FR,fr_LU,gl_ES,gu_IN,he_IL,hi_IN,hr_HR,hu_HU,id_ID,is_IS,it_CH,it_IT,ja_JP,ko_KR,lt_LT,lv_LV,mk_MK,mn_MN,ms_MY,nb_NO,nl_BE,nl_NL,no_NO,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,ru_UA,sk_SK,sl_SI,sq_AL,sr_RS,sv_FI,sv_SE,ta_IN,te_IN,th_TH,tr_TR,uk_UA,ur_PK,vi_VN,zh_CN,zh_HK,zh_TW\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/lc_time_names\",\"name\":\"lc_time_names\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"This variable controls server-side LOCAL capability for LOAD DATA statements.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/local_infile\",\"name\":\"local_infile\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"31536000\",\"description\":\"This variable specifies the timeout in seconds for attempts to acquire metadata locks.\",\"defaultValue\":\"31536000\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/lock_wait_timeout\",\"name\":\"lock_wait_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether binlog is enabled or not. When set to ON, it will be replaced with binlog folder /app/work/binlogs. Otherwise, it will not be introduced in my.ini.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_bin\",\"name\":\"log_bin\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This variable applies when binary logging is enabled. It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log. It cannot be updated any more for a master/replica server to keep the replication consistency.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_bin_trust_function_creators\",\"name\":\"log_bin_trust_function_creators\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether MySQL writes binary log events using a Version 1 or Version 2 logging events\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_bin_use_v1_row_events\",\"name\":\"log_bin_use_v1_row_events\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether to log CREATE/ALTER USER, GRANT in backward-compatible fashion\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_builtin_as_identified_by_password\",\"name\":\"log_builtin_as_identified_by_password\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"NONE\",\"description\":\"The destination for general query log and slow query log output.\",\"defaultValue\":\"NONE\",\"dataType\":\"Set\",\"allowedValues\":\"FILE,NONE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_output\",\"name\":\"log_output\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Logs queries that are expected to retrieve all rows to slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_queries_not_using_indexes\",\"name\":\"log_queries_not_using_indexes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Normally, a slave does not write to its own binary log any updates that are received from a master server. This option causes the slave to write the updates performed by its SQL thread to its own binary log.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_slave_updates\",\"name\":\"log_slave_updates\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Include slow administrative statements in the statements written to the slow query log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_slow_admin_statements\",\"name\":\"log_slow_admin_statements\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When the slow query log is enabled, this variable enables logging for queries that have taken more than long_query_time seconds to execute on the slave.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_slow_slave_statements\",\"name\":\"log_slow_slave_statements\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"If error 1592 is encountered, controls whether the generated warnings are added to the error log or not.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_statements_unsafe_for_binlog\",\"name\":\"log_statements_unsafe_for_binlog\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether to write error log output to syslog.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_syslog\",\"name\":\"log_syslog\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"daemon\",\"description\":\"The facility for error log output written to syslog (what type of program is sending the message).\",\"defaultValue\":\"daemon\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_syslog_facility\",\"name\":\"log_syslog_facility\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether to include the server process ID in each line of error log output written to syslog.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_syslog_include_pid\",\"name\":\"log_syslog_include_pid\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"The tag to be added to the server identifier in error log output written to syslog.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_syslog_tag\",\"name\":\"log_syslog_tag\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Limits the number of such queries per minute that can be written to the slow query log.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_throttle_queries_not_using_indexes\",\"name\":\"log_throttle_queries_not_using_indexes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"UTC\",\"description\":\"This variable controls the timestamp time zone of error log messages, and of general query log and slow query log messages written to files.\",\"defaultValue\":\"UTC\",\"dataType\":\"Enumeration\",\"allowedValues\":\"UTC,SYSTEM\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_timestamps\",\"name\":\"log_timestamps\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Whether to produce additional warning messages to the error log.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/log_warnings\",\"name\":\"log_warnings\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a query takes longer than this many seconds, the server increments the Slow_queries status variable.\",\"defaultValue\":\"10\",\"dataType\":\"Numeric\",\"allowedValues\":\"0-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/long_query_time\",\"name\":\"long_query_time\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"INSERT, UPDATE, DELETE, and LOCK TABLE WRITE wait until no pending SELECT. Affects only storage engines that use only table-level locking (MyISAM, MEMORY, MERGE).\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/low_priority_updates\",\"name\":\"low_priority_updates\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive. If set to 2, table names are stored as given but compared in lowercase.\",\"defaultValue\":\"1\",\"dataType\":\"Enumeration\",\"allowedValues\":\"0,1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/lower_case_table_names\",\"name\":\"lower_case_table_names\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"TABLE\",\"description\":\"The setting of this variable determines whether the slave logs master status and connection information to a FILE (master.info), or to a TABLE (mysql.slave_master_info).\",\"defaultValue\":\"TABLE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"FILE,TABLE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/master_info_repository\",\"name\":\"master_info_repository\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enabling this variable causes the master to examine checksums when reading from the binary log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/master_verify_checksum\",\"name\":\"master_verify_checksum\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"536870912\",\"description\":\"The maximum size of one packet or any generated/intermediate string, or any parameter sent by the mysql_stmt_send_long_data() C API function.\",\"defaultValue\":\"536870912\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_allowed_packet\",\"name\":\"max_allowed_packet\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"If a transaction requires more than this many bytes of memory, the server generates a Multi-statement transaction required more than \u0027max_binlog_cache_size\u0027 bytes of storage error.\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_binlog_cache_size\",\"name\":\"max_binlog_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"104857600\",\"description\":\"If a write to the binary log causes the current log file size to exceed the value of this variable, the server rotates the binary logs (closes the current file and opens the next one).\",\"defaultValue\":\"104857600\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_binlog_size\",\"name\":\"max_binlog_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"18446744073709547520\",\"description\":\"If nontransactional statements within a transaction require more than this many bytes of memory, the server generates an error.\",\"defaultValue\":\"18446744073709547520\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-18446744073709547520\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_binlog_stmt_cache_size\",\"name\":\"max_binlog_stmt_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"100\",\"description\":\"If more than this many successive connection requests from a host are interrupted without a successful connection, the server blocks that host from further connections.\",\"defaultValue\":\"100\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_connect_errors\",\"name\":\"max_connect_errors\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"171\",\"description\":\"The maximum permitted number of simultaneous client connections.\",\"defaultValue\":\"171\",\"dataType\":\"Integer\",\"allowedValues\":\"10-341\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_connections\",\"name\":\"max_connections\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"20\",\"description\":\"Do not start more than this number of threads to handle INSERT DELAYED statements.\",\"defaultValue\":\"20\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_delayed_threads\",\"name\":\"max_delayed_threads\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The maximum number of bytes available for computing normalized statement digests.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_digest_length\",\"name\":\"max_digest_length\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"64\",\"description\":\"The maximum number of error, warning, and note messages to be stored for display by the SHOW ERRORS and SHOW WARNINGS statements.\",\"defaultValue\":\"64\",\"dataType\":\"Integer\",\"allowedValues\":\"0-65535\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_error_count\",\"name\":\"max_error_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The execution timeout for SELECT statements, in milliseconds. If the value is 0, timeouts are not enabled.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_execution_time\",\"name\":\"max_execution_time\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"This variable sets the maximum size to which user-created MEMORY tables are permitted to grow.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"16384-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_heap_table_size\",\"name\":\"max_heap_table_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"Do not permit statements that probably need to examine more than max_join_size rows\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"1-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_join_size\",\"name\":\"max_join_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The cutoff on the size of index values that determines which filesort algorithm to use.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_length_for_sort_data\",\"name\":\"max_length_for_sort_data\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"65536\",\"description\":\"The maximum value of the points_per_circle argument to the ST_Buffer_Strategy() function.\",\"defaultValue\":\"65536\",\"dataType\":\"Integer\",\"allowedValues\":\"3-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_points_in_geometry\",\"name\":\"max_points_in_geometry\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16382\",\"description\":\"This variable limits the total number of prepared statements in the server.\",\"defaultValue\":\"16382\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_prepared_stmt_count\",\"name\":\"max_prepared_stmt_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"104857600\",\"description\":\"The size at which the server rotates relay log files automatically. If this value is nonzero, the relay log is rotated automatically when its size exceeds this value. If this value is zero (the default), the size at which relay log rotation occurs is determined by the value of max_binlog_size.\",\"defaultValue\":\"104857600\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_relay_log_size\",\"name\":\"max_relay_log_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"Limit the assumed maximum number of seeks when looking up rows based on a key.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_seeks_for_key\",\"name\":\"max_seeks_for_key\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The number of bytes to use when sorting data values.\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"4-8388608\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_sort_length\",\"name\":\"max_sort_length\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The number of times that any given stored procedure may be called recursively. The default value for this option is 0, which completely disables recursion in stored procedures.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-255\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_sp_recursion_depth\",\"name\":\"max_sp_recursion_depth\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"32\",\"description\":\"The maximum number of temporary tables a client can keep open at the same time.\",\"defaultValue\":\"32\",\"dataType\":\"Integer\",\"allowedValues\":\"1-9223372036854775807\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_tmp_tables\",\"name\":\"max_tmp_tables\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The maximum number of simultaneous connections permitted to any given MySQL user account. A value of 0 (the default) means \u0027no limit.\u0027\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_user_connections\",\"name\":\"max_user_connections\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4294967295\",\"description\":\"After this many write locks, permit some pending read lock requests to be processed in between.\",\"defaultValue\":\"4294967295\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/max_write_lock_count\",\"name\":\"max_write_lock_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The size of the metadata locks cache\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"1-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/metadata_locks_cache_size\",\"name\":\"metadata_locks_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Can be used to cause queries which examine fewer than the stated number of rows not to be logged.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/min_examined_row_limit\",\"name\":\"min_examined_row_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This variable controls whether the mysql_native_password built-in authentication plugin supports proxy users.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/mysql_native_password_proxy_users\",\"name\":\"mysql_native_password_proxy_users\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16384\",\"description\":\"Each client thread is associated with a connection buffer and result buffer. Both begin with a size given by net_buffer_length but are dynamically enlarged up to max_allowed_packet bytes as needed.\",\"defaultValue\":\"16384\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/net_buffer_length\",\"name\":\"net_buffer_length\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"120\",\"description\":\"The number of seconds the server waits for network reading action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/net_read_timeout\",\"name\":\"net_read_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"240\",\"description\":\"The number of seconds the server waits for network writing action, especially for LOAD DATA LOCAL FILE.\",\"defaultValue\":\"240\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/net_write_timeout\",\"name\":\"net_write_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Defines the n-gram token size for the n-gram full-text parser. \",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"1-10\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/ngram_token_size\",\"name\":\"ngram_token_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"In offline mode, clients that are refused access receive an ER_SERVER_OFFLINE_MODE error.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/offline_mode\",\"name\":\"offline_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"Force the server to generate short (pre-4.1) password hashes for new passwords. This is useful for compatibility when the server must support older client programs.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/old_passwords\",\"name\":\"old_passwords\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"5000\",\"description\":\"The number of files that the operating system permits mysqld to open.\",\"defaultValue\":\"5000\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/open_files_limit\",\"name\":\"open_files_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Controls the heuristics applied during query optimization to prune less-promising partial plans from the optimizer search space.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0,1\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_prune_level\",\"name\":\"optimizer_prune_level\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"62\",\"description\":\"The maximum depth of search performed by the query optimizer.\",\"defaultValue\":\"62\",\"dataType\":\"Integer\",\"allowedValues\":\"0-62\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_search_depth\",\"name\":\"optimizer_search_depth\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"default\",\"description\":\"The value of this variable is a set of flags, each of which has a value of on or off to indicate whether the corresponding optimizer behavior is enabled or disabled.\",\"defaultValue\":\"default\",\"dataType\":\"Set\",\"allowedValues\":\"default,batched_key_access=on,batched_key_access=off,block_nested_loop=on,block_nested_loop=off,condition_fanout_filter=on,condition_fanout_filter=off,derived_merge=on,derived_merge=off,duplicateweedout=on,duplicateweedout=off,engine_condition_pushdown=on,engine_condition_pushdown=off,firstmatch=on,firstmatch=off,index_condition_pushdown=on,index_condition_pushdown=off,index_merge=on,index_merge=off,index_merge_intersection=on,index_merge_intersection=off,index_merge_sort_union=on,index_merge_sort_union=off,index_merge_union=on,index_merge_union=off,loosescan=on,loosescan=off,materialization=on,materialization=off,mrr=on,mrr=off,mrr_cost_based=on,mrr_cost_based=off,semijoin=on,semijoin=off,subquery_materialization_cost_based=on,subquery_materialization_cost_based=off,use_index_extensions=on,use_index_extensions=off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_switch\",\"name\":\"optimizer_switch\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"enabled=off,one_line=off\",\"description\":\"Controls how statements are traced.\",\"defaultValue\":\"enabled=off,one_line=off\",\"dataType\":\"Set\",\"allowedValues\":\"default,enabled=on,enabled=off,one_line=on,one_line=off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_trace\",\"name\":\"optimizer_trace\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"greedy_search=on,range_optimizer=on,dynamic_range=on,repeated_subselect=on\",\"description\":\"Controls optimizations during statement tracing.\",\"defaultValue\":\"greedy_search=on,range_optimizer=on,dynamic_range=on,repeated_subselect=on\",\"dataType\":\"Set\",\"allowedValues\":\"default,greedy_search=on,greedy_search=off,range_optimizer=on,range_optimizer=off,dynamic_range=on,dynamic_range=off,repeated_subselect=on,repeated_subselect=off\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_trace_features\",\"name\":\"optimizer_trace_features\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"Controls the limit on trace retention.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-9223372036854775807\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_trace_limit\",\"name\":\"optimizer_trace_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16384\",\"description\":\"Maximum allowed cumulated size of stored optimizer traces\",\"defaultValue\":\"16384\",\"dataType\":\"Integer\",\"allowedValues\":\"0-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_trace_max_mem_size\",\"name\":\"optimizer_trace_max_mem_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"-1\",\"description\":\"Controls the offset on trace retention.\",\"defaultValue\":\"-1\",\"dataType\":\"Integer\",\"allowedValues\":\"-9223372036854770000-9223372036854770000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/optimizer_trace_offset\",\"name\":\"optimizer_trace_offset\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"18446744073709551615\",\"description\":\"The maximum amount of memory available to the parser.\",\"defaultValue\":\"18446744073709551615\",\"dataType\":\"Integer\",\"allowedValues\":\"10000000-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/parser_max_mem_size\",\"name\":\"parser_max_mem_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"The value of this variable is ON or OFF to indicate whether the Performance Schema is enabled.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema\",\"name\":\"performance_schema\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"80\",\"description\":\"The maximum number of condition instruments. \",\"defaultValue\":\"80\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_cond_classes\",\"name\":\"performance_schema_max_cond_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"80\",\"description\":\"The maximum number of file instruments. \",\"defaultValue\":\"80\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_file_classes\",\"name\":\"performance_schema_max_file_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"The maximum number of opened file objects. \",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_file_handles\",\"name\":\"performance_schema_max_file_handles\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"320\",\"description\":\"The maximum number of memory instruments.\",\"defaultValue\":\"320\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_memory_classes\",\"name\":\"performance_schema_max_memory_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"200\",\"description\":\"The maximum number of mutex instruments. \",\"defaultValue\":\"200\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_mutex_classes\",\"name\":\"performance_schema_max_mutex_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"40\",\"description\":\"The maximum number of rwlock instruments. \",\"defaultValue\":\"40\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_rwlock_classes\",\"name\":\"performance_schema_max_rwlock_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"The maximum number of socket instruments. \",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_socket_classes\",\"name\":\"performance_schema_max_socket_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1024\",\"description\":\"The maximum number of bytes used to store SQL statements in the SQL_TEXT column\",\"defaultValue\":\"1024\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1048576\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_sql_text_length\",\"name\":\"performance_schema_max_sql_text_length\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"150\",\"description\":\"The maximum number of stage instruments. \",\"defaultValue\":\"150\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_stage_classes\",\"name\":\"performance_schema_max_stage_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"The maximum depth of nested stored program calls for which the Performance Schema maintains statistics.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_statement_stack\",\"name\":\"performance_schema_max_statement_stack\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"50\",\"description\":\"The maximum number of thread instruments. \",\"defaultValue\":\"50\",\"dataType\":\"Integer\",\"allowedValues\":\"0-256\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/performance_schema_max_thread_classes\",\"name\":\"performance_schema_max_thread_classes\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Tells the server to load the named plugins at startup.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/plugin-load\",\"name\":\"plugin-load\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"32768\",\"description\":\"The size of the buffer that is allocated when preloading indexes.\",\"defaultValue\":\"32768\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/preload_buffer_size\",\"name\":\"preload_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"15\",\"description\":\"The number of statements for which to maintain profiling if profiling is enabled.\",\"defaultValue\":\"15\",\"dataType\":\"Integer\",\"allowedValues\":\"0-100\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/profiling_history_size\",\"name\":\"profiling_history_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The allocation size of memory blocks that are allocated for objects created during statement parsing and execution.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_alloc_block_size\",\"name\":\"query_alloc_block_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1048576\",\"description\":\"Do not cache results that are larger than this number of bytes.\",\"defaultValue\":\"1048576\",\"dataType\":\"Integer\",\"allowedValues\":\"0-134217728\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_cache_limit\",\"name\":\"query_cache_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The minimum size (in bytes) for blocks allocated by the query cache.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"512-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_cache_min_res_unit\",\"name\":\"query_cache_min_res_unit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The amount of memory allocated for caching query results.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0,102400-134217728\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_cache_size\",\"name\":\"query_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Set the query cache type.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF,DEMAND\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_cache_type\",\"name\":\"query_cache_type\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Setting this variable to 1 causes acquisition of a WRITE lock for a table to invalidate any queries in the query cache that refer to the table.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_cache_wlock_invalidate\",\"name\":\"query_cache_wlock_invalidate\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The size of the persistent buffer used for statement parsing and execution. This buffer is not freed between statements. If you are running complex queries, a larger value might be helpful in improving performance, because it can reduce the need for the server to perform memory allocation during query execution operations.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"8192-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/query_prealloc_size\",\"name\":\"query_prealloc_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"The size of blocks that are allocated when doing range optimization.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/range_alloc_block_size\",\"name\":\"range_alloc_block_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8388608\",\"description\":\"The limit on memory consumption for the range optimizer. A value of 0 means \u0027no limit.\u0027\",\"defaultValue\":\"8388608\",\"dataType\":\"Integer\",\"allowedValues\":\"4096-134217728\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/range_optimizer_max_mem_size\",\"name\":\"range_optimizer_max_mem_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"131072\",\"description\":\"Each thread that does a sequential scan allocates this buffer. Increased value may help perf if performing many sequential scans.\",\"defaultValue\":\"131072\",\"dataType\":\"Integer\",\"allowedValues\":\"8200-2147479552\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/read_buffer_size\",\"name\":\"read_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This parameter controls whetherthe server permits no client updates. When the server is read replica or server storage is full, this parameter will not take effect.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/read_only\",\"name\":\"read_only\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"Avoids disk reads when reading rows in sorted order following a key-sort operation. Large values can improve ORDER BY perf.\",\"defaultValue\":\"262144\",\"dataType\":\"Integer\",\"allowedValues\":\"8200-2147479552\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/read_rnd_buffer_size\",\"name\":\"read_rnd_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/relaylogs/relay_bin\",\"description\":\"Relay log path.\",\"defaultValue\":\"/app/work/relaylogs/relay_bin\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log\",\"name\":\"relay_log\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/relaylogs/relay_bin.index\",\"description\":\"Relay log index path.\",\"defaultValue\":\"/app/work/relaylogs/relay_bin.index\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log_index\",\"name\":\"relay_log_index\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"TABLE\",\"description\":\"This variable determines whether the slave\u0027s position in the relay logs is written to a FILE (relay-log.info) or to a TABLE (mysql.slave_relay_log_info).\",\"defaultValue\":\"TABLE\",\"dataType\":\"Enumeration\",\"allowedValues\":\"FILE,TABLE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log_info_repository\",\"name\":\"relay_log_info_repository\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Disable or enable automatic purging of relay logs as soon as they are no longer needed.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log_purge\",\"name\":\"relay_log_purge\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Enables automatic relay log recovery immediately following server startup.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log_recovery\",\"name\":\"relay_log_recovery\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1073741824\",\"description\":\"This option places an upper limit on the total size in bytes of all relay logs on the slave.\",\"defaultValue\":\"1073741824\",\"dataType\":\"Integer\",\"allowedValues\":\"1073741824-3221225472\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/relay_log_space_limit\",\"name\":\"relay_log_space_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"mysql.%\",\"description\":\"Creates a replication filter which keeps the slave thread from replicating a statement in which any table matches the given wildcard pattern. To specify more than one table to ignore, use comma-separated list.\",\"defaultValue\":\"mysql.%\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/replicate_wild_ignore_table\",\"name\":\"replicate_wild_ignore_table\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Whether client connections to the server are required to use some form of secure transport. When this variable is enabled, the server permits only TCP/IP connections that use SSL, or connections that use a socket file (on Unix) or shared memory (on Windows). \",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/require_secure_transport\",\"name\":\"require_secure_transport\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"31536000\",\"description\":\"In MySQL 5.6.13 and later, you can control the length of time (in seconds) that STOP SLAVE waits before timing out by setting this variable.\",\"defaultValue\":\"31536000\",\"dataType\":\"Integer\",\"allowedValues\":\"2-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/rpl_stop_slave_timeout\",\"name\":\"rpl_stop_slave_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Blocks connections from all accounts that have passwords stored in the old (pre-4.1) format.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/secure_auth\",\"name\":\"secure_auth\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"This variable is used to limit the effect of data import and export operations, such as those performed by the LOAD DATA and SELECT ... INTO OUTFILE statements and the LOAD_FILE() function.\",\"defaultValue\":\"\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/secure_file_priv\",\"name\":\"secure_file_priv\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1236947509\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls whether the server tracks changes to the default schema (database) name within the current session and makes this information available to the client when changes occur.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/session_track_schema\",\"name\":\"session_track_schema\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Controls whether the server tracks changes to the state of the current session and notifies the client when state changes occur.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/session_track_state_change\",\"name\":\"session_track_state_change\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"time_zone, autocommit, character_set_client, character_set_results, character_set_connection\",\"description\":\"Controls whether the server tracks changes to the session system variables and makes this information available to the client when changes occur.\",\"defaultValue\":\"time_zone, autocommit, character_set_client, character_set_results, character_set_connection\",\"dataType\":\"Set\",\"allowedValues\":\"time_zone,autocommit,character_set_client,character_set_results,character_set_connection\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/session_track_system_variables\",\"name\":\"session_track_system_variables\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Track changes to the transaction attributes.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,STATE,CHARACTERISTICS\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/session_track_transaction_info\",\"name\":\"session_track_transaction_info\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Controls whether the server autogenerates RSA private/public key-pair files in the data directory.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sha256_password_auto_generate_rsa_keys\",\"name\":\"sha256_password_auto_generate_rsa_keys\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Controls whether the sha256_password built-in authentication plugin supports proxy users.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sha256_password_proxy_users\",\"name\":\"sha256_password_proxy_users\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Affects whether MySQL 5.6 compatibility is enabled with respect to how system and status variable information is provided by the INFORMATION_SCHEMA and Performance Schema tables, and also by the SHOW VARIABLES and SHOW STATUS statements.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/show_compatibility_56\",\"name\":\"show_compatibility_56\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether SHOW CREATE TABLE output includes comments to flag temporal columns found to be in pre-5.6.4 format.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/show_old_temporals\",\"name\":\"show_old_temporals\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Uses OS locking instead of internal\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/skip_external_locking\",\"name\":\"skip_external_locking\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"Host names are not resolved. All Host column values in the grant tables must be IP numbers or localhost.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/skip_name_resolve\",\"name\":\"skip_name_resolve\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This prevents people from using the SHOW DATABASES statement if they do not have the SHOW DATABASES privilege. \",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/skip_show_database\",\"name\":\"skip_show_database\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"False\",\"description\":\"Tells the slave server not to start the slave threads when the server starts.\",\"defaultValue\":\"False\",\"dataType\":\"Enumeration\",\"allowedValues\":\"TRUE,FALSE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/skip-slave-start\",\"name\":\"skip-slave-start\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether or not batched updates are enabled on replication slaves.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_allow_batching\",\"name\":\"slave_allow_batching\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"512\",\"description\":\"Sets the maximum number of transactions that can be processed by a multi-threaded slave before a checkpoint operation is called to update its status as shown by SHOW SLAVE STATUS.\",\"defaultValue\":\"512\",\"dataType\":\"Integer\",\"allowedValues\":\"32-524280\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_checkpoint_group\",\"name\":\"slave_checkpoint_group\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"300\",\"description\":\"Sets the maximum time (in milliseconds) that is allowed to pass before a checkpoint operation is called to update the status of a multi-threaded slave as shown by SHOW SLAVE STATUS.\",\"defaultValue\":\"300\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_checkpoint_period\",\"name\":\"slave_checkpoint_period\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Whether to use compression of the slave/master protocol if both the slave and the master support it.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_compressed_protocol\",\"name\":\"slave_compressed_protocol\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"STRICT\",\"description\":\"Controls how a slave thread resolves conflicts and errors during replication.\",\"defaultValue\":\"STRICT\",\"dataType\":\"Enumeration\",\"allowedValues\":\"IDEMPOTENT,STRICT\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_exec_mode\",\"name\":\"slave_exec_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/temp\",\"description\":\"The name of the directory where the slave creates temporary files.\",\"defaultValue\":\"/app/work/temp\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_load_tmpdir\",\"name\":\"slave_load_tmpdir\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1073741824\",\"description\":\"In MySQL 5.6.6 and later, this option sets the maximum packet size in bytes for the slave SQL and I/O threads.\",\"defaultValue\":\"1073741824\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_max_allowed_packet\",\"name\":\"slave_max_allowed_packet\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"60\",\"description\":\"The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect.\",\"defaultValue\":\"60\",\"dataType\":\"Integer\",\"allowedValues\":\"30-3600\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_net_timeout\",\"name\":\"slave_net_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"LOGICAL_CLOCK\",\"description\":\"The policy used to decide which transactions are allowed to execute in parallel on the slave.\",\"defaultValue\":\"LOGICAL_CLOCK\",\"dataType\":\"Enumeration\",\"allowedValues\":\"DATABASE,LOGICAL_CLOCK\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_parallel_type\",\"name\":\"slave_parallel_type\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Sets the number of slave worker threads for executing replication events (transactions) in parallel.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-512\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_parallel_workers\",\"name\":\"slave_parallel_workers\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"For multithreaded slaves, this variable sets the maximum amount of memory (in bytes) available to slave worker queues holding events not yet applied.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-18446744073709551615\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_pending_jobs_size_max\",\"name\":\"slave_pending_jobs_size_max\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"For multi-threaded slaves, enabling this variable ensures that transactions are externalized on the slave in the same order as they appear in the slave\u0027s relay log.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_preserve_commit_order\",\"name\":\"slave_preserve_commit_order\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"TABLE_SCAN,INDEX_SCAN\",\"description\":\"When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches???that is, whether or not hashing is used for searches using a primary or unique key, using some other key, or using no key at all.\",\"defaultValue\":\"TABLE_SCAN,INDEX_SCAN\",\"dataType\":\"Set\",\"allowedValues\":\"TABLE_SCAN,INDEX_SCAN,HASH_SCAN\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_rows_search_algorithms\",\"name\":\"slave_rows_search_algorithms\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Normally, replication stops when an error occurs on the slave. This gives you the opportunity to resolve the inconsistency in the data manually.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,all,ddl_exist_errors\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_skip_errors\",\"name\":\"slave_skip_errors\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"When this option is enabled, the slave examines checksums read from the relay log, in the event of a mismatch, the slave stops with an error.\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_sql_verify_checksum\",\"name\":\"slave_sql_verify_checksum\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"10\",\"description\":\"If a replication slave SQL thread fails to execute a transaction because of an InnoDB deadlock or because the transaction\u0027s execution time exceeded InnoDB\u0027s innodb_lock_wait_timeout or NDB\u0027s TransactionDeadlockDetectionTimeout or TransactionInactiveTimeout, it automatically retries slave_transaction_retries times before stopping with an error.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_transaction_retries\",\"name\":\"slave_transaction_retries\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"\",\"description\":\"Controls the type conversion mode in effect on the slave when using row-based replication.\",\"defaultValue\":\"\",\"dataType\":\"Set\",\"allowedValues\":\",ALL_LOSSY,ALL_NON_LOSSY,ALL_SIGNED,ALL_UNSIGNED\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slave_type_conversions\",\"name\":\"slave_type_conversions\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"2\",\"description\":\"Increments Slow_launch_threads if creating thread takes longer than this many seconds.\",\"defaultValue\":\"2\",\"dataType\":\"Integer\",\"allowedValues\":\"0-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slow_launch_time\",\"name\":\"slow_launch_time\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Enable or disable the slow query log\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slow_query_log\",\"name\":\"slow_query_log\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/serverlogs/mysql-slow-mysql-test-100-2020111008.log\",\"description\":\"The name of the slow query log file.\",\"defaultValue\":\"mysql-slow.log\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/slow_query_log_file\",\"name\":\"slow_query_log_file\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"524288\",\"description\":\"Each session that must perform a sort allocates a buffer of this size.\",\"defaultValue\":\"524288\",\"dataType\":\"Integer\",\"allowedValues\":\"32768-33554432\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sort_buffer_size\",\"name\":\"sort_buffer_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\",\"description\":\"The current server SQL mode.\",\"defaultValue\":\"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\",\"dataType\":\"Set\",\"allowedValues\":\",ALLOW_INVALID_DATES,ANSI_QUOTES,ERROR_FOR_DIVISION_BY_ZERO,HIGH_NOT_PRECEDENCE,IGNORE_SPACE,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION,NO_FIELD_OPTIONS,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_UNSIGNED_SUBTRACTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,PAD_CHAR_TO_FULL_LENGTH,PIPES_AS_CONCAT,REAL_AS_FLOAT,STRICT_ALL_TABLES,STRICT_TRANS_TABLES\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sql_mode\",\"name\":\"sql_mode\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"When set, tables must be created with a primary key, and an existing primary key cannot be removed with \u0027ALTER TABLE\u0027. Attempts to do so will result in an error\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON, OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sql_require_primary_key\",\"name\":\"sql_require_primary_key\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-CCM:DHE-RSA-AES256-CCM:DHE-RSA-AES128-CCM8:DHE-RSA-AES256-CCM8\",\"description\":\"The list of permissible ciphers for connection encryption. By default, the FIPS cipher suites for TLS 1.2 are enforced.\",\"defaultValue\":\"ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-CCM:DHE-RSA-AES256-CCM:DHE-RSA-AES128-CCM8:DHE-RSA-AES256-CCM8\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/ssl_cipher\",\"name\":\"ssl_cipher\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"256\",\"description\":\"Sets a soft upper limit for the number of cached stored routines per connection.\",\"defaultValue\":\"256\",\"dataType\":\"Integer\",\"allowedValues\":\"16-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/stored_program_cache\",\"name\":\"stored_program_cache\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"This parameter controls the server prohibits client updates even from users who have SUPER.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/super_read_only\",\"name\":\"super_read_only\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The size in bytes of the buffer that InnoDB uses to write to the log files on disk.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-1024\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sync_binlog\",\"name\":\"sync_binlog\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"ON\",\"description\":\"If this variable is set to 1, when any nontemporary table is created its .frm file is synchronized to disk\",\"defaultValue\":\"ON\",\"dataType\":\"Enumeration\",\"allowedValues\":\"ON,OFF\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sync_frm\",\"name\":\"sync_frm\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"The effects of this variable on a replication slave depend on whether the slave\u0027s master_info_repository is set to FILE or TABLE\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sync_master_info\",\"name\":\"sync_master_info\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"0\",\"description\":\"If the value of this variable is greater than 0, the MySQL server synchronizes its relay log to disk (using fdatasync()) after every sync_relay_log events are written to the relay log.\",\"defaultValue\":\"0\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sync_relay_log\",\"name\":\"sync_relay_log\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The effects of this variable on the slave depend on the server\u0027s relay_log_info_repository setting (FILE or TABLE), and if this is TABLE, additionally on whether the storage engine used by the relay log info table is transactional (such as InnoDB) or not (MyISAM). \",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"0-4294967295\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/sync_relay_log_info\",\"name\":\"sync_relay_log_info\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"600\",\"description\":\"The number of table definitions (from .frm files) that can be stored in the definition cache.\",\"defaultValue\":\"600\",\"dataType\":\"Integer\",\"allowedValues\":\"400-524288\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/table_definition_cache\",\"name\":\"table_definition_cache\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"600\",\"description\":\"The number of open tables for all threads.\",\"defaultValue\":\"600\",\"dataType\":\"Integer\",\"allowedValues\":\"1-160000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/table_open_cache\",\"name\":\"table_open_cache\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"1\",\"description\":\"The number of open tables cache instances.\",\"defaultValue\":\"1\",\"dataType\":\"Integer\",\"allowedValues\":\"1-64\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/table_open_cache_instances\",\"name\":\"table_open_cache_instances\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"9\",\"description\":\"How many threads the server should cache for reuse. The default value is 8 + (max_connections / 100), capped to a limit of 100.\",\"defaultValue\":\"9\",\"dataType\":\"Integer\",\"allowedValues\":\"0-16384\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/thread_cache_size\",\"name\":\"thread_cache_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"one-thread-per-connection\",\"description\":\"The thread-handling model used by the server for connection threads.\",\"defaultValue\":\"one-thread-per-connection\",\"dataType\":\"Enumeration\",\"allowedValues\":\"one-thread-per-connection,no-threads,pool-of-threads,loaded-dynamically\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/thread_handling\",\"name\":\"thread_handling\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"262144\",\"description\":\"The stack size for each thread.\",\"defaultValue\":\"262144\",\"dataType\":\"Integer\",\"allowedValues\":\"131072-2147483136\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/thread_stack\",\"name\":\"thread_stack\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"+00:00\",\"description\":\"The server time zone\",\"defaultValue\":\"+00:00\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"TLSv1.2\",\"description\":\"Which protocols the server permits for encrypted connections. By default, TLS 1.2 is enforced\",\"defaultValue\":\"TLSv1.2\",\"dataType\":\"Set\",\"allowedValues\":\"TLSv1,TLSv1.1,TLSv1.2\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/tls_version\",\"name\":\"tls_version\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"16777216\",\"description\":\"The maximum size of internal in-memory temporary tables. This variable does not apply to user-created MEMORY tables.\",\"defaultValue\":\"16777216\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-1073741824\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/tmp_table_size\",\"name\":\"tmp_table_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"/app/work/temp\",\"description\":\"The path of the directory to use for creating temporary files.\",\"defaultValue\":\"/app/work/temp\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"False\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/tmpdir\",\"name\":\"tmpdir\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"8192\",\"description\":\"The amount in bytes by which to increase a per-transaction memory pool which needs memory.\",\"defaultValue\":\"8192\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/transaction_alloc_block_size\",\"name\":\"transaction_alloc_block_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"4096\",\"description\":\"There is a per-transaction memory pool from which various transaction-related allocations take memory. The initial size of the pool in bytes is transaction_prealloc_size.\",\"defaultValue\":\"4096\",\"dataType\":\"Integer\",\"allowedValues\":\"1024-131072\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/transaction_prealloc_size\",\"name\":\"transaction_prealloc_size\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"OFF\",\"description\":\"Reserved for future use.\",\"defaultValue\":\"OFF\",\"dataType\":\"Enumeration\",\"allowedValues\":\"OFF,MURMUR32\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/transaction_write_set_extraction\",\"name\":\"transaction_write_set_extraction\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"REPEATABLE-READ\",\"description\":\"The default transaction isolation level.\",\"defaultValue\":\"REPEATABLE-READ\",\"dataType\":\"Enumeration\",\"allowedValues\":\"READ-UNCOMMITTED,READ-COMMITTED,REPEATABLE-READ,SERIALIZABLE\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/tx_isolation\",\"name\":\"tx_isolation\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"YES\",\"description\":\"This variable controls whether updates to a view can be made when the view does not contain all columns of the primary key defined in the underlying table, if the update statement contains a LIMIT clause.\",\"defaultValue\":\"YES\",\"dataType\":\"Enumeration\",\"allowedValues\":\"YES,NO\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/updatable_views_with_limit\",\"name\":\"updatable_views_with_limit\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"},{\"properties\":{\"value\":\"28800\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"28800\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"}]}" + } + }, + "Get-AzMySqlFlexibleServerConfiguration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/time_zone?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/time_zone?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "6413592a-6564-490a-a713-75ee8e96b100" ], + "CommandName": [ "Get-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ee55cd8e-03b5-40c2-8773-c1a569c87852" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "01e89162-5591-423a-a960-241e5b41609e" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222005Z:01e89162-5591-423a-a960-241e5b41609e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "488" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"+00:00\",\"description\":\"The server time zone\",\"defaultValue\":\"+00:00\",\"dataType\":\"String\",\"allowedValues\":\"\",\"source\":\"system-default\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/time_zone\",\"name\":\"time_zone\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"}" + } + }, + "Get-AzMySqlFlexibleServerConfiguration+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/server_id?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/server_id?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "0a3e6986-cf80-4f97-9d59-aad92d37f1bd" ], + "CommandName": [ "Get-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerConfiguration_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b5da3355-764a-4ad8-bdce-efa145db3ec8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "f9b291b2-3a25-4496-b3f3-7a1e31660dd5" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222006Z:f9b291b2-3a25-4496-b3f3-7a1e31660dd5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "568" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"1236947509\",\"description\":\"The server ID, used in replication to give each master and slave a unique identity.\",\"defaultValue\":\"1000\",\"dataType\":\"Integer\",\"allowedValues\":\"1000-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/server_id\",\"name\":\"server_id\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Tests.ps1 new file mode 100644 index 000000000000..64a919a51fc6 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerConfiguration.Tests.ps1 @@ -0,0 +1,36 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerConfiguration.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerConfiguration' { + It 'List' { + { + $config = Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $config.Count | Should -BeGreaterOrEqual 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $config = Get-AzMySqlFlexibleServerConfiguration -Name time_zone -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $config.Name | Should -Be time_zone + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/configurations/server_id" + $config = Get-AzMySqlFlexibleServerConfiguration -InputObject $ID + $config.Name | Should -Be server_id + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Recording.json new file mode 100644 index 000000000000..cf8a8cbc7b1a --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Recording.json @@ -0,0 +1,356 @@ +{ + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/96326ee6-19e9-49da-bf99-cef36c9b88fa?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/96326ee6-19e9-49da-bf99-cef36c9b88fa?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "96326ee6-19e9-49da-bf99-cef36c9b88fa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "b61c1f27-5839-4295-ba95-91f7e626b996" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220332Z:b61c1f27-5839-4295-ba95-91f7e626b996" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "93" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:03:32.76Z\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/96326ee6-19e9-49da-bf99-cef36c9b88fa?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/96326ee6-19e9-49da-bf99-cef36c9b88fa?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "b78e8cb3-8b5a-45fe-8249-7dca83ed365d" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d68e0b6c-da50-446c-9434-1924e54da61e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "7a878465-d1b9-4564-b3e5-589809043c2f" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220348Z:7a878465-d1b9-4564-b3e5-589809043c2f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"96326ee6-19e9-49da-bf99-cef36c9b88fa\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:03:32.76Z\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "b78e8cb3-8b5a-45fe-8249-7dca83ed365d" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "77b3cd47-3482-4d7e-a2f1-ff1f5b6c0207" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "bfcc0b59-1aac-49f7-baa0-f0baec4fbe80" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220348Z:bfcc0b59-1aac-49f7-baa0-f0baec4fbe80" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "354934c3-e026-4fcc-878f-b01c1dab8880" ], + "CommandName": [ "Get-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerDatabase_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06a0ccdf-bf87-4c38-98cf-0b08ad6ef4f4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ace51840-ca64-416a-a453-9a42d96d6f7e" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220348Z:ace51840-ca64-416a-a453-9a42d96d6f7e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1556" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"charset\":\"utf8\",\"collation\":\"utf8_general_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/information_schema\",\"name\":\"information_schema\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"},{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysql\",\"name\":\"mysql\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"},{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"},{\"properties\":{\"charset\":\"utf8\",\"collation\":\"utf8_general_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/performance_schema\",\"name\":\"performance_schema\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"},{\"properties\":{\"charset\":\"utf8\",\"collation\":\"utf8_general_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/sys\",\"name\":\"sys\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}]}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "e71a9def-3afb-4b7f-a5ee-976b441a0952" ], + "CommandName": [ "Get-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerDatabase_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1fe5570d-b10e-4140-b319-501d50da607e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "e0cb9f6d-e06e-42c6-acee-ef0f9b619eb3" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220349Z:e0cb9f6d-e06e-42c6-acee-ef0f9b619eb3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "723f1861-52c7-4fea-ab61-e70c6864a186" ], + "CommandName": [ "Get-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerDatabase_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4ca591e3-07a5-4d5f-8cd5-02f1fe482df7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "b873def8-9b4b-4688-a719-9e9bab0e26b7" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220349Z:b873def8-9b4b-4688-a719-9e9bab0e26b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c05ec1b6-4f8c-42fa-ab52-ec89683ff269" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "868f7062-663d-46f3-83d6-1e53eba390e0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "53eb45d6-650f-4dca-b75b-55e97e7a3835" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220350Z:53eb45d6-650f-4dca-b75b-55e97e7a3835" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:03:49 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "92" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:03:50.273Z\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "c05ec1b6-4f8c-42fa-ab52-ec89683ff269" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2a17d978-d911-45ec-a15e-f7ad0bd6cf73" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "567fee58-2be3-4ea9-a09a-190b99bc0666" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220405Z:567fee58-2be3-4ea9-a09a-190b99bc0666" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"868f7062-663d-46f3-83d6-1e53eba390e0\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:03:50.273Z\"}" + } + }, + "Get-AzMySqlFlexibleServerDatabase+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/868f7062-663d-46f3-83d6-1e53eba390e0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "c05ec1b6-4f8c-42fa-ab52-ec89683ff269" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "562bc2c6-fd7f-466c-b391-57f8e3bf892b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "be5a60f5-ed70-4b1b-98ca-5a4f17d1a2de" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220405Z:be5a60f5-ed70-4b1b-98ca-5a4f17d1a2de" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "254" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Tests.ps1 new file mode 100644 index 000000000000..4be922f379df --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerDatabase.Tests.ps1 @@ -0,0 +1,40 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerDatabase' { + It 'List' { + { + New-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + $database = Get-AzMySqlFlexibleServerDatabase -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $database.Count | Should -BeGreaterThan 0 + } | Should -Not -Throw + } + + It 'Get' { + { + $database = Get-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $database.Collation | Should -Be "latin1_swedish_ci" + $database.Charset | Should -Be "latin1" + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/databases/$($env.databaseName)" + $database = Get-AzMySqlFlexibleServerDatabase -InputObject $ID + $database.Collation | Should -Be "latin1_swedish_ci" + $database.Charset | Should -Be "latin1" + Remove-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..34844cf42039 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,355 @@ +{ + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/1e8ff943-a93f-4526-88a5-28bbe71c90eb?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1e8ff943-a93f-4526-88a5-28bbe71c90eb?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1e8ff943-a93f-4526-88a5-28bbe71c90eb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "f6722fee-689b-496a-bb1f-443943ab2e2d" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085851Z:f6722fee-689b-496a-bb1f-443943ab2e2d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:58:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T08:58:51.333Z\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1e8ff943-a93f-4526-88a5-28bbe71c90eb?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1e8ff943-a93f-4526-88a5-28bbe71c90eb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "2e215d2d-2e21-45f4-bb90-a0429f193b2f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c14e93f3-97ab-45ee-b69a-a2c59f27f479" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "e57a400f-a9ec-421f-b122-e1d5f00f6582" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085951Z:e57a400f-a9ec-421f-b122-e1d5f00f6582" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1e8ff943-a93f-4526-88a5-28bbe71c90eb\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T08:58:51.333Z\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "2e215d2d-2e21-45f4-bb90-a0429f193b2f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "123ab935-8d93-4d8b-8727-24d5c510a3b9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "72b38835-2d21-411d-8253-a45c4acd71f9" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085952Z:72b38835-2d21-411d-8253-a45c4acd71f9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "e4ce5b69-a37d-4239-8c7e-18caad82820b" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7bed6708-ccc6-4724-ab91-07f3a96b92c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "bd003fe4-59a0-42fe-b77b-7814b278b76c" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085952Z:bd003fe4-59a0-42fe-b77b-7814b278b76c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "161" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}]}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "8ad4ff35-00a5-4b34-893c-0eda146d6fe3" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c8c89e0c-5c98-4efd-92f3-ff7cb902f288" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "feae2fe5-a8bb-491d-80ab-e67f7976ddf9" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085952Z:feae2fe5-a8bb-491d-80ab-e67f7976ddf9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "9cc628db-0b1e-4407-8bd5-6818335f15c6" ], + "CommandName": [ "Get-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServerFirewallRule_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0a374e16-cd9e-4799-bdd6-f41ad856a054" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "9118538f-6a8a-407e-b80f-6a881e098f75" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085952Z:9118538f-6a8a-407e-b80f-6a881e098f75" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "bc5100ec-cce1-4d2c-b4d7-6788e3551836" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f1d410fb-6f8f-41c6-bc39-1156abdb00d5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "14bdfe74-5b5b-4a3a-ae6f-5c6a09863d2f" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T085953Z:14bdfe74-5b5b-4a3a-ae6f-5c6a09863d2f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 08:59:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T08:59:53.133Z\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "bc5100ec-cce1-4d2c-b4d7-6788e3551836" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6a10b21a-2c6a-4e04-b5c4-1ee259daff38" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "e06fb5ef-01d1-48a1-8113-bca83ff535cd" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090053Z:e06fb5ef-01d1-48a1-8113-bca83ff535cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:00:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"f1d410fb-6f8f-41c6-bc39-1156abdb00d5\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T08:59:53.133Z\"}" + } + }, + "Get-AzMySqlFlexibleServerFirewallRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/f1d410fb-6f8f-41c6-bc39-1156abdb00d5?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "bc5100ec-cce1-4d2c-b4d7-6788e3551836" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9f05b5c7-c6ac-4c43-9f42-54a97c220954" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "625b812c-56af-42e4-8be1-1703f191e122" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090053Z:625b812c-56af-42e4-8be1-1703f191e122" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:00:53 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..8d77ca947b60 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,40 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerFirewallRule' { + It 'List' { + { + New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule = Get-AzMySqlFlexibleServerFirewallRule -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $rule.Count | Should -Be 1 + } | Should -Not -Throw + } + + It 'Get' { + { + $rule = Get-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + } | Should -Not -Throw + } + + It 'GetViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $rule = Get-AzMySqlFlexibleServerFirewallRule -InputObject $ID + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Recording.json b/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Recording.json new file mode 100644 index 000000000000..62559a3518e6 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Recording.json @@ -0,0 +1,357 @@ +{ + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "43b5a6d0-5896-45e0-9fcc-ee9f1e9fb18c" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "75739168-9131-4715-9dd8-d83a7701495e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "2613edcf-bb5e-4bdc-910a-a6eec59406ac" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005317Z:2613edcf-bb5e-4bdc-910a-a6eec59406ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:53:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "947" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-10T09:03:48.6930234+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"Source\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"West US 2\",\r\n \"properties\": {\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\r\n \"createMode\": \"Replica\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "250" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/ae986dce-25c0-4950-9067-1ea075dea227?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ae986dce-25c0-4950-9067-1ea075dea227?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ae986dce-25c0-4950-9067-1ea075dea227" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "4d188ee2-6e02-4143-977b-9cd50309c22e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005317Z:4d188ee2-6e02-4143-977b-9cd50309c22e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:53:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "90" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"CreateReadReplicaManagementOperation\",\"startTime\":\"2020-11-11T00:53:17.76Z\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ae986dce-25c0-4950-9067-1ea075dea227?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/ae986dce-25c0-4950-9067-1ea075dea227?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "a70b5c95-7d3d-4bbc-9119-f3f8db903f91" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a0f3982e-c8b7-42f0-b515-29e9695914ff" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "237fb497-1761-4965-8dc8-8e62bd96c87d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005418Z:237fb497-1761-4965-8dc8-8e62bd96c87d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "197" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ae986dce-25c0-4950-9067-1ea075dea227\",\"status\":\"Failed\",\"startTime\":\"2020-11-11T00:53:17.76Z\",\"error\":{\"code\":\"ServerNameAlreadyExists\",\"message\":\"Specified server name is already used.\"}}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "a70b5c95-7d3d-4bbc-9119-f3f8db903f91" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "02cb3f57-29b2-45e4-9860-8cbd51293534" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "8984ea8a-b0ed-4106-954c-73aa35e410e2" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005418Z:8984ea8a-b0ed-4106-954c-73aa35e410e2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"sourceServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T00:26:58.607359+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"Replica\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "2afd213d-e2c1-4597-b1f6-2639dfc09f68" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "66b548b4-7dff-473e-81d1-6a5690bafeb0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "1c4ebff9-8442-4559-b8de-5e5ffa905f54" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005418Z:1c4ebff9-8442-4559-b8de-5e5ffa905f54" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-11T00:54:18.447Z\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2afd213d-e2c1-4597-b1f6-2639dfc09f68" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2a039c28-e8b9-48ab-9193-208355dfb642" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "8c18c365-82a8-47b7-b26e-2be5a4578d6b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005433Z:8c18c365-82a8-47b7-b26e-2be5a4578d6b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:54:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"66b548b4-7dff-473e-81d1-6a5690bafeb0\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T00:54:18.447Z\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "2afd213d-e2c1-4597-b1f6-2639dfc09f68" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "11e45489-b3b8-43c8-95c9-5f24d8f73960" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "9f646797-1cc7-4815-8f00-686b8fdd533c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005448Z:9f646797-1cc7-4815-8f00-686b8fdd533c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:54:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"66b548b4-7dff-473e-81d1-6a5690bafeb0\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T00:54:18.447Z\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "2afd213d-e2c1-4597-b1f6-2639dfc09f68" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3ade07c1-4552-4dcd-b7b7-95a4a201f991" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "424a019b-3a0e-4288-a4e8-858a31361b34" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005503Z:424a019b-3a0e-4288-a4e8-858a31361b34" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:55:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"66b548b4-7dff-473e-81d1-6a5690bafeb0\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T00:54:18.447Z\"}" + } + }, + "Get-AzMySqlFlexibleServerReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/66b548b4-7dff-473e-81d1-6a5690bafeb0?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "2afd213d-e2c1-4597-b1f6-2639dfc09f68" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "23658dee-14c1-4886-9342-cc532e6002d7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "af91b4fc-4218-4b1f-abc5-92ec879f573c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T005503Z:af91b4fc-4218-4b1f-abc5-92ec879f573c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 00:55:03 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Tests.ps1 b/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Tests.ps1 new file mode 100644 index 000000000000..5d82c8807a90 --- /dev/null +++ b/src/MySql/test/Get-AzMySqlFlexibleServerReplica.Tests.ps1 @@ -0,0 +1,23 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMySqlFlexibleServerReplica.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzMySqlFlexibleServerReplica' { + It 'List' { + { + $replica = Get-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -ServerName $env.serverName | New-AzMySqlFlexibleServerReplica -Replica $env.replicaName -ResourceGroupName $env.resourceGroup + $replica.Count | Should -Be 1 + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)" + Remove-AzMySqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Get-AzMySqlReplica.Recording.json b/src/MySql/test/Get-AzMySqlReplica.Recording.json index b9780365f810..5846d470f5f1 100644 --- a/src/MySql/test/Get-AzMySqlReplica.Recording.json +++ b/src/MySql/test/Get-AzMySqlReplica.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { + "Get-AzMySqlReplica+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01" ], "x-ms-request-id": [ "ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+3": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+4": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+5": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+6": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+7": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+8": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+9": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+10": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+11": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+12": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+13": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+14": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+15": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ], @@ -595,10 +595,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+16": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ], @@ -635,10 +635,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+17": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" ], @@ -675,10 +675,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+18": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" ], @@ -715,10 +715,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+19": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19" ], @@ -755,10 +755,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+20": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20" ], @@ -795,10 +795,10 @@ "Content": "{\"name\":\"ff8b1ac5-5dfc-475a-a2c3-1fe41ef74520\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:50:07.763Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+21": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21" ], @@ -831,13 +831,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:01:19.783+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:01:19.783+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/replicas?api-version=2017-12-01+22": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/replicas?api-version=2017-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/replicas?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/replicas?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22" ], @@ -870,13 +870,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:01:19.783+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:01:19.783+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBForMySQL/servers\"}]}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { + "Get-AzMySqlReplica+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23" ], @@ -895,9 +895,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01" ], "x-ms-request-id": [ "1febca3d-6c67-4885-96a8-3b17d2aac22e" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -915,10 +915,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T07:59:18.913Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01+24": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23", "24" ], @@ -955,10 +955,10 @@ "Content": "{\"name\":\"1febca3d-6c67-4885-96a8-3b17d2aac22e\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:59:18.913Z\"}" } }, - "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01+25": { + "Get-AzMySqlReplica+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1febca3d-6c67-4885-96a8-3b17d2aac22e?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23", "24", "25" ], diff --git a/src/MySql/test/Get-AzMySqlServer.Recording.json b/src/MySql/test/Get-AzMySqlServer.Recording.json index 8642aadaeadb..148db15a7ef2 100644 --- a/src/MySql/test/Get-AzMySqlServer.Recording.json +++ b/src/MySql/test/Get-AzMySqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMySqlServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/servers?api-version=2017-12-01+1": { + "Get-AzMySqlServer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/servers?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/servers?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/servers?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,13 +35,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"B_Gen5_2\",\"tier\":\"Basic\",\"family\":\"Gen5\",\"capacity\":2},\"properties\":{\"administratorLogin\":\"lucas\",\"storageProfile\":{\"storageMB\":51200,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"azuremysql-dev.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-17T06:07:08.9960907+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azureps-manual-test/providers/Microsoft.DBforMySQL/servers/azuremysql-dev\",\"name\":\"azuremysql-dev\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"dbadmin\",\"storageProfile\":{\"storageMB\":102400,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"xdmmysql.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-17T06:07:08.9960907+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/dixue/providers/Microsoft.DBforMySQL/servers/xdmmysql\",\"name\":\"xdmmysql\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test01.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:00:15.2+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test01\",\"name\":\"mysql-test01\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test05.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:26:40.383+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test05\",\"name\":\"mysql-test05\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test03.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:30:31.007+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test03\",\"name\":\"mysql-test03\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test04.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:43:20.62+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test04\",\"name\":\"mysql-test04\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test06.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:58:37.123+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test06\",\"name\":\"mysql-test06\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test07.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:03:29.807+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test07\",\"name\":\"mysql-test07\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-888.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T04:06:02.24+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-manual-test/providers/Microsoft.DBforMySQL/servers/mysql-test-888\",\"name\":\"mysql-test-888\",\"type\":\"Microsoft.DBforMySQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"B_Gen5_2\",\"tier\":\"Basic\",\"family\":\"Gen5\",\"capacity\":2},\"properties\":{\"administratorLogin\":\"lucas\",\"storageProfile\":{\"storageMB\":51200,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"azuremysql-dev.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-17T06:07:08.9960907+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/azureps-manual-test/providers/Microsoft.DBForMySQL/servers/azuremysql-dev\",\"name\":\"azuremysql-dev\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"dbadmin\",\"storageProfile\":{\"storageMB\":102400,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"xdmmysql.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-17T06:07:08.9960907+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/dixue/providers/Microsoft.DBForMySQL/servers/xdmmysql\",\"name\":\"xdmmysql\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test01.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:00:15.2+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test01\",\"name\":\"mysql-test01\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test05.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:26:40.383+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test05\",\"name\":\"mysql-test05\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test03.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:30:31.007+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test03\",\"name\":\"mysql-test03\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test04.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:43:20.62+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test04\",\"name\":\"mysql-test04\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test06.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T02:58:37.123+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test06\",\"name\":\"mysql-test06\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test07.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:03:29.807+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test07\",\"name\":\"mysql-test07\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"},{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"adminuser\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-888.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T04:06:02.24+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/lucas-manual-test/providers/Microsoft.DBForMySQL/servers/mysql-test-888\",\"name\":\"mysql-test-888\",\"type\":\"Microsoft.DBForMySQL/servers\"}]}" } }, - "Get-AzMySqlServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Get-AzMySqlServer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], @@ -74,13 +74,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Get-AzMySqlServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers?api-version=2017-12-01+1": { + "Get-AzMySqlServer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "3" ], @@ -113,13 +113,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}]}" + "Content": "{\"value\":[{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"\",\"masterServerId\":\"\",\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}]}" } }, - "Get-AzMySqlServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Get-AzMySqlServer+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -152,7 +152,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Get-AzMySqlServer.Tests.ps1 b/src/MySql/test/Get-AzMySqlServer.Tests.ps1 index 99021bced00d..a139cba43921 100644 --- a/src/MySql/test/Get-AzMySqlServer.Tests.ps1 +++ b/src/MySql/test/Get-AzMySqlServer.Tests.ps1 @@ -28,7 +28,7 @@ Describe 'Get-AzMySqlServer' { } It 'GetViaIdentity' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)" $servers = Get-AzMySqlServer -InputObject $ID $servers.Name | Should -Be $env.serverName } diff --git a/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Recording.json b/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Recording.json index 908bc02d7f58..94cc692c38fe 100644 --- a/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Recording.json +++ b/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01" ], "x-ms-request-id": [ "569cb4f0-1275-4372-9370-179d5ddc5b42" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:07:42.957Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01+2": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/569cb4f0-1275-4372-9370-179d5ddc5b42?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"569cb4f0-1275-4372-9370-179d5ddc5b42\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:07:42.957Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules?api-version=2017-12-01+4": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}]}" + "Content": "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}]}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5" ], @@ -176,9 +176,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01" ], "x-ms-request-id": [ "8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], @@ -196,10 +196,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:08:16.77Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01+6": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6" ], @@ -236,10 +236,10 @@ "Content": "{\"name\":\"8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:08:16.77Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01+7": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8d80b6fc-e5e2-4a05-8a3f-f1dcaa707318?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6", "7" ], @@ -274,11 +274,11 @@ "Content": null } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -291,9 +291,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01" ], "x-ms-request-id": [ "eca86a26-160c-4b90-9c07-b010bad8e44b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -311,10 +311,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:08:34.003Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01+2": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/eca86a26-160c-4b90-9c07-b010bad8e44b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8", "9" ], @@ -351,10 +351,10 @@ "Content": "{\"name\":\"eca86a26-160c-4b90-9c07-b010bad8e44b\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:08:34.003Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8", "9", "10" ], @@ -387,13 +387,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "11" ], @@ -426,13 +426,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12" ], @@ -451,9 +451,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01" ], "x-ms-request-id": [ "909e92f8-2e4b-4cca-a590-1a984d1275d8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], @@ -471,10 +471,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:09:06.55Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01+6": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12", "13" ], @@ -511,10 +511,10 @@ "Content": "{\"name\":\"909e92f8-2e4b-4cca-a590-1a984d1275d8\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:09:06.55Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01+7": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/909e92f8-2e4b-4cca-a590-1a984d1275d8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12", "13", "14" ], @@ -549,11 +549,11 @@ "Content": null } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -566,9 +566,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01" ], "x-ms-request-id": [ "c7a1a2cb-254e-4524-957d-a0325f03d984" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], @@ -586,10 +586,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:09:23.787Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01+2": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c7a1a2cb-254e-4524-957d-a0325f03d984?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15", "16" ], @@ -626,10 +626,10 @@ "Content": "{\"name\":\"c7a1a2cb-254e-4524-957d-a0325f03d984\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:09:23.787Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15", "16", "17" ], @@ -662,13 +662,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "18" ], @@ -701,13 +701,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], @@ -726,9 +726,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01" ], "x-ms-request-id": [ "c39984c8-51b1-4bdb-b580-6d6fceab47f1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -746,10 +746,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:09:56.49Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01+6": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19", "20" ], @@ -786,10 +786,10 @@ "Content": "{\"name\":\"c39984c8-51b1-4bdb-b580-6d6fceab47f1\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:09:56.49Z\"}" } }, - "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01+7": { + "Get-AzMySqlVirtualNetworkRule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c39984c8-51b1-4bdb-b580-6d6fceab47f1?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19", "20", "21" ], diff --git a/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Tests.ps1 b/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Tests.ps1 index a00b15080fc1..942bde7f3694 100644 --- a/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Tests.ps1 +++ b/src/MySql/test/Get-AzMySqlVirtualNetworkRule.Tests.ps1 @@ -11,6 +11,7 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName +Mock Write-Host {} Describe 'Get-AzMySqlVirtualNetworkRule' { It 'List' { $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" @@ -31,7 +32,7 @@ Describe 'Get-AzMySqlVirtualNetworkRule' { It 'GetViaIdentity' { $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" New-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $VnetID - $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" + $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" $rule = Get-AzMySqlVirtualNetworkRule -InputObject $RuleID $rule.VirtualNetworkSubnetId | Should -Be $VnetID Remove-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName diff --git a/src/MySql/test/New-AzMySqlFirewallRule.Recording.json b/src/MySql/test/New-AzMySqlFirewallRule.Recording.json index 21c62f6a1a74..5e4cc5ff0114 100644 --- a/src/MySql/test/New-AzMySqlFirewallRule.Recording.json +++ b/src/MySql/test/New-AzMySqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"0.0.0.1\",\r\n \"startIpAddress\": \"0.0.0.0\"\r\n }\r\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01" ], "x-ms-request-id": [ "7905d7ea-2033-455a-91a4-7780d0e6c19b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:27:05.877Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01+2": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7905d7ea-2033-455a-91a4-7780d0e6c19b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "94", "95" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"7905d7ea-2033-455a-91a4-7780d0e6c19b\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:05.877Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "94", "95", "96" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "97" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01" ], "x-ms-request-id": [ "afcfce15-c285-405b-9fa2-5b12013a9137" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:27:23.83Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+5": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "97", "98" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"afcfce15-c285-405b-9fa2-5b12013a9137\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:23.83Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+6": { + "New-AzMySqlFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/afcfce15-c285-405b-9fa2-5b12013a9137?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "97", "98", "99" ], @@ -235,10 +235,10 @@ "Content": null } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"0.0.0.1\",\r\n \"startIpAddress\": \"0.0.0.1\"\r\n }\r\n}", "Headers": { }, @@ -252,9 +252,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01" ], "x-ms-request-id": [ "7829f89e-24fe-4760-af09-60a52c725ace" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], @@ -272,10 +272,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:27:42.36Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01+2": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/7829f89e-24fe-4760-af09-60a52c725ace?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "100", "101" ], @@ -312,10 +312,10 @@ "Content": "{\"name\":\"7829f89e-24fe-4760-af09-60a52c725ace\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:27:42.36Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "100", "101", "102" ], @@ -348,13 +348,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "103" ], @@ -373,9 +373,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01" ], "x-ms-request-id": [ "0bfce3da-97d8-4215-a951-d983b2ce4fd6" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14991" ], @@ -393,10 +393,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:28:00.173Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+5": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "103", "104" ], @@ -433,10 +433,10 @@ "Content": "{\"name\":\"0bfce3da-97d8-4215-a951-d983b2ce4fd6\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:00.173Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+6": { + "New-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/0bfce3da-97d8-4215-a951-d983b2ce4fd6?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "103", "104", "105" ], @@ -471,10 +471,10 @@ "Content": null } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+1": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": "{\r\n \"properties\": {\r\n \"endIpAddress\": \"255.255.255.255\",\r\n \"startIpAddress\": \"0.0.0.0\"\r\n }\r\n}", "Headers": { }, @@ -488,9 +488,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01" ], "x-ms-request-id": [ "8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], @@ -508,10 +508,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-08-11T13:28:19.243Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01+2": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "106", "107" ], @@ -548,10 +548,10 @@ "Content": "{\"name\":\"8a4de3fa-c25f-4b3a-9c9a-fc8b40491ef9\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:19.243Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+3": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "106", "107", "108" ], @@ -584,13 +584,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19\",\"name\":\"AllowAll_2020-08-11_21-28-19\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19\",\"name\":\"AllowAll_2020-08-11_21-28-19\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+4": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/AllowAll_2020-08-11_21-28-19?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "109" ], @@ -609,9 +609,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01" ], "x-ms-request-id": [ "42839a43-c94c-48c1-a2c0-71273cd0b3ec" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14990" ], @@ -629,10 +629,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-08-11T13:28:37.043Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+5": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "109", "110" ], @@ -669,10 +669,10 @@ "Content": "{\"name\":\"42839a43-c94c-48c1-a2c0-71273cd0b3ec\",\"status\":\"Succeeded\",\"startTime\":\"2020-08-11T13:28:37.043Z\"}" } }, - "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+6": { + "New-AzMySqlFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/42839a43-c94c-48c1-a2c0-71273cd0b3ec?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "109", "110", "111" ], diff --git a/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..23c4bfc405c6 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,398 @@ +{ + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_D2ds_v4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 12,\r\n \"storageMB\": 102400\r\n },\r\n \"administratorLogin\": \"mysql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "376" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/operationResults/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "667dafb6-209c-483f-b69f-39484b76f3c2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "9b6cf422-9f80-4be2-9549-78dc2fdcd41e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204129Z:9b6cf422-9f80-4be2-9549-78dc2fdcd41e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:41:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a2c60699-415c-47d9-bd41-93c53a0726e5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "d29ae1ab-3d5b-4752-80b6-9dc03a6923eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204230Z:d29ae1ab-3d5b-4752-80b6-9dc03a6923eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:42:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "daf365e5-4c61-41aa-964b-4e9a928949be" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "d74864f5-76d5-4ba6-a54d-02f5ad1c2c1c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204330Z:d74864f5-76d5-4ba6-a54d-02f5ad1c2c1c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:43:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "298a5a86-ef50-4d77-9e9f-83bc882726df" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "900cd2b1-93a5-45d9-8136-a84315fdcb92" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204430Z:900cd2b1-93a5-45d9-8136-a84315fdcb92" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:44:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "af39c4fb-1f6c-47c9-957d-cb3e16960ce0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "271b6a24-f082-4559-9015-4d81e1d629c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204531Z:271b6a24-f082-4559-9015-4d81e1d629c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:45:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b635cabe-f384-40a4-8119-30f690e402f2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "19ff368f-70ce-4ad0-abff-3b507751fc1e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204632Z:19ff368f-70ce-4ad0-abff-3b507751fc1e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:46:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c6803031-4c07-429c-bd01-c473f5072fec" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "ce62fa1d-2f5b-4331-987d-5693956176eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204732Z:ce62fa1d-2f5b-4331-987d-5693956176eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:47:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "886fdc7c-493a-4dfc-a82a-b4bc6728c7e8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "eb2dace3-c78b-4854-a75d-28547d87ad5d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204832Z:eb2dace3-c78b-4854-a75d-28547d87ad5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:48:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/eastus2/azureAsyncOperation/46a5c82d-e040-419c-a08f-c771c5b4af8d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "80d5c056-b086-45f0-b142-bf1f8ed98d61" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "cf74a88a-89a7-435c-88f1-ca560274e1c9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204933Z:cf74a88a-89a7-435c-88f1-ca560274e1c9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"46a5c82d-e040-419c-a08f-c771c5b4af8d\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:41:29.477Z\"}" + } + }, + "New-AzMySqlFlexibleServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "3164a413-75ae-4a59-9b0d-8326ce5bdd04" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "40d55e84-8cb6-4c3a-9496-fbc94ad2ab92" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "efa7eda6-33e9-48ab-a389-6d21f220d52c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T204933Z:efa7eda6-33e9-48ab-a389-6d21f220d52c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:49:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "961" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_D2ds_v4\",\"tier\":\"GeneralPurpose\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":102400,\"storageIops\":0,\"backupRetentionDays\":12,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T20:49:33.3741322+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"East US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..fd5d755696c9 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzMySqlFlexibleServer' { + It 'CreateExpanded' { + { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + $server = New-AzMySqlFlexibleServer -Name $env.serverName2 -ResourceGroupName $env.resourceGroup -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku Standard_D2ds_v4 -SkuTier GeneralPurpose -BackupRetentionDay 12 -StorageInMb 102400 -Location eastus2 + $server.SkuName | Should -Be "Standard_D2ds_v4" + $server.SkuTier | Should -Be "GeneralPurpose" + $server.StorageProfileStorageMb | Should -Be 102400 + $server.StorageProfileBackupRetentionDay | Should -Be 12 + + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Recording.json new file mode 100644 index 000000000000..936447607d9c --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Recording.json @@ -0,0 +1,239 @@ +{ + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/e46feaf8-5c78-4845-a914-9e0a0918b170?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e46feaf8-5c78-4845-a914-9e0a0918b170?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e46feaf8-5c78-4845-a914-9e0a0918b170" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "62dcd053-881f-48f8-b676-a6cb59d1c303" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220407Z:62dcd053-881f-48f8-b676-a6cb59d1c303" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "94" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:04:07.337Z\"}" + } + }, + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e46feaf8-5c78-4845-a914-9e0a0918b170?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e46feaf8-5c78-4845-a914-9e0a0918b170?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "4ee3841a-1240-4993-bce1-e6a2aca0a8bf" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5807e96b-e8a7-4871-a467-0a278bc1adfb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "e8e8e6ad-c656-4fcf-b1a9-4389248789a2" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220422Z:e8e8e6ad-c656-4fcf-b1a9-4389248789a2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e46feaf8-5c78-4845-a914-9e0a0918b170\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:04:07.337Z\"}" + } + }, + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "4ee3841a-1240-4993-bce1-e6a2aca0a8bf" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "00eb2093-fe0f-4927-9d08-aa274bc9d7e8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "55234088-3831-46df-b7b2-6244cac971a8" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220423Z:55234088-3831-46df-b7b2-6244cac971a8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "90dc3465-4172-4696-9950-31f61730978b" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "45e0b24f-cc41-4f25-aa8a-2271652c9004" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "d559f7fc-cce8-45c6-a46d-f52eae9892e9" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220423Z:d559f7fc-cce8-45c6-a46d-f52eae9892e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "92" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:04:23.417Z\"}" + } + }, + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "90dc3465-4172-4696-9950-31f61730978b" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "60b535fc-d4a4-48f6-baa0-8bdb8a449df1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "5d302b47-963e-4357-8609-7afd71f9b724" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220438Z:5d302b47-963e-4357-8609-7afd71f9b724" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"45e0b24f-cc41-4f25-aa8a-2271652c9004\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:04:23.417Z\"}" + } + }, + "New-AzMySqlFlexibleServerDatabase+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/45e0b24f-cc41-4f25-aa8a-2271652c9004?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "90dc3465-4172-4696-9950-31f61730978b" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "110158b5-79fe-4828-8b93-e27196a62e96" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "613b3922-a4fd-4847-91f3-4c6e040c1c92" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220438Z:613b3922-a4fd-4847-91f3-4c6e040c1c92" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "254" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Tests.ps1 b/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Tests.ps1 new file mode 100644 index 000000000000..8e11a27c4651 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerDatabase.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMySqlFlexibleServerDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzMySqlFlexibleServerDatabase' { + It 'CreateExpanded' { + { + $database = New-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + $database.Name | Should -Be $env.databaseName + $database.Collation | Should -Be "latin1_swedish_ci" + $database.Charset | Should -Be "latin1" + Remove-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..3af1fe2c9651 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,710 @@ +{ + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/2a262625-b6dc-474b-9caa-cb5139c88e0a?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2a262625-b6dc-474b-9caa-cb5139c88e0a?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2a262625-b6dc-474b-9caa-cb5139c88e0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "287db43d-3cd4-42c6-ac69-75fc777b702a" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092010Z:287db43d-3cd4-42c6-ac69-75fc777b702a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:20:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:20:09.57Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2a262625-b6dc-474b-9caa-cb5139c88e0a?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/2a262625-b6dc-474b-9caa-cb5139c88e0a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "eb1b3da3-2afa-4de6-bb30-4742f0c661c5" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "29b64da0-04cf-47a5-ac6d-61d6f0adecd4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "4c637a99-563e-445f-acf2-d8a9609bda5e" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092110Z:4c637a99-563e-445f-acf2-d8a9609bda5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:21:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2a262625-b6dc-474b-9caa-cb5139c88e0a\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:20:09.57Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "eb1b3da3-2afa-4de6-bb30-4742f0c661c5" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "13b6905e-ec37-4bf2-8998-d6031ef54cfa" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "8c7d9940-1fa5-4704-9913-a31aa7cd5afe" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092110Z:8c7d9940-1fa5-4704-9913-a31aa7cd5afe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:21:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "d74037f4-f0ce-42ae-823e-f9a490a69812" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "87c310e3-baf2-47fe-9a21-dc3605e4577a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "987a9226-b1e3-4c3f-9149-7d996f4830e8" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092111Z:987a9226-b1e3-4c3f-9149-7d996f4830e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:21:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:21:11.133Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "d74037f4-f0ce-42ae-823e-f9a490a69812" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "68c41cce-ee24-4583-a0fd-cefbbf9cafc7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "6866c8f9-3503-4470-9a06-29ba18c207f3" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092211Z:6866c8f9-3503-4470-9a06-29ba18c207f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:22:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"87c310e3-baf2-47fe-9a21-dc3605e4577a\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:21:11.133Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/87c310e3-baf2-47fe-9a21-dc3605e4577a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "d74037f4-f0ce-42ae-823e-f9a490a69812" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c9ef3c19-dafb-43f5-96fb-e3fd6eeae173" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "d2213196-04a9-4443-8814-79ca54933e3b" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092212Z:d2213196-04a9-4443-8814-79ca54933e3b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:22:11 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.1\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/038168bb-6845-4a35-be4c-4e4f72457add?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/038168bb-6845-4a35-be4c-4e4f72457add?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "038168bb-6845-4a35-be4c-4e4f72457add" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "50939325-c7ec-44e9-8811-8f331d645764" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092212Z:50939325-c7ec-44e9-8811-8f331d645764" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:22:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:22:12.733Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/038168bb-6845-4a35-be4c-4e4f72457add?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/038168bb-6845-4a35-be4c-4e4f72457add?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "fc16bcc9-aef7-44bb-b45f-bd8770889bf9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "28ca0d63-26e2-4ba5-99d2-4c69c0255e86" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "9602f7d8-80bf-4212-9650-d1d1a159a1e9" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092313Z:9602f7d8-80bf-4212-9650-d1d1a159a1e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"038168bb-6845-4a35-be4c-4e4f72457add\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:22:12.733Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "fc16bcc9-aef7-44bb-b45f-bd8770889bf9" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e6afa452-f005-4bc8-a10a-3e908f1bfa88" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "cf91d530-93e3-475c-b67b-811c9d003509" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092313Z:cf91d530-93e3-475c-b67b-811c9d003509" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:23:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.1\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "0fdda564-8922-4b7a-9e4a-cd70b0740a5d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c7927285-58d9-4f72-9f7f-c41f981922c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "9f1117f9-f213-4f2a-9069-c8c61cc71876" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092313Z:9f1117f9-f213-4f2a-9069-c8c61cc71876" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:23:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "96" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:23:13.84Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "0fdda564-8922-4b7a-9e4a-cd70b0740a5d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "18be28dd-ab75-4814-adcc-6125271715e6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "51a485bd-f6ad-439b-8377-258a82f665dd" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092414Z:51a485bd-f6ad-439b-8377-258a82f665dd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:24:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c7927285-58d9-4f72-9f7f-c41f981922c8\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:23:13.84Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c7927285-58d9-4f72-9f7f-c41f981922c8?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "0fdda564-8922-4b7a-9e4a-cd70b0740a5d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c4df2a55-ce40-42b2-bf2e-e0581435eb93" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "f3eeeb21-2fc3-4f7d-a966-8c3d12923e5d" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092414Z:f3eeeb21-2fc3-4f7d-a966-8c3d12923e5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:24:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "101" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/57b64c53-c8a9-471b-b47a-c10c7591b0d4?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/57b64c53-c8a9-471b-b47a-c10c7591b0d4?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "57b64c53-c8a9-471b-b47a-c10c7591b0d4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "195c5c8c-906f-4de8-aacd-b7d9824fd5d9" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092414Z:195c5c8c-906f-4de8-aacd-b7d9824fd5d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:24:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:24:14.72Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/57b64c53-c8a9-471b-b47a-c10c7591b0d4?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/57b64c53-c8a9-471b-b47a-c10c7591b0d4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "75433f34-ac04-43bb-bcab-5f726423ef9c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3125df2d-02e6-434c-b372-0da4d0e1ed97" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "48d1e54a-057e-4021-9673-e238ac566040" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092515Z:48d1e54a-057e-4021-9673-e238ac566040" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:25:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"57b64c53-c8a9-471b-b47a-c10c7591b0d4\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:24:14.72Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "75433f34-ac04-43bb-bcab-5f726423ef9c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b003e192-6710-458a-94c6-acd03f5b17ad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "98ce9cfb-a356-40fa-91b3-7f2457624309" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092515Z:98ce9cfb-a356-40fa-91b3-7f2457624309" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:25:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "157" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"255.255.255.255\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "5c090af1-eb8a-48e3-ab43-2b58db7d177d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "12346ff6-9e4f-4332-9332-eb1ffb5f9f62" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "f8784fdb-b716-4492-97ea-da25fb0b66d7" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092515Z:f8784fdb-b716-4492-97ea-da25fb0b66d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:25:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:25:15.703Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "5c090af1-eb8a-48e3-ab43-2b58db7d177d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "660245a5-69e4-41b7-91eb-7d38fdd53297" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "9a874cac-c6e5-4f84-bdea-a7c5df22133e" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092616Z:9a874cac-c6e5-4f84-bdea-a7c5df22133e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:26:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"12346ff6-9e4f-4332-9332-eb1ffb5f9f62\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:25:15.703Z\"}" + } + }, + "New-AzMySqlFlexibleServerFirewallRule+[NoContext]+AllowAll+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/12346ff6-9e4f-4332-9332-eb1ffb5f9f62?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "5c090af1-eb8a-48e3-ab43-2b58db7d177d" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "27d133ff-9a7b-4e18-acc6-c2109605214a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "f33c508e-f222-4c0f-ab0a-a2365bd34c34" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092616Z:f33c508e-f222-4c0f-ab0a-a2365bd34c34" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:26:15 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Tests.ps1 b/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..0199cb9bef20 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,39 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMySqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzMySqlFlexibleServerFirewallRule' { + It 'CreateExpanded' { + $rule = New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } + + It 'ClientIPAddress' { + #Use only one parameter when only one IP + $rule = New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -ClientIPAddress 0.0.0.1 + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.1 + $rule.EndIPAddress | Should -Be 0.0.0.1 + Remove-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } + + It 'AllowAll' { + $rule = New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -AllowAll + $rule.Name | Should -Be $env.firewallRuleName + $rule.StartIPAddress | Should -Be 0.0.0.0 + $rule.EndIPAddress | Should -Be 255.255.255.255 + Remove-AzMySqlFlexibleServerFirewallRule -Name $rule.Name -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } +} diff --git a/src/MySql/test/New-AzMySqlFlexibleServerReplica.Recording.json b/src/MySql/test/New-AzMySqlFlexibleServerReplica.Recording.json new file mode 100644 index 000000000000..8b1bf6f5d481 --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerReplica.Recording.json @@ -0,0 +1,357 @@ +{ + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "36ab3f70-c474-407d-b802-8aad9fc3aec6" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "75ffea03-284a-487b-b116-657082f9213c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "5437ccf4-bc1d-4c81-9502-a6e8d59bbd8f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011350Z:5437ccf4-bc1d-4c81-9502-a6e8d59bbd8f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:13:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "945" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:13:50.3951018+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"West US 2\",\r\n \"properties\": {\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\r\n \"createMode\": \"Replica\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "250" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/e8e6b03f-735e-4473-bf67-32954f78dc50?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e8e6b03f-735e-4473-bf67-32954f78dc50?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e8e6b03f-735e-4473-bf67-32954f78dc50" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "aecea9be-feb7-4332-96ea-2bf882fa8a7e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011351Z:aecea9be-feb7-4332-96ea-2bf882fa8a7e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:13:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "91" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"CreateReadReplicaManagementOperation\",\"startTime\":\"2020-11-11T01:13:50.677Z\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e8e6b03f-735e-4473-bf67-32954f78dc50?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e8e6b03f-735e-4473-bf67-32954f78dc50?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "12aaf039-50e8-40c8-8223-8e799c4c420f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6ee3d4bf-6f4b-45ed-a992-6ba8f46d305b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "878a9b7a-e5eb-43a1-9b4e-f78c9c3c37c9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011451Z:878a9b7a-e5eb-43a1-9b4e-f78c9c3c37c9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:14:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "198" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e8e6b03f-735e-4473-bf67-32954f78dc50\",\"status\":\"Failed\",\"startTime\":\"2020-11-11T01:13:50.677Z\",\"error\":{\"code\":\"ServerNameAlreadyExists\",\"message\":\"Specified server name is already used.\"}}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "12aaf039-50e8-40c8-8223-8e799c4c420f" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "18943ca6-33a2-48c1-965c-7b06a4d3b578" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "507fca03-fc0f-4492-a858-5c93fd22604f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011451Z:507fca03-fc0f-4492-a858-5c93fd22604f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:14:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "968" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T00:26:58.607359+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-replica?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "bbd53427-9e7d-4457-9b33-f10e85fb18dd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8a6e2a2f-3569-4fef-8472-899b3ff4d5a9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "fb7a944e-9255-425a-919c-c1c39e2b095e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011451Z:fb7a944e-9255-425a-919c-c1c39e2b095e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:14:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-11T01:14:51.447Z\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "bbd53427-9e7d-4457-9b33-f10e85fb18dd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2d038503-16d5-4bd4-8ea3-08aff309ea5f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "e3ef0ddc-dcb1-4fc5-848e-e22c39970b71" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011506Z:e3ef0ddc-dcb1-4fc5-848e-e22c39970b71" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:15:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8a6e2a2f-3569-4fef-8472-899b3ff4d5a9\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T01:14:51.447Z\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "bbd53427-9e7d-4457-9b33-f10e85fb18dd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7cd230d-6f06-4745-bf33-01b734b57186" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "96206d6d-b738-4559-bc5a-4064b8707dc1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011521Z:96206d6d-b738-4559-bc5a-4064b8707dc1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:15:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8a6e2a2f-3569-4fef-8472-899b3ff4d5a9\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T01:14:51.447Z\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/azureAsyncOperation/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "bbd53427-9e7d-4457-9b33-f10e85fb18dd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "10178b19-4883-497a-a9b2-4f7030cfc86d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "88ff53b1-55ad-4db8-8f5f-106aefe251d7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011536Z:88ff53b1-55ad-4db8-8f5f-106aefe251d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:15:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8a6e2a2f-3569-4fef-8472-899b3ff4d5a9\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T01:14:51.447Z\"}" + } + }, + "New-AzMySqlFlexibleServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West US 2/operationResults/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/West%20US%202/operationResults/8a6e2a2f-3569-4fef-8472-899b3ff4d5a9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "bbd53427-9e7d-4457-9b33-f10e85fb18dd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4e8b9f60-e5ce-46d1-875e-b41aa821176b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "d40c37f3-60ab-4229-89e1-b7ba11886d49" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T011536Z:d40c37f3-60ab-4229-89e1-b7ba11886d49" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 01:15:36 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlFlexibleServerReplica.Tests.ps1 b/src/MySql/test/New-AzMySqlFlexibleServerReplica.Tests.ps1 new file mode 100644 index 000000000000..e45d8938052a --- /dev/null +++ b/src/MySql/test/New-AzMySqlFlexibleServerReplica.Tests.ps1 @@ -0,0 +1,24 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMySqlFlexibleServerReplica.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzMySqlFlexibleServerReplica' { + It 'CreateExpanded' { + { + $replica = Get-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -ServerName $env.serverName | New-AzMySqlFlexibleServerReplica -Replica $env.replicaName -ResourceGroupName $env.resourceGroup + $replica.Name | Should -Be $env.replicaName + $replica.SkuName | Should -Be $env.FlexibleSku + $replica.Location | Should -Be "West US 2" + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.replicaName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/New-AzMySqlReplica.Recording.json b/src/MySql/test/New-AzMySqlReplica.Recording.json index 044fd33a0940..827b7334eb1d 100644 --- a/src/MySql/test/New-AzMySqlReplica.Recording.json +++ b/src/MySql/test/New-AzMySqlReplica.Recording.json @@ -1,8 +1,8 @@ { - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "112" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-04-08T11:03:09.983+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-04-08T11:03:09.983+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", "Headers": { "x-ms-unique-id": [ "113" ], "x-ms-client-request-id": [ "4aa2cfae-328b-4480-bb80-e295fb82387f" ], @@ -62,9 +62,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01" ], "x-ms-request-id": [ "c76c579e-55b4-4fe9-b19d-75093eeca064" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], @@ -82,10 +82,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+3": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114" ], @@ -122,10 +122,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+4": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115" ], @@ -162,10 +162,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+5": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116" ], @@ -202,10 +202,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+6": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117" ], @@ -242,10 +242,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+7": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118" ], @@ -282,10 +282,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+8": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119" ], @@ -322,10 +322,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+9": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120" ], @@ -362,10 +362,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+10": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121" ], @@ -402,10 +402,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+11": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122" ], @@ -442,10 +442,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+12": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123" ], @@ -482,10 +482,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+13": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124" ], @@ -522,10 +522,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+14": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125" ], @@ -562,10 +562,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+15": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126" ], @@ -602,10 +602,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+16": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127" ], @@ -642,10 +642,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+17": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128" ], @@ -682,10 +682,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+18": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129" ], @@ -722,10 +722,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+19": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130" ], @@ -762,10 +762,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+20": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131" ], @@ -802,10 +802,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"InProgress\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+21": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c76c579e-55b4-4fe9-b19d-75093eeca064?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131", "132" ], @@ -842,10 +842,10 @@ "Content": "{\"name\":\"c76c579e-55b4-4fe9-b19d-75093eeca064\",\"status\":\"Succeeded\",\"startTime\":\"2020-04-08T11:13:22.287Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+22": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "113", "114", "115", "116", "117", "118", "119", "120", "121", "122", "123", "124", "125", "126", "127", "128", "129", "130", "131", "132", "133" ], @@ -878,13 +878,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-04-08T11:25:23.023+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-04-08T11:25:23.023+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "134" ], @@ -903,9 +903,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01" ], "x-ms-request-id": [ "3ba846cb-160f-415f-a703-fc8e08e4c616" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14990" ], @@ -923,10 +923,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-04-08T11:23:09.153Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01+24": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "134", "135" ], @@ -963,10 +963,10 @@ "Content": "{\"name\":\"3ba846cb-160f-415f-a703-fc8e08e4c616\",\"status\":\"Succeeded\",\"startTime\":\"2020-04-08T11:23:09.153Z\"}" } }, - "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01+25": { + "New-AzMySqlServerReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/3ba846cb-160f-415f-a703-fc8e08e4c616?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "134", "135", "136" ], diff --git a/src/MySql/test/New-AzMySqlServer.Recording.json b/src/MySql/test/New-AzMySqlServer.Recording.json index a88a4ca058f5..75a1618b1d96 100644 --- a/src/MySql/test/New-AzMySqlServer.Recording.json +++ b/src/MySql/test/New-AzMySqlServer.Recording.json @@ -1,278 +1,278 @@ { - "New-AzMySqlServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", - "Headers": { + "New-AzMySqlServer+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "198" ] + } }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "198" ] + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01" ], + "x-ms-request-id": [ "4d7c6645-81d7-4604-99db-387dedcedfbf" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "1bf1e0de-4884-452a-9539-72858cc51c99" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062051Z:1bf1e0de-4884-452a-9539-72858cc51c99" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:20:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "73" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01" ], - "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01" ], - "x-ms-request-id": [ "4d7c6645-81d7-4604-99db-387dedcedfbf" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "1bf1e0de-4884-452a-9539-72858cc51c99" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062051Z:1bf1e0de-4884-452a-9539-72858cc51c99" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:20:50 GMT" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "ContentHeaders": { - "Content-Length": [ "73" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2" ], - "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "3110ddb3-268b-473a-b969-c8ba062d666e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "4bb270d9-1b39-4b8e-906e-f2d2acea5d92" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062152Z:4bb270d9-1b39-4b8e-906e-f2d2acea5d92" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:21:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d7c6645-81d7-4604-99db-387dedcedfbf\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "3110ddb3-268b-473a-b969-c8ba062d666e" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "4bb270d9-1b39-4b8e-906e-f2d2acea5d92" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062152Z:4bb270d9-1b39-4b8e-906e-f2d2acea5d92" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:21:52 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"4d7c6645-81d7-4604-99db-387dedcedfbf\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3" ], - "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4d7c6645-81d7-4604-99db-387dedcedfbf?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "ContentHeaders": { + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "d24209b3-277e-45ae-bcc0-3112eab38f03" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "eddfc63c-74c5-4c04-8bfb-36687467f4e4" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062253Z:eddfc63c-74c5-4c04-8bfb-36687467f4e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:22:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d7c6645-81d7-4604-99db-387dedcedfbf\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "d24209b3-277e-45ae-bcc0-3112eab38f03" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "eddfc63c-74c5-4c04-8bfb-36687467f4e4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062253Z:eddfc63c-74c5-4c04-8bfb-36687467f4e4" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:22:52 GMT" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "ContentHeaders": { - "Content-Length": [ "106" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"4d7c6645-81d7-4604-99db-387dedcedfbf\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:20:48.23Z\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3", "4" ], - "x-ms-client-request-id": [ "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286", "bec2855d-f2c4-47db-bcb0-fb371728f286" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6a0f1a19-7d9a-4904-809a-302c0aa654c4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "b17e3561-791d-4efa-9f1d-c0340c99cc03" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062253Z:b17e3561-791d-4efa-9f1d-c0340c99cc03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:22:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "904" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:30:50.09+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "6a0f1a19-7d9a-4904-809a-302c0aa654c4" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "b17e3561-791d-4efa-9f1d-c0340c99cc03" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062253Z:b17e3561-791d-4efa-9f1d-c0340c99cc03" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:22:52 GMT" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], + "CommandName": [ "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "ContentHeaders": { - "Content-Length": [ "904" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:30:50.09+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/servers\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+5": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], - "CommandName": [ "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01" ], + "x-ms-request-id": [ "e3523d76-2ed6-48f1-96b3-1f3491a51e63" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "5d15d1b5-46f3-48ac-905e-4ca444b7adb1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062254Z:5d15d1b5-46f3-48ac-905e-4ca444b7adb1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:22:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "72" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:22:54.223Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01" ], - "x-ms-request-id": [ "e3523d76-2ed6-48f1-96b3-1f3491a51e63" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "5d15d1b5-46f3-48ac-905e-4ca444b7adb1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062254Z:5d15d1b5-46f3-48ac-905e-4ca444b7adb1" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:22:53 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "72" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5", "6" ], + "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:22:54.223Z\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5", "6" ], - "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "c79a1ca0-5170-4ecb-8dc1-9daa895a0de5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "04814243-c9aa-4ab3-8d8a-b98be748a2f0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062309Z:04814243-c9aa-4ab3-8d8a-b98be748a2f0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:23:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e3523d76-2ed6-48f1-96b3-1f3491a51e63\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:22:54.223Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "c79a1ca0-5170-4ecb-8dc1-9daa895a0de5" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "04814243-c9aa-4ab3-8d8a-b98be748a2f0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062309Z:04814243-c9aa-4ab3-8d8a-b98be748a2f0" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:23:08 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] + "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5", "6", "7" ], + "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } }, - "Content": "{\"name\":\"e3523d76-2ed6-48f1-96b3-1f3491a51e63\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:22:54.223Z\"}" - } - }, - "New-AzMySqlServer+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/e3523d76-2ed6-48f1-96b3-1f3491a51e63?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5", "6", "7" ], - "x-ms-client-request-id": [ "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3", "15f27fbc-126c-44b7-b33c-063cab7ac5b3" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "e68b2988-165f-4e40-8717-318ef9177410" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "737f886e-7740-407a-b063-9e77a16aae58" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062310Z:737f886e-7740-407a-b063-9e77a16aae58" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:23:09 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "e68b2988-165f-4e40-8717-318ef9177410" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "737f886e-7740-407a-b063-9e77a16aae58" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062310Z:737f886e-7740-407a-b063-9e77a16aae58" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:23:09 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null } - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/src/MySql/test/New-AzMySqlServerReplica.Recording.json b/src/MySql/test/New-AzMySqlServerReplica.Recording.json index 859830ee2fd4..2aaba8b4840c 100644 --- a/src/MySql/test/New-AzMySqlServerReplica.Recording.json +++ b/src/MySql/test/New-AzMySqlServerReplica.Recording.json @@ -1,8 +1,8 @@ { - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01" ], "x-ms-request-id": [ "d6ce3561-ffa0-4bc6-bd34-ef770b816a4a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+3": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+4": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+5": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+6": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+7": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+8": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+9": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+10": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+11": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+12": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+13": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+14": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+15": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ], @@ -595,10 +595,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+16": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ], @@ -635,10 +635,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+17": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" ], @@ -675,10 +675,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+18": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" ], @@ -715,10 +715,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+19": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19" ], @@ -755,10 +755,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+20": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20" ], @@ -795,10 +795,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+21": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21" ], @@ -835,10 +835,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+22": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d6ce3561-ffa0-4bc6-bd34-ef770b816a4a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22" ], @@ -875,10 +875,10 @@ "Content": "{\"name\":\"d6ce3561-ffa0-4bc6-bd34-ef770b816a4a\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T09:41:35.77Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" ], @@ -911,13 +911,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T09:53:36.52+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T09:53:36.52+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+24": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+24": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "24" ], @@ -936,9 +936,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01" ], "x-ms-request-id": [ "a473d381-9d14-4d4d-b84a-d7e6b7313515" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], @@ -956,10 +956,10 @@ "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T09:51:47.36Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01+25": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "24", "25" ], @@ -996,10 +996,10 @@ "Content": "{\"name\":\"a473d381-9d14-4d4d-b84a-d7e6b7313515\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T09:51:47.36Z\"}" } }, - "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01+26": { + "New-AzMySqlReplica+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a473d381-9d14-4d4d-b84a-d7e6b7313515?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "24", "25", "26" ], diff --git a/src/MySql/test/New-AzMySqlVirtualNetworkRule.Recording.json b/src/MySql/test/New-AzMySqlVirtualNetworkRule.Recording.json index bedea49cbb5a..80833a7a45e2 100644 --- a/src/MySql/test/New-AzMySqlVirtualNetworkRule.Recording.json +++ b/src/MySql/test/New-AzMySqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01" ], "x-ms-request-id": [ "e68a0466-f700-4a65-b792-1903767f0d72" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:24:37.15Z\"}" } }, - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01+2": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e68a0466-f700-4a65-b792-1903767f0d72?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"e68a0466-f700-4a65-b792-1903767f0d72\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:24:37.15Z\"}" } }, - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01" ], "x-ms-request-id": [ "d5f1ca93-3065-4c56-bed5-9d9c16b0e763" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:25:09.633Z\"}" } }, - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01+5": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"d5f1ca93-3065-4c56-bed5-9d9c16b0e763\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:25:09.633Z\"}" } }, - "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01+6": { + "New-AzMySqlVirtualNetworkRule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d5f1ca93-3065-4c56-bed5-9d9c16b0e763?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5", "6" ], diff --git a/src/MySql/test/Remove-AzMySqlFirewallRule.Recording.json b/src/MySql/test/Remove-AzMySqlFirewallRule.Recording.json index 68f4393c9b4c..0480d0062157 100644 --- a/src/MySql/test/Remove-AzMySqlFirewallRule.Recording.json +++ b/src/MySql/test/Remove-AzMySqlFirewallRule.Recording.json @@ -1,474 +1,474 @@ { - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "88" ] + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "88" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01" ], + "x-ms-request-id": [ "028ac200-d31d-46e6-9aaf-01ff4f7b09a7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "6fbef9e7-bd2e-414a-b25e-9cacffe62ee8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062916Z:6fbef9e7-bd2e-414a-b25e-9cacffe62ee8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:29:15.293Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01" ], - "x-ms-request-id": [ "028ac200-d31d-46e6-9aaf-01ff4f7b09a7" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-correlation-request-id": [ "6fbef9e7-bd2e-414a-b25e-9cacffe62ee8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062916Z:6fbef9e7-bd2e-414a-b25e-9cacffe62ee8" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:16 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "87" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:29:15.293Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2" ], - "x-ms-client-request-id": [ "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], - "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/028ac200-d31d-46e6-9aaf-01ff4f7b09a7?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "f9142493-1d64-4281-80a7-11b8ffaa33bc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "30591e81-e056-4a78-89ea-caea75e67eb8" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062931Z:30591e81-e056-4a78-89ea-caea75e67eb8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"028ac200-d31d-46e6-9aaf-01ff4f7b09a7\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:15.293Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "f9142493-1d64-4281-80a7-11b8ffaa33bc" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-correlation-request-id": [ "30591e81-e056-4a78-89ea-caea75e67eb8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062931Z:30591e81-e056-4a78-89ea-caea75e67eb8" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:31 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"028ac200-d31d-46e6-9aaf-01ff4f7b09a7\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:15.293Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3" ], - "x-ms-client-request-id": [ "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], - "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4", "318cee93-d126-4056-86ae-7f6c5f5a19e4" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "69c34683-5357-4cf9-a1fc-9807b23205ee" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "b509bbf8-f54f-434f-91f8-f03a84bb1122" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062932Z:b509bbf8-f54f-434f-91f8-f03a84bb1122" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "305" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "69c34683-5357-4cf9-a1fc-9807b23205ee" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-correlation-request-id": [ "b509bbf8-f54f-434f-91f8-f03a84bb1122" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062932Z:b509bbf8-f54f-434f-91f8-f03a84bb1122" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:32 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "305" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], - "CommandName": [ "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], + "CommandName": [ "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01" ], + "x-ms-request-id": [ "5c2361da-8118-4aa9-a96c-c7f7ab422c0d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "b8a6078d-50e9-46f8-a6c3-ad5a93488f67" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062933Z:b8a6078d-50e9-46f8-a6c3-ad5a93488f67" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:29:32.747Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01" ], - "x-ms-request-id": [ "5c2361da-8118-4aa9-a96c-c7f7ab422c0d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], - "x-ms-correlation-request-id": [ "b8a6078d-50e9-46f8-a6c3-ad5a93488f67" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062933Z:b8a6078d-50e9-46f8-a6c3-ad5a93488f67" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "84" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:29:32.747Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "4", "5" ], - "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], - "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4", "5" ], + "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "54518ee6-9317-401c-9db3-ee3640f0f2d6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "e99cbe83-0a4c-4e46-b875-9dc33bc3f11a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062949Z:e99cbe83-0a4c-4e46-b875-9dc33bc3f11a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5c2361da-8118-4aa9-a96c-c7f7ab422c0d\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:32.747Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "54518ee6-9317-401c-9db3-ee3640f0f2d6" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-correlation-request-id": [ "e99cbe83-0a4c-4e46-b875-9dc33bc3f11a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062949Z:e99cbe83-0a4c-4e46-b875-9dc33bc3f11a" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"5c2361da-8118-4aa9-a96c-c7f7ab422c0d\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:32.747Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "4", "5", "6" ], - "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], - "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/5c2361da-8118-4aa9-a96c-c7f7ab422c0d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4", "5", "6" ], + "x-ms-client-request-id": [ "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8", "e5b4c6d1-bca0-42e1-8657-20bece8985a8" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete", "Remove-AzMySqlFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b35ed3b6-0ea8-4239-ae88-156db82f1fea" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "39235317-f98c-4df8-9f0d-2efa7b152e3a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062949Z:39235317-f98c-4df8-9f0d-2efa7b152e3a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b35ed3b6-0ea8-4239-ae88-156db82f1fea" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "39235317-f98c-4df8-9f0d-2efa7b152e3a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062949Z:39235317-f98c-4df8-9f0d-2efa7b152e3a" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:49 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "88" ] + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "88" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01" ], + "x-ms-request-id": [ "3f510b53-f32e-4aed-84e3-aef22c9c55cd" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "572dcdbc-843f-48ce-90e1-12a9c296d121" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062951Z:572dcdbc-843f-48ce-90e1-12a9c296d121" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:29:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:29:50.197Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01" ], - "x-ms-request-id": [ "3f510b53-f32e-4aed-84e3-aef22c9c55cd" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], - "x-ms-correlation-request-id": [ "572dcdbc-843f-48ce-90e1-12a9c296d121" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T062951Z:572dcdbc-843f-48ce-90e1-12a9c296d121" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:29:51 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "87" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T06:29:50.197Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8" ], - "x-ms-client-request-id": [ "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], - "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/3f510b53-f32e-4aed-84e3-aef22c9c55cd?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8" ], + "x-ms-client-request-id": [ "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "d1b47bab-578c-424f-a63f-adb40d01b4de" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "6383090a-ee20-4280-9259-b89ecd9a25b6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063006Z:6383090a-ee20-4280-9259-b89ecd9a25b6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:30:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3f510b53-f32e-4aed-84e3-aef22c9c55cd\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:50.197Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "d1b47bab-578c-424f-a63f-adb40d01b4de" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-correlation-request-id": [ "6383090a-ee20-4280-9259-b89ecd9a25b6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063006Z:6383090a-ee20-4280-9259-b89ecd9a25b6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:30:06 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"3f510b53-f32e-4aed-84e3-aef22c9c55cd\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:29:50.197Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8", "9" ], - "x-ms-client-request-id": [ "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], - "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8", "9" ], + "x-ms-client-request-id": [ "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1", "7ff00f30-d36e-4975-b523-67a07004f2b1" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule", "Az.MySql.internal\\New-AzMySqlFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded", "New-AzMySqlFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "7ca1d0b7-4d5f-4bca-9cc7-9d781ea9805d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "301881d2-fba4-4115-99f9-cf202fdd8b74" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063007Z:301881d2-fba4-4115-99f9-cf202fdd8b74" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:30:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "305" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "7ca1d0b7-4d5f-4bca-9cc7-9d781ea9805d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-correlation-request-id": [ "301881d2-fba4-4115-99f9-cf202fdd8b74" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063007Z:301881d2-fba4-4115-99f9-cf202fdd8b74" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:30:06 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "305" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55" ], - "CommandName": [ "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55" ], + "CommandName": [ "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01" ], + "x-ms-request-id": [ "540e290a-beb7-44fb-82b1-411e265905a9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "3422287e-e725-443a-91ee-3cd6482a8fa1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063008Z:3422287e-e725-443a-91ee-3cd6482a8fa1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:30:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:30:07.697Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01" ], - "x-ms-request-id": [ "540e290a-beb7-44fb-82b1-411e265905a9" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "3422287e-e725-443a-91ee-3cd6482a8fa1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063008Z:3422287e-e725-443a-91ee-3cd6482a8fa1" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:30:08 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "84" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T06:30:07.697Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "10", "11" ], - "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55" ], - "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10", "11" ], + "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "a7f51368-65a5-4aae-a896-1b46cb8b434c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "852c132e-18b1-4984-941b-649eee17c36e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063024Z:852c132e-18b1-4984-941b-649eee17c36e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:30:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"540e290a-beb7-44fb-82b1-411e265905a9\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:30:07.697Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "a7f51368-65a5-4aae-a896-1b46cb8b434c" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-correlation-request-id": [ "852c132e-18b1-4984-941b-649eee17c36e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063024Z:852c132e-18b1-4984-941b-649eee17c36e" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:30:23 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"540e290a-beb7-44fb-82b1-411e265905a9\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:30:07.697Z\"}" - } - }, - "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "10", "11", "12" ], - "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55" ], - "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], - "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/540e290a-beb7-44fb-82b1-411e265905a9?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10", "11", "12" ], + "x-ms-client-request-id": [ "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55", "f2c12900-742a-4f88-bc15-254a00785c55" ], + "CommandName": [ "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule", "Remove-AzMySqlFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity", "Remove-AzMySqlFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "258bd49f-df3c-4ff3-824f-de138ec92f15" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "6f7e78a6-b20b-4d45-a159-1191303c15b4" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063024Z:6f7e78a6-b20b-4d45-a159-1191303c15b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:30:23 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "258bd49f-df3c-4ff3-824f-de138ec92f15" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-correlation-request-id": [ "6f7e78a6-b20b-4d45-a159-1191303c15b4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063024Z:6f7e78a6-b20b-4d45-a159-1191303c15b4" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:30:23 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null } - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlFirewallRule.Tests.ps1 b/src/MySql/test/Remove-AzMySqlFirewallRule.Tests.ps1 index ab04d9651e25..03c3f28bb585 100644 --- a/src/MySql/test/Remove-AzMySqlFirewallRule.Tests.ps1 +++ b/src/MySql/test/Remove-AzMySqlFirewallRule.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Remove-AzMySqlFirewallRule' { It 'DeleteViaIdentity' { { New-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" Remove-AzMySqlFirewallRule -InputObject $ID } | Should -Not -Throw } diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..0adb7870accd --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,437 @@ +{ + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\",\r\n \"tier\": \"Burstable\"\r\n },\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 7,\r\n \"storageMB\": 10240\r\n },\r\n \"administratorLogin\": \"mysql_test\",\r\n \"administratorLoginPassword\": \"Pasword01!!2020\",\r\n \"version\": \"5.7\",\r\n \"createMode\": \"Default\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "366" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/bdca3d03-d749-4999-9f97-9e9e51e4c414?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/bdca3d03-d749-4999-9f97-9e9e51e4c414?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5bfb889a-cea3-46b8-ac5b-b85b86d50e40" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "cf6194fa-a5e8-4d15-84c1-7849e7348911" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065156Z:cf6194fa-a5e8-4d15-84c1-7849e7348911" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:51:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T06:51:56.037Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/bdca3d03-d749-4999-9f97-9e9e51e4c414?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/bdca3d03-d749-4999-9f97-9e9e51e4c414?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "5b8406bf-0885-4680-b181-e5bcec747b3c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e3e2fe44-9831-493e-aa98-5586fcf51509" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "4a3d7754-cd68-49ac-95d6-060848ebb48d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065256Z:4a3d7754-cd68-49ac-95d6-060848ebb48d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "238" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"bdca3d03-d749-4999-9f97-9e9e51e4c414\",\"status\":\"Failed\",\"startTime\":\"2020-11-11T06:51:56.037Z\",\"error\":{\"code\":\"ServiceBusy\",\"message\":\"Service is temporarily busy and the operation cannot be performed. Please try again later.\"}}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "5b8406bf-0885-4680-b181-e5bcec747b3c" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2905534a-8bb5-490c-9fd0-8bc3526ab835" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "31520e2f-b4a1-41bf-9904-d0008e7b9fa1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065256Z:31520e2f-b4a1-41bf-9904-d0008e7b9fa1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "937" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":7,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Stopped\",\"haState\":\"\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/operationResults/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4d556b7e-3b98-42e7-a094-37b3014fc819" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "6c6120f7-7c07-41fb-a4a9-8d047141fc52" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065257Z:6c6120f7-7c07-41fb-a4a9-8d047141fc52" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:52:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "16e8a091-be1f-465c-b0aa-93a0ba012d00" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065312Z:3818c338-f36a-4152-89d4-d9b2b6889ce4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bfa1ceca-003b-49e1-aa9f-838116985f50" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "0b2b8f9e-96a5-4fc6-b2c6-0a53a1da338c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065327Z:0b2b8f9e-96a5-4fc6-b2c6-0a53a1da338c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c4c9a1c5-94c1-4c70-98e3-71030dc16069" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "f3f144b2-25a1-4bc7-b89d-2cb8090cff05" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065342Z:f3f144b2-25a1-4bc7-b89d-2cb8090cff05" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"4d556b7e-3b98-42e7-a094-37b3014fc819\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:52:56.89Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/operationResults/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/operationResults/4d556b7e-3b98-42e7-a094-37b3014fc819?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "ec002b21-df4d-4531-a3e7-7f5df9e1d653" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a0e72b53-2807-4c55-afea-162300be10de" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "e056a79d-4c62-4cbe-a106-9f0420a4e8ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065342Z:e056a79d-4c62-4cbe-a106-9f0420a4e8ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:42 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-2?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "c3c3e103-1ea8-4cbf-ac89-ec473b72e276" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/operationResults/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "730c9395-f9de-4d7f-9f5d-13dccb9f8a1e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "ec692b74-fa56-4e76-916b-68cd459a2040" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065342Z:ec692b74-fa56-4e76-916b-68cd459a2040" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "83" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerManagementOperation\",\"startTime\":\"2020-11-11T06:53:42.78Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/azureAsyncOperation/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/azureAsyncOperation/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "c3c3e103-1ea8-4cbf-ac89-ec473b72e276" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "83e60d9e-d6da-48b7-86bd-b3ae0988265a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "38fb205f-4e8d-441e-9e97-9fe141e9ed79" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065358Z:38fb205f-4e8d-441e-9e97-9fe141e9ed79" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"730c9395-f9de-4d7f-9f5d-13dccb9f8a1e\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T06:53:42.78Z\"}" + } + }, + "Remove-AzMySqlFlexibleServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East US 2/operationResults/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/East%20US%202/operationResults/730c9395-f9de-4d7f-9f5d-13dccb9f8a1e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "c3c3e103-1ea8-4cbf-ac89-ec473b72e276" ], + "CommandName": [ "Remove-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fadb6289-be4c-44a5-97db-f2e2aa7b768c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "da0cd39d-67e5-497c-9cd3-f3837ceea599" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T065358Z:da0cd39d-67e5-497c-9cd3-f3837ceea599" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 06:53:57 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..82768ba68e0a --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,30 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzMySqlFlexibleServer' { + It 'Delete' { + { + #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] + $password = 'Pasword01!!2020' | ConvertTo-SecureString -AsPlainText -Force + New-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName -AdministratorUserName mysql_test -AdministratorLoginPassword $password + Remove-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName2 + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName2)" + Remove-AzMySqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Recording.json b/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Recording.json new file mode 100644 index 000000000000..dfbc5db75cec --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Recording.json @@ -0,0 +1,476 @@ +{ + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/9a03a575-bc13-408a-8bf7-fc0752b3213c?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9a03a575-bc13-408a-8bf7-fc0752b3213c?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9a03a575-bc13-408a-8bf7-fc0752b3213c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "93dd418f-9d01-46b2-a6d9-d439b998b239" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220440Z:93dd418f-9d01-46b2-a6d9-d439b998b239" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "94" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:04:40.043Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9a03a575-bc13-408a-8bf7-fc0752b3213c?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9a03a575-bc13-408a-8bf7-fc0752b3213c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "f8dba345-3a8d-405f-aeed-d9420ad4ae79" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "74479240-2f90-449d-ac5c-aeabde39bfa1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "bbfebb1e-810e-44be-9bd0-03a114ad034c" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220455Z:bbfebb1e-810e-44be-9bd0-03a114ad034c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9a03a575-bc13-408a-8bf7-fc0752b3213c\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:04:40.043Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "f8dba345-3a8d-405f-aeed-d9420ad4ae79" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0b897daa-b058-4210-96d9-827c077b9c33" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "4e0f1cfa-e36e-43e7-9902-0ce10129a470" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220455Z:4e0f1cfa-e36e-43e7-9902-0ce10129a470" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "8c9b51c7-9081-4915-862e-1fc0c5333b26" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "b1f0f704-f17e-4023-a353-c907323a7ff4" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220455Z:b1f0f704-f17e-4023-a353-c907323a7ff4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:04:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "91" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:04:55.73Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "8c9b51c7-9081-4915-862e-1fc0c5333b26" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "de142f0d-486b-4b76-827c-34255625bd48" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "abc481b8-60a9-464e-9a10-18e4fc8190df" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220510Z:abc481b8-60a9-464e-9a10-18e4fc8190df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:04:55.73Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/6d069e03-8e63-4f9c-96d3-a3b9f8c3c32c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "8c9b51c7-9081-4915-862e-1fc0c5333b26" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "93168ead-fe09-4b32-b02c-ebbaf2e43495" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "e29114af-3ad6-40aa-a1ed-4790cf373c7d" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220511Z:e29114af-3ad6-40aa-a1ed-4790cf373c7d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "254" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/8ff93cff-ab9d-4a74-82cf-f3dc286df95f?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8ff93cff-ab9d-4a74-82cf-f3dc286df95f?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8ff93cff-ab9d-4a74-82cf-f3dc286df95f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "441ba413-8c4e-4660-acdc-63b4a06e849c" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220511Z:441ba413-8c4e-4660-acdc-63b4a06e849c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "94" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:05:11.433Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8ff93cff-ab9d-4a74-82cf-f3dc286df95f?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8ff93cff-ab9d-4a74-82cf-f3dc286df95f?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "da8225a4-4a7c-4035-8808-811e354c836e" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3c301fde-6874-4168-983a-953b87e91ba6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "b4569f01-08e4-483e-a922-b9bf0a158716" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220526Z:b4569f01-08e4-483e-a922-b9bf0a158716" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8ff93cff-ab9d-4a74-82cf-f3dc286df95f\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:05:11.433Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "da8225a4-4a7c-4035-8808-811e354c836e" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "77678ac7-a950-4928-b47c-54fc8c09c25d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "98e317e4-f78f-4064-8131-d40cd5de0ff3" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220527Z:98e317e4-f78f-4064-8131-d40cd5de0ff3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "3d4837e5-30d5-4699-98ac-f78c0428faa2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3262281a-3911-4b7c-84c3-a41cf2e5b3b4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], + "x-ms-correlation-request-id": [ "5bdc071d-c294-4133-a446-0aa9256ef1bd" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220527Z:5bdc071d-c294-4133-a446-0aa9256ef1bd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "92" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:05:27.217Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "3d4837e5-30d5-4699-98ac-f78c0428faa2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "060bb1db-d62f-4ebe-bdbf-ba24214010e4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "1dc9d789-f051-4558-91d7-06b86f9cd424" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220542Z:1dc9d789-f051-4558-91d7-06b86f9cd424" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3262281a-3911-4b7c-84c3-a41cf2e5b3b4\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:05:27.217Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerDatabase+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3262281a-3911-4b7c-84c3-a41cf2e5b3b4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "3d4837e5-30d5-4699-98ac-f78c0428faa2" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2e28984d-0930-431e-9873-0dd6a2f39e25" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "d16f6aaf-70b8-439f-8086-68f1b227cc0e" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220542Z:d16f6aaf-70b8-439f-8086-68f1b227cc0e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "254" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Tests.ps1 b/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Tests.ps1 new file mode 100644 index 000000000000..12efec8b0e93 --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServerDatabase.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzMySqlFlexibleServerDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzMySqlFlexibleServerDatabase' { + It 'Delete' { + { + New-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + Remove-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } + + It 'DeleteViaIdentity' { + { + New-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/databases/$($env.databaseName)" + Remove-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Recording.json b/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..8c83f9ed2ba8 --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,474 @@ +{ + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c9876e71-00f7-42b9-a772-660c5061b600?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c9876e71-00f7-42b9-a772-660c5061b600?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c9876e71-00f7-42b9-a772-660c5061b600" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "54cfe3e3-3913-4a85-a712-9401ddd02158" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092820Z:54cfe3e3-3913-4a85-a712-9401ddd02158" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:28:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:28:20.113Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c9876e71-00f7-42b9-a772-660c5061b600?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c9876e71-00f7-42b9-a772-660c5061b600?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "1fe0cab0-3806-4205-8d4c-a07b90afdb5b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "91671f14-9d04-4e1e-a892-8e7ed8e582ad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "5088f1c3-926b-41f0-abd8-b3820e7d2dde" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092920Z:5088f1c3-926b-41f0-abd8-b3820e7d2dde" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:29:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c9876e71-00f7-42b9-a772-660c5061b600\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:28:20.113Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "1fe0cab0-3806-4205-8d4c-a07b90afdb5b" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "483df80c-911f-4d72-8f0f-a8047c0c83b1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "60cc8f3c-d73c-463f-b7d4-2a4355dd35f3" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092921Z:60cc8f3c-d73c-463f-b7d4-2a4355dd35f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:29:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "bf2ea355-bf97-47ea-9160-9bf23243c694" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "28ac55df-fd9a-4a50-935c-c11cf7248948" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "01cb0390-a6e3-4bf8-8ad6-41e01d40fac2" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T092921Z:01cb0390-a6e3-4bf8-8ad6-41e01d40fac2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:29:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:29:21.357Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "bf2ea355-bf97-47ea-9160-9bf23243c694" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3f5427e1-ddb8-43a9-b86b-d7d48228d3bc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "0ce582db-f80e-4fd8-9b79-6b9dc1828192" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093022Z:0ce582db-f80e-4fd8-9b79-6b9dc1828192" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:30:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"28ac55df-fd9a-4a50-935c-c11cf7248948\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:29:21.357Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/28ac55df-fd9a-4a50-935c-c11cf7248948?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "bf2ea355-bf97-47ea-9160-9bf23243c694" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cbe91961-a1a4-4597-af06-368de9931ac6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "4de1f650-5bd2-4ed5-abe2-dd2a03c1cb52" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093022Z:4de1f650-5bd2-4ed5-abe2-dd2a03c1cb52" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:30:21 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/db072919-e68c-46c6-aeba-c8363014728e?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/db072919-e68c-46c6-aeba-c8363014728e?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "db072919-e68c-46c6-aeba-c8363014728e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "64d45bb7-f9b3-4c40-8be5-bc48575623ba" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093022Z:64d45bb7-f9b3-4c40-8be5-bc48575623ba" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:30:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:30:22.8Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/db072919-e68c-46c6-aeba-c8363014728e?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/db072919-e68c-46c6-aeba-c8363014728e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "a82ac8c9-b643-42d7-b900-2b86e4d22b66" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "42ef946d-c4dd-4c72-9854-291d3f4819a6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "830b154b-065d-457d-b07f-d64e0a0ab886" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093123Z:830b154b-065d-457d-b07f-d64e0a0ab886" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:31:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "105" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"db072919-e68c-46c6-aeba-c8363014728e\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:30:22.8Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "a82ac8c9-b643-42d7-b900-2b86e4d22b66" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "888de5f0-b9c1-4aca-bde7-2ccb315829e6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "24d5c5fd-3bbe-450d-be56-1711572f1c23" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093123Z:24d5c5fd-3bbe-450d-be56-1711572f1c23" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:31:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "b908617a-a950-4b5e-9020-738a99bd8efd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cfaf7411-7727-464b-a2f0-fdaa87a32d73" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "ec81dd01-40f8-4159-b141-17d730b91fe2" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093123Z:ec81dd01-40f8-4159-b141-17d730b91fe2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:31:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "97" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:31:23.723Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "b908617a-a950-4b5e-9020-738a99bd8efd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e4aa8366-9dda-46d7-b670-800977b7b926" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "db527392-f298-4327-a072-b973cd2051bf" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093224Z:db527392-f298-4327-a072-b973cd2051bf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:32:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"cfaf7411-7727-464b-a2f0-fdaa87a32d73\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:31:23.723Z\"}" + } + }, + "Remove-AzMySqlFlexibleServerFirewallRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/cfaf7411-7727-464b-a2f0-fdaa87a32d73?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "b908617a-a950-4b5e-9020-738a99bd8efd" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerFirewallRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5a0d7b8a-177c-4d46-b533-6f2b44e18c10" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "8540d9cc-94c7-479c-99e7-41563c5781b5" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T093224Z:8540d9cc-94c7-479c-99e7-41563c5781b5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:32:24 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Tests.ps1 b/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..d73881c78f59 --- /dev/null +++ b/src/MySql/test/Remove-AzMySqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,25 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzMySqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzMySqlFlexibleServerFirewallRule' { + It 'Delete' { + New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + Remove-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } + + It 'DeleteViaIdentity' { + New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + Remove-AzMySqlFlexibleServerFirewallRule -InputObject $ID + } +} diff --git a/src/MySql/test/Remove-AzMySqlServer.Recording.json b/src/MySql/test/Remove-AzMySqlServer.Recording.json index 02af92c09120..53f87dad616c 100644 --- a/src/MySql/test/Remove-AzMySqlServer.Recording.json +++ b/src/MySql/test/Remove-AzMySqlServer.Recording.json @@ -1,554 +1,554 @@ { - "Remove-AzMySqlServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "198" ] + "Remove-AzMySqlServer+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "198" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01" ], + "x-ms-request-id": [ "151e2111-8c01-41f2-b1c4-10650c66ab6c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "1f11f495-6cb3-4412-8592-6c093e708116" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063239Z:1f11f495-6cb3-4412-8592-6c093e708116" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:32:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "74" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01" ], - "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01" ], - "x-ms-request-id": [ "151e2111-8c01-41f2-b1c4-10650c66ab6c" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "1f11f495-6cb3-4412-8592-6c093e708116" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063239Z:1f11f495-6cb3-4412-8592-6c093e708116" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:32:39 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "74" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2" ], - "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "59b5c4d7-d83b-48e8-a011-0cb90709e9e3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "ec9fb2fb-f890-4a46-8646-a617576081c6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063339Z:ec9fb2fb-f890-4a46-8646-a617576081c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:33:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"151e2111-8c01-41f2-b1c4-10650c66ab6c\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "59b5c4d7-d83b-48e8-a011-0cb90709e9e3" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "ec9fb2fb-f890-4a46-8646-a617576081c6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063339Z:ec9fb2fb-f890-4a46-8646-a617576081c6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:33:39 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "108" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"151e2111-8c01-41f2-b1c4-10650c66ab6c\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3" ], - "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/151e2111-8c01-41f2-b1c4-10650c66ab6c?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "4a39db80-8126-4937-9f0f-44d06c3c398d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "e4fafab3-26da-4e33-af24-82dba54f423b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063440Z:e4fafab3-26da-4e33-af24-82dba54f423b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:34:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"151e2111-8c01-41f2-b1c4-10650c66ab6c\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "4a39db80-8126-4937-9f0f-44d06c3c398d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "e4fafab3-26da-4e33-af24-82dba54f423b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063440Z:e4fafab3-26da-4e33-af24-82dba54f423b" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:34:40 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"151e2111-8c01-41f2-b1c4-10650c66ab6c\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:32:38.043Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3", "4" ], - "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7", "a65f55c7-54b5-472b-b096-3260deb652e7" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9d2225f3-7b78-4b48-bb5f-13d9a27c2428" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "eded30b6-ddb6-4085-a2b2-568699c991d7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063441Z:eded30b6-ddb6-4085-a2b2-568699c991d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:34:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "905" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:42:38.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "9d2225f3-7b78-4b48-bb5f-13d9a27c2428" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "eded30b6-ddb6-4085-a2b2-568699c991d7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063441Z:eded30b6-ddb6-4085-a2b2-568699c991d7" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:34:40 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "905" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:42:38.307+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2\",\"name\":\"mysql-test-100-2\",\"type\":\"Microsoft.DBforMySQL/servers\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01+5": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-2?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417" ], - "CommandName": [ "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-2?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417" ], + "CommandName": [ "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01" ], + "x-ms-request-id": [ "97c1573e-d290-468d-9125-214a3918622a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "dc42dff3-8ed7-4f35-bfc3-377acede0e5f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063442Z:dc42dff3-8ed7-4f35-bfc3-377acede0e5f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:34:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "71" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:34:41.87Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01" ], - "x-ms-request-id": [ "97c1573e-d290-468d-9125-214a3918622a" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "dc42dff3-8ed7-4f35-bfc3-377acede0e5f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063442Z:dc42dff3-8ed7-4f35-bfc3-377acede0e5f" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:34:41 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "71" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:34:41.87Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5", "6" ], - "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5", "6" ], + "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "2b4bf993-e9b2-4553-8532-ca480198681f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "6f0b467a-9492-4de5-a874-06992c9dae52" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063457Z:6f0b467a-9492-4de5-a874-06992c9dae52" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:34:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"97c1573e-d290-468d-9125-214a3918622a\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:34:41.87Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "2b4bf993-e9b2-4553-8532-ca480198681f" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-correlation-request-id": [ "6f0b467a-9492-4de5-a874-06992c9dae52" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063457Z:6f0b467a-9492-4de5-a874-06992c9dae52" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:34:56 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "106" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"97c1573e-d290-468d-9125-214a3918622a\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:34:41.87Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "5", "6", "7" ], - "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/97c1573e-d290-468d-9125-214a3918622a?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5", "6", "7" ], + "x-ms-client-request-id": [ "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417", "333dbdd6-1744-4299-bb86-c2201ad30417" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete", "Remove-AzMySqlServer_Delete" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "8b91628e-339e-49dd-a22b-3b9d4f7251d3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "af3f285e-2b2b-438b-887c-76f98db7b3e3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063457Z:af3f285e-2b2b-438b-887c-76f98db7b3e3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:34:57 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "8b91628e-339e-49dd-a22b-3b9d4f7251d3" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], - "x-ms-correlation-request-id": [ "af3f285e-2b2b-438b-887c-76f98db7b3e3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063457Z:af3f285e-2b2b-438b-887c-76f98db7b3e3" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:34:57 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "198" ] + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Default\",\n \"administratorLogin\": \"pwsh\",\n \"administratorLoginPassword\": \"Pa88word!\"\n },\n \"sku\": {\n \"name\": \"GP_Gen5_4\"\n },\n \"location\": \"eastus\"\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "198" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01" ], + "x-ms-request-id": [ "8185fd38-6088-4c65-8794-54b454afd13e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "29344297-7ce7-43a0-902b-875aa1ecfb4d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063504Z:29344297-7ce7-43a0-902b-875aa1ecfb4d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:35:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "74" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01" ], - "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01" ], - "x-ms-request-id": [ "8185fd38-6088-4c65-8794-54b454afd13e" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "29344297-7ce7-43a0-902b-875aa1ecfb4d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063504Z:29344297-7ce7-43a0-902b-875aa1ecfb4d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:35:03 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "74" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "8", "9" ], - "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9" ], + "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "d5ea7d90-2f85-4686-b574-b1d9c3ffecf4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "1c17f95d-9003-4c5c-b8b4-ccdda16e5af6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063605Z:1c17f95d-9003-4c5c-b8b4-ccdda16e5af6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:36:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8185fd38-6088-4c65-8794-54b454afd13e\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "d5ea7d90-2f85-4686-b574-b1d9c3ffecf4" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-correlation-request-id": [ "1c17f95d-9003-4c5c-b8b4-ccdda16e5af6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063605Z:1c17f95d-9003-4c5c-b8b4-ccdda16e5af6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:36:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "108" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"8185fd38-6088-4c65-8794-54b454afd13e\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "8", "9", "10" ], - "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8185fd38-6088-4c65-8794-54b454afd13e?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9", "10" ], + "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "x-ms-request-id": [ "a1c693a8-d66f-4a86-bfd6-297e2b1d4c8d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "8f21a533-016a-4003-8f0a-2499ba259263" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063706Z:8f21a533-016a-4003-8f0a-2499ba259263" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:37:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8185fd38-6088-4c65-8794-54b454afd13e\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "60" ], - "x-ms-request-id": [ "a1c693a8-d66f-4a86-bfd6-297e2b1d4c8d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-correlation-request-id": [ "8f21a533-016a-4003-8f0a-2499ba259263" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063706Z:8f21a533-016a-4003-8f0a-2499ba259263" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:37:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"8185fd38-6088-4c65-8794-54b454afd13e\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:35:02.823Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "8", "9", "10", "11" ], - "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], - "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], - "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8", "9", "10", "11" ], + "x-ms-client-request-id": [ "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db", "c351c1fe-75b5-4bc8-a958-4e9d37e742db" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer", "Az.MySql.internal\\New-AzMySqlServer" ], + "FullCommandName": [ "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create", "New-AzMySqlServer_Create" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "df99e724-c222-43ea-ab7b-0a1edc076cd0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "56d77769-018d-4d1b-b1c3-3585b15595b7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063706Z:56d77769-018d-4d1b-b1c3-3585b15595b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:37:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "890" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysqldelete.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:45:03.153+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete\",\"name\":\"mysqldelete\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "df99e724-c222-43ea-ab7b-0a1edc076cd0" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], - "x-ms-correlation-request-id": [ "56d77769-018d-4d1b-b1c3-3585b15595b7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063706Z:56d77769-018d-4d1b-b1c3-3585b15595b7" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:37:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "890" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"pwsh\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Enabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysqldelete.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T06:45:03.153+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete\",\"name\":\"mysqldelete\",\"type\":\"Microsoft.DBforMySQL/servers\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01+5": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysqldelete?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], - "CommandName": [ "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysqldelete?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], + "CommandName": [ "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01" ], + "x-ms-request-id": [ "ea807a1c-c746-461a-8f14-e6c67760a835" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-correlation-request-id": [ "f3e07c64-0cd3-46e9-9e98-f0a3e8edc379" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063707Z:f3e07c64-0cd3-46e9-9e98-f0a3e8edc379" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:37:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "72" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:37:07.093Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01" ], - "x-ms-request-id": [ "ea807a1c-c746-461a-8f14-e6c67760a835" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "f3e07c64-0cd3-46e9-9e98-f0a3e8edc379" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063707Z:f3e07c64-0cd3-46e9-9e98-f0a3e8edc379" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:37:06 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "72" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"DropElasticServer\",\"startTime\":\"2020-07-24T06:37:07.093Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "12", "13" ], - "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12", "13" ], + "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "8ce245ee-3c94-4639-9d0a-27f845b47547" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "a73d37fc-09ac-4b2b-8bfe-365beed77ef3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063722Z:a73d37fc-09ac-4b2b-8bfe-365beed77ef3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:37:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"ea807a1c-c746-461a-8f14-e6c67760a835\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:37:07.093Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "8ce245ee-3c94-4639-9d0a-27f845b47547" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-correlation-request-id": [ "a73d37fc-09ac-4b2b-8bfe-365beed77ef3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063722Z:a73d37fc-09ac-4b2b-8bfe-365beed77ef3" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:37:21 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"ea807a1c-c746-461a-8f14-e6c67760a835\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:37:07.093Z\"}" - } - }, - "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "12", "13", "14" ], - "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], - "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], - "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Remove-AzMySqlServer+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ea807a1c-c746-461a-8f14-e6c67760a835?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12", "13", "14" ], + "x-ms-client-request-id": [ "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc", "c2a862ad-8bec-4eed-9d3f-adae77916fdc" ], + "CommandName": [ "Remove-AzMySqlServer", "Remove-AzMySqlServer", "Remove-AzMySqlServer" ], + "FullCommandName": [ "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity", "Remove-AzMySqlServer_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "9fe124c0-27c5-40c1-a8cb-178a0df00814" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "f89bd596-bedc-4004-9723-7a54bece52e6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063722Z:f89bd596-bedc-4004-9723-7a54bece52e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:37:21 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "9fe124c0-27c5-40c1-a8cb-178a0df00814" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], - "x-ms-correlation-request-id": [ "f89bd596-bedc-4004-9723-7a54bece52e6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T063722Z:f89bd596-bedc-4004-9723-7a54bece52e6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:37:21 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null } - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/src/MySql/test/Remove-AzMySqlServer.Tests.ps1 b/src/MySql/test/Remove-AzMySqlServer.Tests.ps1 index 9fbc0c981628..8b194a48b66b 100644 --- a/src/MySql/test/Remove-AzMySqlServer.Tests.ps1 +++ b/src/MySql/test/Remove-AzMySqlServer.Tests.ps1 @@ -26,7 +26,7 @@ Describe 'Remove-AzMySqlServer' { #[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")] $password = 'Pa88word!' | ConvertTo-SecureString -AsPlainText -Force New-AzMySqlServer -Name mysqldelete -ResourceGroupName $env.resourceGroup -Location $env.location -AdministratorUserName pwsh -AdministratorLoginPassword $password -Sku $env.Sku - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/mysqldelete" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/mysqldelete" Remove-AzMySqlServer -InputObject $ID } | Should -Not -Throw } diff --git a/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Recording.json b/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Recording.json index 434ac7e9d010..83e97bbed231 100644 --- a/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Recording.json +++ b/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01" ], "x-ms-request-id": [ "9e644f70-57e5-4b70-9db2-db45be70fdcd" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:38:10.287Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01+2": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9e644f70-57e5-4b70-9db2-db45be70fdcd?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"9e644f70-57e5-4b70-9db2-db45be70fdcd\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:38:10.287Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -137,9 +137,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01" ], "x-ms-request-id": [ "dda26a0e-016a-4868-8b3e-9835cfc00214" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], @@ -157,10 +157,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:38:42.74Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01+5": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5" ], @@ -197,10 +197,10 @@ "Content": "{\"name\":\"dda26a0e-016a-4868-8b3e-9835cfc00214\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:38:42.74Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01+6": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/dda26a0e-016a-4868-8b3e-9835cfc00214?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5", "6" ], @@ -235,11 +235,11 @@ "Content": null } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -252,9 +252,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01" ], "x-ms-request-id": [ "008d17b6-eda7-4894-8595-97c3ab6fd9e5" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -272,10 +272,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:39:00.223Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01+2": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/008d17b6-eda7-4894-8595-97c3ab6fd9e5?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8" ], @@ -312,10 +312,10 @@ "Content": "{\"name\":\"008d17b6-eda7-4894-8595-97c3ab6fd9e5\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:39:00.223Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8", "9" ], @@ -348,13 +348,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10" ], @@ -373,9 +373,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01" ], "x-ms-request-id": [ "117d3811-f4af-46ed-88aa-ba3d352811a9" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], @@ -393,10 +393,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T06:39:32.503Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01+5": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11" ], @@ -433,10 +433,10 @@ "Content": "{\"name\":\"117d3811-f4af-46ed-88aa-ba3d352811a9\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:39:32.503Z\"}" } }, - "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01+6": { + "Remove-AzMySqlVirtualNetworkRule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/117d3811-f4af-46ed-88aa-ba3d352811a9?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11", "12" ], diff --git a/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Tests.ps1 b/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Tests.ps1 index 208170eda360..a785321e7fbc 100644 --- a/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Tests.ps1 +++ b/src/MySql/test/Remove-AzMySqlVirtualNetworkRule.Tests.ps1 @@ -23,7 +23,7 @@ Describe 'Remove-AzMySqlVirtualNetworkRule' { It 'DeleteViaIdentity' { $VnetID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" New-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $VnetID - $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" + $RuleID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" { Remove-AzMySqlVirtualNetworkRule -InputObject $RuleID } | Should -Not -Throw diff --git a/src/MySql/test/Restart-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Restart-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..e127e9220d1c --- /dev/null +++ b/src/MySql/test/Restart-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,324 @@ +{ + "Restart-AzMySqlFlexibleServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/restart?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/restart?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "3dbf2866-1370-4010-9166-0f7d138a945e" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1a047347-6b9f-4a27-8087-8018e5101924" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "84faa3a9-1066-4fb4-892f-1334d0ba5bd1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205031Z:84faa3a9-1066-4fb4-892f-1334d0ba5bd1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:50:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartServerManagementOperation\",\"startTime\":\"2020-11-11T20:50:31.543Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "3dbf2866-1370-4010-9166-0f7d138a945e" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "522f2d66-7620-4f35-b7e4-f63982bb4481" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "b45058ea-2c79-49a5-b7fd-ef9984827a2f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205131Z:b45058ea-2c79-49a5-b7fd-ef9984827a2f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:51:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1a047347-6b9f-4a27-8087-8018e5101924\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:50:31.543Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3dbf2866-1370-4010-9166-0f7d138a945e" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "607ac0a4-7983-4083-b2be-7170b263a205" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "372e0a6e-cf0e-47e2-b053-0eb13a43a0cb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205232Z:372e0a6e-cf0e-47e2-b053-0eb13a43a0cb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:52:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"1a047347-6b9f-4a27-8087-8018e5101924\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:50:31.543Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/1a047347-6b9f-4a27-8087-8018e5101924?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3dbf2866-1370-4010-9166-0f7d138a945e" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0b79641e-39f3-4418-b2a1-05c9fcaaa96d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "9398900a-7299-4a80-a3c5-9543ed7e2297" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205232Z:9398900a-7299-4a80-a3c5-9543ed7e2297" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:52:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/restart?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/restart?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "3110766e-b6e0-41c9-8516-ee1bb72ab037" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "335f7990-165b-4b1d-ad7e-a5a08527000a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "1ed19d9e-8fae-4641-825f-324ce082c3a8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205232Z:1ed19d9e-8fae-4641-825f-324ce082c3a8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:52:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "86" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartServerManagementOperation\",\"startTime\":\"2020-11-11T20:52:32.59Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "3110766e-b6e0-41c9-8516-ee1bb72ab037" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3d35dba0-2c6b-49e9-b2e4-5cb0b92741a2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "16af7972-2a63-4e18-8410-2330704d2e29" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205332Z:16af7972-2a63-4e18-8410-2330704d2e29" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:53:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"335f7990-165b-4b1d-ad7e-a5a08527000a\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T20:52:32.59Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3110766e-b6e0-41c9-8516-ee1bb72ab037" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d27fdb5f-6fbe-45f5-bc74-474723e5f5c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "b65fa1b3-c711-4279-8759-74865fcea088" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205432Z:b65fa1b3-c711-4279-8759-74865fcea088" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:54:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"335f7990-165b-4b1d-ad7e-a5a08527000a\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:52:32.59Z\"}" + } + }, + "Restart-AzMySqlFlexibleServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/335f7990-165b-4b1d-ad7e-a5a08527000a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3110766e-b6e0-41c9-8516-ee1bb72ab037" ], + "CommandName": [ "Restart-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Restart-AzMySqlFlexibleServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5705226a-999c-4bc1-832c-a9147a5081d3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "955d398f-f3f3-4221-9da0-d90f62111d41" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T205432Z:955d398f-f3f3-4221-9da0-d90f62111d41" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:54:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Restart-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Restart-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..d0c7ccae5b9a --- /dev/null +++ b/src/MySql/test/Restart-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restart-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restart-AzMySqlFlexibleServer' { + It 'Restart' { + { + Restart-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + } | Should -Not -Throw + } + + It 'RestartViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/restart" + Restart-AzMySqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Restart-AzMySqlServer.Recording.json b/src/MySql/test/Restart-AzMySqlServer.Recording.json index a20eb3f8d9c8..ae0d4b601f16 100644 --- a/src/MySql/test/Restart-AzMySqlServer.Recording.json +++ b/src/MySql/test/Restart-AzMySqlServer.Recording.json @@ -1,482 +1,482 @@ { - "Restart-AzMySqlServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/restart?api-version=2017-12-01+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/restart?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/restart?api-version=2017-12-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/restart?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01" ], + "x-ms-request-id": [ "2c5d06a0-f0c2-47db-8145-c596b0e722b6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "2c705342-056f-4a01-ae78-84d40a60a90d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064218Z:2c705342-056f-4a01-ae78-84d40a60a90d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:42:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "74" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01" ], - "x-ms-request-id": [ "2c5d06a0-f0c2-47db-8145-c596b0e722b6" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "2c705342-056f-4a01-ae78-84d40a60a90d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064218Z:2c705342-056f-4a01-ae78-84d40a60a90d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:42:17 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "74" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "13291af0-47bf-46ef-95be-eab4d8f09b46" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "9047b6a7-cbf5-4afb-be9a-6a9b9d3e79f6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064233Z:9047b6a7-cbf5-4afb-be9a-6a9b9d3e79f6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:42:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "13291af0-47bf-46ef-95be-eab4d8f09b46" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "9047b6a7-cbf5-4afb-be9a-6a9b9d3e79f6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064233Z:9047b6a7-cbf5-4afb-be9a-6a9b9d3e79f6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:42:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "6c73e2f3-79a9-48ea-96f0-edc2a7919784" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "e7532b0f-4dfb-4b57-bf6f-59c7ac28c85d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064248Z:e7532b0f-4dfb-4b57-bf6f-59c7ac28c85d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:42:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "6c73e2f3-79a9-48ea-96f0-edc2a7919784" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-correlation-request-id": [ "e7532b0f-4dfb-4b57-bf6f-59c7ac28c85d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064248Z:e7532b0f-4dfb-4b57-bf6f-59c7ac28c85d" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:42:48 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3", "4" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "d1dfe3d5-0dc1-45b7-9002-d987129c9a7d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "ec4519c3-1c39-4277-9796-b499065c9429" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064304Z:ec4519c3-1c39-4277-9796-b499065c9429" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "d1dfe3d5-0dc1-45b7-9002-d987129c9a7d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], - "x-ms-correlation-request-id": [ "ec4519c3-1c39-4277-9796-b499065c9429" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064304Z:ec4519c3-1c39-4277-9796-b499065c9429" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:03 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "940a03fe-18fd-4fd0-bae0-668c0d6840f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "592e4f19-35c7-4be1-a03e-b3a5c7d52c65" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064319Z:592e4f19-35c7-4be1-a03e-b3a5c7d52c65" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "940a03fe-18fd-4fd0-bae0-668c0d6840f8" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-correlation-request-id": [ "592e4f19-35c7-4be1-a03e-b3a5c7d52c65" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064319Z:592e4f19-35c7-4be1-a03e-b3a5c7d52c65" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:18 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "106" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"2c5d06a0-f0c2-47db-8145-c596b0e722b6\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:42:17.86Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6" ], - "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+Restart+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/2c5d06a0-f0c2-47db-8145-c596b0e722b6?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1", "2", "3", "4", "5", "6" ], + "x-ms-client-request-id": [ "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84", "71c2b788-0647-4d4b-8f86-38cf41a04e84" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart", "Restart-AzMySqlServer_Restart" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "3e87c5ba-bea4-4e8f-b136-646faf330339" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "d2068349-544b-4a87-8e82-2fd2628823ce" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064319Z:d2068349-544b-4a87-8e82-2fd2628823ce" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:19 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "3e87c5ba-bea4-4e8f-b136-646faf330339" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-correlation-request-id": [ "d2068349-544b-4a87-8e82-2fd2628823ce" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064319Z:d2068349-544b-4a87-8e82-2fd2628823ce" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:19 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/restart?api-version=2017-12-01+1": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/restart?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/restart?api-version=2017-12-01+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/restart?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01" ], + "x-ms-request-id": [ "62df6539-87c0-4278-9d9e-6f874380b40d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "ca420300-952f-414b-be96-f17a70544d50" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064320Z:ca420300-952f-414b-be96-f17a70544d50" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "75" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" } }, - "Response": { - "StatusCode": 202, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01" ], - "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01" ], - "x-ms-request-id": [ "62df6539-87c0-4278-9d9e-6f874380b40d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "ca420300-952f-414b-be96-f17a70544d50" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064320Z:ca420300-952f-414b-be96-f17a70544d50" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:19 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "75" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"operation\":\"RestartElasticServer\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "7ded85c5-4503-436b-82e4-e1ea448f2903" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "1817b5bf-57a9-4ef8-a809-152a8d94eeff" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064335Z:1817b5bf-57a9-4ef8-a809-152a8d94eeff" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "7ded85c5-4503-436b-82e4-e1ea448f2903" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], - "x-ms-correlation-request-id": [ "1817b5bf-57a9-4ef8-a809-152a8d94eeff" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064335Z:1817b5bf-57a9-4ef8-a809-152a8d94eeff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:35 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "108" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8", "9" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8", "9" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "718f8161-da3a-4691-8195-d7dbbe30a8c8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "dd2b8e28-b2d5-4968-9b91-ed384329ff8b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064351Z:dd2b8e28-b2d5-4968-9b91-ed384329ff8b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:43:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "718f8161-da3a-4691-8195-d7dbbe30a8c8" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-correlation-request-id": [ "dd2b8e28-b2d5-4968-9b91-ed384329ff8b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064351Z:dd2b8e28-b2d5-4968-9b91-ed384329ff8b" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:43:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "108" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8", "9", "10" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8", "9", "10" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "5709d4ab-37dc-4620-9dbe-ea57b0dff922" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "bb498ce1-f241-4e77-8f7d-b4986762297b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064406Z:bb498ce1-f241-4e77-8f7d-b4986762297b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:44:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "5709d4ab-37dc-4620-9dbe-ea57b0dff922" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], - "x-ms-correlation-request-id": [ "bb498ce1-f241-4e77-8f7d-b4986762297b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064406Z:bb498ce1-f241-4e77-8f7d-b4986762297b" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:44:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "108" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8", "9", "10", "11" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8", "9", "10", "11" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "x-ms-request-id": [ "429ca123-d8de-42d2-acd7-6fba9d6e246f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "36176754-0a79-4251-bb07-efee9fe539e6" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064421Z:36176754-0a79-4251-bb07-efee9fe539e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:44:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" } }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "15" ], - "x-ms-request-id": [ "429ca123-d8de-42d2-acd7-6fba9d6e246f" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], - "x-ms-correlation-request-id": [ "36176754-0a79-4251-bb07-efee9fe539e6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064421Z:36176754-0a79-4251-bb07-efee9fe539e6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:44:20 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "107" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"name\":\"62df6539-87c0-4278-9d9e-6f874380b40d\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T06:43:20.203Z\"}" - } - }, - "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "7", "8", "9", "10", "11", "12" ], - "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], - "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], - "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], - "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { + "Restart-AzMySqlServer+[NoContext]+RestartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/62df6539-87c0-4278-9d9e-6f874380b40d?api-version=2017-12-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7", "8", "9", "10", "11", "12" ], + "x-ms-client-request-id": [ "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f", "0bcff115-6341-49c6-9548-0f4e307a824f" ], + "CommandName": [ "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer", "Restart-AzMySqlServer" ], + "FullCommandName": [ "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity", "Restart-AzMySqlServer_RestartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets", "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview", "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b2b33128-f2e2-4dfa-a90a-8e2214154084" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "c7153538-ea5c-4bd2-b074-f36274e9e515" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064422Z:c7153538-ea5c-4bd2-b074-f36274e9e515" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 24 Jul 2020 06:44:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b2b33128-f2e2-4dfa-a90a-8e2214154084" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], - "x-ms-correlation-request-id": [ "c7153538-ea5c-4bd2-b074-f36274e9e515" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20200724T064422Z:c7153538-ea5c-4bd2-b074-f36274e9e515" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 24 Jul 2020 06:44:22 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null } - } -} \ No newline at end of file + } \ No newline at end of file diff --git a/src/MySql/test/Restart-AzMySqlServer.Tests.ps1 b/src/MySql/test/Restart-AzMySqlServer.Tests.ps1 index f3f4c8f4d013..e53d37c3e3f3 100644 --- a/src/MySql/test/Restart-AzMySqlServer.Tests.ps1 +++ b/src/MySql/test/Restart-AzMySqlServer.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Restart-AzMySqlServer' { It 'RestartViaIdentity' { { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/restart" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/restart" Restart-AzMySqlServer -InputObject $ID } | Should -Not -Throw } diff --git a/src/MySql/test/Restore-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Restore-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..eb9d4003f65d --- /dev/null +++ b/src/MySql/test/Restore-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,837 @@ +{ + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "cda4ac46-3c60-44b5-b91c-e354c108cff9" ], + "CommandName": [ "Get-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Get-AzMySqlFlexibleServer_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1285301a-fb52-4d52-bebf-ba68dffba594" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "b2b0020d-a6f6-482a-973e-f38bf45cb3ca" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063235Z:b2b0020d-a6f6-482a-973e-f38bf45cb3ca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:32:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "946" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":13,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-restore?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-restore?api-version=2020-07-01-preview", + "Content": "{\r\n \"location\": \"West US 2\",\r\n \"sku\": {\r\n \"name\": \"Standard_B1ms\"\r\n },\r\n \"properties\": {\r\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\r\n \"restorePointInTime\": \"2020-11-11T22:22:36.1235805-08:00\",\r\n \"createMode\": \"PointInTimeRestore\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "372" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "115199eb-e3bb-41d3-bd52-c3062c8bf172" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "5f0f3cee-115d-4e67-90c9-11c1bec64ea9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063236Z:5f0f3cee-115d-4e67-90c9-11c1bec64ea9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:32:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "89" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"RestoreSnapshotManagementOperation\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "92f8a3ed-5d76-43ff-a28f-e7934d8475f6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "c73762a8-cc56-4996-8a3d-f377cf83fd46" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063336Z:c73762a8-cc56-4996-8a3d-f377cf83fd46" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:33:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1bad8811-d64f-4b93-bf76-a36766142ed6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "c8905198-cf1c-4140-b026-8eb89ebce816" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063436Z:c8905198-cf1c-4140-b026-8eb89ebce816" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:34:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8535e6ab-ee4e-4ebd-bb63-6940ca836b7f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "c8a51ba0-c2d9-4121-a533-30ee715481f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063537Z:c8a51ba0-c2d9-4121-a533-30ee715481f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:35:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5d12429b-6eef-482a-8c93-81b0aa924468" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "084e8b69-7fff-42fb-afc1-3a5dd976f1d9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063637Z:084e8b69-7fff-42fb-afc1-3a5dd976f1d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:36:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "01c7c874-4eae-4f5f-a793-f79d874962c3" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "d8191516-45ea-4c50-ad3c-49cc38bb0aeb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063737Z:d8191516-45ea-4c50-ad3c-49cc38bb0aeb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:37:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8c22b6ee-1496-4437-b8cc-4eb825a00b10" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "29d66687-6e84-44df-a1db-0230e3317a9b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063837Z:29d66687-6e84-44df-a1db-0230e3317a9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:38:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3f6b2480-91d8-48ee-b131-0237aa367e97" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "42a8ac89-0f26-4246-b01e-17587521d92f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T063937Z:42a8ac89-0f26-4246-b01e-17587521d92f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:39:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c723d813-7155-48f1-8481-81f1faaa9740" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "8ca62497-0b51-4924-bdf5-fbeef9b3eb7d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064037Z:8ca62497-0b51-4924-bdf5-fbeef9b3eb7d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:40:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4140a5fa-c0ee-4e33-9002-8581a4f6e228" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "7e8ddbea-41de-4dd4-a6a7-311b092271b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064137Z:7e8ddbea-41de-4dd4-a6a7-311b092271b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:41:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "6b23105e-d71a-4a78-883a-10c386d072a5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "60a12a74-2d56-4d02-a3aa-3ff01ae2287c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064238Z:60a12a74-2d56-4d02-a3aa-3ff01ae2287c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:42:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d3c442eb-bb6b-4f4b-b296-e94d7987276f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "89d92b94-1c83-42d4-8b10-057d6b91780f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064338Z:89d92b94-1c83-42d4-8b10-057d6b91780f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:43:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b5f29f58-a80a-4495-8f42-1fc838e88202" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "9f4b48ed-01bc-438b-a297-0d7966124139" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064438Z:9f4b48ed-01bc-438b-a297-0d7966124139" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:44:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7748c9f7-b69d-4b58-9a7d-8198be4e78d4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "22d4f94e-3312-435d-8fe2-3df31f6f5a60" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064538Z:22d4f94e-3312-435d-8fe2-3df31f6f5a60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:45:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3c1fdcff-3de6-4aee-8090-5fb2db14a9e7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "4faee9f1-2794-4ce2-be26-46647b1631be" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064638Z:4faee9f1-2794-4ce2-be26-46647b1631be" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:46:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "81e67cfb-13ed-49d0-acc3-86bbfd2b4bd8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "c117477c-15eb-4c84-a775-d265751a9b48" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064738Z:c117477c-15eb-4c84-a775-d265751a9b48" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:47:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9bafe5aa-908f-4adb-8bea-0ccbcee31b50" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "a27594a6-9547-42be-be33-e88acaea0f28" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064838Z:a27594a6-9547-42be-be33-e88acaea0f28" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:48:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3032f625-2f70-4ba0-972c-ebf7304f5d1d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "d51e5b93-1390-4caa-87d2-2353e77c505c" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T064939Z:d51e5b93-1390-4caa-87d2-2353e77c505c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:49:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"InProgress\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/115199eb-e3bb-41d3-bd52-c3062c8bf172?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eb95280b-fd10-427f-9789-186b30e37b0a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "0e522764-bc03-45d3-9e7d-875e66051eec" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T065039Z:0e522764-bc03-45d3-9e7d-875e66051eec" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:50:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"115199eb-e3bb-41d3-bd52-c3062c8bf172\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-12T06:32:36.307Z\"}" + } + }, + "Restore-AzMySqlFlexibleServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-restore?api-version=2020-07-01-preview+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100-restore?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "8452499f-e808-4aa6-af0d-8d67cfc15ff6" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServer" ], + "FullCommandName": [ "New-AzMySqlFlexibleServer_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9d01fd95-eba5-4e19-a651-167e1400f371" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "b0e53545-5db3-4cdd-b3ff-4dd0daea1b47" ], + "x-ms-routing-request-id": [ "WESTUS2:20201112T065039Z:b0e53545-5db3-4cdd-b3ff-4dd0daea1b47" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Thu, 12 Nov 2020 06:50:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "970" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":13,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100-restore.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-12T06:47:41.5737856+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100-restore\",\"name\":\"mysql-test-100-restore\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Restore-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Restore-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..8ae62d31e340 --- /dev/null +++ b/src/MySql/test/Restore-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,22 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Restore-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Restore-AzMySqlFlexibleServer' { + It 'PointInTimeRestore' { + { + $restorePointInTime = (Get-Date).AddMinutes(-10) + $result = Get-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + Restore-AzMySqlFlexibleServer -Name $env.restoreName -ResourceGroupName $env.resourceGroup -RestorePointInTime $restorePointInTime -InputObject $result + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Restore-AzMySqlServer.Recording.json b/src/MySql/test/Restore-AzMySqlServer.Recording.json index 050eb2b91972..f8d1ed29dee1 100644 --- a/src/MySql/test/Restore-AzMySqlServer.Recording.json +++ b/src/MySql/test/Restore-AzMySqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -35,14 +35,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"Replica\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", "Headers": { }, "ContentHeaders": { @@ -55,9 +55,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01" ], "x-ms-request-id": [ "d2e05dac-052c-4b23-a050-142294b6ed7a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -75,10 +75,10 @@ "Content": "{\"operation\":\"CreateElasticServerContinuousCopy\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+3": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3" ], @@ -115,10 +115,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+4": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4" ], @@ -155,10 +155,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+5": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5" ], @@ -195,10 +195,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+6": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6" ], @@ -235,10 +235,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+7": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7" ], @@ -275,10 +275,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+8": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8" ], @@ -315,10 +315,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+9": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9" ], @@ -355,10 +355,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+10": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10" ], @@ -395,10 +395,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+11": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], @@ -435,10 +435,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+12": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], @@ -475,10 +475,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+13": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], @@ -515,10 +515,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+14": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" ], @@ -555,10 +555,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+15": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15" ], @@ -595,10 +595,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+16": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ], @@ -635,10 +635,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+17": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" ], @@ -675,10 +675,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+18": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" ], @@ -715,10 +715,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+19": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19" ], @@ -755,10 +755,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+20": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d2e05dac-052c-4b23-a050-142294b6ed7a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20" ], @@ -795,10 +795,10 @@ "Content": "{\"name\":\"d2e05dac-052c-4b23-a050-142294b6ed7a\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T08:17:20.127Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+21": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21" ], @@ -831,14 +831,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:28:33.737+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Enabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-replica.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:28:33.737+00:00\",\"replicationRole\":\"Replica\",\"masterServerId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"replicaCapacity\":0,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\",\"name\":\"mysql-test-100-replica\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+22": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+22": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"GeoRestore\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-replica\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"GeoRestore\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-replica\"\n },\n \"location\": \"eastus\"\n}", "Headers": { }, "ContentHeaders": { @@ -851,9 +851,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01" ], "x-ms-request-id": [ "169f1d2f-3665-498c-b4a8-5bdef0b59066" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -871,10 +871,10 @@ "Content": "{\"operation\":\"RestoreElasticServer\",\"startTime\":\"2020-07-24T08:26:33.757Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01+23": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/169f1d2f-3665-498c-b4a8-5bdef0b59066?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22", "23" ], @@ -908,13 +908,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"name\":\"169f1d2f-3665-498c-b4a8-5bdef0b59066\",\"status\":\"Failed\",\"startTime\":\"2020-07-24T08:26:33.757Z\",\"error\":{\"code\":\"SubscriptionDoesNotHaveServer\",\"message\":\"Subscription \u00279e223dbe-3399-4e19-88eb-0975f02ac87f\u0027 does not have the server \u0027mysql-test-100-replica\u0027.\"}}" + "Content": "{\"name\":\"169f1d2f-3665-498c-b4a8-5bdef0b59066\",\"status\":\"Failed\",\"startTime\":\"2020-07-24T08:26:33.757Z\",\"error\":{\"code\":\"SubscriptionDoesNotHaveServer\",\"message\":\"Subscription \u00277fec3109-5b78-4a24-b834-5d47d63e2596\u0027 does not have the server \u0027mysql-test-100-replica\u0027.\"}}" } }, - "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+24": { + "Restore-AzMySqlServer+[NoContext]+GeoRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22", "23", "24" ], @@ -947,13 +947,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "25" ], @@ -986,14 +986,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01+2": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"createMode\": \"PointInTimeRestore\",\n \"restorePointInTime\": \"2020-07-24T08:16:43.7672952+00:00\",\n \"sourceServerId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"createMode\": \"PointInTimeRestore\",\n \"restorePointInTime\": \"2020-07-24T08:16:43.7672952+00:00\",\n \"sourceServerId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\"\n },\n \"location\": \"eastus\"\n}", "Headers": { }, "ContentHeaders": { @@ -1006,9 +1006,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01" ], "x-ms-request-id": [ "9d76273c-1381-4238-9c08-650cf41d34b8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], @@ -1026,10 +1026,10 @@ "Content": "{\"operation\":\"RestoreElasticServer\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+3": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27" ], @@ -1066,10 +1066,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+4": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28" ], @@ -1106,10 +1106,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+5": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29" ], @@ -1146,10 +1146,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+6": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30" ], @@ -1186,10 +1186,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+7": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31" ], @@ -1226,10 +1226,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+8": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32" ], @@ -1266,10 +1266,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+9": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33" ], @@ -1306,10 +1306,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+10": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34" ], @@ -1346,10 +1346,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+11": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35" ], @@ -1386,10 +1386,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+12": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36" ], @@ -1426,10 +1426,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+13": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37" ], @@ -1466,10 +1466,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+14": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38" ], @@ -1506,10 +1506,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+15": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39" ], @@ -1546,10 +1546,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+16": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40" ], @@ -1586,10 +1586,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+17": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41" ], @@ -1626,10 +1626,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+18": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42" ], @@ -1666,10 +1666,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+19": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43" ], @@ -1706,10 +1706,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+20": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44" ], @@ -1746,10 +1746,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+21": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45" ], @@ -1786,10 +1786,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+22": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46" ], @@ -1826,10 +1826,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+23": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47" ], @@ -1866,10 +1866,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+24": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48" ], @@ -1906,10 +1906,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+25": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49" ], @@ -1946,10 +1946,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+26": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50" ], @@ -1986,10 +1986,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+27": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51" ], @@ -2026,10 +2026,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+28": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+28": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52" ], @@ -2066,10 +2066,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+29": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+29": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53" ], @@ -2106,10 +2106,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"InProgress\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+30": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01+30": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/9d76273c-1381-4238-9c08-650cf41d34b8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54" ], @@ -2146,10 +2146,10 @@ "Content": "{\"name\":\"9d76273c-1381-4238-9c08-650cf41d34b8\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T08:26:51.053Z\"}" } }, - "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01+31": { + "Restore-AzMySqlServer+[NoContext]+PointInTimeRestore+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01+31": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-restore-2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55" ], @@ -2182,7 +2182,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-restore-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:36:51.303+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100-restore-2\",\"name\":\"mysql-test-100-restore-2\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100-restore-2.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T08:36:51.303+00:00\",\"replicationRole\":\"None\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100-restore-2\",\"name\":\"mysql-test-100-restore-2\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Start-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Start-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..16ab14743a4f --- /dev/null +++ b/src/MySql/test/Start-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,766 @@ +{ + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "9a08ccc1-6954-4a5a-b5f9-4ab732f9054f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "54f1e5ff-02a4-460c-9f4c-e124942a3f0e" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "f6c3fec9-db17-40fe-b722-2486d0c30b58" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212920Z:f6c3fec9-db17-40fe-b722-2486d0c30b58" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:29:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:29:20.563Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "9a08ccc1-6954-4a5a-b5f9-4ab732f9054f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "baa880e5-2af8-4df1-9b06-254a26625cbc" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "f8827925-b963-4c5c-8412-c165dbea0c4e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213020Z:f8827925-b963-4c5c-8412-c165dbea0c4e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:30:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"54f1e5ff-02a4-460c-9f4c-e124942a3f0e\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:29:20.563Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9a08ccc1-6954-4a5a-b5f9-4ab732f9054f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "140c43e3-09ce-4c60-a7be-545bb737dfb9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "030052dd-100e-4967-be96-7485b70cd224" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213121Z:030052dd-100e-4967-be96-7485b70cd224" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:31:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"54f1e5ff-02a4-460c-9f4c-e124942a3f0e\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:29:20.563Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9a08ccc1-6954-4a5a-b5f9-4ab732f9054f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b411899a-7ded-4fe6-9ad8-c16739e6e816" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "479e20c3-6995-4714-bfb7-36f14e80a9cc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213221Z:479e20c3-6995-4714-bfb7-36f14e80a9cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:32:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"54f1e5ff-02a4-460c-9f4c-e124942a3f0e\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:29:20.563Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/54f1e5ff-02a4-460c-9f4c-e124942a3f0e?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "9a08ccc1-6954-4a5a-b5f9-4ab732f9054f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7fcba4a7-af7b-46f7-b0de-847a892dde54" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "72f8526f-2ddb-40bc-953f-c20948c7cd6e" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213221Z:72f8526f-2ddb-40bc-953f-c20948c7cd6e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:32:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "de2b5682-ac41-422d-9105-f81cf864b20f" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "128426da-e219-4466-bd3e-cd66032e6ab4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "6f8171dd-cd09-4f8d-8355-33e8e2b04dc9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213221Z:6f8171dd-cd09-4f8d-8355-33e8e2b04dc9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:32:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T21:32:21.787Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "de2b5682-ac41-422d-9105-f81cf864b20f" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b45b54bf-2fcb-4793-86c4-7fc155c5aaec" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "78a57ad2-7531-442c-a61c-76d89cdf2d89" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213322Z:78a57ad2-7531-442c-a61c-76d89cdf2d89" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:33:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"128426da-e219-4466-bd3e-cd66032e6ab4\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:32:21.787Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "de2b5682-ac41-422d-9105-f81cf864b20f" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2b6b6996-39ca-4b12-835e-d78da81f0f67" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "460e216d-13cd-48b9-acbb-1978457828be" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213422Z:460e216d-13cd-48b9-acbb-1978457828be" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:34:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"128426da-e219-4466-bd3e-cd66032e6ab4\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:32:21.787Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+Start+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/128426da-e219-4466-bd3e-cd66032e6ab4?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "de2b5682-ac41-422d-9105-f81cf864b20f" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "81549c4e-863a-40b5-9b30-c3c6b95c355b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "7c8ab627-c0ae-47a1-bccc-70976c5bea1f" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213422Z:7c8ab627-c0ae-47a1-bccc-70976c5bea1f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:34:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7cc31acb-1fe4-44ed-8809-a6dde9feebbe" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "c0e00339-5114-434a-b69c-8970c1d27451" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213422Z:c0e00339-5114-434a-b69c-8970c1d27451" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:34:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:34:22.693Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e12bd127-f4f5-4cd4-93a6-615d212b06c7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "583920e9-7a33-4095-9fff-ceb319a7a0cb" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213522Z:583920e9-7a33-4095-9fff-ceb319a7a0cb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:35:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7cc31acb-1fe4-44ed-8809-a6dde9feebbe\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:34:22.693Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "17e5ba39-4c66-4d10-8bde-7fddc57f1691" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "1c8211a6-cf85-473b-8472-4fc0f4abbc70" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213623Z:1c8211a6-cf85-473b-8472-4fc0f4abbc70" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:36:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7cc31acb-1fe4-44ed-8809-a6dde9feebbe\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:34:22.693Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3e11516f-8257-4b87-937b-4d30ef6a90ec" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "f63440bb-06fb-4bb7-bb7e-4c218a73a1d6" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213723Z:f63440bb-06fb-4bb7-bb7e-4c218a73a1d6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:37:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7cc31acb-1fe4-44ed-8809-a6dde9feebbe\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:34:22.693Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "82e4d0c9-d6de-4bcc-af43-bcf05063def8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-correlation-request-id": [ "f089724d-c79b-4f86-a4d7-0bd54fb4e2d5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213823Z:f089724d-c79b-4f86-a4d7-0bd54fb4e2d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:38:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7cc31acb-1fe4-44ed-8809-a6dde9feebbe\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:34:22.693Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/7cc31acb-1fe4-44ed-8809-a6dde9feebbe?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "b9b21ba3-f6b8-4836-981d-71649f7d4fb8" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "66f351a0-1c4c-4fce-8db3-cae9a31d75f8" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-correlation-request-id": [ "df5a1950-01b8-45ff-8afb-b2555104599b" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213823Z:df5a1950-01b8-45ff-8afb-b2555104599b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:38:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "35f9e297-a22e-466c-a6c8-849b2facda42" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5f1a73a1-861f-4fa2-9d33-566c53be4521" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "ba3929a1-ee1f-4912-bd2e-a42ea354fe98" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213823Z:ba3929a1-ee1f-4912-bd2e-a42ea354fe98" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:38:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T21:38:23.78Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "35f9e297-a22e-466c-a6c8-849b2facda42" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8a69f14e-37d6-402a-a22f-23fd730de00f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "e6262123-970f-48e2-9f94-6dcdb7d2e8af" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T213924Z:e6262123-970f-48e2-9f94-6dcdb7d2e8af" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:39:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f1a73a1-861f-4fa2-9d33-566c53be4521\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:38:23.78Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "35f9e297-a22e-466c-a6c8-849b2facda42" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f8951c9f-f623-4ac2-90bf-b61c3a33b974" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "3e98eb8a-43ad-49c0-be8b-a0c3980f616d" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T214024Z:3e98eb8a-43ad-49c0-be8b-a0c3980f616d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:40:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5f1a73a1-861f-4fa2-9d33-566c53be4521\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:38:23.78Z\"}" + } + }, + "Start-AzMySqlFlexibleServer+[NoContext]+StartViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/5f1a73a1-861f-4fa2-9d33-566c53be4521?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "35f9e297-a22e-466c-a6c8-849b2facda42" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_StartViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0ed7cddc-7cdd-4389-a6ae-2064f7af1922" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "dd7541b7-e20f-40f0-804d-c5bc07200176" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T214024Z:dd7541b7-e20f-40f0-804d-c5bc07200176" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:40:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Start-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Start-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..e4491a61880a --- /dev/null +++ b/src/MySql/test/Start-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Start-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Start-AzMySqlFlexibleServer' { + It 'Start' { + { + Stop-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + Start-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + } | Should -Not -Throw + } + + It 'StartViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/start" + Stop-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + Start-AzMySqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Stop-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Stop-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..4a477667f07f --- /dev/null +++ b/src/MySql/test/Stop-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,525 @@ +{ + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "57e24a7f-bf8c-4bcc-9e9a-cbb7d3c62985" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "469360d9-20a0-455c-9d96-40911345171c" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "5b35db3b-f5cb-4901-b83a-3305b8046d71" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211658Z:5b35db3b-f5cb-4901-b83a-3305b8046d71" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:16:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:16:58.097Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "57e24a7f-bf8c-4bcc-9e9a-cbb7d3c62985" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cb7e3f46-ae1b-468c-b7e6-58c59dea97e0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "762196d2-0bf7-4e89-9d2b-236be5d22942" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211758Z:762196d2-0bf7-4e89-9d2b-236be5d22942" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:17:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"469360d9-20a0-455c-9d96-40911345171c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:16:58.097Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "57e24a7f-bf8c-4bcc-9e9a-cbb7d3c62985" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "66e678ff-e79b-4b9b-b17c-b207e3f4dd2b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "27ba025e-0a0f-4842-b3b9-a5e416e294a9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211858Z:27ba025e-0a0f-4842-b3b9-a5e416e294a9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:18:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"469360d9-20a0-455c-9d96-40911345171c\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:16:58.097Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "57e24a7f-bf8c-4bcc-9e9a-cbb7d3c62985" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f2b7ef4c-926e-4361-baec-8d8ab524f07f" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "b9c9792f-07a3-4c8f-b9c6-3bd0535c7865" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211958Z:b9c9792f-07a3-4c8f-b9c6-3bd0535c7865" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:19:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"469360d9-20a0-455c-9d96-40911345171c\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:16:58.097Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/469360d9-20a0-455c-9d96-40911345171c?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "57e24a7f-bf8c-4bcc-9e9a-cbb7d3c62985" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_Stop" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f10d4ef7-73e4-4d3f-9b3a-e02e4cf786a7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "49504849-0f60-460d-a2ea-91c39d888e63" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211958Z:49504849-0f60-460d-a2ea-91c39d888e63" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:19:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/start?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "1d5b517f-83e7-4650-ab2c-97b0721601f1" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "698e8171-e16a-47e6-95ce-5cce8b1a2b43" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "32dd80d4-c6b1-4652-ba32-8feeca2e6cfc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T211959Z:32dd80d4-c6b1-4652-ba32-8feeca2e6cfc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:19:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "85" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StartServerManagementOperation\",\"startTime\":\"2020-11-11T21:19:59.337Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "1d5b517f-83e7-4650-ab2c-97b0721601f1" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7829db43-b0b5-445a-9840-023af51a86c2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "1b3067cc-0c52-4186-903b-5c1069cce703" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212059Z:1b3067cc-0c52-4186-903b-5c1069cce703" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:20:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"698e8171-e16a-47e6-95ce-5cce8b1a2b43\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:19:59.337Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+Stop+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/698e8171-e16a-47e6-95ce-5cce8b1a2b43?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "1d5b517f-83e7-4650-ab2c-97b0721601f1" ], + "CommandName": [ "Start-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Start-AzMySqlFlexibleServer_Start" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d1bf31dd-0236-4acb-a699-ff0e907b5175" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "4e979dbc-c175-4db8-9fa3-c2975eae6279" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212059Z:4e979dbc-c175-4db8-9fa3-c2975eae6279" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:20:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+StopViaIdentity+$POST+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/stop?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "1f0b9ad6-cadf-455b-baac-9515215bc62f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "50faa6f8-5716-4d67-bc7c-316620d9d8d9" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "8087c16f-8782-42a0-8b4a-73ceab7493f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212059Z:8087c16f-8782-42a0-8b4a-73ceab7493f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:20:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "84" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"StopServerManagementOperation\",\"startTime\":\"2020-11-11T21:20:59.853Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "1f0b9ad6-cadf-455b-baac-9515215bc62f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "bf1c0169-297e-493a-a027-8711704a6385" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "393bd193-2b72-440f-8edd-4c16195f234a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212200Z:393bd193-2b72-440f-8edd-4c16195f234a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:21:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"50faa6f8-5716-4d67-bc7c-316620d9d8d9\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:20:59.853Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "1f0b9ad6-cadf-455b-baac-9515215bc62f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "afb323a8-d0d2-4424-8fcb-16e0deb72870" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "68889ef5-2367-4c5e-8689-2a395ecf42bc" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212300Z:68889ef5-2367-4c5e-8689-2a395ecf42bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "108" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"50faa6f8-5716-4d67-bc7c-316620d9d8d9\",\"status\":\"InProgress\",\"startTime\":\"2020-11-11T21:20:59.853Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "1f0b9ad6-cadf-455b-baac-9515215bc62f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ccdc9508-3112-4c88-9deb-6d5d0dab71a2" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-correlation-request-id": [ "16ea91f8-e83d-4066-b3bf-cd419325c806" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212400Z:16ea91f8-e83d-4066-b3bf-cd419325c806" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"50faa6f8-5716-4d67-bc7c-316620d9d8d9\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T21:20:59.853Z\"}" + } + }, + "Stop-AzMySqlFlexibleServer+[NoContext]+StopViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/50faa6f8-5716-4d67-bc7c-316620d9d8d9?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "1f0b9ad6-cadf-455b-baac-9515215bc62f" ], + "CommandName": [ "Stop-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Stop-AzMySqlFlexibleServer_StopViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b772deaf-21e8-41d7-9e96-e3061cb3d070" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-correlation-request-id": [ "013e7667-451a-4990-8915-6bbe95346702" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T212400Z:013e7667-451a-4990-8915-6bbe95346702" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 21:23:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "40" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"mysql-test-100\",\"type\":\"MySQL\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Stop-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Stop-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..63b7190014df --- /dev/null +++ b/src/MySql/test/Stop-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,28 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Stop-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Stop-AzMySqlFlexibleServer' { + It 'Stop' { + { + Stop-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + Start-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName + } | Should -Not -Throw + } + + It 'StopViaIdentity' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/stop" + Stop-AzMySqlFlexibleServer -InputObject $ID + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Update-AzMySqlConfiguration.Recording.json b/src/MySql/test/Update-AzMySqlConfiguration.Recording.json index 56d48eea8fae..f9728a6f7d18 100644 --- a/src/MySql/test/Update-AzMySqlConfiguration.Recording.json +++ b/src/MySql/test/Update-AzMySqlConfiguration.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01+1": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"value\": \"15\"\n }\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01" ], "x-ms-request-id": [ "12d527f8-26da-4367-af99-9420131c5e00" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpdateElasticServerConfig\",\"startTime\":\"2020-07-24T08:03:18.063Z\"}" } }, - "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01+2": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/12d527f8-26da-4367-af99-9420131c5e00?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"12d527f8-26da-4367-af99-9420131c5e00\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T08:03:18.063Z\"}" } }, - "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01+3": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"15\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"15\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"}" } }, - "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01+1": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"value\": \"150\"\n }\n}", "Headers": { }, @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01" ], "x-ms-request-id": [ "843d746e-2b2d-4130-ab79-dfdf85d1ec6a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpdateElasticServerConfig\",\"startTime\":\"2020-07-24T08:03:35.11Z\"}" } }, - "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01+2": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/843d746e-2b2d-4130-ab79-dfdf85d1ec6a?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"843d746e-2b2d-4130-ab79-dfdf85d1ec6a\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T08:03:35.11Z\"}" } }, - "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01+3": { + "Update-AzMySqlConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5", "6" ], @@ -228,7 +228,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"value\":\"150\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBforMySQL/servers/configurations\"}" + "Content": "{\"properties\":{\"value\":\"150\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"120\",\"dataType\":\"Integer\",\"allowedValues\":\"1-2147483\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"False\",\"isDynamicConfig\":\"True\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBForMySQL/servers/configurations\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlConfiguration.Tests.ps1 b/src/MySql/test/Update-AzMySqlConfiguration.Tests.ps1 index c9ee40bebd4f..0dbb5dd9aeb8 100644 --- a/src/MySql/test/Update-AzMySqlConfiguration.Tests.ps1 +++ b/src/MySql/test/Update-AzMySqlConfiguration.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Update-AzMySqlConfiguration' { } It 'UpdateViaIdentityExpanded' { - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/configurations/wait_timeout" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/configurations/wait_timeout" $config = Update-AzMySqlConfiguration -InputObject $ID -Value 150 $config.Value | Should -Be 150 } diff --git a/src/MySql/test/Update-AzMySqlFirewallRule.Recording.json b/src/MySql/test/Update-AzMySqlFirewallRule.Recording.json index e9b71b9541ce..13f6b85e979e 100644 --- a/src/MySql/test/Update-AzMySqlFirewallRule.Recording.json +++ b/src/MySql/test/Update-AzMySqlFirewallRule.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01" ], "x-ms-request-id": [ "8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T07:10:12.05Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01+2": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"8e22193e-3d9c-4e45-bf1d-61bd3b5e29d8\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:10:12.05Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.2\",\n \"startIpAddress\": \"0.0.0.2\"\n }\n}", "Headers": { }, @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01" ], "x-ms-request-id": [ "e5917bef-26e5-48bd-a3d4-ccfd236ebb4b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T07:10:29.63Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01+5": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/e5917bef-26e5-48bd-a3d4-ccfd236ebb4b?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"e5917bef-26e5-48bd-a3d4-ccfd236ebb4b\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:10:29.63Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+6": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5", "6" ], @@ -228,13 +228,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+7": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7" ], @@ -253,9 +253,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01" ], "x-ms-request-id": [ "ef9d3f5d-7528-4905-b20d-f765ede790a2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -273,10 +273,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T07:10:47.143Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01+8": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8" ], @@ -313,10 +313,10 @@ "Content": "{\"name\":\"ef9d3f5d-7528-4905-b20d-f765ede790a2\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:10:47.143Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01+9": { + "Update-AzMySqlFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/ef9d3f5d-7528-4905-b20d-f765ede790a2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8", "9" ], @@ -351,10 +351,10 @@ "Content": null } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.1\",\n \"startIpAddress\": \"0.0.0.0\"\n }\n}", "Headers": { }, @@ -368,9 +368,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01" ], "x-ms-request-id": [ "2ad7e857-dd21-4321-935f-cf1966d0c230" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], @@ -388,10 +388,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T07:11:04.723Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01+2": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/2ad7e857-dd21-4321-935f-cf1966d0c230?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11" ], @@ -428,10 +428,10 @@ "Content": "{\"name\":\"2ad7e857-dd21-4321-935f-cf1966d0c230\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:11:04.723Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11", "12" ], @@ -464,13 +464,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"endIpAddress\": \"0.0.0.3\",\n \"startIpAddress\": \"0.0.0.2\"\n }\n}", "Headers": { }, @@ -484,9 +484,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01" ], "x-ms-request-id": [ "50b53200-9ac0-4795-9a50-fec3a74287c7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], @@ -504,10 +504,10 @@ "Content": "{\"operation\":\"UpsertElasticServerFirewallRules\",\"startTime\":\"2020-07-24T07:11:22.347Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01+5": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/50b53200-9ac0-4795-9a50-fec3a74287c7?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13", "14" ], @@ -544,10 +544,10 @@ "Content": "{\"name\":\"50b53200-9ac0-4795-9a50-fec3a74287c7\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:11:22.347Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+6": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13", "14", "15" ], @@ -580,13 +580,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/servers/firewallRules\"}" + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01\",\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBForMySQL/servers/firewallRules\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+7": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/firewallRules/mysqlrule01?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16" ], @@ -605,9 +605,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01" ], "x-ms-request-id": [ "1539b77e-80cb-4d98-9892-bdc692eec670" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], @@ -625,10 +625,10 @@ "Content": "{\"operation\":\"DropElasticServerFirewallRule\",\"startTime\":\"2020-07-24T07:11:39.783Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01+8": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16", "17" ], @@ -665,10 +665,10 @@ "Content": "{\"name\":\"1539b77e-80cb-4d98-9892-bdc692eec670\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:11:39.783Z\"}" } }, - "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01+9": { + "Update-AzMySqlFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/1539b77e-80cb-4d98-9892-bdc692eec670?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16", "17", "18" ], diff --git a/src/MySql/test/Update-AzMySqlFirewallRule.Tests.ps1 b/src/MySql/test/Update-AzMySqlFirewallRule.Tests.ps1 index fbc482625166..dbecd537e87e 100644 --- a/src/MySql/test/Update-AzMySqlFirewallRule.Tests.ps1 +++ b/src/MySql/test/Update-AzMySqlFirewallRule.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Update-AzMySqlFirewallRule' { It 'UpdateViaIdentityExpanded' { New-AzMySqlFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 - $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" $rule = Update-AzMySqlFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 $rule.StartIPAddress | Should -Be 0.0.0.2 $rule.EndIPAddress | Should -Be 0.0.0.3 diff --git a/src/MySql/test/Update-AzMySqlFlexibleServer.Recording.json b/src/MySql/test/Update-AzMySqlFlexibleServer.Recording.json new file mode 100644 index 000000000000..c07b25aeed31 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServer.Recording.json @@ -0,0 +1,234 @@ +{ + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 12\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/9d9b1caf-9e73-4135-a4a6-2965ea2d6888?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9d9b1caf-9e73-4135-a4a6-2965ea2d6888?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "12c5f00a-e093-4fe5-8c9e-9b10037a7589" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "d6a13c9e-3b34-462d-b92a-dfda4c41e6e1" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203501Z:d6a13c9e-3b34-462d-b92a-dfda4c41e6e1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:35:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "88" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T20:35:01.193Z\"}" + } + }, + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9d9b1caf-9e73-4135-a4a6-2965ea2d6888?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9d9b1caf-9e73-4135-a4a6-2965ea2d6888?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "5de2b3f1-7c00-4fde-8658-b07820cf509e" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "fa238a0a-fde5-416b-b8f0-f11cc3e97347" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "5ed36ce5-07b5-414c-ba9e-1728a3444a35" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203601Z:5ed36ce5-07b5-414c-ba9e-1728a3444a35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:36:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9d9b1caf-9e73-4135-a4a6-2965ea2d6888\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:35:01.193Z\"}" + } + }, + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "5de2b3f1-7c00-4fde-8658-b07820cf509e" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c9775cc1-29f1-436f-bf0b-9140a39b8a17" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "32e8d714-3e40-41ed-8268-e5d00b58389a" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203601Z:32e8d714-3e40-41ed-8268-e5d00b58389a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:36:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "946" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":12,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + }, + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"backupRetentionDays\": 13\r\n }\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/8138b975-7745-4fb6-a775-faa1d8fc95ed?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8138b975-7745-4fb6-a775-faa1d8fc95ed?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "eb6dbe8d-0000-4b0e-a7ef-ca3a17e7fbd5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "90af5f65-2e01-4224-aa5b-bd01166cc8b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203602Z:90af5f65-2e01-4224-aa5b-bd01166cc8b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:36:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "87" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerManagementOperationV2\",\"startTime\":\"2020-11-11T20:36:02.39Z\"}" + } + }, + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8138b975-7745-4fb6-a775-faa1d8fc95ed?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/8138b975-7745-4fb6-a775-faa1d8fc95ed?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "7483358d-4014-4d6a-a488-3e301591d7fb" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "30baa385-97b6-44e2-a8fb-4abb025105c5" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "db5a2861-fce2-4c65-ade7-a3c9ee7189d8" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203702Z:db5a2861-fce2-4c65-ade7-a3c9ee7189d8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:37:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"8138b975-7745-4fb6-a775-faa1d8fc95ed\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-11T20:36:02.39Z\"}" + } + }, + "Update-AzMySqlFlexibleServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "7483358d-4014-4d6a-a488-3e301591d7fb" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServer" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServer_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d9878380-9502-41bc-a178-d3210b4c6905" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "4038bc6a-6eaa-4184-941b-e3dfa9e1f0b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20201111T203702Z:4038bc6a-6eaa-4184-941b-e3dfa9e1f0b7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Wed, 11 Nov 2020 20:37:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "946" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"sku\":{\"name\":\"Standard_B1ms\",\"tier\":\"Burstable\",\"capacity\":0},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":10240,\"storageIops\":0,\"backupRetentionDays\":13,\"storageAutogrow\":\"Disabled\",\"fileStorageSkuName\":\"Premium_LRS\"},\"version\":\"5.7\",\"state\":\"Ready\",\"haState\":\"NotEnabled\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"sourceServerId\":\"\",\"publicNetworkAccess\":\"Enabled\",\"sslEnforcement\":\"Disabled\",\"haEnabled\":\"Disabled\",\"earliestRestoreDate\":\"2020-11-11T01:19:49.1443505+00:00\",\"maintenanceWindow\":{\"customWindow\":\"Disabled\",\"dayOfWeek\":0,\"startHour\":0,\"startMinute\":0},\"replicationRole\":\"None\",\"replicaCapacity\":10,\"byokEnforcement\":\"Disabled\"},\"location\":\"West US 2\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/flexibleServers\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlFlexibleServer.Tests.ps1 b/src/MySql/test/Update-AzMySqlFlexibleServer.Tests.ps1 new file mode 100644 index 000000000000..dfa1b8687042 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServer.Tests.ps1 @@ -0,0 +1,29 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzMySqlFlexibleServer.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzMySqlFlexibleServer' { + It 'UpdateExpanded' { + { + $server = Update-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName -BackupRetentionDay 12 + $server.StorageProfileBackupRetentionDay | Should -Be 12 + } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/flexibleServers/$($env.serverName)" + $server = Update-AzMySqlFlexibleServer -ResourceGroupName $env.resourceGroup -Name $env.serverName -BackupRetentionDay 13 + $server.StorageProfileBackupRetentionDay | Should -Be 13 + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Recording.json b/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Recording.json new file mode 100644 index 000000000000..eaff2a928839 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Recording.json @@ -0,0 +1,234 @@ +{ + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/net_retry_count?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/net_retry_count?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"value\": \"15\",\r\n \"source\": \"user-override\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "79" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/c2c8fea9-861e-4a2a-93a9-32bfe2c50359?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c2c8fea9-861e-4a2a-93a9-32bfe2c50359?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "c2c8fea9-861e-4a2a-93a9-32bfe2c50359" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "4aa53fbb-ffe4-403c-b2e5-2160f41064c6" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222008Z:4aa53fbb-ffe4-403c-b2e5-2160f41064c6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "95" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpdateServerParameterManagementOperation\",\"startTime\":\"2020-11-10T22:20:08.817Z\"}" + } + }, + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c2c8fea9-861e-4a2a-93a9-32bfe2c50359?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/c2c8fea9-861e-4a2a-93a9-32bfe2c50359?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "340e29dd-81cc-4706-8dc0-6d52ee3a9084" ], + "CommandName": [ "Update-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerConfiguration_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "b7be459d-1aa0-4232-9b29-d11329de3820" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "3e7b4ac2-a996-482f-bb14-28a3096dfb59" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222024Z:3e7b4ac2-a996-482f-bb14-28a3096dfb59" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"c2c8fea9-861e-4a2a-93a9-32bfe2c50359\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:20:08.817Z\"}" + } + }, + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/net_retry_count?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/net_retry_count?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "340e29dd-81cc-4706-8dc0-6d52ee3a9084" ], + "CommandName": [ "Update-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerConfiguration_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e629856f-0e1d-46b6-8099-a81c007c0469" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-correlation-request-id": [ "bddbde3b-2388-44e7-afc5-2cb9552562a4" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222024Z:bddbde3b-2388-44e7-afc5-2cb9552562a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "582" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"15\",\"description\":\"If a read or write on a communication port is interrupted, retry this many times before giving up.\",\"defaultValue\":\"10\",\"dataType\":\"Integer\",\"allowedValues\":\"1-4294967295\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/net_retry_count\",\"name\":\"net_retry_count\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"}" + } + }, + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/wait_timeout?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/wait_timeout?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"value\": \"150\",\r\n \"source\": \"user-override\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "80" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/17658c10-7926-4252-af2b-a6705e16a61d?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/17658c10-7926-4252-af2b-a6705e16a61d?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "17658c10-7926-4252-af2b-a6705e16a61d" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "c99d4d09-25c8-4eb7-bc85-2750af9dba0c" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222025Z:c99d4d09-25c8-4eb7-bc85-2750af9dba0c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "95" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpdateServerParameterManagementOperation\",\"startTime\":\"2020-11-10T22:20:24.987Z\"}" + } + }, + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/17658c10-7926-4252-af2b-a6705e16a61d?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/17658c10-7926-4252-af2b-a6705e16a61d?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "015ff381-adb8-437e-8452-0624f0ac7135" ], + "CommandName": [ "Update-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "64cfc11d-29ff-47f8-a1fc-20a746997aae" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-correlation-request-id": [ "a3d96ade-2394-4f4b-8486-2ed8acf147a7" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222040Z:a3d96ade-2394-4f4b-8486-2ed8acf147a7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"17658c10-7926-4252-af2b-a6705e16a61d\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:20:24.987Z\"}" + } + }, + "Update-AzMySqlFlexibleServerConfiguration+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/wait_timeout?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/configurations/wait_timeout?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "015ff381-adb8-437e-8452-0624f0ac7135" ], + "CommandName": [ "Update-AzMySqlFlexibleServerConfiguration" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerConfiguration_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "de5af6ae-b69d-4710-a59a-ea1c8368569b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-correlation-request-id": [ "f5e94d94-ca76-4850-b2b2-1f75cba33f10" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T222040Z:f5e94d94-ca76-4850-b2b2-1f75cba33f10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:20:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"value\":\"150\",\"description\":\"The number of seconds the server waits for activity on a noninteractive connection before closing it.\",\"defaultValue\":\"28800\",\"dataType\":\"Integer\",\"allowedValues\":\"1-31536000\",\"source\":\"user-override\",\"isConfigPendingRestart\":\"True\",\"isDynamicConfig\":\"True\",\"isReadOnly\":\"False\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/configurations/wait_timeout\",\"name\":\"wait_timeout\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/configurations\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Tests.ps1 b/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Tests.ps1 new file mode 100644 index 000000000000..eca82e47a0c6 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerConfiguration.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzMySqlFlexibleServerConfiguration.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzMySqlFlexibleServerConfiguration' { + It 'UpdateExpanded' { + $config = Update-AzMySqlFlexibleServerConfiguration -Name net_retry_count -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Value 15 -Source user-override + $config.Value | Should -Be 15 + $config.DefaultValue | Should -Be 10 + } + + It 'UpdateViaIdentityExpanded' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/configurations/wait_timeout" + $config = Update-AzMySqlFlexibleServerConfiguration -InputObject $ID -Value 150 -Source user-override + $config.Value | Should -Be 150 + $config.DefaultValue | Should -Be 28800 + } +} diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Recording.json b/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Recording.json new file mode 100644 index 000000000000..007d2f575f8b --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Recording.json @@ -0,0 +1,471 @@ +{ + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/3de3b321-423d-4c95-a378-650e50329f94?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3de3b321-423d-4c95-a378-650e50329f94?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3de3b321-423d-4c95-a378-650e50329f94" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "16eeabae-16f1-46c6-abd6-4e3dc5e869a1" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220543Z:16eeabae-16f1-46c6-abd6-4e3dc5e869a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "94" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:05:43.777Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3de3b321-423d-4c95-a378-650e50329f94?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/3de3b321-423d-4c95-a378-650e50329f94?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "f67f60c0-9e38-4109-bebc-ea6de868e9e0" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "ba1ec47b-7684-4cff-8109-457ff8e96b44" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "59a1c006-df59-4d55-bd98-4760e15d844c" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220559Z:59a1c006-df59-4d55-bd98-4760e15d844c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"3de3b321-423d-4c95-a378-650e50329f94\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:05:43.777Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "f67f60c0-9e38-4109-bebc-ea6de868e9e0" ], + "CommandName": [ "New-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerDatabase_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2c3ae270-ec3e-42d1-ba4c-8e51551fa5bb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "15d88fce-0398-4842-aad5-0f99752c6c57" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220559Z:15d88fce-0398-4842-aad5-0f99752c6c57" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/5bbcdeb3-0e9a-47a2-8352-0c41f0e89497?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5bbcdeb3-0e9a-47a2-8352-0c41f0e89497?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5bbcdeb3-0e9a-47a2-8352-0c41f0e89497" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "ae058212-3c0b-4ba7-ab54-df41099dbd7f" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220559Z:ae058212-3c0b-4ba7-ab54-df41099dbd7f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:05:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "94" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:05:59.623Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5bbcdeb3-0e9a-47a2-8352-0c41f0e89497?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/5bbcdeb3-0e9a-47a2-8352-0c41f0e89497?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "65128668-2b83-4665-99d1-3af48f4248a2" ], + "CommandName": [ "Update-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerDatabase_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "30d501d4-42ce-467f-80c9-675336d54fd7" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "bc89476e-0483-479d-bef0-3baeaebb05f8" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220615Z:bc89476e-0483-479d-bef0-3baeaebb05f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"5bbcdeb3-0e9a-47a2-8352-0c41f0e89497\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:05:59.623Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "65128668-2b83-4665-99d1-3af48f4248a2" ], + "CommandName": [ "Update-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerDatabase_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "8c150ee1-44f7-43bf-a5f9-c17afd5036b4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "a590efce-0558-4f79-94ef-95286a1d556e" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220615Z:a590efce-0558-4f79-94ef-95286a1d556e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"charset\": \"latin1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "53" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/7ddc2bd0-8517-4716-9c2f-a95d5e868312?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7ddc2bd0-8517-4716-9c2f-a95d5e868312?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "7ddc2bd0-8517-4716-9c2f-a95d5e868312" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "d9058cb3-cbf3-4312-8d4e-9a1878fb5025" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220615Z:d9058cb3-cbf3-4312-8d4e-9a1878fb5025" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "93" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:06:15.67Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7ddc2bd0-8517-4716-9c2f-a95d5e868312?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/7ddc2bd0-8517-4716-9c2f-a95d5e868312?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "94c6cb2f-98c8-48e1-b5fb-06e631037747" ], + "CommandName": [ "Update-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4c44aeed-defa-4372-a28f-7d8609bfd517" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "0388f4e3-ef14-4d4e-ad06-f74cdd760c4b" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220630Z:0388f4e3-ef14-4d4e-ad06-f74cdd760c4b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"7ddc2bd0-8517-4716-9c2f-a95d5e868312\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:06:15.67Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "94c6cb2f-98c8-48e1-b5fb-06e631037747" ], + "CommandName": [ "Update-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerDatabase_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1d800a11-46ce-4ee4-864a-3ebeee9a5094" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "48073614-1d53-4a17-8231-57c7fa77cec7" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220631Z:48073614-1d53-4a17-8231-57c7fa77cec7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"charset\":\"latin1\",\"collation\":\"latin1_swedish_ci\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/databases/mysqldb?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "c86ea6f8-ecda-45ef-986b-6c9fa1bed7a6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview" ], + "Retry-After": [ "15" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "034c0775-cb59-4f03-9d1a-19fb79b63cb6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-correlation-request-id": [ "e2d9314d-7302-49ca-a3f0-0ea0d7aa94fb" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220631Z:e2d9314d-7302-49ca-a3f0-0ea0d7aa94fb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "91" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"DropServerDatabaseManagementOperation\",\"startTime\":\"2020-11-10T22:06:31.42Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "c86ea6f8-ecda-45ef-986b-6c9fa1bed7a6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "15" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1f67c749-c371-4af1-9630-880e2c0736d4" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "8ffbc3eb-7f05-4754-be7d-746950cac83c" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220646Z:8ffbc3eb-7f05-4754-be7d-746950cac83c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"034c0775-cb59-4f03-9d1a-19fb79b63cb6\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T22:06:31.42Z\"}" + } + }, + "Update-AzMySqlFlexibleServerDatabase+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/034c0775-cb59-4f03-9d1a-19fb79b63cb6?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "c86ea6f8-ecda-45ef-986b-6c9fa1bed7a6" ], + "CommandName": [ "Remove-AzMySqlFlexibleServerDatabase" ], + "FullCommandName": [ "Remove-AzMySqlFlexibleServerDatabase_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "5de1ec45-6f37-4622-8416-10330d2844ce" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "d9800e27-2025-4139-bb37-c63dff6134fd" ], + "x-ms-routing-request-id": [ "WESTUS:20201110T220646Z:d9800e27-2025-4139-bb37-c63dff6134fd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 22:06:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "254" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/flexibleServers/mysql-test-100/databases/mysqldb\",\"name\":\"mysqldb\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/databases\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Tests.ps1 b/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Tests.ps1 new file mode 100644 index 000000000000..68a47d921497 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerDatabase.Tests.ps1 @@ -0,0 +1,33 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzMySqlFlexibleServerDatabase.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzMySqlFlexibleServerDatabase' { + It 'UpdateExpanded' { + { + New-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + $database = Update-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -Charset latin1 + $database.Collation | Should -Be "latin1_swedish_ci" + $database.Charset | Should -Be "latin1" + } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' { + { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/databases/$($env.databaseName)" + $database = Update-AzMySqlFlexibleServerDatabase -InputObject $ID -Charset latin1 + $database.Collation | Should -Be "latin1_swedish_ci" + $database.Charset | Should -Be "latin1" + Remove-AzMySqlFlexibleServerDatabase -Name $env.databaseName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName + } | Should -Not -Throw + } +} diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Recording.json b/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Recording.json new file mode 100644 index 000000000000..57c6a55757d4 --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Recording.json @@ -0,0 +1,582 @@ +{ + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"0.0.0.1\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/81845aae-a3cc-4718-811b-e582aa0d9bad?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/81845aae-a3cc-4718-811b-e582aa0d9bad?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "81845aae-a3cc-4718-811b-e582aa0d9bad" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-correlation-request-id": [ "2f7b2df8-34b5-4b9b-99b0-16c24d3e73cf" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090428Z:2f7b2df8-34b5-4b9b-99b0-16c24d3e73cf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:04:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:04:27.96Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/81845aae-a3cc-4718-811b-e582aa0d9bad?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/81845aae-a3cc-4718-811b-e582aa0d9bad?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "3d2df457-2d7a-4da6-b969-7b6105f702e4" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cecc457c-e77b-4321-baeb-133e1ae04bd6" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "4e46bc80-a7f6-492f-baf2-ab14d45f4051" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090528Z:4e46bc80-a7f6-492f-baf2-ab14d45f4051" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:05:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"81845aae-a3cc-4718-811b-e582aa0d9bad\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:04:27.96Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "3d2df457-2d7a-4da6-b969-7b6105f702e4" ], + "CommandName": [ "Az.MySql.internal\\New-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "New-AzMySqlFlexibleServerFirewallRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "70cbba2c-ba43-4eb3-88ec-52ba7647db05" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "d5f002b9-bcbf-4c36-b384-80d335453d20" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090528Z:d5f002b9-bcbf-4c36-b384-80d335453d20" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:05:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.1\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.3\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-correlation-request-id": [ "36f1fd21-3e66-46e2-a0b7-5871a19de32a" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090529Z:36f1fd21-3e66-46e2-a0b7-5871a19de32a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:05:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:05:29.207Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab?api-version=2020-07-01-preview+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "6cba157f-270d-4029-b796-10c84c670f56" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "47f1c1e1-4364-486c-88ee-20eddd28f565" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "1cdb7a5f-211a-4806-884e-109bdb2674a1" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090629Z:1cdb7a5f-211a-4806-884e-109bdb2674a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:06:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"9eb03ca4-1e3a-47b4-8ba7-9926e93b32ab\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:05:29.207Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "6cba157f-270d-4029-b796-10c84c670f56" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "24d19a30-fc09-4764-8a52-c7985a819be0" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "ddaba136-f649-4ff9-8656-a754a32538f4" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090629Z:ddaba136-f649-4ff9-8656-a754a32538f4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:06:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.3\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.2\",\r\n \"endIpAddress\": \"0.0.0.2\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/e10feaa3-578f-4e7d-af3c-9b04961d387a?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e10feaa3-578f-4e7d-af3c-9b04961d387a?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e10feaa3-578f-4e7d-af3c-9b04961d387a" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "x-ms-correlation-request-id": [ "a354f62c-c5ac-461c-8f22-4f526fbea4a6" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090630Z:a354f62c-c5ac-461c-8f22-4f526fbea4a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:06:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "98" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:06:30.02Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e10feaa3-578f-4e7d-af3c-9b04961d387a?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/e10feaa3-578f-4e7d-af3c-9b04961d387a?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "fc8b6e70-12c9-414b-b22f-2d0ceb6349f5" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "cdb3993c-ba14-4184-9b16-960530df0469" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "f15a2439-ce23-4cef-a8ea-5650aa1ae87b" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090730Z:f15a2439-ce23-4cef-a8ea-5650aa1ae87b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:07:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "106" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"e10feaa3-578f-4e7d-af3c-9b04961d387a\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:06:30.02Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddress+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "fc8b6e70-12c9-414b-b22f-2d0ceb6349f5" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "3ae4f718-b8fa-481f-9a2d-312b3eabdfeb" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "72ac66e4-1901-4293-b467-30e88fad9f18" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090730Z:72ac66e4-1901-4293-b467-30e88fad9f18" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:07:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.2\",\"endIpAddress\":\"0.0.0.2\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.4\",\r\n \"endIpAddress\": \"0.0.0.5\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/86ce3bad-3990-41f6-8f5c-df8d17a0c7ca?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/86ce3bad-3990-41f6-8f5c-df8d17a0c7ca?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "86ce3bad-3990-41f6-8f5c-df8d17a0c7ca" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "x-ms-correlation-request-id": [ "700828db-7ef2-4154-abf9-48d742a51498" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090731Z:700828db-7ef2-4154-abf9-48d742a51498" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:07:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:07:31.163Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/86ce3bad-3990-41f6-8f5c-df8d17a0c7ca?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/86ce3bad-3990-41f6-8f5c-df8d17a0c7ca?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "bb6a7688-a537-4216-b35e-2b31c77c8cfd" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e77c3341-fa0e-4b0a-8493-d146f8268ca1" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "45b0b47c-071e-4602-9967-f8fdbd18b1fa" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090831Z:45b0b47c-071e-4602-9967-f8fdbd18b1fa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:08:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"86ce3bad-3990-41f6-8f5c-df8d17a0c7ca\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:07:31.163Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "bb6a7688-a537-4216-b35e-2b31c77c8cfd" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "0cbc21e5-5138-4804-98bb-eb6a6b95ce04" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-correlation-request-id": [ "75aa5e7e-8a11-451f-aac2-da9b1858f419" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090831Z:75aa5e7e-8a11-451f-aac2-da9b1858f419" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:08:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.4\",\"endIpAddress\":\"0.0.0.5\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.9\",\r\n \"endIpAddress\": \"0.0.0.9\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "93" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/operationResults/06304514-0e03-4375-8437-d2622a29d571?api-version=2020-07-01-preview" ], + "Retry-After": [ "60" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/06304514-0e03-4375-8437-d2622a29d571?api-version=2020-07-01-preview" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "06304514-0e03-4375-8437-d2622a29d571" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-correlation-request-id": [ "f7ee0702-57f3-4b04-9a08-00576bba6d96" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T090901Z:f7ee0702-57f3-4b04-9a08-00576bba6d96" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:09:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "99" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"operation\":\"UpsertServerFirewallRulesManagementOperation\",\"startTime\":\"2020-11-10T09:09:01.047Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/06304514-0e03-4375-8437-d2622a29d571?api-version=2020-07-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforMySQL/locations/westus2/azureAsyncOperation/06304514-0e03-4375-8437-d2622a29d571?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "a53638aa-12ec-42a9-a477-696bc8e946ba" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "60" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "f7cc18bf-58e1-46a0-bb4d-14f68c45b495" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "567f883d-e72a-4e8d-bd06-ed9784e1c3fe" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T091001Z:567f883d-e72a-4e8d-bd06-ed9784e1c3fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:10:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "107" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"name\":\"06304514-0e03-4375-8437-d2622a29d571\",\"status\":\"Succeeded\",\"startTime\":\"2020-11-10T09:09:01.047Z\"}" + } + }, + "Update-AzMySqlFlexibleServerFirewallRule+[NoContext]+ClientIPAddressViaIdentity+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySql/flexibleServers/mysql-test-100/firewallRules/mysqlrule01?api-version=2020-07-01-preview", + "Content": null, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "a53638aa-12ec-42a9-a477-696bc8e946ba" ], + "CommandName": [ "Az.MySql.internal\\Update-AzMySqlFlexibleServerFirewallRule" ], + "FullCommandName": [ "Update-AzMySqlFlexibleServerFirewallRule_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "1e57b9eb-7cff-476e-a7ef-ef4f513be64b" ], + "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-correlation-request-id": [ "3e153a37-9340-475d-a918-b176e7fc885f" ], + "x-ms-routing-request-id": [ "NORTHCENTRALUS:20201110T091001Z:3e153a37-9340-475d-a918-b176e7fc885f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Date": [ "Tue, 10 Nov 2020 09:10:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "149" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"startIpAddress\":\"0.0.0.9\",\"endIpAddress\":\"0.0.0.9\"},\"name\":\"mysqlrule01\",\"type\":\"Microsoft.DBforMySQL/flexibleServers/firewallRules\"}" + } + } +} \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Tests.ps1 b/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Tests.ps1 new file mode 100644 index 000000000000..6243092319bd --- /dev/null +++ b/src/MySql/test/Update-AzMySqlFlexibleServerFirewallRule.Tests.ps1 @@ -0,0 +1,41 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzMySqlFlexibleServerFirewallRule.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzMySqlFlexibleServerFirewallRule' { + It 'UpdateExpanded' { + New-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.1 -StartIPAddress 0.0.0.0 + $rule = Update-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 + $rule.StartIPAddress | Should -Be 0.0.0.2 + $rule.EndIPAddress | Should -Be 0.0.0.3 + } + + It 'ClientIPAddress' { + $rule = Update-AzMySqlFlexibleServerFirewallRule -Name $env.firewallRuleName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -ClientIPAddress 0.0.0.2 + $rule.StartIPAddress | Should -Be 0.0.0.2 + $rule.EndIPAddress | Should -Be 0.0.0.2 + } + + It 'UpdateViaIdentityExpanded' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $rule = Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -EndIPAddress 0.0.0.5 -StartIPAddress 0.0.0.4 + $rule.StartIPAddress | Should -Be 0.0.0.4 + $rule.EndIPAddress | Should -Be 0.0.0.5 + } + + It 'ClientIPAddressViaIdentity' { + $ID = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySql/flexibleServers/$($env.serverName)/firewallRules/$($env.firewallRuleName)" + $rule = Update-AzMySqlFlexibleServerFirewallRule -InputObject $ID -ClientIPAddress 0.0.0.9 + $rule.StartIPAddress | Should -Be 0.0.0.9 + $rule.EndIPAddress | Should -Be 0.0.0.9 + } +} diff --git a/src/MySql/test/Update-AzMySqlServer.Recording.json b/src/MySql/test/Update-AzMySqlServer.Recording.json index ddf4409cd2b0..ea85080801b6 100644 --- a/src/MySql/test/Update-AzMySqlServer.Recording.json +++ b/src/MySql/test/Update-AzMySqlServer.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"sslEnforcement\": \"Disabled\"\n }\n}", "Headers": { }, @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01" ], "x-ms-request-id": [ "c235c4a7-107f-4565-9b27-6860f50cc315" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T07:21:57.153Z\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01+2": { + "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/c235c4a7-107f-4565-9b27-6860f50cc315?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"c235c4a7-107f-4565-9b27-6860f50cc315\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:21:57.153Z\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+3": { + "Update-AzMySqlServer+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,13 +112,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { + "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -151,13 +151,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":7,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+2": { + "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": "{\n \"properties\": {\n \"storageProfile\": {\n \"backupRetentionDays\": 23\n }\n }\n}", "Headers": { }, @@ -171,9 +171,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01" ], "Retry-After": [ "60" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01" ], "x-ms-request-id": [ "764ecc56-a76f-47d1-bc51-0ab7fc8c90c2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], @@ -191,10 +191,10 @@ "Content": "{\"operation\":\"UpsertElasticServer\",\"startTime\":\"2020-07-24T07:23:01.107Z\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01+3": { + "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/764ecc56-a76f-47d1-bc51-0ab7fc8c90c2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6" ], @@ -231,10 +231,10 @@ "Content": "{\"name\":\"764ecc56-a76f-47d1-bc51-0ab7fc8c90c2\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:23:01.107Z\"}" } }, - "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01+4": { + "Update-AzMySqlServer+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "5", "6", "7" ], @@ -267,7 +267,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBforMySQL/servers\"}" + "Content": "{\"sku\":{\"name\":\"GP_Gen5_4\",\"tier\":\"GeneralPurpose\",\"family\":\"Gen5\",\"capacity\":4},\"properties\":{\"administratorLogin\":\"mysql_test\",\"storageProfile\":{\"storageMB\":5120,\"backupRetentionDays\":23,\"geoRedundantBackup\":\"Disabled\",\"storageAutogrow\":\"Disabled\"},\"version\":\"5.7\",\"sslEnforcement\":\"Disabled\",\"minimalTlsVersion\":\"TLSEnforcementDisabled\",\"userVisibleState\":\"Ready\",\"fullyQualifiedDomainName\":\"mysql-test-100.mysql.database.azure.com\",\"earliestRestoreDate\":\"2020-07-24T03:52:43.253+00:00\",\"replicationRole\":\"Master\",\"masterServerId\":\"\",\"replicaCapacity\":5,\"byokEnforcement\":\"Disabled\",\"privateEndpointConnections\":[],\"infrastructureEncryption\":\"Disabled\",\"publicNetworkAccess\":\"Enabled\"},\"location\":\"eastus\",\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100\",\"name\":\"mysql-test-100\",\"type\":\"Microsoft.DBForMySQL/servers\"}" } } } \ No newline at end of file diff --git a/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Recording.json b/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Recording.json index a037614c5052..6e8b67da184e 100644 --- a/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Recording.json +++ b/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Recording.json @@ -1,9 +1,9 @@ { - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -16,9 +16,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01" ], "x-ms-request-id": [ "630106f5-1b26-4eda-a58c-cbaf968992b2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], @@ -36,10 +36,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:27:21.587Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01+2": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/630106f5-1b26-4eda-a58c-cbaf968992b2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2" ], @@ -76,10 +76,10 @@ "Content": "{\"name\":\"630106f5-1b26-4eda-a58c-cbaf968992b2\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:27:21.587Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1", "2", "3" ], @@ -112,14 +112,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -132,9 +132,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01" ], "x-ms-request-id": [ "4643d496-aa9a-4edc-b014-679e5e1aeae4" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], @@ -152,10 +152,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:27:54.073Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01+5": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/4643d496-aa9a-4edc-b014-679e5e1aeae4?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5" ], @@ -192,10 +192,10 @@ "Content": "{\"name\":\"4643d496-aa9a-4edc-b014-679e5e1aeae4\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:27:54.073Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+6": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4", "5", "6" ], @@ -228,13 +228,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+7": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7" ], @@ -253,9 +253,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01" ], "x-ms-request-id": [ "a629bc60-9141-4a73-b3c8-109e5b583c22" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], @@ -273,10 +273,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:28:26.463Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01+8": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8" ], @@ -313,10 +313,10 @@ "Content": "{\"name\":\"a629bc60-9141-4a73-b3c8-109e5b583c22\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:28:26.463Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01+9": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/a629bc60-9141-4a73-b3c8-109e5b583c22?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7", "8", "9" ], @@ -351,11 +351,11 @@ "Content": null } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -368,9 +368,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01" ], "x-ms-request-id": [ "d1087740-15b7-4fbe-bd3b-cd12fb123e2d" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], @@ -388,10 +388,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:28:43.823Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01+2": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/d1087740-15b7-4fbe-bd3b-cd12fb123e2d?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11" ], @@ -428,10 +428,10 @@ "Content": "{\"name\":\"d1087740-15b7-4fbe-bd3b-cd12fb123e2d\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:28:43.823Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10", "11", "12" ], @@ -464,14 +464,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", - "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "Content": "{\n \"properties\": {\n \"virtualNetworkSubnetId\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\"\n }\n}", "Headers": { }, "ContentHeaders": { @@ -484,9 +484,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01" ], "x-ms-request-id": [ "444b75d7-e999-40ab-8ab2-b92e9ea1e3a2" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], @@ -504,10 +504,10 @@ "Content": "{\"operation\":\"UpsertElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:29:16.323Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01+5": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/444b75d7-e999-40ab-8ab2-b92e9ea1e3a2?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13", "14" ], @@ -544,10 +544,10 @@ "Content": "{\"name\":\"444b75d7-e999-40ab-8ab2-b92e9ea1e3a2\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:29:16.323Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+6": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13", "14", "15" ], @@ -580,13 +580,13 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBforMySQL/servers/virtualNetworkRules\"}" + "Content": "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet\",\"name\":\"mysqlvnet\",\"type\":\"Microsoft.DBForMySQL/servers/virtualNetworkRules\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+7": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$DELETE+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01+7": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/MySqlTest/providers/Microsoft.DBforMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/MySqlTest/providers/Microsoft.DBForMySQL/servers/mysql-test-100/virtualNetworkRules/mysqlvnet?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16" ], @@ -605,9 +605,9 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01" ], + "Location": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01" ], "Retry-After": [ "15" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01" ], "x-ms-request-id": [ "fffe0835-0317-4a30-a4b6-cbad1f09f1aa" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], @@ -625,10 +625,10 @@ "Content": "{\"operation\":\"DropElasticServerVnetFirewallRule\",\"startTime\":\"2020-07-24T07:29:48.65Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01+8": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/azureAsyncOperation/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16", "17" ], @@ -665,10 +665,10 @@ "Content": "{\"name\":\"fffe0835-0317-4a30-a4b6-cbad1f09f1aa\",\"status\":\"Succeeded\",\"startTime\":\"2020-07-24T07:29:48.65Z\"}" } }, - "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01+9": { + "Update-AzMySqlVirtualNetworkRule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01", + "RequestUri": "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBForMySQL/locations/eastus/operationResults/fffe0835-0317-4a30-a4b6-cbad1f09f1aa?api-version=2017-12-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16", "17", "18" ], diff --git a/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Tests.ps1 b/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Tests.ps1 index 7241e8faa4fd..a0a9c6b36085 100644 --- a/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Tests.ps1 +++ b/src/MySql/test/Update-AzMySqlVirtualNetworkRule.Tests.ps1 @@ -25,7 +25,7 @@ Describe 'Update-AzMySqlVirtualNetworkRule' { $SubnetID1 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet1" New-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup -ServerName $env.serverName -SubnetId $SubnetID1 $SubnetID2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.Network/virtualNetworks/MySqlVNet/subnets/MysqlSubnet2" - $VNetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBforMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" + $VNetId = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup)/providers/Microsoft.DBForMySQL/servers/$($env.serverName)/virtualNetworkRules/$($env.VNetName)" $rule = Update-AzMySqlVirtualNetworkRule -InputObject $VNetId -SubnetId $SubnetID2 $rule.VirtualNetworkSubnetId | Should -Be $SubnetID2 Remove-AzMySqlVirtualNetworkRule -Name $env.VNetName -ResourceGroupName $env.resourceGroup-ServerName $env.serverName diff --git a/src/MySql/test/env.json b/src/MySql/test/env.json index 96f52865f9e6..25af8d96732e 100644 --- a/src/MySql/test/env.json +++ b/src/MySql/test/env.json @@ -1,15 +1,17 @@ { - "serverName": "mysql-test-100", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", - "Sku": "GP_Gen5_4", - "location": "eastus", - "VNetName": "mysqlvnet", - "serverName2": "mysql-test-100-2", - "firewallRuleName2": "mysqlrule02", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "restoreName2": "mysql-test-100-restore-2", + "firewallRuleName": "mysqlrule01", "resourceGroup": "MySqlTest", + "Sku": "GP_Gen5_4", + "firewallRuleName2": "mysqlrule02", + "location": "westus2", + "databaseName": "mysqldb", + "serverName": "mysql-test-100", + "FlexibleSku": "Standard_B1ms", "restoreName": "mysql-test-100-restore", "replicaName": "mysql-test-100-replica", - "firewallRuleName": "mysqlrule01" + "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", + "restoreName2": "mysql-test-100-restore-2", + "serverName2": "mysql-test-100-2", + "VNetName": "mysqlvnet" } diff --git a/src/MySql/test/localEnv.json b/src/MySql/test/localEnv.json index 239f58d342a7..25af8d96732e 100644 --- a/src/MySql/test/localEnv.json +++ b/src/MySql/test/localEnv.json @@ -1,15 +1,17 @@ { "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "restoreName": "mysql-test-100-restore", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", "firewallRuleName": "mysqlrule01", - "restoreName2": "mysql-test-100-restore-2", - "replicaName": "mysql-test-100-replica", + "resourceGroup": "MySqlTest", "Sku": "GP_Gen5_4", "firewallRuleName2": "mysqlrule02", + "location": "westus2", + "databaseName": "mysqldb", "serverName": "mysql-test-100", + "FlexibleSku": "Standard_B1ms", + "restoreName": "mysql-test-100-restore", + "replicaName": "mysql-test-100-replica", + "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596", + "restoreName2": "mysql-test-100-restore-2", "serverName2": "mysql-test-100-2", - "resourceGroup": "MySqlTest", - "VNetName": "mysqlvnet", - "location": "eastus" + "VNetName": "mysqlvnet" } diff --git a/src/MySql/test/utils.ps1 b/src/MySql/test/utils.ps1 index fb18b13447ff..ae4880390541 100644 --- a/src/MySql/test/utils.ps1 +++ b/src/MySql/test/utils.ps1 @@ -19,17 +19,17 @@ function setupEnv() { $env.Add("replicaName", "mysql-test-100-replica") $env.Add("firewallRuleName", "mysqlrule01") $env.Add("firewallRuleName2", "mysqlrule02") + $env.Add("databaseName", "mysqldb") $env.Add("VNetName", "mysqlvnet") # Create the test group write-host "start to create test group." $resourceGroup = "MySqlTest" - $location = "eastus" + $location = "westus2" $env.Add("resourceGroup", $resourceGroup) $env.Add("location", $location) New-AzResourceGroup -Name $resourceGroup -Location $location - # Create the test Vnet write-host "Deploy Vnet template" New-AzDeployment -Mode Incremental -TemplateFile .\test\deployment-templates\virtual-network\template.json -TemplateParameterFile .\test\deployment-templates\virtual-network\parameters.json -Name vn -ResourceGroupName $resourceGroup @@ -38,13 +38,18 @@ function setupEnv() { $serverName = "mysql-test-100" $env.Add("serverName", $serverName) $Sku = "GP_Gen5_4" + $FlexibleSku = "Standard_B1ms" $env.Add("Sku", $Sku) + $env.Add("FlexibleSku", $FlexibleSku) write-host (Get-AzContext | Out-String) write-host "New-AzMySqlServer -Name $serverName -ResourceGroupName $resourceGroup -Location $location -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku $Sku" New-AzMySqlServer -Name $serverName -ResourceGroupName $resourceGroup -Location $location -AdministratorUserName mysql_test -AdministratorLoginPassword $password -Sku $Sku + write-host "New-AzMySqlFlexibleServer -Name $serverName -ResourceGroupName $resourceGroup -AdministratorUserName mysql_test -AdministratorLoginPassword $password" + New-AzMySqlFlexibleServer -Name $serverName -ResourceGroupName $resourceGroup -AdministratorUserName mysql_test -AdministratorLoginPassword $password + $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' @@ -57,4 +62,3 @@ function cleanupEnv() { write-host "Clean resources you create for testing." Remove-AzResourceGroup -Name $env.resourceGroup } - diff --git a/src/NetAppFiles/NetAppFiles/Az.NetAppFiles.psd1 b/src/NetAppFiles/NetAppFiles/Az.NetAppFiles.psd1 index d46638250a45..7436f20b6f03 100644 --- a/src/NetAppFiles/NetAppFiles/Az.NetAppFiles.psd1 +++ b/src/NetAppFiles/NetAppFiles/Az.NetAppFiles.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '0.2.0' +ModuleVersion = '0.3.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.NetApp.dll' @@ -147,46 +147,9 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Add new Backup Policy cmdlets: - - ''Get-AzNetAppFilesBackupPolicy'' - - ''New-AzNetAppFilesBackupPolicy'' - - ''Remove-AzNetAppFilesBackupPolicy'' - - ''Update-AzNetAppFilesBackupPolicy'' -* Add new Snapshot Policy cmdlets: - - ''Get-AzNetAppFilesBackupPolicy'' - - ''New-AzNetAppFilesBackupPolicy'' - - ''Remove-AzNetAppFilesBackupPolicy'' - - ''Update-AzNetAppFilesBackupPolicy'' -* Add new Backup cmdlets: - - ''Get-AzNetAppFilesBackup'' - - ''New-AzNetAppFilesBackup'' - - ''Remove-AzNetAppFilesBackup'' - - ''Update-AzNetAppFilesBackup'' -* Add new Active Directory cmdlets: - - ''Get-AzNetAppFilesActiveDirectory'' - - ''New-AzNetAppFilesActiveDirectory'' - - ''Remove-AzNetAppFilesActiveDirectory'' - - ''Update-AzNetAppFilesActiveDirectory'' -* Add new ''Get-AzNetAppFilesVault'' cmdlet (use for backups, vaults currently only support getting list of vaults): -* Add new Set-AzNetAppFilesVolumePool cmdlet, to move volume to another pool -* Add parameters to ''New-AzNetAppFilesVolume'' - - Backup to to enable Backups and Backup Policy - - Snapshot to enable Snapshot Policy - - totalThroughputMips - - SnapshotDirectoryVisible - - BackupId - - SecurityStyle - - KerberosEnabled -* Add paramters to ''Update-AzNetAppFilesVolume'' - - Backup to to enable Backups and Backup Policy - - totalThroughputMips -* Add property StatusDetails to Account -* Add properties to support LDAP over SSL/TLS to ActiveDirectory -* Add properties to support Kerberos to ExportPolicy rule -* Add QosType parameter to Pool ''New-AzNetAppFilesPool'' and ''Update-AzNetAppFilesPool'' -* Breaking Removed ServiecLevel from ''Update-AzNetAppFilesPool'' as that updating servie level is not supported -* Add ''Initialize-AzNetAppFilesReplication'' cmdLet -* Add ForceBreak parameter to ''Suspend-AzNetAppFilesReplication'' to force break the replication if replication is in status transferring' + ReleaseNotes = '* Added aesEncryption, ldapSigning properties to ActiveDirectory +* Fixed Tags in UpdateAzNetAppFilesBackupPolicy +* Return backupId in Backup and BackupPatch models' # Prerelease string of this module # Prerelease = '' diff --git a/src/NetAppFiles/NetAppFiles/ChangeLog.md b/src/NetAppFiles/NetAppFiles/ChangeLog.md index c2e2513d7bdb..01c8e36ca2e1 100644 --- a/src/NetAppFiles/NetAppFiles/ChangeLog.md +++ b/src/NetAppFiles/NetAppFiles/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 0.3.0 * Added aesEncryption, ldapSigning properties to ActiveDirectory * Fixed Tags in UpdateAzNetAppFilesBackupPolicy * Return backupId in Backup and BackupPatch models diff --git a/src/NetAppFiles/NetAppFiles/Properties/AssemblyInfo.cs b/src/NetAppFiles/NetAppFiles/Properties/AssemblyInfo.cs index 0197668b30b8..ddd0ddd94b93 100644 --- a/src/NetAppFiles/NetAppFiles/Properties/AssemblyInfo.cs +++ b/src/NetAppFiles/NetAppFiles/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("42656543-77AD-4968-BA4B-BE0778705625")] -[assembly: AssemblyVersion("0.2.0")] -[assembly: AssemblyFileVersion("0.2.0")] +[assembly: AssemblyVersion("0.3.0")] +[assembly: AssemblyFileVersion("0.3.0")] diff --git a/src/Network/Network/Az.Network.psd1 b/src/Network/Network/Az.Network.psd1 index 66ca8797037b..55cfc3bdf9ef 100644 --- a/src/Network/Network/Az.Network.psd1 +++ b/src/Network/Network/Az.Network.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', 'Microsoft.Azure.Management.Network.dll' diff --git a/src/NotificationHubs/NotificationHubs/Az.NotificationHubs.psd1 b/src/NotificationHubs/NotificationHubs/Az.NotificationHubs.psd1 index b1f2a3f59705..28c8422d5e09 100644 --- a/src/NotificationHubs/NotificationHubs/Az.NotificationHubs.psd1 +++ b/src/NotificationHubs/NotificationHubs/Az.NotificationHubs.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.NotificationHubs.dll' diff --git a/src/OperationalInsights/OperationalInsights/Az.OperationalInsights.psd1 b/src/OperationalInsights/OperationalInsights/Az.OperationalInsights.psd1 index a4afba38100e..e88da610ab53 100644 --- a/src/OperationalInsights/OperationalInsights/Az.OperationalInsights.psd1 +++ b/src/OperationalInsights/OperationalInsights/Az.OperationalInsights.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.OperationalInsights.dll', diff --git a/src/Peering/Peering/Az.Peering.psd1 b/src/Peering/Peering/Az.Peering.psd1 index b4e2c1dc7e5c..db0c8c73a920 100644 --- a/src/Peering/Peering/Az.Peering.psd1 +++ b/src/Peering/Peering/Az.Peering.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Peering.dll', 'AutoMapper.dll' diff --git a/src/PolicyInsights/PolicyInsights/Az.PolicyInsights.psd1 b/src/PolicyInsights/PolicyInsights/Az.PolicyInsights.psd1 index 87aa02eece7d..9eb2a911d412 100644 --- a/src/PolicyInsights/PolicyInsights/Az.PolicyInsights.psd1 +++ b/src/PolicyInsights/PolicyInsights/Az.PolicyInsights.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.PolicyInsights.dll' diff --git a/src/Portal/Az.Portal.psd1 b/src/Portal/Az.Portal.psd1 index ba7a3088ba98..c0dde6c22cea 100644 --- a/src/Portal/Az.Portal.psd1 +++ b/src/Portal/Az.Portal.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.Portal.private.dll' diff --git a/src/PostgreSql/Az.PostgreSql.psd1 b/src/PostgreSql/Az.PostgreSql.psd1 index 6bdd75b21191..0eba676bc7a6 100644 --- a/src/PostgreSql/Az.PostgreSql.psd1 +++ b/src/PostgreSql/Az.PostgreSql.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.PostgreSql.private.dll' diff --git a/src/PowerBIEmbedded/PowerBIEmbedded/Az.PowerBIEmbedded.psd1 b/src/PowerBIEmbedded/PowerBIEmbedded/Az.PowerBIEmbedded.psd1 index 193877eadb6b..aa74890fc088 100644 --- a/src/PowerBIEmbedded/PowerBIEmbedded/Az.PowerBIEmbedded.psd1 +++ b/src/PowerBIEmbedded/PowerBIEmbedded/Az.PowerBIEmbedded.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.PowerBIEmbedded.dll', diff --git a/src/PrivateDns/PrivateDns/Az.PrivateDns.psd1 b/src/PrivateDns/PrivateDns/Az.PrivateDns.psd1 index a2e83b97208b..4a8a3323d72a 100644 --- a/src/PrivateDns/PrivateDns/Az.PrivateDns.psd1 +++ b/src/PrivateDns/PrivateDns/Az.PrivateDns.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.PrivateDns.dll' diff --git a/src/RecoveryServices/RecoveryServices.Backup.Helpers/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup.Helpers/Properties/AssemblyInfo.cs index 14150850265d..c24505d0aeb2 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Helpers/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Helpers/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.Backup.Logger/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup.Logger/Properties/AssemblyInfo.cs index 14150850265d..c24505d0aeb2 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Logger/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Logger/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/AssemblyInfo.cs index 14150850265d..c24505d0aeb2 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Models/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.Backup.Providers/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup.Providers/Properties/AssemblyInfo.cs index 14150850265d..c24505d0aeb2 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Providers/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Providers/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/Properties/AssemblyInfo.cs index 14150850265d..c24505d0aeb2 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.ServiceClientAdapter/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.Backup/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.Backup/Properties/AssemblyInfo.cs index 1d8cdef0b06f..41af4d628485 100644 --- a/src/RecoveryServices/RecoveryServices.Backup/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.Backup/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs index 2bfd677e1fa5..2ba4279f7e7e 100644 --- a/src/RecoveryServices/RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices.SiteRecovery/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RecoveryServices/RecoveryServices/Az.RecoveryServices.psd1 b/src/RecoveryServices/RecoveryServices/Az.RecoveryServices.psd1 index 5aaaee9a1715..1925d4866c66 100644 --- a/src/RecoveryServices/RecoveryServices/Az.RecoveryServices.psd1 +++ b/src/RecoveryServices/RecoveryServices/Az.RecoveryServices.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '3.0.1' +ModuleVersion = '3.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'AutoMapper.dll', @@ -267,9 +267,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Specifying policy BackupTime is in UTC. -* Modifying breaking change warning in Get-AzRecoveryServicesBackupJobDetails cmdlet. -* Updating sample script help text for Set-AzRecoveryServicesBackupProtectionPolicy cmdlet.' + ReleaseNotes = '* Made help text and parameter set name changes to ''Restore-AzRecoveryServicesBackupItem'' cmdlet.' # Prerelease string of this module # Prerelease = '' diff --git a/src/RecoveryServices/RecoveryServices/ChangeLog.md b/src/RecoveryServices/RecoveryServices/ChangeLog.md index c8d40d85ad7a..e1ec8e54c682 100644 --- a/src/RecoveryServices/RecoveryServices/ChangeLog.md +++ b/src/RecoveryServices/RecoveryServices/ChangeLog.md @@ -18,7 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release -* Making help text changes to Restore-AzRecoveryServicesBackupItem cmdlet. + +## Version 3.1.0 +* Made help text and parameter set name changes to `Restore-AzRecoveryServicesBackupItem` cmdlet. ## Version 3.0.1 * Specifying policy BackupTime is in UTC. diff --git a/src/RecoveryServices/RecoveryServices/Properties/AssemblyInfo.cs b/src/RecoveryServices/RecoveryServices/Properties/AssemblyInfo.cs index e8a8ecf7ad99..a2072c4dcb89 100644 --- a/src/RecoveryServices/RecoveryServices/Properties/AssemblyInfo.cs +++ b/src/RecoveryServices/RecoveryServices/Properties/AssemblyInfo.cs @@ -42,5 +42,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/RedisCache/RedisCache/Az.RedisCache.psd1 b/src/RedisCache/RedisCache/Az.RedisCache.psd1 index c0873e04b80f..cbcd8cb3a7bd 100644 --- a/src/RedisCache/RedisCache/Az.RedisCache.psd1 +++ b/src/RedisCache/RedisCache/Az.RedisCache.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Insights.dll', diff --git a/src/Relay/Relay/Az.Relay.psd1 b/src/Relay/Relay/Az.Relay.psd1 index ab50331629cf..3cc5dfb2fe0c 100644 --- a/src/Relay/Relay/Az.Relay.psd1 +++ b/src/Relay/Relay/Az.Relay.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Relay.dll' diff --git a/src/Reservations/Reservations/Az.Reservations.psd1 b/src/Reservations/Reservations/Az.Reservations.psd1 index 14b52f01412c..e51bc2096c22 100644 --- a/src/Reservations/Reservations/Az.Reservations.psd1 +++ b/src/Reservations/Reservations/Az.Reservations.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Reservations.dll' diff --git a/src/ResourceGraph/ResourceGraph/Az.ResourceGraph.psd1 b/src/ResourceGraph/ResourceGraph/Az.ResourceGraph.psd1 index a04217a7002f..fd87407d923b 100644 --- a/src/ResourceGraph/ResourceGraph/Az.ResourceGraph.psd1 +++ b/src/ResourceGraph/ResourceGraph/Az.ResourceGraph.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ResourceGraph.dll' diff --git a/src/ResourceMover/Az.ResourceMover.psd1 b/src/ResourceMover/Az.ResourceMover.psd1 index 0f0ac22158fe..0eeeb7a436aa 100644 --- a/src/ResourceMover/Az.ResourceMover.psd1 +++ b/src/ResourceMover/Az.ResourceMover.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.ResourceMover.private.dll' diff --git a/src/Resources/ResourceManager/Properties/AssemblyInfo.cs b/src/Resources/ResourceManager/Properties/AssemblyInfo.cs index f2e995571d0a..4e1affdbf12a 100644 --- a/src/Resources/ResourceManager/Properties/AssemblyInfo.cs +++ b/src/Resources/ResourceManager/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e8f34267-c461-4eae-b156-5f3528553d10")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Resources.Test")] [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.MachineLearning.Test")] diff --git a/src/Resources/Resources/Az.Resources.psd1 b/src/Resources/Resources/Az.Resources.psd1 index 9e27d74fd31b..7cbd05eefcbc 100644 --- a/src/Resources/Resources/Az.Resources.psd1 +++ b/src/Resources/Resources/Az.Resources.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '3.0.1' +ModuleVersion = '3.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Authorization.dll', @@ -195,9 +195,8 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed an issue where What-If shows two resource group scopes with different casing -* Updated ''Export-AzResourceGroup'' to use the SDK. -* Added culture info to parse methods' + ReleaseNotes = '* Added ''-Tag'' parameter support to ''Set-AzTemplateSpec'' and ''New-AzTemplateSpec'' +* Added Tag display support to default formatter for Template Specs ' # Prerelease string of this module # Prerelease = '' diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index a9c089637929..eec3dd47029c 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 3.1.0 * Added `-Tag` parameter support to `Set-AzTemplateSpec` and `New-AzTemplateSpec` * Added Tag display support to default formatter for Template Specs diff --git a/src/Resources/Resources/Properties/AssemblyInfo.cs b/src/Resources/Resources/Properties/AssemblyInfo.cs index 2a65e115ba40..22ca7d705548 100644 --- a/src/Resources/Resources/Properties/AssemblyInfo.cs +++ b/src/Resources/Resources/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e386b843-f3f0-4db3-8664-37d16b860dde")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Resources.Test")] #endif diff --git a/src/Resources/Tags/Properties/AssemblyInfo.cs b/src/Resources/Tags/Properties/AssemblyInfo.cs index f0fa96ff86ae..6970f44eb04a 100644 --- a/src/Resources/Tags/Properties/AssemblyInfo.cs +++ b/src/Resources/Tags/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("e386b843-f3f0-4db3-8664-37d16b860dde")] -[assembly: AssemblyVersion("3.0.1")] -[assembly: AssemblyFileVersion("3.0.1")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Resources.Test")] #endif diff --git a/src/Search/Search/Az.Search.psd1 b/src/Search/Search/Az.Search.psd1 index 0ca93effe9bf..5d17312c41cd 100644 --- a/src/Search/Search/Az.Search.psd1 +++ b/src/Search/Search/Az.Search.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Search.dll' diff --git a/src/Security/Security/Az.Security.psd1 b/src/Security/Security/Az.Security.psd1 index 7bccc0141c9c..284fa97bfa64 100644 --- a/src/Security/Security/Az.Security.psd1 +++ b/src/Security/Security/Az.Security.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.SecurityCenter.dll' diff --git a/src/ServiceBus/ServiceBus/Az.ServiceBus.psd1 b/src/ServiceBus/ServiceBus/Az.ServiceBus.psd1 index d7af2553261f..71c467e86351 100644 --- a/src/ServiceBus/ServiceBus/Az.ServiceBus.psd1 +++ b/src/ServiceBus/ServiceBus/Az.ServiceBus.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.ServiceBus.dll' diff --git a/src/ServiceFabric/ServiceFabric/Az.ServiceFabric.psd1 b/src/ServiceFabric/ServiceFabric/Az.ServiceFabric.psd1 index 0586e978ad99..ce68a04a44a4 100644 --- a/src/ServiceFabric/ServiceFabric/Az.ServiceFabric.psd1 +++ b/src/ServiceFabric/ServiceFabric/Az.ServiceFabric.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 9/15/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.2.0' +ModuleVersion = '2.2.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.KeyVault.dll', @@ -146,22 +146,9 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added new cmdlets for managed clusters and node types: - - ''New-AzServiceFabricManagedCluster'' - - ''Get-AzServiceFabricManagedCluster'' - - ''Set-AzServiceFabricManagedCluster'' - - ''Remove-AzServiceFabricManagedCluster'' - - ''Add-AzServiceFabricManagedClusterClientCertificate'' - - ''Remove-AzServiceFabricManagedClusterClientCertificate'' - - ''New-AzServiceFabricManagedNodeType'' - - ''Get-AzServiceFabricManagedNodeType'' - - ''Set-AzServiceFabricManagedNodeType'' - - ''Remove-AzServiceFabricManagedNodeType'' - - ''Add-AzServiceFabricManagedNodeTypeVMExtension'' - - ''Add-AzServiceFabricManagedNodeTypeVMSecret'' - - ''Remove-AzServiceFabricManagedNodeTypeVMExtension'' - - ''Restart-AzServiceFabricManagedNodeTyp'' -* Upgraded Service Fabric SDK to version 1.2.0 which uses service fabric resource provider api-version 2020-03-01 for the current model and 2020-01-01-preview for managed clusters.' + ReleaseNotes = '* Added example to ''Set-AzServiceFabricSetting'' with SettingsSectionDescription param +* Updated application related cmdlets to call out that support is only for ARM deployed resources +* Marked for deprecation cluster cert cmdlets ''Add-AzureRmServiceFabricClusterCertificate'' and ''Remove-AzureRmServiceFabricClusterCertificate''' # Prerelease string of this module # Prerelease = '' diff --git a/src/ServiceFabric/ServiceFabric/ChangeLog.md b/src/ServiceFabric/ServiceFabric/ChangeLog.md index 9e9e2e483762..3a99bcefdffb 100644 --- a/src/ServiceFabric/ServiceFabric/ChangeLog.md +++ b/src/ServiceFabric/ServiceFabric/ChangeLog.md @@ -18,14 +18,14 @@ - Additional information about change #1 --> ## Upcoming Release - -* Add example to Set-AzServiceFabricSetting with SettingsSectionDescription param -* Update application related cmdlets to call out that support is only for ARM deployed resources -* Mark for deprecation cluster cert cmdlets Add-AzureRmServiceFabricClusterCertificate and Remove-AzureRmServiceFabricClusterCertificate * Fix Add-AzServiceFabricNodeType. Add node type to service fabric cluster before creating virtual machine scale set. -## Version 2.2.0 +## Version 2.2.1 +* Added example to `Set-AzServiceFabricSetting` with SettingsSectionDescription param +* Updated application related cmdlets to call out that support is only for ARM deployed resources +* Marked for deprecation cluster cert cmdlets `Add-AzureRmServiceFabricClusterCertificate` and `Remove-AzureRmServiceFabricClusterCertificate` +## Version 2.2.0 * Added new cmdlets for managed clusters and node types: - `New-AzServiceFabricManagedCluster` - `Get-AzServiceFabricManagedCluster` diff --git a/src/ServiceFabric/ServiceFabric/Properties/AssemblyInfo.cs b/src/ServiceFabric/ServiceFabric/Properties/AssemblyInfo.cs index 4a87ee665660..484731d21898 100644 --- a/src/ServiceFabric/ServiceFabric/Properties/AssemblyInfo.cs +++ b/src/ServiceFabric/ServiceFabric/Properties/AssemblyInfo.cs @@ -18,8 +18,8 @@ using System.Runtime.InteropServices; [assembly: Guid("B965F0A8-D610-4275-B5EA-8F2D806F337C")] -[assembly: AssemblyVersion("2.2.0")] -[assembly: AssemblyFileVersion("2.2.0")] +[assembly: AssemblyVersion("2.2.1")] +[assembly: AssemblyFileVersion("2.2.1")] [assembly: AssemblyTitle("Microsoft Azure Powershell - Service Fabric")] [assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] diff --git a/src/SignalR/SignalR/Az.SignalR.psd1 b/src/SignalR/SignalR/Az.SignalR.psd1 index 339c03769194..a1f37079cc53 100644 --- a/src/SignalR/SignalR/Az.SignalR.psd1 +++ b/src/SignalR/SignalR/Az.SignalR.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.SignalR.dll' diff --git a/src/SpringCloud/Az.SpringCloud.psd1 b/src/SpringCloud/Az.SpringCloud.psd1 index 6406cac7e69a..6111cd66ab31 100644 --- a/src/SpringCloud/Az.SpringCloud.psd1 +++ b/src/SpringCloud/Az.SpringCloud.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.SpringCloud.private.dll' diff --git a/src/Sql/Sql.LegacySdk/Properties/AssemblyInfo.cs b/src/Sql/Sql.LegacySdk/Properties/AssemblyInfo.cs index e8b36188cb6b..bc208c96d5f2 100644 --- a/src/Sql/Sql.LegacySdk/Properties/AssemblyInfo.cs +++ b/src/Sql/Sql.LegacySdk/Properties/AssemblyInfo.cs @@ -20,8 +20,8 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Server Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] -[assembly: AssemblyVersion("2.12.0")] -[assembly: AssemblyFileVersion("2.12.0")] +[assembly: AssemblyVersion("2.13.0")] +[assembly: AssemblyFileVersion("2.13.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/src/Sql/Sql/Az.Sql.psd1 b/src/Sql/Sql/Az.Sql.psd1 index 8b742f7cc317..947bcc151747 100644 --- a/src/Sql/Sql/Az.Sql.psd1 +++ b/src/Sql/Sql/Az.Sql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.12.0' +ModuleVersion = '2.13.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Sql.dll', @@ -324,9 +324,16 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed issues where Set-AzSqlDatabaseAudit were not support Hyperscale database and database edition cannot be determined -* Added MaintenanceConfigurationId to ''New-AzSqlInstance'' and ''Set-AzSqlInstance'' -* Fixed a bug in GetAzureSqlDatabaseReplicationLink.cs where PartnerServerName parameter was being checked for by value instead of key' + ReleaseNotes = '* Added SecondaryType to the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase'' + - ''New-AzSqlDatabaseSecondary'' +* Added HighAvailabilityReplicaCount to the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase'' +* Made ReadReplicaCount an alias of HighAvailabilityReplicaCount in the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase''' # Prerelease string of this module # Prerelease = '' diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index bd7df5c07551..b8f161c154c0 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.13.0 * Added SecondaryType to the following: - `New-AzSqlDatabase` - `Set-AzSqlDatabase` diff --git a/src/Sql/Sql/Properties/AssemblyInfo.cs b/src/Sql/Sql/Properties/AssemblyInfo.cs index 1a253b802e4d..6f59f93cadde 100644 --- a/src/Sql/Sql/Properties/AssemblyInfo.cs +++ b/src/Sql/Sql/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("2.12.0")] -[assembly: AssemblyFileVersion("2.12.0")] +[assembly: AssemblyVersion("2.13.0")] +[assembly: AssemblyFileVersion("2.13.0")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Resources.Test")] #endif diff --git a/src/SqlVirtualMachine/SqlVirtualMachine/Az.SqlVirtualMachine.psd1 b/src/SqlVirtualMachine/SqlVirtualMachine/Az.SqlVirtualMachine.psd1 index 32c8017d96bc..3f60587ed964 100644 --- a/src/SqlVirtualMachine/SqlVirtualMachine/Az.SqlVirtualMachine.psd1 +++ b/src/SqlVirtualMachine/SqlVirtualMachine/Az.SqlVirtualMachine.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.SqlVirtualMachine.dll' diff --git a/src/StackEdge/StackEdge/Az.StackEdge.psd1 b/src/StackEdge/StackEdge/Az.StackEdge.psd1 index 8bfcb69cfa70..7dddd4b627de 100644 --- a/src/StackEdge/StackEdge/Az.StackEdge.psd1 +++ b/src/StackEdge/StackEdge/Az.StackEdge.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.DataBoxEdge.dll' diff --git a/src/StackHCI/Az.StackHCI.psd1 b/src/StackHCI/Az.StackHCI.psd1 index 7f2a076a10c9..72f496d005af 100644 --- a/src/StackHCI/Az.StackHCI.psd1 +++ b/src/StackHCI/Az.StackHCI.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/src/Storage/Storage.Management/Az.Storage.psd1 b/src/Storage/Storage.Management/Az.Storage.psd1 index 87755a0ec94d..9ca2e2534940 100644 --- a/src/Storage/Storage.Management/Az.Storage.psd1 +++ b/src/Storage/Storage.Management/Az.Storage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/23/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '3.0.0' +ModuleVersion = '3.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Storage.dll', @@ -217,31 +217,11 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Removed obsolete property RestorePolicy.LastEnabledTime - - ''Enable-AzStorageBlobRestorePolicy'' - - ''Disable-AzStorageBlobRestorePolicy'' - - ''Get-AzStorageBlobServiceProperty'' - - ''Update-AzStorageBlobServiceProperty'' -* Change Type of DaysAfterModificationGreaterThan from int to int? - - ''Set-AzStorageAccountManagementPolicy'' - - ''Get-AzStorageAccountManagementPolicy'' - - ''Add-AzStorageAccountManagementPolicyAction'' - - ''New-AzStorageAccountManagementPolicyRule'' -* Supported create/update file share with access tier - - ''New-AzRmStorageShare'' - - ''Update-AzRmStorageShare'' -* Supported set/update/remove Acl recursively on Datalake Gen2 item - - ''Set-AzDataLakeGen2AclRecursive'' - - ''Update-AzDataLakeGen2AclRecursive'' - - ''Remove-AzDataLakeGen2AclRecursive'' -* Supported Container access policy with new permission x,t - - ''New-AzStorageContainerStoredAccessPolicy'' - - ''Set-AzStorageContainerStoredAccessPolicy'' -* Changed the output of get/set Container access policy cmdlet, by change the child property Permission type from enum to String - - ''Get-AzStorageContainerStoredAccessPolicy'' - - ''Set-AzStorageContainerStoredAccessPolicy'' -* Fixed a sample script issue of set management policy with json - - ''Set-AzStorageAccountManagementPolicy''' + ReleaseNotes = '* Supported upload Azure File size up to 4 TiB + - ''Set-AzStorageFileContent'' +* Upgraded Azure.Storage.Blobs to 12.7.0 +* Upgraded Azure.Storage.Files.Shares to 12.5.0 +* Upgraded Azure.Storage.Files.DataLake to 12.5.0' # Prerelease string of this module # Prerelease = '' diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index e2eef04bcc4c..d65d300b5c22 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,9 +18,11 @@ - Additional information about change #1 --> ## Upcoming Release -* Support upload Azure File size up to 4 TiB + +## Version 3.1.0 +* Supported upload Azure File size up to 4 TiB - `Set-AzStorageFileContent` -* Upgraded Azure.Storage..Blobs to 12.7.0 +* Upgraded Azure.Storage.Blobs to 12.7.0 * Upgraded Azure.Storage.Files.Shares to 12.5.0 * Upgraded Azure.Storage.Files.DataLake to 12.5.0 diff --git a/src/Storage/Storage.Management/Properties/AssemblyInfo.cs b/src/Storage/Storage.Management/Properties/AssemblyInfo.cs index b0d2924e5024..52bebcb8503d 100644 --- a/src/Storage/Storage.Management/Properties/AssemblyInfo.cs +++ b/src/Storage/Storage.Management/Properties/AssemblyInfo.cs @@ -46,5 +46,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0")] -[assembly: AssemblyFileVersion("3.0.0")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] diff --git a/src/Storage/Storage/Properties/AssemblyInfo.cs b/src/Storage/Storage/Properties/AssemblyInfo.cs index 3030327a64c6..4f0224f15f03 100644 --- a/src/Storage/Storage/Properties/AssemblyInfo.cs +++ b/src/Storage/Storage/Properties/AssemblyInfo.cs @@ -44,8 +44,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyVersion("3.0.0")] -[assembly: AssemblyFileVersion("3.0.0")] +[assembly: AssemblyVersion("3.1.0")] +[assembly: AssemblyFileVersion("3.1.0")] [assembly: CLSCompliant(false)] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Storage.Test")] diff --git a/src/StorageSync/StorageSync/Az.StorageSync.psd1 b/src/StorageSync/StorageSync/Az.StorageSync.psd1 index e3b5a0872dc2..8bf647b68fa4 100644 --- a/src/StorageSync/StorageSync/Az.StorageSync.psd1 +++ b/src/StorageSync/StorageSync/Az.StorageSync.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/9/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '1.3.0' +ModuleVersion = '1.4.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.StorageSync.dll', @@ -121,10 +121,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added a new version StorageSync SDK targeting ApiVersion 2020-03-01 -* Added Update Storage Sync Service cmdlet - - ''Set-AzStorageSyncService'' -* Added IncomingTrafficPolicy and PrivateEndpointConnections to StorageSyncService cmdlets.' + ReleaseNotes = '* Added Sync tiering policy feature with download policy and local cache mode' # Prerelease string of this module # Prerelease = '' diff --git a/src/StorageSync/StorageSync/ChangeLog.md b/src/StorageSync/StorageSync/ChangeLog.md index 87cba003d4c6..448871a46a14 100644 --- a/src/StorageSync/StorageSync/ChangeLog.md +++ b/src/StorageSync/StorageSync/ChangeLog.md @@ -19,6 +19,9 @@ --> ## Upcoming Release +## Version 1.4.0 +* Added Sync tiering policy feature with download policy and local cache mode + ## Version 1.3.0 * Added a new version StorageSync SDK targeting ApiVersion 2020-03-01 * Added Update Storage Sync Service cmdlet diff --git a/src/StorageSync/StorageSync/Properties/AssemblyInfo.cs b/src/StorageSync/StorageSync/Properties/AssemblyInfo.cs index 22dc5011e24d..5901b4982a0a 100644 --- a/src/StorageSync/StorageSync/Properties/AssemblyInfo.cs +++ b/src/StorageSync/StorageSync/Properties/AssemblyInfo.cs @@ -46,5 +46,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("0.7.1")] -[assembly: AssemblyVersion("1.3.0")] -[assembly: AssemblyFileVersion("1.3.0")] +[assembly: AssemblyVersion("1.4.0")] +[assembly: AssemblyFileVersion("1.4.0")] diff --git a/src/StreamAnalytics/StreamAnalytics/Az.StreamAnalytics.psd1 b/src/StreamAnalytics/StreamAnalytics/Az.StreamAnalytics.psd1 index 1266300e6152..8fb9df83f645 100644 --- a/src/StreamAnalytics/StreamAnalytics/Az.StreamAnalytics.psd1 +++ b/src/StreamAnalytics/StreamAnalytics/Az.StreamAnalytics.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.StreamAnalytics.dll' diff --git a/src/Subscription/Subscription/Az.Subscription.psd1 b/src/Subscription/Subscription/Az.Subscription.psd1 index 825850f01e0d..b5e5ab24b4e4 100644 --- a/src/Subscription/Subscription/Az.Subscription.psd1 +++ b/src/Subscription/Subscription/Az.Subscription.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Subscription.dll' diff --git a/src/Support/Support/Az.Support.psd1 b/src/Support/Support/Az.Support.psd1 index 60ae32344bf3..1d61846c3f24 100644 --- a/src/Support/Support/Az.Support.psd1 +++ b/src/Support/Support/Az.Support.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Support.dll' diff --git a/src/Synapse/Synapse/Az.Synapse.psd1 b/src/Synapse/Synapse/Az.Synapse.psd1 index 7910e543bdaa..e7f2131d4804 100644 --- a/src/Synapse/Synapse/Az.Synapse.psd1 +++ b/src/Synapse/Synapse/Az.Synapse.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '0.4.0' +ModuleVersion = '0.5.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Synapse.dll', @@ -94,25 +94,27 @@ CmdletsToExport = 'Get-AzSynapseSparkJob', 'Stop-AzSynapseSparkJob', 'Get-AzSynapseSqlActiveDirectoryAdministrator', 'Set-AzSynapseSqlActiveDirectoryAdministrator', 'Remove-AzSynapseSqlActiveDirectoryAdministrator', - 'Get-AzSynapseSqlPoolAuditSetting', 'Set-AzSynapseSqlPoolAuditSetting', - 'Reset-AzSynapseSqlPoolAuditSetting', 'Get-AzSynapseSqlAuditSetting', - 'Set-AzSynapseSqlAuditSetting', 'Reset-AzSynapseSqlAuditSetting', + 'Get-AzSynapseSqlPoolAuditSetting', + 'Set-AzSynapseSqlPoolAuditSetting', + 'Reset-AzSynapseSqlPoolAuditSetting', + 'Get-AzSynapseSqlAuditSetting', 'Set-AzSynapseSqlAuditSetting', + 'Reset-AzSynapseSqlAuditSetting', 'Get-AzSynapseSqlAdvancedThreatProtectionSetting', 'Update-AzSynapseSqlAdvancedThreatProtectionSetting', 'Reset-AzSynapseSqlAdvancedThreatProtectionSetting', 'Get-AzSynapseSqlVulnerabilityAssessmentSetting', 'Update-AzSynapseSqlVulnerabilityAssessmentSetting', 'Reset-AzSynapseSqlVulnerabilityAssessmentSetting', - 'Remove-AzSynapseSqlPoolRestorePoint', - 'Update-AzSynapseSqlPool', 'Test-AzSynapseWorkspace', - 'Test-AzSynapseSparkPool', 'Test-AzSynapseSqlPool', - 'New-AzSynapseFirewallRule', 'Remove-AzSynapseFirewallRule', - 'Get-AzSynapseFirewallRule', 'Update-AzSynapseFirewallRule', - 'Get-AzSynapseRoleAssignment', 'New-AzSynapseRoleAssignment', - 'Remove-AzSynapseRoleAssignment', 'Get-AzSynapseRoleDefinition', - 'Get-AzSynapseSqlDatabase', 'New-AzSynapseSqlDatabase', - 'Remove-AzSynapseSqlDatabase', 'Update-AzSynapseSqlDatabase', - 'Test-AzSynapseSqlDatabase', 'Get-AzSynapseIntegrationRuntime', + 'Remove-AzSynapseSqlPoolRestorePoint', 'Update-AzSynapseSqlPool', + 'Test-AzSynapseWorkspace', 'Test-AzSynapseSparkPool', + 'Test-AzSynapseSqlPool', 'New-AzSynapseFirewallRule', + 'Remove-AzSynapseFirewallRule', 'Get-AzSynapseFirewallRule', + 'Update-AzSynapseFirewallRule', 'Get-AzSynapseRoleAssignment', + 'New-AzSynapseRoleAssignment', 'Remove-AzSynapseRoleAssignment', + 'Get-AzSynapseRoleDefinition', 'Get-AzSynapseSqlDatabase', + 'New-AzSynapseSqlDatabase', 'Remove-AzSynapseSqlDatabase', + 'Update-AzSynapseSqlDatabase', 'Test-AzSynapseSqlDatabase', + 'Get-AzSynapseIntegrationRuntime', 'Get-AzSynapseIntegrationRuntimeKey', 'Get-AzSynapseIntegrationRuntimeMetric', 'Get-AzSynapseIntegrationRuntimeNode', @@ -147,10 +149,10 @@ CmdletsToExport = 'Get-AzSynapseSparkJob', 'Stop-AzSynapseSparkJob', AliasesToExport = 'New-AzSynapsePipeline', 'New-AzSynapseLinkedService', 'New-AzSynapseNotebook', 'Import-AzSynapseNotebook', 'New-AzSynapseTrigger', 'New-AzSynapseDataset', - 'New-AzSynapseDataFlow', - 'Get-AzSynapseSqlPoolAudit', 'Set-AzSynapseSqlPoolAudit', - 'Remove-AzSynapseSqlPoolAudit', 'Get-AzSynapseSqlAudit', - 'Set-AzSynapseSqlAudit', 'Remove-AzSynapseSqlAudit', + 'New-AzSynapseDataFlow', 'Get-AzSynapseSqlPoolAudit', + 'Set-AzSynapseSqlPoolAudit', 'Remove-AzSynapseSqlPoolAudit', + 'Get-AzSynapseSqlAudit', 'Set-AzSynapseSqlAudit', + 'Remove-AzSynapseSqlAudit', 'Clear-AzSynapseSqlAdvancedThreatProtectionSetting', 'Clear-AzSynapseSqlVulnerabilityAssessmentSetting' @@ -181,7 +183,29 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Add ''-Force'' to all Remove cmdlets' + ReleaseNotes = '* Added support for operation of Synapse SQL Pool Restore Point + - Add ''New-AzSynapseSqlPoolRestorePoint'' cmdlet + - Add ''Remove-AzSynapseSqlPoolRestorePoint'' cmdlet +* Added support for operation of Auditing settings in Workspace-level and SqlPool-level + - Add ''Set-AzSynapseSqlAuditSetting'' cmdlet + - Add ''Get-AzSynapseSqlAuditSetting'' cmdlet + - Add ''Reset-AzSynapseSqlAuditSetting'' cmdlet + - Add ''Set-AzSynapseSqlPoolAuditSetting'' cmdlet + - Add ''Get-AzSynapseSqlPoolAuditSetting'' cmdlet + - Add ''Reset-AzSynapseSqlPoolAuditSetting'' cmdlet +* Added support for operation of Advanced Threat Protection settings in Workspace-level + - Add ''Update-AzSynapseSqlAdvancedThreatProtectionSetting'' cmdlet + - Add ''Get-AzSynapseSqlAdvancedThreatProtectionSetting'' cmdlet + - Add ''Reset-AzSynapseSqlAdvancedThreatProtectionSetting'' cmdlet +* Added support for operation of Vulnerability Assessment settings in Workspace-level + - Add ''Update-AzSynapseSqlVulnerabilityAssessmentSetting'' cmdlet + - Add ''Get-AzSynapseSqlVulnerabilityAssessmentSetting'' cmdlet + - Add ''Reset-AzSynapseSqlVulnerabilityAssessmentSetting'' cmdlet +* Added support for operation of SQL Active Directory admin + - Add ''Set-AzSynapseSqlActiveDirectoryAdministrator'' cmdlet + - Add ''Get-AzSynapseSqlActiveDirectoryAdministrator'' cmdlet + - Add ''Remove-AzSynapseSqlActiveDirectoryAdministrator'' cmdlet +* Fixed Null Reference Exception when submit spark job.' # Prerelease string of this module # Prerelease = '' diff --git a/src/Synapse/Synapse/ChangeLog.md b/src/Synapse/Synapse/ChangeLog.md index bde52df23d65..a7b94d3ae0f1 100644 --- a/src/Synapse/Synapse/ChangeLog.md +++ b/src/Synapse/Synapse/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 0.5.0 * Added support for operation of Synapse SQL Pool Restore Point - Add `New-AzSynapseSqlPoolRestorePoint` cmdlet - Add `Remove-AzSynapseSqlPoolRestorePoint` cmdlet diff --git a/src/Synapse/Synapse/Properties/AssemblyInfo.cs b/src/Synapse/Synapse/Properties/AssemblyInfo.cs index 97968fcc2315..2cdb786014e5 100644 --- a/src/Synapse/Synapse/Properties/AssemblyInfo.cs +++ b/src/Synapse/Synapse/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ // by using the '*' as shown below: -[assembly: AssemblyVersion("0.4.0")] -[assembly: AssemblyFileVersion("0.4.0")] +[assembly: AssemblyVersion("0.5.0")] +[assembly: AssemblyFileVersion("0.5.0")] diff --git a/src/TimeSeriesInsights/Az.TimeSeriesInsights.psd1 b/src/TimeSeriesInsights/Az.TimeSeriesInsights.psd1 index c5842594ecc7..fdb870b5cf1c 100644 --- a/src/TimeSeriesInsights/Az.TimeSeriesInsights.psd1 +++ b/src/TimeSeriesInsights/Az.TimeSeriesInsights.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.TimeSeriesInsights.private.dll' diff --git a/src/TrafficManager/TrafficManager/Az.TrafficManager.psd1 b/src/TrafficManager/TrafficManager/Az.TrafficManager.psd1 index 963d0f8a7232..c20060736c0c 100644 --- a/src/TrafficManager/TrafficManager/Az.TrafficManager.psd1 +++ b/src/TrafficManager/TrafficManager/Az.TrafficManager.psd1 @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.TrafficManager.dll' diff --git a/src/VMWare/Az.VMWare.psd1 b/src/VMWare/Az.VMWare.psd1 index ff953c6f3a37..957cfecdb4af 100644 --- a/src/VMWare/Az.VMWare.psd1 +++ b/src/VMWare/Az.VMWare.psd1 @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Az.VMWare.private.dll' diff --git a/src/Websites/Websites/Az.Websites.psd1 b/src/Websites/Websites/Az.Websites.psd1 index 9ac9311d0223..d59cc332fdec 100644 --- a/src/Websites/Websites/Az.Websites.psd1 +++ b/src/Websites/Websites/Az.Websites.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '2.1.0' +ModuleVersion = '2.1.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Microsoft.Azure.Management.Websites.dll' @@ -135,7 +135,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added support for new access restriction features: ServiceTag, multi-ip and http-headers' + ReleaseNotes = '* Prevent duplicate access restriction rules' # Prerelease string of this module # Prerelease = '' diff --git a/src/Websites/Websites/ChangeLog.md b/src/Websites/Websites/ChangeLog.md index 265ca570b8b6..b37023f118c3 100644 --- a/src/Websites/Websites/ChangeLog.md +++ b/src/Websites/Websites/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 2.1.1 * Prevent duplicate access restriction rules ## Version 2.1.0 diff --git a/src/Websites/Websites/Properties/AssemblyInfo.cs b/src/Websites/Websites/Properties/AssemblyInfo.cs index 8529f8d0e9e8..a0d4f708dc3f 100644 --- a/src/Websites/Websites/Properties/AssemblyInfo.cs +++ b/src/Websites/Websites/Properties/AssemblyInfo.cs @@ -25,8 +25,8 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("76158def-441b-472a-9b1a-a75726a813f4")] -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] +[assembly: AssemblyVersion("2.1.1")] +[assembly: AssemblyFileVersion("2.1.1")] #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.Websites.Test")] #endif diff --git a/src/WindowsIotServices/Az.WindowsIotServices.csproj b/src/WindowsIotServices/Az.WindowsIotServices.csproj new file mode 100644 index 000000000000..64e6613eeb47 --- /dev/null +++ b/src/WindowsIotServices/Az.WindowsIotServices.csproj @@ -0,0 +1,7 @@ + + + WindowsIotServices + + + + diff --git a/src/WindowsIotServices/Az.WindowsIotServices.format.ps1xml b/src/WindowsIotServices/Az.WindowsIotServices.format.ps1xml new file mode 100644 index 000000000000..f9b8d528c567 --- /dev/null +++ b/src/WindowsIotServices/Az.WindowsIotServices.format.ps1xml @@ -0,0 +1,439 @@ + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.WindowsIotServicesIdentity + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.WindowsIotServicesIdentity + + + + + + + + + + + + + + + + + + DeviceName + + + ResourceGroupName + + + SubscriptionId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceCheckNameAvailabilityParameters + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceCheckNameAvailabilityParameters + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceDescriptionListResult + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceDescriptionListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceNameAvailabilityInfo + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceNameAvailabilityInfo + + + + + + + + + + + + + + + + + + Message + + + NameAvailable + + + Reason + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceProperties + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceProperties + + + + + + + + + + + + + + + + + + + + + + + + AdminDomainName + + + BillingDomainName + + + Note + + + Quantity + + + StartDate + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails + + + + + + + + + + + + + + + + + + + + + Code + + + Detail + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfo + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfo + + + + + + + + + + + + + + + + + + + + + Description + + + Operation + + + Provider + + + Resource + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationEntity + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationEntity + + + + + + + + + + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationListResult + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ProxyResource + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ProxyResource + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource + + + + + + + + + + + + + + + Name + + + Type + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResource + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResource + + + + + + + + + + + + + + + + + + Name + + + Type + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTags + + + + + + + + + + + + Item + + + + + + + + \ No newline at end of file diff --git a/src/WindowsIotServices/Az.WindowsIotServices.psd1 b/src/WindowsIotServices/Az.WindowsIotServices.psd1 new file mode 100644 index 000000000000..25aa1dda1740 --- /dev/null +++ b/src/WindowsIotServices/Az.WindowsIotServices.psd1 @@ -0,0 +1,134 @@ +# +# Module manifest for module 'Az.WindowsIotServices' +# +# Generated by: Microsoft Corporation +# +# Generated on: 11/30/2020 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = './Az.WindowsIotServices.psm1' + +# Version number of this module. +ModuleVersion = '0.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = 'd5c7f2ce-fe23-49d5-a869-fb780e78a663' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell: WindowsIotServices cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Az.WindowsIotServices.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Az.WindowsIotServices.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'Get-AzWindowsIotServicesDevice', 'New-AzWindowsIotServicesDevice', + 'Remove-AzWindowsIotServicesDevice', + 'Update-AzWindowsIotServicesDevice' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','PSModule','WindowsIotServices' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + # ReleaseNotes = '' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/src/WindowsIotServices/Az.WindowsIotServices.psm1 b/src/WindowsIotServices/Az.WindowsIotServices.psm1 new file mode 100644 index 000000000000..efc10e1069c8 --- /dev/null +++ b/src/WindowsIotServices/Az.WindowsIotServices.psm1 @@ -0,0 +1,109 @@ +# region Generated + # ---------------------------------------------------------------------------------- + # + # Copyright Microsoft Corporation + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # http://www.apache.org/licenses/LICENSE-2.0 + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # ---------------------------------------------------------------------------------- + # Load required Az.Accounts module + $accountsName = 'Az.Accounts' + $accountsModule = Get-Module -Name $accountsName + if(-not $accountsModule) { + $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' + if(Test-Path -Path $localAccountsPath) { + $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 + if($localAccounts) { + $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru + } + } + if(-not $accountsModule) { + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'1.8.1' } | Measure-Object).Count -gt 0 + if($hasAdequateVersion) { + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 1.8.1 -Scope Global -PassThru + } + } + } + + if(-not $accountsModule) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'1.8.1') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 1.8.1 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + } + Write-Information "Loaded Module '$($accountsModule.Name)'" + + # Load the private module dll + $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.WindowsIotServices.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module]::Instance + + # Ask for the shared functionality table + $VTable = Register-AzModule + + # Tweaks the pipeline on module load + $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Tweaks the pipeline per call + $instance.OnNewRequest = $VTable.OnNewRequest + + # Gets shared parameter values + $instance.GetParameterValue = $VTable.GetParameterValue + + # Allows shared module to listen to events from this module + $instance.EventListener = $VTable.EventListener + + # Gets shared argument completers + $instance.ArgumentCompleter = $VTable.ArgumentCompleter + + # The name of the currently selected Azure profile + $instance.ProfileName = $VTable.ProfileName + + + # Load the custom module + $customModulePath = Join-Path $PSScriptRoot './custom/Az.WindowsIotServices.custom.psm1' + if(Test-Path $customModulePath) { + $null = Import-Module -Name $customModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = Join-Path $PSScriptRoot './exports' + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } + + # Finalize initialization of this module + $instance.Init(); + Write-Information "Loaded Module '$($instance.Name)'" +# endregion diff --git a/src/WindowsIotServices/Changelog.md b/src/WindowsIotServices/Changelog.md new file mode 100644 index 000000000000..2cdb9d244904 --- /dev/null +++ b/src/WindowsIotServices/Changelog.md @@ -0,0 +1,24 @@ + +## Upcoming Release + +## Version 0.1.0 +* First preview release for module Az.WindowsIotServices + diff --git a/src/WindowsIotServices/Properties/AssemblyInfo.cs b/src/WindowsIotServices/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..99013f307f9e --- /dev/null +++ b/src/WindowsIotServices/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - WindowsIotServices")] +[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("86e5bdc2-5eba-480d-869a-a733ee1b8c71")] +[assembly: AssemblyVersion("0.1.0")] +[assembly: AssemblyFileVersion("0.1.0")] diff --git a/src/WindowsIotServices/WindowsIotServices.sln b/src/WindowsIotServices/WindowsIotServices.sln new file mode 100644 index 000000000000..4a082da29984 --- /dev/null +++ b/src/WindowsIotServices/WindowsIotServices.sln @@ -0,0 +1,48 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.WindowsIotServices", "Az.WindowsIotServices.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030} + EndGlobalSection +EndGlobal diff --git a/src/WindowsIotServices/build-module.ps1 b/src/WindowsIotServices/build-module.ps1 new file mode 100644 index 000000000000..12195ec32ebe --- /dev/null +++ b/src/WindowsIotServices/build-module.ps1 @@ -0,0 +1,153 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +$ErrorActionPreference = 'Stop' + +if($PSEdition -ne 'Core') { + Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.' +} + +if(-not $Isolated -and -not $Debugger) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + + if($LastExitCode -ne 0) { + # Build failed. Don't attempt to run the module. + return + } + + if($Test) { + . (Join-Path $PSScriptRoot 'test-module.ps1') + if($LastExitCode -ne 0) { + # Tests failed. Don't attempt to run the module. + return + } + } + + if($Docs) { + . (Join-Path $PSScriptRoot 'generate-help.ps1') + if($LastExitCode -ne 0) { + # Docs generation failed. Don't attempt to run the module. + return + } + } + + if($Pack) { + . (Join-Path $PSScriptRoot 'pack-module.ps1') + if($LastExitCode -ne 0) { + # Packing failed. Don't attempt to run the module. + return + } + } + + $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1' + if($Code) { + . $runModulePath -Code + } elseif($Run) { + . $runModulePath + } else { + Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script." + } + return +} + +$binFolder = Join-Path $PSScriptRoot 'bin' +$objFolder = Join-Path $PSScriptRoot 'obj' + +if(-not $Debugger) { + Write-Host -ForegroundColor Green 'Cleaning build folders...' + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder + + if((Test-Path $binFolder) -or (Test-Path $objFolder)) { + Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?' + Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.' + } + + Write-Host -ForegroundColor Green 'Compiling module...' + $buildConfig = 'Debug' + if($Release) { + $buildConfig = 'Release' + } + dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo + if($LastExitCode -ne 0) { + Write-Error 'Compilation failed.' + } + + $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release') +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.WindowsIotServices.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} + +# Load DLL to use build-time cmdlets +$null = Import-Module -Name $dll + +$modulePaths = $dll +$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.WindowsIotServices.custom.psm1' +if(Test-Path $customPsm1) { + $modulePaths = @($dll, $customPsm1) +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(Test-Path $exportsFolder) { + $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $exportsFolder + +$internalFolder = Join-Path $PSScriptRoot 'internal' +if(Test-Path $internalFolder) { + $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $internalFolder + +$psd1 = Join-Path $PSScriptRoot './Az.WindowsIotServices.psd1' +$guid = Get-ModuleGuid -Psd1Path $psd1 +$moduleName = 'Az.WindowsIotServices' +$examplesFolder = Join-Path $PSScriptRoot 'examples' +$null = New-Item -ItemType Directory -Force -Path $examplesFolder + +if($NoDocs) { + Write-Host -ForegroundColor Green 'Creating exports...' + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs +} else { + Write-Host -ForegroundColor Green 'Creating exports and docs...' + $moduleDescription = 'Microsoft Azure PowerShell: WindowsIotServices cmdlets' + $docsFolder = Join-Path $PSScriptRoot 'docs' + if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + } + $null = New-Item -ItemType Directory -Force -Path $docsFolder + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid +} + +Write-Host -ForegroundColor Green 'Creating format.ps1xml...' +$formatPs1xml = Join-Path $PSScriptRoot './Az.WindowsIotServices.format.ps1xml' +Export-FormatPs1xml -FilePath $formatPs1xml + +Write-Host -ForegroundColor Green 'Creating psd1...' +$customFolder = Join-Path $PSScriptRoot 'custom' +Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid + +Write-Host -ForegroundColor Green 'Creating test stubs...' +$testFolder = Join-Path $PSScriptRoot 'test' +$null = New-Item -ItemType Directory -Force -Path $testFolder +Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder + +Write-Host -ForegroundColor Green 'Creating example stubs...' +Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder + +Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/WindowsIotServices/check-dependencies.ps1 b/src/WindowsIotServices/check-dependencies.ps1 new file mode 100644 index 000000000000..513c52ca2fb5 --- /dev/null +++ b/src/WindowsIotServices/check-dependencies.ps1 @@ -0,0 +1,64 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { + if($predicate) { + $module = Get-Module -ListAvailable -Name $moduleName + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + $null = New-Item -ItemType Directory -Force -Path $path + Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { + Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path + } else { + Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path + } + } + } +} + +$ProgressPreference = 'SilentlyContinue' +$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1 + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.8.1' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' + +$tools = Join-Path $PSScriptRoot 'tools' +$resourceDir = Join-Path $tools 'Resources' +$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' + +if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { + Write-Host -ForegroundColor Green "Building local Resource module used for test..." + Set-Location $resourceDir + $null = autorest-beta .\readme.md --output-folder=$HOME/.PSSharedModules/Resources + $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ + Set-Location $HOME/.PSSharedModules/Resources + $null = .\build-module.ps1 + Set-Location $PSScriptRoot +} diff --git a/src/WindowsIotServices/custom/Az.WindowsIotServices.custom.psm1 b/src/WindowsIotServices/custom/Az.WindowsIotServices.custom.psm1 new file mode 100644 index 000000000000..389c1e449979 --- /dev/null +++ b/src/WindowsIotServices/custom/Az.WindowsIotServices.custom.psm1 @@ -0,0 +1,17 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.WindowsIotServices.private.dll') + + # Load the internal module + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.WindowsIotServices.internal.psm1' + if(Test-Path $internalModulePath) { + $null = Import-Module -Name $internalModulePath + } + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export script cmdlets + Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) +# endregion diff --git a/src/WindowsIotServices/custom/readme.md b/src/WindowsIotServices/custom/readme.md new file mode 100644 index 000000000000..96b58e690709 --- /dev/null +++ b/src/WindowsIotServices/custom/readme.md @@ -0,0 +1,41 @@ +# Custom +This directory contains custom implementation for non-generated cmdlets for the `Az.WindowsIotServices` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.WindowsIotServices.custom.psm1`. This file should not be modified. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: yes + +## Details +For `Az.WindowsIotServices` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*. + +For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.WindowsIotServices.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. + +For script cmdlets, these are loaded via the `Az.WindowsIotServices.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. + +## Purpose +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. + +## Usage +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +- Break +- DefaultProfile +- HttpPipelineAppend +- HttpPipelinePrepend +- Proxy +- ProxyCredential +- ProxyUseDefaultCredentials + +These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.WindowsIotServices`. For C#, follow the usage seen in the `ProcessRecordAsync` method. + +### Attributes +For processing the cmdlets, we've created some additional attributes: +- `Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.DescriptionAttribute` + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. +- `Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.DoNotExportAttribute` + - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.WindowsIotServices`. +- `Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.InternalExportAttribute` + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.WindowsIotServices`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. +- `Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.ProfileAttribute` + - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/WindowsIotServices/examples/Get-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/examples/Get-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..cc0eb32266cd --- /dev/null +++ b/src/WindowsIotServices/examples/Get-AzWindowsIotServicesDevice.md @@ -0,0 +1,57 @@ +### Example 1: Get all Windows IoT services under a subscription +```powershell +PS C:\> Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +``` + +This command gets all Windows IoT services under a subscription. + +### Example 2: Get all Windows IoT services under a resource group +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +``` + +This command gets all Windows IoT services under a resource group. + +### Example 3: Get a Windows IoT service by name +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by name. + +### Example 4: Get a Windows IoT service by object +```powershell +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by object. + +### Example 4: Get a Windows IoT service by pipeline +```powershell +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by pipeline. \ No newline at end of file diff --git a/src/WindowsIotServices/examples/New-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/examples/New-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..80e3c5c6aa8a --- /dev/null +++ b/src/WindowsIotServices/examples/New-AzWindowsIotServicesDevice.md @@ -0,0 +1,10 @@ +### Example 1: Create a new Windows IoT services +```powershell +PS C:\> New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "6a00eee9-0000-0700-0000-5fab82870000" +``` + +This command creates a new Windows IoT services. diff --git a/src/WindowsIotServices/examples/Remove-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/examples/Remove-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..099d16ba85d5 --- /dev/null +++ b/src/WindowsIotServices/examples/Remove-AzWindowsIotServicesDevice.md @@ -0,0 +1,17 @@ +### Example 1: Remove a Windows IoT services by name +```powershell +PS C:\> Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test + +``` + +This command removes a Windows IoT services by name. + +### Example 2: Remove a Windows IoT services by pipeline +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice + + +``` + +This command removes a Windows IoT services by pipeline. + diff --git a/src/WindowsIotServices/examples/Update-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/examples/Update-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..37aa5c3512d3 --- /dev/null +++ b/src/WindowsIotServices/examples/Update-AzWindowsIotServicesDevice.md @@ -0,0 +1,21 @@ +### Example 1: Update a Windows IoT services by name +```powershell +PS C:\> Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "5d006a5c-0000-0700-0000-5faa46760000" +``` + +This command updates a Windows IoT services by name. + +### Example 2: Update a Windows IoT services by pipeline +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5d005f5f-0000-0700-0000-5faa46ae0000" +``` + +This command updates a Windows IoT services by pipeline. \ No newline at end of file diff --git a/src/WindowsIotServices/export-surface.ps1 b/src/WindowsIotServices/export-surface.ps1 new file mode 100644 index 000000000000..b2e5e5dd4f03 --- /dev/null +++ b/src/WindowsIotServices/export-surface.ps1 @@ -0,0 +1,40 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$dll = Join-Path $PSScriptRoot 'bin\Az.WindowsIotServices.private.dll' +if(-not (Test-Path $dll)) { + Write-Error "Unable to find output assembly in '$binFolder'." +} +$null = Import-Module -Name $dll + +$moduleName = 'Az.WindowsIotServices' +$exportsFolder = Join-Path $PSScriptRoot 'exports' +$resourcesFolder = Join-Path $PSScriptRoot 'resources' + +Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'" + +Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent +Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'" + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/WindowsIotServices/exports/Get-AzWindowsIotServicesDevice.ps1 b/src/WindowsIotServices/exports/Get-AzWindowsIotServicesDevice.ps1 new file mode 100644 index 000000000000..ca01f261d3de --- /dev/null +++ b/src/WindowsIotServices/exports/Get-AzWindowsIotServicesDevice.ps1 @@ -0,0 +1,193 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the non-security related metadata of a Windows IoT Device Service. +.Description +Get the non-security related metadata of a Windows IoT Device Service. +.Example +PS C:\> Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +.Example +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +.Example +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesdevice +#> +function Get-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_Get'; + GetViaIdentity = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_GetViaIdentity'; + List = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_List'; + List1 = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/exports/New-AzWindowsIotServicesDevice.ps1 b/src/WindowsIotServices/exports/New-AzWindowsIotServicesDevice.ps1 new file mode 100644 index 000000000000..036fe49b9dc1 --- /dev/null +++ b/src/WindowsIotServices/exports/New-AzWindowsIotServicesDevice.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Description +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Example +PS C:\> New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "6a00eee9-0000-0700-0000-5fab82870000" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/new-azwindowsiotservicesdevice +#> +function New-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Header')] + [System.String] + # ETag of the Windows IoT Device Service. + # Do not specify for creating a new Windows IoT Device Service. + # Required to update an existing Windows IoT Device Service. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service OEM AAD domain + ${AdminDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service ODM AAD domain + ${BillingDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Etag field is *not* required. + # If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + ${Etag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Azure Region where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service notes. + ${Note}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.Int64] + # Windows IoT Device Service device allocation, + ${Quantity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.WindowsIotServices.private\New-AzWindowsIotServicesDevice_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/exports/ProxyCmdletDefinitions.ps1 b/src/WindowsIotServices/exports/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..7953a97d9e11 --- /dev/null +++ b/src/WindowsIotServices/exports/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,771 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get the non-security related metadata of a Windows IoT Device Service. +.Description +Get the non-security related metadata of a Windows IoT Device Service. +.Example +PS C:\> Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +.Example +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +.Example +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesdevice +#> +function Get-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Get = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_Get'; + GetViaIdentity = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_GetViaIdentity'; + List = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_List'; + List1 = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesDevice_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Description +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Example +PS C:\> New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "6a00eee9-0000-0700-0000-5fab82870000" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/new-azwindowsiotservicesdevice +#> +function New-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Header')] + [System.String] + # ETag of the Windows IoT Device Service. + # Do not specify for creating a new Windows IoT Device Service. + # Required to update an existing Windows IoT Device Service. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service OEM AAD domain + ${AdminDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service ODM AAD domain + ${BillingDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Etag field is *not* required. + # If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + ${Etag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Azure Region where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service notes. + ${Note}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.Int64] + # Windows IoT Device Service device allocation, + ${Quantity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + CreateExpanded = 'Az.WindowsIotServices.private\New-AzWindowsIotServicesDevice_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete a Windows IoT Device Service. +.Description +Delete a Windows IoT Device Service. +.Example +PS C:\> Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test + +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice + + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/remove-azwindowsiotservicesdevice +#> +function Remove-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.WindowsIotServices.private\Remove-AzWindowsIotServicesDevice_Delete'; + DeleteViaIdentity = 'Az.WindowsIotServices.private\Remove-AzWindowsIotServicesDevice_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Description +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Example +PS C:\> Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "5d006a5c-0000-0700-0000-5faa46760000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5d005f5f-0000-0700-0000-5faa46ae0000" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/update-azwindowsiotservicesdevice +#> +function Update-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Header')] + [System.String] + # ETag of the Windows IoT Device Service. + # Do not specify for creating a brand new Windows IoT Device Service. + # Required to update an existing Windows IoT Device Service. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service OEM AAD domain + ${AdminDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service ODM AAD domain + ${BillingDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Etag field is *not* required. + # If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + ${Etag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Azure Region where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service notes. + ${Note}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.Int64] + # Windows IoT Device Service device allocation, + ${Quantity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.WindowsIotServices.private\Update-AzWindowsIotServicesDevice_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.WindowsIotServices.private\Update-AzWindowsIotServicesDevice_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/exports/Remove-AzWindowsIotServicesDevice.ps1 b/src/WindowsIotServices/exports/Remove-AzWindowsIotServicesDevice.ps1 new file mode 100644 index 000000000000..14a1c1365af8 --- /dev/null +++ b/src/WindowsIotServices/exports/Remove-AzWindowsIotServicesDevice.ps1 @@ -0,0 +1,162 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete a Windows IoT Device Service. +.Description +Delete a Windows IoT Device Service. +.Example +PS C:\> Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test + +.Example +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice + + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/remove-azwindowsiotservicesdevice +#> +function Remove-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + Delete = 'Az.WindowsIotServices.private\Remove-AzWindowsIotServicesDevice_Delete'; + DeleteViaIdentity = 'Az.WindowsIotServices.private\Remove-AzWindowsIotServicesDevice_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/exports/Update-AzWindowsIotServicesDevice.ps1 b/src/WindowsIotServices/exports/Update-AzWindowsIotServicesDevice.ps1 new file mode 100644 index 000000000000..736b833c4760 --- /dev/null +++ b/src/WindowsIotServices/exports/Update-AzWindowsIotServicesDevice.ps1 @@ -0,0 +1,221 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Description +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. +.Example +PS C:\> Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "5d006a5c-0000-0700-0000-5faa46760000" +.Example +PS C:\> Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5d005f5f-0000-0700-0000-5faa46ae0000" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DeviceName ]: The name of the Windows IoT Device Service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group that contains the Windows IoT Device Service. + [SubscriptionId ]: The subscription identifier. +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/update-azwindowsiotservicesdevice +#> +function Update-AzWindowsIotServicesDevice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the Windows IoT Device Service. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [System.String] + # The name of the resource group that contains the Windows IoT Device Service. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription identifier. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Header')] + [System.String] + # ETag of the Windows IoT Device Service. + # Do not specify for creating a brand new Windows IoT Device Service. + # Required to update an existing Windows IoT Device Service. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service OEM AAD domain + ${AdminDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service ODM AAD domain + ${BillingDomainName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Etag field is *not* required. + # If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + ${Etag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # The Azure Region where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.String] + # Windows IoT Device Service notes. + ${Note}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [System.Int64] + # Windows IoT Device Service device allocation, + ${Quantity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + UpdateExpanded = 'Az.WindowsIotServices.private\Update-AzWindowsIotServicesDevice_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.WindowsIotServices.private\Update-AzWindowsIotServicesDevice_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/exports/readme.md b/src/WindowsIotServices/exports/readme.md new file mode 100644 index 000000000000..e622411a25eb --- /dev/null +++ b/src/WindowsIotServices/exports/readme.md @@ -0,0 +1,20 @@ +# Exports +This directory contains the cmdlets *exported by* `Az.WindowsIotServices`. No other cmdlets in this repository are directly exported. What that means is the `Az.WindowsIotServices` module will run [Export-ModuleMember](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.WindowsIotServices.private.dll`) and from the `..\custom\Az.WindowsIotServices.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [readme.md](..\internal/readme.md) in the `..\internal` folder. + +## Purpose +We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. + +## Structure +The cmdlets generated here will flat in the directory (no sub-folders) as long as there are no Azure profiles specified for any cmdlets. Azure profiles (the `Profiles` attribute) is only applied when generating with the `--azure` attribute (or `azure: true` in the configuration). When Azure profiles are applied, the folder structure has a folder per profile. Each profile folder has only those cmdlets that apply to that profile. + +## Usage +When `./Az.WindowsIotServices.psm1` is loaded, it dynamically exports cmdlets here based on the folder structure and on the selected profile. If there are no sub-folders, it exports all cmdlets at the root of this folder. If there are sub-folders, it checks to see the selected profile. If no profile is selected, it exports the cmdlets in the last sub-folder (alphabetically). If a profile is selected, it exports the cmdlets in the sub-folder that matches the profile name. If there is no sub-folder that matches the profile name, it exports no cmdlets and writes a warning message. \ No newline at end of file diff --git a/src/WindowsIotServices/generate-help.ps1 b/src/WindowsIotServices/generate-help.ps1 new file mode 100644 index 000000000000..28ff9f242555 --- /dev/null +++ b/src/WindowsIotServices/generate-help.ps1 @@ -0,0 +1,73 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$exportsFolder = Join-Path $PSScriptRoot 'exports' +if(-not (Test-Path $exportsFolder)) { + Write-Error "Exports folder '$exportsFolder' was not found." +} + +$directories = Get-ChildItem -Directory -Path $exportsFolder +$hasProfiles = ($directories | Measure-Object).Count -gt 0 +if(-not $hasProfiles) { + $directories = Get-Item -Path $exportsFolder +} + +$docsFolder = Join-Path $PSScriptRoot 'docs' +if(Test-Path $docsFolder) { + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue +} +$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue +$examplesFolder = Join-Path $PSScriptRoot 'examples' + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.WindowsIotServices.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.WindowsIotServices.private.dll') +$instance = [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName + +foreach($directory in $directories) +{ + if($hasProfiles) { + Select-AzProfile -Name $directory.Name + } + # Reload module per profile + Import-Module -Name $modulePath -Force + + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $directory.FullName + $cmdletHelpInfo = $cmdletNames | ForEach-Object { Get-Help -Name $_ -Full } + $cmdletFunctionInfo = Get-ScriptCmdlet -ScriptFolder $directory.FullName -AsFunctionInfo + + $docsPath = Join-Path $docsFolder $directory.Name + $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue + $examplesPath = Join-Path $examplesFolder $directory.Name + + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/WindowsIotServices/generate-info.json b/src/WindowsIotServices/generate-info.json new file mode 100644 index 000000000000..e67f581c4b09 --- /dev/null +++ b/src/WindowsIotServices/generate-info.json @@ -0,0 +1,13 @@ +{ + "autorest": "3.0.6187", + "microsoft.azure_autorest.modeler": "2.3.55", + "swagger_commit": "da3b82807225e51e7432bb642e9cd79281851dec", + "microsoft.azure_autorest-core": "2.0.4417", + "autorest_csharp-v3": "3.0.0-dev.20200811.1", + "autorest_modelerfour": "4.15.378", + "node": "v10.16.0", + "microsoft.azure_autorest.csharp": "2.3.82", + "autorest_core": "3.0.6306", + "autorest_powershell": "2.2.0", + "autorest_remodeler": "2.1.27" +} diff --git a/src/WindowsIotServices/generated/Module.cs b/src/WindowsIotServices/generated/Module.cs new file mode 100644 index 000000000000..e52c11a7f57f --- /dev/null +++ b/src/WindowsIotServices/generated/Module.cs @@ -0,0 +1,158 @@ +// 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.WindowsIotServices +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + using SendAsyncStepDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; + using GetParameterDelegate = global::System.Func; + using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; + using ArgumentCompleterDelegate = global::System.Func; + using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; + using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; + using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + + /// A class that contains the module-common code and data. + public partial class Module + { + /// The currently selected profile. + public string Profile = global::System.String.Empty; + + public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + + /// the ISendAsync pipeline instance + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline _pipeline; + + /// the ISendAsync pipeline instance (when proxy is enabled) + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline _pipelineWithProxy; + + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); + + /// Gets completion data for azure specific fields + public ArgumentCompleterDelegate ArgumentCompleter { get; set; } + + /// The instance of the Client API + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices ClientAPI { get; set; } + + /// A delegate that gets called for each signalled event + public EventListenerDelegate EventListener { get; set; } + + /// The delegate to call to get parameter data from a common module. + public GetParameterDelegate GetParameterValue { get; set; } + + /// Backing field for property. + private static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module _instance; + + /// the singleton of this module class + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module()); + + /// The Name of this module + public string Name => @"Az.WindowsIotServices"; + + /// The delegate to call when this module is loaded (supporting a commmon module). + public ModuleLoadPipelineDelegate OnModuleLoad { get; set; } + + /// The delegate to call before each new request (supporting a commmon module). + public NewRequestPipelineDelegate OnNewRequest { get; set; } + + /// The name of the currently selected Azure profile + public global::System.String ProfileName { get; set; } + + /// The ResourceID for this module (azure arm). + public string ResourceId => @"Az.WindowsIotServices"; + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void AfterCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline pipeline); + + /// The from the cmdlet + /// The HttpPipeline for the request + + partial void BeforeCreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, ref Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline pipeline); + + partial void CustomInit(); + + /// Creates an instance of the HttpPipeline for each call. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the cmdlet's parameterset name. + /// An instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline for the remote call. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline pipeline = null; + BeforeCreatePipeline(invocationInfo, ref pipeline); + pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + AfterCreatePipeline(invocationInfo, ref pipeline); + pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); + OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); + return pipeline; + } + + /// Gets parameters from a common module. + /// The from the cmdlet + /// the cmdlet's correlation id. + /// The name of the parameter to get the value for. + /// + /// The parameter value from the common module. (Note: this should be type converted on the way back) + /// + public object GetParameter(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string parameterName) => GetParameterValue?.Invoke( ResourceId, Name, invocationInfo, correlationId,parameterName ); + + /// 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(); + } + + /// Creates the module instance. + private Module() + { + /// constructor + ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices(); + _handler.Proxy = _webProxy; + _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); + _pipelineWithProxy = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient(_handler))); + } + + /// The HTTP Proxy to use. + /// The HTTP Proxy Credentials + /// True if the proxy should use default credentials + public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) + { + // set the proxy configuration + _webProxy.Address = proxy; + _webProxy.BypassProxyOnLocal = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; + _handler.UseProxy = proxy != null; + } + + /// Called to dispatch events to the common module listener + /// The ID of the event + /// The cancellation token for the event + /// A delegate to get the detailed event data + /// The callback for the event dispatcher + /// The from the cmdlet + /// the cmdlet's parameterset name. + /// the cmdlet's correlation id. + /// the cmdlet's process record correlation id. + /// the exception that is being thrown (if available) + /// + /// A that will be complete when handling of the event is completed. + /// + public async global::System.Threading.Tasks.Task Signal(string id, global::System.Threading.CancellationToken token, global::System.Func getEventData, SignalDelegate signal, global::System.Management.Automation.InvocationInfo invocationInfo, string parameterSetName, string correlationId, string processRecordId, global::System.Exception exception) + { + using( NoSynchronizationContext ) + { + await EventListener?.Invoke(id,token,getEventData, signal, invocationInfo, parameterSetName, correlationId,processRecordId,exception); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.PowerShell.cs new file mode 100644 index 000000000000..6d45ca5a1c4d --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.PowerShell.cs @@ -0,0 +1,153 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The description of the Windows IoT Device Service. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceTypeConverter))] + public partial class DeviceService + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceService(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.WindowsIotServices.Models.Api20190601.IDeviceService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceService(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceService(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Note = (string) content.GetValueForProperty("Note",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Note, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).StartDate = (global::System.DateTime?) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).StartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Quantity = (long?) content.GetValueForProperty("Quantity",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Quantity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).BillingDomainName = (string) content.GetValueForProperty("BillingDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).BillingDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).AdminDomainName = (string) content.GetValueForProperty("AdminDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).AdminDomainName, 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 DeviceService(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Note = (string) content.GetValueForProperty("Note",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Note, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).StartDate = (global::System.DateTime?) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).StartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Quantity = (long?) content.GetValueForProperty("Quantity",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).Quantity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).BillingDomainName = (string) content.GetValueForProperty("BillingDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).BillingDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).AdminDomainName = (string) content.GetValueForProperty("AdminDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal)this).AdminDomainName, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The description of the Windows IoT Device Service. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceTypeConverter))] + public partial interface IDeviceService + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.TypeConverter.cs new file mode 100644 index 000000000000..7774a7ad42b4 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceServiceTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IDeviceService ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceService.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceService.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceService.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/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.cs new file mode 100644 index 000000000000..b0a61a305d24 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.cs @@ -0,0 +1,188 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The description of the Windows IoT Device Service. + public partial class DeviceService : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResource(); + + /// Windows IoT Device Service OEM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string AdminDomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).AdminDomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).AdminDomainName = value; } + + /// Windows IoT Device Service ODM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string BillingDomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).BillingDomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).BillingDomainName = value; } + + /// Backing field for property. + private string _etag; + + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Etag { get => this._etag; set => this._etag = value; } + + /// Fully qualified resource Id for the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Id; } + + /// The Azure Region where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)__trackedResource).Location = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceProperties()); set { {_property = value;} } } + + /// Internal Acessors for StartDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceInternal.StartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).StartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).StartDate = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Name; } + + /// Windows IoT Device Service notes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string Note { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).Note; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).Note = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties _property; + + /// The properties of a Windows IoT Device Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceProperties()); set => this._property = value; } + + /// Windows IoT Device Service device allocation, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public long? Quantity { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).Quantity; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).Quantity = value; } + + /// Windows IoT Device Service start date, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public global::System.DateTime? StartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)Property).StartDate; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)__trackedResource).Tag = value; } + + /// The type of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DeviceService() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// The description of the Windows IoT Device Service. + public partial interface IDeviceService : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource + { + /// Windows IoT Device Service OEM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service OEM AAD domain", + SerializedName = @"adminDomainName", + PossibleTypes = new [] { typeof(string) })] + string AdminDomainName { get; set; } + /// Windows IoT Device Service ODM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service ODM AAD domain", + SerializedName = @"billingDomainName", + PossibleTypes = new [] { typeof(string) })] + string BillingDomainName { get; set; } + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; set; } + /// Windows IoT Device Service notes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service notes.", + SerializedName = @"notes", + PossibleTypes = new [] { typeof(string) })] + string Note { get; set; } + /// Windows IoT Device Service device allocation, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service device allocation,", + SerializedName = @"quantity", + PossibleTypes = new [] { typeof(long) })] + long? Quantity { get; set; } + /// Windows IoT Device Service start date, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Windows IoT Device Service start date,", + SerializedName = @"startDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartDate { get; } + + } + /// The description of the Windows IoT Device Service. + internal partial interface IDeviceServiceInternal : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal + { + /// Windows IoT Device Service OEM AAD domain + string AdminDomainName { get; set; } + /// Windows IoT Device Service ODM AAD domain + string BillingDomainName { get; set; } + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + string Etag { get; set; } + /// Windows IoT Device Service notes. + string Note { get; set; } + /// The properties of a Windows IoT Device Service. + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties Property { get; set; } + /// Windows IoT Device Service device allocation, + long? Quantity { get; set; } + /// Windows IoT Device Service start date, + global::System.DateTime? StartDate { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.json.cs new file mode 100644 index 000000000000..7e8df21feec0 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceService.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The description of the Windows IoT Device Service. + public partial class DeviceService + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceService(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new DeviceService(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.PowerShell.cs new file mode 100644 index 000000000000..b1c9bcf4ea6a --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.PowerShell.cs @@ -0,0 +1,134 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// Input values. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceCheckNameAvailabilityParametersTypeConverter))] + public partial class DeviceServiceCheckNameAvailabilityParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceServiceCheckNameAvailabilityParameters(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.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceServiceCheckNameAvailabilityParameters(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceServiceCheckNameAvailabilityParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParametersInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParametersInternal)this).Name, 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 DeviceServiceCheckNameAvailabilityParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParametersInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParametersInternal)this).Name, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input values. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceCheckNameAvailabilityParametersTypeConverter))] + public partial interface IDeviceServiceCheckNameAvailabilityParameters + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.TypeConverter.cs new file mode 100644 index 000000000000..124f817e6565 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.TypeConverter.cs @@ -0,0 +1,145 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceServiceCheckNameAvailabilityParametersTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceServiceCheckNameAvailabilityParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceServiceCheckNameAvailabilityParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceServiceCheckNameAvailabilityParameters.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/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.cs new file mode 100644 index 000000000000..c32c12e5d5b2 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.cs @@ -0,0 +1,48 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Input values. + public partial class DeviceServiceCheckNameAvailabilityParameters : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParametersInternal + { + + /// Backing field for property. + private string _name; + + /// The name of the Windows IoT Device Service to check. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// Creates an new instance. + /// + public DeviceServiceCheckNameAvailabilityParameters() + { + + } + } + /// Input values. + public partial interface IDeviceServiceCheckNameAvailabilityParameters : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The name of the Windows IoT Device Service to check. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service to check.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// Input values. + internal partial interface IDeviceServiceCheckNameAvailabilityParametersInternal + + { + /// The name of the Windows IoT Device Service to check. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.json.cs new file mode 100644 index 000000000000..8589383a2453 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceCheckNameAvailabilityParameters.json.cs @@ -0,0 +1,104 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Input values. + public partial class DeviceServiceCheckNameAvailabilityParameters + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceServiceCheckNameAvailabilityParameters(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new DeviceServiceCheckNameAvailabilityParameters(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.PowerShell.cs new file mode 100644 index 000000000000..d8e507b9e16e --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The JSON-serialized array of DeviceService objects with a next link. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceDescriptionListResultTypeConverter))] + public partial class DeviceServiceDescriptionListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceServiceDescriptionListResult(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.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceServiceDescriptionListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceServiceDescriptionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeviceServiceDescriptionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The JSON-serialized array of DeviceService objects with a next link. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceDescriptionListResultTypeConverter))] + public partial interface IDeviceServiceDescriptionListResult + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.TypeConverter.cs new file mode 100644 index 000000000000..2b385a00e3dd --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.TypeConverter.cs @@ -0,0 +1,143 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceServiceDescriptionListResultTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceServiceDescriptionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceServiceDescriptionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceServiceDescriptionListResult.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/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.cs new file mode 100644 index 000000000000..f9bf932fb314 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.cs @@ -0,0 +1,66 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The JSON-serialized array of DeviceService objects with a next link. + public partial class DeviceServiceDescriptionListResult : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The next link. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[] _value; + + /// The array of DeviceService objects. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DeviceServiceDescriptionListResult() + { + + } + } + /// The JSON-serialized array of DeviceService objects with a next link. + public partial interface IDeviceServiceDescriptionListResult : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The next link. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The next link.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// The array of DeviceService objects. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The array of DeviceService objects.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService) })] + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[] Value { get; set; } + + } + /// The JSON-serialized array of DeviceService objects with a next link. + internal partial interface IDeviceServiceDescriptionListResultInternal + + { + /// The next link. + string NextLink { get; set; } + /// The array of DeviceService objects. + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.json.cs new file mode 100644 index 000000000000..fb48339742d8 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceDescriptionListResult.json.cs @@ -0,0 +1,115 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The JSON-serialized array of DeviceService objects with a next link. + public partial class DeviceServiceDescriptionListResult + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceServiceDescriptionListResult(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Models.Api20190601.IDeviceService) (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.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.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceDescriptionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new DeviceServiceDescriptionListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.PowerShell.cs new file mode 100644 index 000000000000..ea30f0e458db --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// The properties indicating whether a given Windows IoT Device Service name is available. + /// + [System.ComponentModel.TypeConverter(typeof(DeviceServiceNameAvailabilityInfoTypeConverter))] + public partial class DeviceServiceNameAvailabilityInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceServiceNameAvailabilityInfo(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.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceServiceNameAvailabilityInfo(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceServiceNameAvailabilityInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Reason = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason?) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Reason, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Message, 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 DeviceServiceNameAvailabilityInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Reason = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason?) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Reason, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal)this).Message, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties indicating whether a given Windows IoT Device Service name is available. + [System.ComponentModel.TypeConverter(typeof(DeviceServiceNameAvailabilityInfoTypeConverter))] + public partial interface IDeviceServiceNameAvailabilityInfo + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.TypeConverter.cs new file mode 100644 index 000000000000..dd1d9268ba0f --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceServiceNameAvailabilityInfoTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceServiceNameAvailabilityInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceServiceNameAvailabilityInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceServiceNameAvailabilityInfo.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/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.cs new file mode 100644 index 000000000000..cd82c32aadfd --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.cs @@ -0,0 +1,88 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// The properties indicating whether a given Windows IoT Device Service name is available. + /// + public partial class DeviceServiceNameAvailabilityInfo : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal + { + + /// Backing field for property. + private string _message; + + /// The detailed reason message. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Internal Acessors for NameAvailable + bool? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal.NameAvailable { get => this._nameAvailable; set { {_nameAvailable = value;} } } + + /// Internal Acessors for Reason + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfoInternal.Reason { get => this._reason; set { {_reason = value;} } } + + /// Backing field for property. + private bool? _nameAvailable; + + /// The value which indicates whether the provided name is available. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public bool? NameAvailable { get => this._nameAvailable; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason? _reason; + + /// The reason for unavailability. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason? Reason { get => this._reason; } + + /// Creates an new instance. + public DeviceServiceNameAvailabilityInfo() + { + + } + } + /// The properties indicating whether a given Windows IoT Device Service name is available. + public partial interface IDeviceServiceNameAvailabilityInfo : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The detailed reason message. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The detailed reason message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The value which indicates whether the provided name is available. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The value which indicates whether the provided name is available.", + SerializedName = @"nameAvailable", + PossibleTypes = new [] { typeof(bool) })] + bool? NameAvailable { get; } + /// The reason for unavailability. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The reason for unavailability.", + SerializedName = @"reason", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason) })] + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason? Reason { get; } + + } + /// The properties indicating whether a given Windows IoT Device Service name is available. + internal partial interface IDeviceServiceNameAvailabilityInfoInternal + + { + /// The detailed reason message. + string Message { get; set; } + /// The value which indicates whether the provided name is available. + bool? NameAvailable { get; set; } + /// The reason for unavailability. + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason? Reason { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.json.cs new file mode 100644 index 000000000000..ef87dfa73069 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceNameAvailabilityInfo.json.cs @@ -0,0 +1,113 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// The properties indicating whether a given Windows IoT Device Service name is available. + /// + public partial class DeviceServiceNameAvailabilityInfo + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceServiceNameAvailabilityInfo(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_nameAvailable = If( json?.PropertyT("nameAvailable"), out var __jsonNameAvailable) ? (bool?)__jsonNameAvailable : NameAvailable;} + {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)Reason;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceNameAvailabilityInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new DeviceServiceNameAvailabilityInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._nameAvailable ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonBoolean((bool)this._nameAvailable) : null, "nameAvailable" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); + } + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.PowerShell.cs new file mode 100644 index 000000000000..a29cd996a4a9 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The properties of a Windows IoT Device Service. + [System.ComponentModel.TypeConverter(typeof(DeviceServicePropertiesTypeConverter))] + public partial class DeviceServiceProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceServiceProperties(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.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceServiceProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceServiceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Note = (string) content.GetValueForProperty("Note",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Note, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).StartDate = (global::System.DateTime?) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).StartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Quantity = (long?) content.GetValueForProperty("Quantity",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Quantity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).BillingDomainName = (string) content.GetValueForProperty("BillingDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).BillingDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).AdminDomainName = (string) content.GetValueForProperty("AdminDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).AdminDomainName, 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 DeviceServiceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Note = (string) content.GetValueForProperty("Note",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Note, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).StartDate = (global::System.DateTime?) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).StartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Quantity = (long?) content.GetValueForProperty("Quantity",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).Quantity, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).BillingDomainName = (string) content.GetValueForProperty("BillingDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).BillingDomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).AdminDomainName = (string) content.GetValueForProperty("AdminDomainName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal)this).AdminDomainName, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of a Windows IoT Device Service. + [System.ComponentModel.TypeConverter(typeof(DeviceServicePropertiesTypeConverter))] + public partial interface IDeviceServiceProperties + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.TypeConverter.cs new file mode 100644 index 000000000000..faf69dfbd759 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceServicePropertiesTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceServiceProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceServiceProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceServiceProperties.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/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.cs new file mode 100644 index 000000000000..5bf8fcc0fcca --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.cs @@ -0,0 +1,117 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The properties of a Windows IoT Device Service. + public partial class DeviceServiceProperties : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal + { + + /// Backing field for property. + private string _adminDomainName; + + /// Windows IoT Device Service OEM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string AdminDomainName { get => this._adminDomainName; set => this._adminDomainName = value; } + + /// Backing field for property. + private string _billingDomainName; + + /// Windows IoT Device Service ODM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string BillingDomainName { get => this._billingDomainName; set => this._billingDomainName = value; } + + /// Internal Acessors for StartDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServicePropertiesInternal.StartDate { get => this._startDate; set { {_startDate = value;} } } + + /// Backing field for property. + private string _note; + + /// Windows IoT Device Service notes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Note { get => this._note; set => this._note = value; } + + /// Backing field for property. + private long? _quantity; + + /// Windows IoT Device Service device allocation, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public long? Quantity { get => this._quantity; set => this._quantity = value; } + + /// Backing field for property. + private global::System.DateTime? _startDate; + + /// Windows IoT Device Service start date, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public global::System.DateTime? StartDate { get => this._startDate; } + + /// Creates an new instance. + public DeviceServiceProperties() + { + + } + } + /// The properties of a Windows IoT Device Service. + public partial interface IDeviceServiceProperties : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// Windows IoT Device Service OEM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service OEM AAD domain", + SerializedName = @"adminDomainName", + PossibleTypes = new [] { typeof(string) })] + string AdminDomainName { get; set; } + /// Windows IoT Device Service ODM AAD domain + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service ODM AAD domain", + SerializedName = @"billingDomainName", + PossibleTypes = new [] { typeof(string) })] + string BillingDomainName { get; set; } + /// Windows IoT Device Service notes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service notes.", + SerializedName = @"notes", + PossibleTypes = new [] { typeof(string) })] + string Note { get; set; } + /// Windows IoT Device Service device allocation, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service device allocation,", + SerializedName = @"quantity", + PossibleTypes = new [] { typeof(long) })] + long? Quantity { get; set; } + /// Windows IoT Device Service start date, + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Windows IoT Device Service start date,", + SerializedName = @"startDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartDate { get; } + + } + /// The properties of a Windows IoT Device Service. + internal partial interface IDeviceServicePropertiesInternal + + { + /// Windows IoT Device Service OEM AAD domain + string AdminDomainName { get; set; } + /// Windows IoT Device Service ODM AAD domain + string BillingDomainName { get; set; } + /// Windows IoT Device Service notes. + string Note { get; set; } + /// Windows IoT Device Service device allocation, + long? Quantity { get; set; } + /// Windows IoT Device Service start date, + global::System.DateTime? StartDate { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.json.cs new file mode 100644 index 000000000000..d2913300559a --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/DeviceServiceProperties.json.cs @@ -0,0 +1,112 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The properties of a Windows IoT Device Service. + public partial class DeviceServiceProperties + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceServiceProperties(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_note = If( json?.PropertyT("notes"), out var __jsonNotes) ? (string)__jsonNotes : (string)Note;} + {_startDate = If( json?.PropertyT("startDate"), out var __jsonStartDate) ? global::System.DateTime.TryParse((string)__jsonStartDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartDateValue) ? __jsonStartDateValue : StartDate : StartDate;} + {_quantity = If( json?.PropertyT("quantity"), out var __jsonQuantity) ? (long?)__jsonQuantity : Quantity;} + {_billingDomainName = If( json?.PropertyT("billingDomainName"), out var __jsonBillingDomainName) ? (string)__jsonBillingDomainName : (string)BillingDomainName;} + {_adminDomainName = If( json?.PropertyT("adminDomainName"), out var __jsonAdminDomainName) ? (string)__jsonAdminDomainName : (string)AdminDomainName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new DeviceServiceProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._note)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._note.ToString()) : null, "notes" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._startDate ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._startDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startDate" ,container.Add ); + } + AddIf( null != this._quantity ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNumber((long)this._quantity) : null, "quantity" ,container.Add ); + AddIf( null != (((object)this._billingDomainName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._billingDomainName.ToString()) : null, "billingDomainName" ,container.Add ); + AddIf( null != (((object)this._adminDomainName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._adminDomainName.ToString()) : null, "adminDomainName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..34044f6d29b0 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The details of the error. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial class ErrorDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorDetails(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.WindowsIotServices.Models.Api20190601.IErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Detail, 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 ErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal)this).Detail, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The details of the error. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailsTypeConverter))] + public partial interface IErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..bc3a520d5c05 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorDetailsTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorDetails.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/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.cs new file mode 100644 index 000000000000..657367d2c62b --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.cs @@ -0,0 +1,97 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The details of the error. + public partial class ErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetailsInternal + { + + /// Backing field for property. + private string _code; + + /// One of a server-defined set of error codes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _detail; + + /// A human-readable representation of the error's details. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Detail { get => this._detail; set => this._detail = value; } + + /// Backing field for property. + private string _message; + + /// A human-readable representation of the error. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public ErrorDetails() + { + + } + } + /// The details of the error. + public partial interface IErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// One of a server-defined set of error codes. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"One of a server-defined set of error codes.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A human-readable representation of the error's details. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A human-readable representation of the error's details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(string) })] + string Detail { get; set; } + /// A human-readable representation of the error. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A human-readable representation of the error.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The target of the particular error. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// The details of the error. + internal partial interface IErrorDetailsInternal + + { + /// One of a server-defined set of error codes. + string Code { get; set; } + /// A human-readable representation of the error's details. + string Detail { get; set; } + /// A human-readable representation of the error. + string Message { get; set; } + /// The target of the particular error. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.json.cs new file mode 100644 index 000000000000..2dd2b846c5a8 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ErrorDetails.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The details of the error. + public partial class ErrorDetails + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? (string)__jsonDetails : (string)Detail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new ErrorDetails(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + AddIf( null != (((object)this._detail)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._detail.ToString()) : null, "details" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.PowerShell.cs new file mode 100644 index 000000000000..410eb54530d4 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The operation supported by Azure Data Catalog Service. + [System.ComponentModel.TypeConverter(typeof(OperationDisplayInfoTypeConverter))] + public partial class OperationDisplayInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationDisplayInfo(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.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationDisplayInfo(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.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationDisplayInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Resource, 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 OperationDisplayInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)this).Resource, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The operation supported by Azure Data Catalog Service. + [System.ComponentModel.TypeConverter(typeof(OperationDisplayInfoTypeConverter))] + public partial interface IOperationDisplayInfo + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.TypeConverter.cs new file mode 100644 index 000000000000..d56ed8b307f2 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationDisplayInfoTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationDisplayInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationDisplayInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationDisplayInfo.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/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.cs new file mode 100644 index 000000000000..62f487a37071 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.cs @@ -0,0 +1,97 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The operation supported by Azure Data Catalog Service. + public partial class OperationDisplayInfo : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal + { + + /// Backing field for property. + private string _description; + + /// The description of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _operation; + + /// The action that users can perform, based on their permission level. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Operation { get => this._operation; set => this._operation = value; } + + /// Backing field for property. + private string _provider; + + /// Service provider: Azure Data Catalog Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Provider { get => this._provider; set => this._provider = value; } + + /// Backing field for property. + private string _resource; + + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Resource { get => this._resource; set => this._resource = value; } + + /// Creates an new instance. + public OperationDisplayInfo() + { + + } + } + /// The operation supported by Azure Data Catalog Service. + public partial interface IOperationDisplayInfo : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The description of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The description of the operation.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// The action that users can perform, based on their permission level. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The action that users can perform, based on their permission level.", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string Operation { get; set; } + /// Service provider: Azure Data Catalog Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Service provider: Azure Data Catalog Service.", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string Provider { get; set; } + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource on which the operation is performed.", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string Resource { get; set; } + + } + /// The operation supported by Azure Data Catalog Service. + internal partial interface IOperationDisplayInfoInternal + + { + /// The description of the operation. + string Description { get; set; } + /// The action that users can perform, based on their permission level. + string Operation { get; set; } + /// Service provider: Azure Data Catalog Service. + string Provider { get; set; } + /// Resource on which the operation is performed. + string Resource { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.json.cs new file mode 100644 index 000000000000..6983cda66258 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationDisplayInfo.json.cs @@ -0,0 +1,107 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The operation supported by Azure Data Catalog Service. + public partial class OperationDisplayInfo + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new OperationDisplayInfo(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal OperationDisplayInfo(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} + {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;} + {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;} + 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.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); + AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); + AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.PowerShell.cs new file mode 100644 index 000000000000..e0df03a4490f --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.PowerShell.cs @@ -0,0 +1,141 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The operation supported by Azure Data Catalog Service. + [System.ComponentModel.TypeConverter(typeof(OperationEntityTypeConverter))] + public partial class OperationEntity + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationEntity(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.WindowsIotServices.Models.Api20190601.IOperationEntity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationEntity(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.WindowsIotServices.Models.Api20190601.IOperationEntity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationEntity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayResource, 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 OperationEntity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal)this).DisplayResource, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The operation supported by Azure Data Catalog Service. + [System.ComponentModel.TypeConverter(typeof(OperationEntityTypeConverter))] + public partial interface IOperationEntity + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.TypeConverter.cs new file mode 100644 index 000000000000..cc573623ade3 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationEntityTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IOperationEntity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationEntity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationEntity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationEntity.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/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.cs new file mode 100644 index 000000000000..2500bcbce2f8 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The operation supported by Azure Data Catalog Service. + public partial class OperationEntity : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo _display; + + /// The operation supported by Azure Data Catalog Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfo()); set => this._display = value; } + + /// The description of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Description = value; } + + /// The action that users can perform, based on their permission level. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Operation = value; } + + /// Service provider: Azure Data Catalog Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Provider = value; } + + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inlined)] + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfoInternal)Display).Resource = value; } + + /// Internal Acessors for Display + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntityInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfo()); set { {_display = value;} } } + + /// Backing field for property. + private string _name; + + /// Operation name: {provider}/{resource}/{operation}. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Creates an new instance. + public OperationEntity() + { + + } + } + /// The operation supported by Azure Data Catalog Service. + public partial interface IOperationEntity : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The description of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The description of the operation.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string DisplayDescription { get; set; } + /// The action that users can perform, based on their permission level. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The action that users can perform, based on their permission level.", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string DisplayOperation { get; set; } + /// Service provider: Azure Data Catalog Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Service provider: Azure Data Catalog Service.", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string DisplayProvider { get; set; } + /// Resource on which the operation is performed. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource on which the operation is performed.", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string DisplayResource { get; set; } + /// Operation name: {provider}/{resource}/{operation}. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Operation name: {provider}/{resource}/{operation}.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + } + /// The operation supported by Azure Data Catalog Service. + internal partial interface IOperationEntityInternal + + { + /// The operation supported by Azure Data Catalog Service. + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationDisplayInfo Display { get; set; } + /// The description of the operation. + string DisplayDescription { get; set; } + /// The action that users can perform, based on their permission level. + string DisplayOperation { get; set; } + /// Service provider: Azure Data Catalog Service. + string DisplayProvider { get; set; } + /// Resource on which the operation is performed. + string DisplayResource { get; set; } + /// Operation name: {provider}/{resource}/{operation}. + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.json.cs new file mode 100644 index 000000000000..d1ddc50503ba --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationEntity.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The operation supported by Azure Data Catalog Service. + public partial class OperationEntity + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new OperationEntity(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal OperationEntity(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationDisplayInfo.FromJson(__jsonDisplay) : Display;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + 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.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.PowerShell.cs new file mode 100644 index 000000000000..be93839c395d --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + /// + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial class OperationListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationListResult(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.WindowsIotServices.Models.Api20190601.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationListResult(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.WindowsIotServices.Models.Api20190601.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationEntityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationEntityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial interface IOperationListResult + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.TypeConverter.cs new file mode 100644 index 000000000000..261af03360e7 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationListResultTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IOperationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationListResult.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/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.cs new file mode 100644 index 000000000000..005cae702041 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.cs @@ -0,0 +1,80 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + /// + public partial class OperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[] Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of operation list results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[] _value; + + /// + /// List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider. + /// + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[] Value { get => this._value; } + + /// Creates an new instance. + public OperationListResult() + { + + } + } + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + public partial interface IOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// URL to get the next set of operation list results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of operation list results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// + /// List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider. + /// + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity) })] + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[] Value { get; } + + } + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + internal partial interface IOperationListResultInternal + + { + /// URL to get the next set of operation list results if there are any. + string NextLink { get; set; } + /// + /// List of Windows IoT Device Service operations supported by the Microsoft.WindowsIoT resource provider. + /// + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.json.cs new file mode 100644 index 000000000000..1e1a051793eb --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/OperationListResult.json.cs @@ -0,0 +1,120 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Result of the request to list Windows IoT Device Service operations. It contains a list of operations and a URL link to + /// get the next set of results. + /// + public partial class OperationListResult + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Models.Api20190601.IOperationEntity) (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationEntity.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..62a233563738 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.PowerShell.cs @@ -0,0 +1,137 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + /// + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.TypeConverter.cs new file mode 100644 index 000000000000..819072f8f46a --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProxyResourceTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IProxyResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ProxyResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ProxyResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ProxyResource.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/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.cs new file mode 100644 index 000000000000..e72aeefddc65 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.cs @@ -0,0 +1,71 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + /// + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource(); + + /// Fully qualified resource Id for the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name; } + + /// The type of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource + { + + } + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + internal partial interface IProxyResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.json.cs new file mode 100644 index 000000000000..50387a34c121 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/ProxyResource.json.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + /// + public partial class ProxyResource + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource(json); + 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.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.PowerShell.cs new file mode 100644 index 000000000000..d7e152f803ad --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The core properties of ARM resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The core properties of ARM resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.TypeConverter.cs new file mode 100644 index 000000000000..a4ba8a72b7a3 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.IResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Resource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Resource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Resource.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/WindowsIotServices/generated/api/Models/Api20190601/Resource.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.cs new file mode 100644 index 000000000000..f37db301c929 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.cs @@ -0,0 +1,89 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The core properties of ARM resources + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// Fully qualified resource Id for the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _type; + + /// The type of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// The core properties of ARM resources + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// Fully qualified resource Id for the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Fully qualified resource Id for the resource", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the resource", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The type of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the resource.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The core properties of ARM resources + internal partial interface IResourceInternal + + { + /// Fully qualified resource Id for the resource + string Id { get; set; } + /// The name of the resource + string Name { get; set; } + /// The type of the resource. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.json.cs new file mode 100644 index 000000000000..5b9aa9381a89 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/Resource.json.cs @@ -0,0 +1,114 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The core properties of ARM resources + public partial class Resource + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new Resource(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal Resource(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.PowerShell.cs new file mode 100644 index 000000000000..70fe25ae5ed8 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.PowerShell.cs @@ -0,0 +1,139 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// The resource model definition for a ARM tracked top level resource + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial class TrackedResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrackedResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrackedResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TrackedResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TrackedResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)this).Type, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + } + /// The resource model definition for a ARM tracked top level resource + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial interface ITrackedResource + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.TypeConverter.cs new file mode 100644 index 000000000000..d1c511afb317 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TrackedResourceTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.ITrackedResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TrackedResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TrackedResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TrackedResource.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/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.cs new file mode 100644 index 000000000000..2affadd05be3 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.cs @@ -0,0 +1,103 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The resource model definition for a ARM tracked top level resource + public partial class TrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource(); + + /// Fully qualified resource Id for the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id; } + + /// Backing field for property. + private string _location; + + /// The Azure Region where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTags()); set => this._tag = value; } + + /// The type of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public TrackedResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a ARM tracked top level resource + public partial interface ITrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResource + { + /// The Azure Region where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Region where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get; set; } + + } + /// The resource model definition for a ARM tracked top level resource + internal partial interface ITrackedResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IResourceInternal + { + /// The Azure Region where the resource lives + string Location { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.json.cs new file mode 100644 index 000000000000..daaf88880ce0 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResource.json.cs @@ -0,0 +1,105 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// The resource model definition for a ARM tracked top level resource + public partial class TrackedResource + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.PowerShell.cs new file mode 100644 index 000000000000..04f042f2da29 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.PowerShell.cs @@ -0,0 +1,135 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] + public partial class TrackedResourceTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrackedResourceTags(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.WindowsIotServices.Models.Api20190601.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrackedResourceTags(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.WindowsIotServices.Models.Api20190601.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TrackedResourceTags(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 TrackedResourceTags(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); + } + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] + public partial interface ITrackedResourceTags + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.TypeConverter.cs new file mode 100644 index 000000000000..77c892fa9f9c --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.TypeConverter.cs @@ -0,0 +1,142 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TrackedResourceTagsTypeConverter : 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 + /// parameter. + /// + /// 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.Api20190601.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TrackedResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TrackedResourceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TrackedResourceTags.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/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.cs new file mode 100644 index 000000000000..44286f80793e --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Resource tags. + public partial class TrackedResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTagsInternal + { + + /// Creates an new instance. + public TrackedResourceTags() + { + + } + } + /// Resource tags. + public partial interface ITrackedResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface ITrackedResourceTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.dictionary.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.dictionary.cs new file mode 100644 index 000000000000..ce9e3f075739 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.dictionary.cs @@ -0,0 +1,70 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + public partial class TrackedResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.TrackedResourceTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.json.cs b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.json.cs new file mode 100644 index 000000000000..218939cc1038 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/Api20190601/TrackedResourceTags.json.cs @@ -0,0 +1,102 @@ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Resource tags. + public partial class TrackedResourceTags + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + /// + internal TrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.PowerShell.cs b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.PowerShell.cs new file mode 100644 index 000000000000..83e2d48a1fef --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.PowerShell.cs @@ -0,0 +1,140 @@ +// 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.WindowsIotServices.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(WindowsIotServicesIdentityTypeConverter))] + public partial class WindowsIotServicesIdentity + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WindowsIotServicesIdentity(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.WindowsIotServices.Models.IWindowsIotServicesIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WindowsIotServicesIdentity(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.WindowsIotServices.Models.IWindowsIotServicesIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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.WindowsIotServices.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WindowsIotServicesIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).DeviceName = (string) content.GetValueForProperty("DeviceName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).DeviceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).Id, 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 WindowsIotServicesIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).DeviceName = (string) content.GetValueForProperty("DeviceName",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).DeviceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal)this).Id, global::System.Convert.ToString); + AfterDeserializePSObject(content); + } + } + [System.ComponentModel.TypeConverter(typeof(WindowsIotServicesIdentityTypeConverter))] + public partial interface IWindowsIotServicesIdentity + + { + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.TypeConverter.cs b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.TypeConverter.cs new file mode 100644 index 000000000000..b2d4ee04fbe1 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.TypeConverter.cs @@ -0,0 +1,157 @@ +// 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.WindowsIotServices.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WindowsIotServicesIdentityTypeConverter : 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 + /// parameter. + /// + /// 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(); + // we allow string conversion too. + if (type == typeof(global::System.String)) + { + return true; + } + 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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// 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.WindowsIotServices.Models.IWindowsIotServicesIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + // support direct string to id type conversion. + if (type == typeof(global::System.String)) + { + return new WindowsIotServicesIdentity { Id = sourceValue }; + } + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WindowsIotServicesIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WindowsIotServicesIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WindowsIotServicesIdentity.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/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.cs b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.cs new file mode 100644 index 000000000000..2ce4da85b499 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.cs @@ -0,0 +1,99 @@ +// 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.WindowsIotServices.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + public partial class WindowsIotServicesIdentity : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentityInternal + { + + /// Backing field for property. + private string _deviceName; + + /// The name of the Windows IoT Device Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string DeviceName { get => this._deviceName; set => this._deviceName = value; } + + /// Backing field for property. + private string _id; + + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription identifier. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.PropertyOrigin.Owned)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Creates an new instance. + public WindowsIotServicesIdentity() + { + + } + } + public partial interface IWindowsIotServicesIdentity : + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable + { + /// The name of the Windows IoT Device Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service.", + SerializedName = @"deviceName", + PossibleTypes = new [] { typeof(string) })] + string DeviceName { get; set; } + /// Resource identity path + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource identity path", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// The name of the resource group that contains the Windows IoT Device Service. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; set; } + /// The subscription identifier. + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + string SubscriptionId { get; set; } + + } + internal partial interface IWindowsIotServicesIdentityInternal + + { + /// The name of the Windows IoT Device Service. + string DeviceName { get; set; } + /// Resource identity path + string Id { get; set; } + /// The name of the resource group that contains the Windows IoT Device Service. + string ResourceGroupName { get; set; } + /// The subscription identifier. + string SubscriptionId { get; set; } + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.json.cs b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.json.cs new file mode 100644 index 000000000000..e4a1a592f946 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Models/WindowsIotServicesIdentity.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + public partial class WindowsIotServicesIdentity + { + + /// + /// 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.WindowsIotServices.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json erialization 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.WindowsIotServices.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.WindowsIotServices.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.WindowsIotServices.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new WindowsIotServicesIdentity(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); + AddIf( null != (((object)this._deviceName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._deviceName.ToString()) : null, "deviceName" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject instance to deserialize from. + internal WindowsIotServicesIdentity(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} + {_deviceName = If( json?.PropertyT("deviceName"), out var __jsonDeviceName) ? (string)__jsonDeviceName : (string)DeviceName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.Completer.cs b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.Completer.cs new file mode 100644 index 000000000000..c72dca6420d8 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support +{ + + /// The reason for unavailability. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReasonTypeConverter))] + public partial struct ServiceNameUnavailabilityReason : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Invalid".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("Invalid", "Invalid", global::System.Management.Automation.CompletionResultType.ParameterValue, "Invalid"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AlreadyExists".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("AlreadyExists", "AlreadyExists", global::System.Management.Automation.CompletionResultType.ParameterValue, "AlreadyExists"); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.TypeConverter.cs b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.TypeConverter.cs new file mode 100644 index 000000000000..edbc2b5ccadc --- /dev/null +++ b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support +{ + + /// The reason for unavailability. + public partial class ServiceNameUnavailabilityReasonTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the + /// parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the + /// parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ServiceNameUnavailabilityReason.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.cs b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.cs new file mode 100644 index 000000000000..2cb7eb3eb709 --- /dev/null +++ b/src/WindowsIotServices/generated/api/Support/ServiceNameUnavailabilityReason.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support +{ + + /// The reason for unavailability. + public partial struct ServiceNameUnavailabilityReason : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason AlreadyExists = @"AlreadyExists"; + + public static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason Invalid = @"Invalid"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to ServiceNameUnavailabilityReason + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ServiceNameUnavailabilityReason(System.Convert.ToString(value)); + } + + /// Compares values of enum type ServiceNameUnavailabilityReason + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type ServiceNameUnavailabilityReason (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ServiceNameUnavailabilityReason && Equals((ServiceNameUnavailabilityReason)obj); + } + + /// Returns hashCode for enum ServiceNameUnavailabilityReason + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// + /// Creates an instance of the + /// + /// the value to create an instance for. + private ServiceNameUnavailabilityReason(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ServiceNameUnavailabilityReason + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ServiceNameUnavailabilityReason + /// the value to convert to an instance of . + + public static implicit operator ServiceNameUnavailabilityReason(string value) + { + return new ServiceNameUnavailabilityReason(value); + } + + /// Implicit operator to convert ServiceNameUnavailabilityReason to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e) + { + return e._value; + } + + /// Overriding != operator for enum ServiceNameUnavailabilityReason + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e1, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ServiceNameUnavailabilityReason + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e1, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support.ServiceNameUnavailabilityReason e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/api/WindowsIotServices.cs b/src/WindowsIotServices/generated/api/WindowsIotServices.cs new file mode 100644 index 000000000000..fc9f060d4dae --- /dev/null +++ b/src/WindowsIotServices/generated/api/WindowsIotServices.cs @@ -0,0 +1,1373 @@ +// 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.WindowsIotServices +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Low-level API implementation for the WindowsIotServices service. + /// Use this API to manage the Windows IoT device services in your Azure subscription. + /// + public partial class WindowsIotServices + { + + /// Lists all of the available Windows IoT Services REST API operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.WindowsIoT/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the available Windows IoT Services REST API operations. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.WindowsIoT/operations$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.WindowsIoT/operations'"); + } + + // replace URI parameters with values from identity + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/providers/Microsoft.WindowsIoT/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + + } + } + + /// Check if a Windows IoT Device Service name is available. + /// The subscription identifier. + /// Set the name parameter in the DeviceServiceCheckNameAvailabilityParameters structure to the name of + /// the Windows IoT Device Service to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesCheckDeviceServiceNameAvailability(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesCheckDeviceServiceNameAvailability_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Check if a Windows IoT Device Service name is available. + /// + /// Set the name parameter in the DeviceServiceCheckNameAvailabilityParameters structure to the name of + /// the Windows IoT Device Service to check. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesCheckDeviceServiceNameAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesCheckDeviceServiceNameAvailability_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesCheckDeviceServiceNameAvailability_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceNameAvailabilityInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The subscription identifier. + /// Set the name parameter in the DeviceServiceCheckNameAvailabilityParameters structure to the name of + /// the Windows IoT Device Service to check. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesCheckDeviceServiceNameAvailability_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceServiceCheckNameAvailabilityParameters body, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the + /// Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body + /// to update the Windows IoT Device Service. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. + /// Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesCreateOrUpdate(string subscriptionId, string resourceGroupName, string deviceName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + global::System.Uri.EscapeDataString(deviceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// + /// Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the + /// Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body + /// to update the Windows IoT Device Service. + /// + /// + /// ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. + /// Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.WindowsIoT/DeviceServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var deviceName = _match.Groups["deviceName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + deviceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesCreateOrUpdate_Call(request,onOk,onCreated,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 201 (Created). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Created: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. + /// Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string deviceName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(deviceName),deviceName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete a Windows IoT Device Service. + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesDelete(string subscriptionId, string resourceGroupName, string deviceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + global::System.Uri.EscapeDataString(deviceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesDelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Delete a Windows IoT Device Service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.WindowsIoT/DeviceServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var deviceName = _match.Groups["deviceName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + deviceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesDelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesDelete_Validate(string subscriptionId, string resourceGroupName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(deviceName),deviceName); + } + } + + /// Get the non-security related metadata of a Windows IoT Device Service. + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesGet(string subscriptionId, string resourceGroupName, string deviceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + global::System.Uri.EscapeDataString(deviceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get the non-security related metadata of a Windows IoT Device Service. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.WindowsIoT/DeviceServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var deviceName = _match.Groups["deviceName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + deviceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesGet_Validate(string subscriptionId, string resourceGroupName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(deviceName),deviceName); + } + } + + /// Get all the IoT hubs in a subscription. + /// The subscription identifier. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.WindowsIoT/deviceServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get all the IoT hubs in a resource group. + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.WindowsIoT/DeviceServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get all the IoT hubs in a resource group. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.WindowsIoT/DeviceServices$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.WindowsIoT/DeviceServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceDescriptionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + } + } + + /// Get all the IoT hubs in a subscription. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.WindowsIoT/deviceServices$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/providers/Microsoft.WindowsIoT/deviceServices" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceServiceDescriptionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription identifier. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesList_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// + /// Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows + /// IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update + /// the Windows IoT Device Service. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device + /// Service. Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesUpdate(string subscriptionId, string resourceGroupName, string deviceName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + global::System.Uri.EscapeDataString(deviceName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows + /// IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update + /// the Windows IoT Device Service. + /// + /// + /// ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device + /// Service. Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ServicesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + var apiVersion = @"2019-06-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.WindowsIoT/DeviceServices/(?[^/]+)$").Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var deviceName = _match.Groups["deviceName"].Value; + // construct URL + var _url = new global::System.Uri(global::System.Text.RegularExpressions.Regex.Replace( + "https://management.azure.com/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.WindowsIoT/DeviceServices/" + + deviceName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2")); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.URLCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.RequestCreated, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.HeaderParametersAdded, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BodyContentSet, _url); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ServicesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The subscription identifier. + /// The name of the resource group that contains the Windows IoT Device Service. + /// The name of the Windows IoT Device Service. + /// ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device + /// Service. Required to update an existing Windows IoT Device Service. + /// The Windows IoT Device Service metadata and security metadata. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ServicesUpdate_Validate(string subscriptionId, string resourceGroupName, string deviceName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService body, Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(deviceName),deviceName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_Get.cs b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_Get.cs new file mode 100644 index 000000000000..46f35107b42a --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_Get.cs @@ -0,0 +1,398 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Get the non-security related metadata of a Windows IoT Device Service. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWindowsIotServicesDevice_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Get the non-security related metadata of a Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class GetAzWindowsIotServicesDevice_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service.", + SerializedName = @"deviceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group that contains the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzWindowsIotServicesDevice_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_GetViaIdentity.cs b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_GetViaIdentity.cs new file mode 100644 index 000000000000..32cbc26c5449 --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_GetViaIdentity.cs @@ -0,0 +1,377 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Get the non-security related metadata of a Windows IoT Device Service. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWindowsIotServicesDevice_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Get the non-security related metadata of a Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class GetAzWindowsIotServicesDevice_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzWindowsIotServicesDevice_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ServicesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DeviceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DeviceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ServicesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DeviceName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List.cs b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List.cs new file mode 100644 index 000000000000..86de6f9f1cd4 --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List.cs @@ -0,0 +1,395 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Get all the IoT hubs in a resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWindowsIotServicesDevice_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Get all the IoT hubs in a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class GetAzWindowsIotServicesDevice_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group that contains the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzWindowsIotServicesDevice_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesListByResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List1.cs b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List1.cs new file mode 100644 index 000000000000..5bff17cf7bce --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesDevice_List1.cs @@ -0,0 +1,381 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Get all the IoT hubs in a subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWindowsIotServicesDevice_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Get all the IoT hubs in a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class GetAzWindowsIotServicesDevice_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzWindowsIotServicesDevice_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesList(SubscriptionId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesOperation_List.cs b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesOperation_List.cs new file mode 100644 index 000000000000..92bc02ba728f --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/GetAzWindowsIotServicesOperation_List.cs @@ -0,0 +1,361 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Lists all of the available Windows IoT Services REST API operations. + /// + /// [OpenAPI] List=>GET:"/providers/Microsoft.WindowsIoT/operations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWindowsIotServicesOperation_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Lists all of the available Windows IoT Services REST API operations.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class GetAzWindowsIotServicesOperation_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzWindowsIotServicesOperation_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList(onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + if (result.NextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.OperationsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/NewAzWindowsIotServicesDevice_CreateExpanded.cs b/src/WindowsIotServices/generated/cmdlets/NewAzWindowsIotServicesDevice_CreateExpanded.cs new file mode 100644 index 000000000000..9356c05c48cb --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/NewAzWindowsIotServicesDevice_CreateExpanded.cs @@ -0,0 +1,542 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the + /// Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body + /// to update the Windows IoT Device Service. + /// + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWindowsIotServicesDevice_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class NewAzWindowsIotServicesDevice_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Windows IoT Device Service OEM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service OEM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service OEM AAD domain", + SerializedName = @"adminDomainName", + PossibleTypes = new [] { typeof(string) })] + public string AdminDomainName { get => DeviceServiceBody.AdminDomainName ?? null; set => DeviceServiceBody.AdminDomainName = value; } + + /// Windows IoT Device Service ODM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service ODM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service ODM AAD domain", + SerializedName = @"billingDomainName", + PossibleTypes = new [] { typeof(string) })] + public string BillingDomainName { get => DeviceServiceBody.BillingDomainName ?? null; set => DeviceServiceBody.BillingDomainName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService _deviceServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService(); + + /// The description of the Windows IoT Device Service. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService DeviceServiceBody { get => this._deviceServiceBody; set => this._deviceServiceBody = value; } + + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => DeviceServiceBody.Etag ?? null; set => DeviceServiceBody.Etag = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update + /// an existing Windows IoT Device Service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The Azure Region where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Azure Region where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Region where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => DeviceServiceBody.Location ?? null; set => DeviceServiceBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service.", + SerializedName = @"deviceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Windows IoT Device Service notes. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service notes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service notes.", + SerializedName = @"notes", + PossibleTypes = new [] { typeof(string) })] + public string Note { get => DeviceServiceBody.Note ?? null; set => DeviceServiceBody.Note = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Windows IoT Device Service device allocation, + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service device allocation,")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service device allocation,", + SerializedName = @"quantity", + PossibleTypes = new [] { typeof(long) })] + public long Quantity { get => DeviceServiceBody.Quantity ?? default(long); set => DeviceServiceBody.Quantity = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group that contains the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get => DeviceServiceBody.Tag ?? null /* object */; set => DeviceServiceBody.Tag = value; } + + /// + /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onCreated method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzWindowsIotServicesDevice_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ServicesCreateOrUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, DeviceServiceBody, onOk, onCreated, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=DeviceServiceBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// a delegate that is called when the remote service returns 201 (Created). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnCreated(responseMessage, response, ref _returnNow); + // if overrideOnCreated has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onCreated - response for 201 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_Delete.cs b/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_Delete.cs new file mode 100644 index 000000000000..aa5921ca61b4 --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_Delete.cs @@ -0,0 +1,398 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Delete a Windows IoT Device Service. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWindowsIotServicesDevice_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Delete a Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class RemoveAzWindowsIotServicesDevice_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service.", + SerializedName = @"deviceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group that contains the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ServicesDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesDelete(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzWindowsIotServicesDevice_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_DeleteViaIdentity.cs b/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_DeleteViaIdentity.cs new file mode 100644 index 000000000000..d3fadb10a0ee --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/RemoveAzWindowsIotServicesDevice_DeleteViaIdentity.cs @@ -0,0 +1,380 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// Delete a Windows IoT Device Service. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzWindowsIotServicesDevice_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Delete a Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class RemoveAzWindowsIotServicesDevice_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ServicesDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ServicesDeleteViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DeviceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DeviceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ServicesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DeviceName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzWindowsIotServicesDevice_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateExpanded.cs b/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateExpanded.cs new file mode 100644 index 000000000000..4c87b14410d7 --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateExpanded.cs @@ -0,0 +1,506 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows + /// IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update + /// the Windows IoT Device Service. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWindowsIotServicesDevice_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class UpdateAzWindowsIotServicesDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Windows IoT Device Service OEM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service OEM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service OEM AAD domain", + SerializedName = @"adminDomainName", + PossibleTypes = new [] { typeof(string) })] + public string AdminDomainName { get => DeviceServiceBody.AdminDomainName ?? null; set => DeviceServiceBody.AdminDomainName = value; } + + /// Windows IoT Device Service ODM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service ODM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service ODM AAD domain", + SerializedName = @"billingDomainName", + PossibleTypes = new [] { typeof(string) })] + public string BillingDomainName { get => DeviceServiceBody.BillingDomainName ?? null; set => DeviceServiceBody.BillingDomainName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService _deviceServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService(); + + /// The description of the Windows IoT Device Service. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService DeviceServiceBody { get => this._deviceServiceBody; set => this._deviceServiceBody = value; } + + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => DeviceServiceBody.Etag ?? null; set => DeviceServiceBody.Etag = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to + /// update an existing Windows IoT Device Service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The Azure Region where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Azure Region where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Region where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => DeviceServiceBody.Location ?? null; set => DeviceServiceBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Windows IoT Device Service.", + SerializedName = @"deviceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Windows IoT Device Service notes. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service notes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service notes.", + SerializedName = @"notes", + PossibleTypes = new [] { typeof(string) })] + public string Note { get => DeviceServiceBody.Note ?? null; set => DeviceServiceBody.Note = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Windows IoT Device Service device allocation, + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service device allocation,")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service device allocation,", + SerializedName = @"quantity", + PossibleTypes = new [] { typeof(long) })] + public long Quantity { get => DeviceServiceBody.Quantity ?? default(long); set => DeviceServiceBody.Quantity = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group that contains the Windows IoT Device Service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group that contains the Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group that contains the Windows IoT Device Service.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription identifier. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription identifier.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription identifier.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get => DeviceServiceBody.Tag ?? null /* object */; set => DeviceServiceBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ServicesUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ServicesUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, DeviceServiceBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=DeviceServiceBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzWindowsIotServicesDevice_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateViaIdentityExpanded.cs b/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..280fdbfa8166 --- /dev/null +++ b/src/WindowsIotServices/generated/cmdlets/UpdateAzWindowsIotServicesDevice_UpdateViaIdentityExpanded.cs @@ -0,0 +1,488 @@ +// 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.WindowsIotServices.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + /// + /// Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows + /// IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update + /// the Windows IoT Device Service. + /// + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices/{deviceName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWindowsIotServicesDevice_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService))] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Description(@"Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Generated] + public partial class UpdateAzWindowsIotServicesDevice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Windows IoT Device Service OEM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service OEM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service OEM AAD domain", + SerializedName = @"adminDomainName", + PossibleTypes = new [] { typeof(string) })] + public string AdminDomainName { get => DeviceServiceBody.AdminDomainName ?? null; set => DeviceServiceBody.AdminDomainName = value; } + + /// Windows IoT Device Service ODM AAD domain + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service ODM AAD domain")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service ODM AAD domain", + SerializedName = @"billingDomainName", + PossibleTypes = new [] { typeof(string) })] + public string BillingDomainName { get => DeviceServiceBody.BillingDomainName ?? null; set => DeviceServiceBody.BillingDomainName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.WindowsIotServices Client => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService _deviceServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.DeviceService(); + + /// The description of the Windows IoT Device Service. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService DeviceServiceBody { get => this._deviceServiceBody; set => this._deviceServiceBody = value; } + + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the + /// normal ETag convention. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + public string Etag { get => DeviceServiceBody.Etag ?? null; set => DeviceServiceBody.Etag = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to + /// update an existing Windows IoT Device Service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.")] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The Azure Region where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The Azure Region where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Region where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => DeviceServiceBody.Location ?? null; set => DeviceServiceBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Windows IoT Device Service notes. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service notes.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service notes.", + SerializedName = @"notes", + PossibleTypes = new [] { typeof(string) })] + public string Note { get => DeviceServiceBody.Note ?? null; set => DeviceServiceBody.Note = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Windows IoT Device Service device allocation, + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Windows IoT Device Service device allocation,")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Windows IoT Device Service device allocation,", + SerializedName = @"quantity", + PossibleTypes = new [] { typeof(long) })] + public long Quantity { get => DeviceServiceBody.Quantity ?? default(long); set => DeviceServiceBody.Quantity = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.ITrackedResourceTags Tag { get => DeviceServiceBody.Tag ?? null /* object */; set => DeviceServiceBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data, new[] { data.Message }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ServicesUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ServicesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, DeviceServiceBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DeviceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DeviceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ServicesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DeviceName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, DeviceServiceBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=DeviceServiceBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzWindowsIotServicesDevice_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=DeviceServiceBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/AsyncCommandRuntime.cs b/src/WindowsIotServices/generated/runtime/AsyncCommandRuntime.cs new file mode 100644 index 000000000000..b221b8d87b1f --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/AsyncCommandRuntime.cs @@ -0,0 +1,828 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + using System.Linq; + + internal interface IAsyncCommandRuntimeExtensions + { + Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep func); + System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs); + + T ExecuteSync(System.Func step); + } + + public class AsyncCommandRuntime : System.Management.Automation.ICommandRuntime2, IAsyncCommandRuntimeExtensions, System.IDisposable + { + private ICommandRuntime2 originalCommandRuntime; + private System.Threading.Thread originalThread; + public bool AllowInteractive { get; set; } = false; + + public CancellationToken cancellationToken; + SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); + ManualResetEventSlim readyToRun = new ManualResetEventSlim(false); + ManualResetEventSlim completed = new ManualResetEventSlim(false); + + System.Action runOnMainThread; + + private System.Management.Automation.PSCmdlet cmdlet; + + internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, CancellationToken cancellationToken) + { + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + this.cancellationToken = cancellationToken; + this.cmdlet = cmdlet; + cmdlet.CommandRuntime = this; + } + + public PSHost Host => this.originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => this.originalCommandRuntime.CurrentPSTransaction; + + private void CheckForInteractive() + { + // This is an interactive call -- if we are not on the original thread, this will only work if this was done at ACR creation time; + if (!AllowInteractive) + { + throw new System.Exception("AsyncCommandRuntime is not configured for interactive calls"); + } + } + private void WaitOurTurn() + { + // wait for our turn to play + semaphore?.Wait(cancellationToken); + + // ensure that completed is not set + completed.Reset(); + } + + private void WaitForCompletion() + { + // wait for the result (or cancellation!) + WaitHandle.WaitAny(new[] { cancellationToken.WaitHandle, completed?.WaitHandle }); + + // let go of the semaphore + semaphore?.Release(); + + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, hasSecurityImpact, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldContinue(query, caption, ref yesToAll, ref noToAll); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool yta = yesToAll; + bool nta = noToAll; + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldContinue(query, caption, ref yta, ref nta); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + yesToAll = yta; + noToAll = nta; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string target, string action) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(target, action); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(target, action); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason); + } + + CheckForInteractive(); + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + ShouldProcessReason reason = ShouldProcessReason.None; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.ShouldProcess(verboseDescription, verboseWarning, caption, out reason); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + shouldProcessReason = reason; + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.ThrowTerminatingError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.ThrowTerminatingError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public bool TransactionAvailable() + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return originalCommandRuntime.TransactionAvailable(); + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + bool result = false; + + // set the function to run + runOnMainThread = () => result = originalCommandRuntime.TransactionAvailable(); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // set the output variables + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteCommandDetail(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteCommandDetail(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteCommandDetail(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteDebug(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteDebug(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteDebug(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteError(ErrorRecord errorRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteError(errorRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteError(errorRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteInformation(informationRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteInformation(informationRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteObject(sendToPipeline, enumerateCollection); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteProgress(sourceId, progressRecord); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteProgress(sourceId, progressRecord); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteVerbose(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteVerbose(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteVerbose(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void WriteWarning(string text) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + originalCommandRuntime.WriteWarning(text); + return; + } + + // otherwise, queue up the request and wait for the main thread to do the right thing. + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + + // set the function to run + runOnMainThread = () => originalCommandRuntime.WriteWarning(text); + + // tell the main thread to go ahead + readyToRun.Set(); + + // wait for the result (or cancellation!) + WaitForCompletion(); + + // return + return; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Wait(System.Threading.Tasks.Task ProcessRecordAsyncTask, System.Threading.CancellationToken cancellationToken) + { + do + { + WaitHandle.WaitAny(new[] { readyToRun.WaitHandle, ((System.IAsyncResult)ProcessRecordAsyncTask).AsyncWaitHandle }); + if (readyToRun.IsSet) + { + // reset the request for the next time + readyToRun.Reset(); + + // run the delegate on this thread + runOnMainThread(); + + // tell the originator everything is complete + completed.Set(); + } + } + while (!ProcessRecordAsyncTask.IsCompleted); + if (ProcessRecordAsyncTask.IsFaulted) + { + // don't unwrap a Aggregate Exception -- we'll lose the stack trace of the actual exception. + // if( ProcessRecordAsyncTask.Exception is System.AggregateException aggregate ) { + // throw aggregate.InnerException; + // } + throw ProcessRecordAsyncTask.Exception; + } + } + public Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep Wrap(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep func) => func.Target.GetType().Name != "Closure" ? func : (p1, p2, p3) => ExecuteSync>(() => func(p1, p2, p3)); + public System.Collections.Generic.IEnumerable Wrap(System.Collections.Generic.IEnumerable funcs) => funcs?.Select(Wrap); + + public T ExecuteSync(System.Func step) + { + // if we are on the original thread, just call straight thru. + if (this.originalThread == System.Threading.Thread.CurrentThread) + { + return step(); + } + + T result = default(T); + try + { + // wait for our turn to talk to the main thread + WaitOurTurn(); + // set the function to run + runOnMainThread = () => { result = step(); }; + // tell the main thread to go ahead + readyToRun.Set(); + // wait for the result (or cancellation!) + WaitForCompletion(); + // return + return result; + } + catch (System.OperationCanceledException exception) + { + // maybe don't even worry? + throw exception; + } + } + + public void Dispose() + { + if (cmdlet != null) + { + cmdlet.CommandRuntime = this.originalCommandRuntime; + cmdlet = null; + } + + semaphore?.Dispose(); + semaphore = null; + readyToRun?.Dispose(); + readyToRun = null; + completed?.Dispose(); + completed = null; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/AsyncJob.cs b/src/WindowsIotServices/generated/runtime/AsyncJob.cs new file mode 100644 index 000000000000..8352e59ed1e0 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/AsyncJob.cs @@ -0,0 +1,270 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + using System.Management.Automation; + using System.Management.Automation.Host; + using System.Threading; + + using System.Threading.Tasks; + + public class LongRunningJobCancelledException : System.Exception + { + public LongRunningJobCancelledException(string message) : base(message) + { + + } + } + + public class AsyncJob : Job, System.Management.Automation.ICommandRuntime2 + { + const int MaxRecords = 1000; + + private string _statusMessage = string.Empty; + + public override string StatusMessage => _statusMessage; + + public override bool HasMoreData => Output.Count > 0 || Progress.Count > 0 || Error.Count > 0 || Warning.Count > 0 || Verbose.Count > 0 || Debug.Count > 0; + + public override string Location => "localhost"; + + public PSHost Host => originalCommandRuntime.Host; + + public PSTransactionContext CurrentPSTransaction => originalCommandRuntime.CurrentPSTransaction; + + public override void StopJob() + { + Cancel(); + } + + private readonly PSCmdlet cmdlet; + private readonly ICommandRuntime2 originalCommandRuntime; + private readonly System.Threading.Thread originalThread; + + private void CheckForInteractive() + { + // This is an interactive call -- We should never allow interactivity in AsnycJob cmdlets. + throw new System.Exception("Cmdlets in AsyncJob; interactive calls are not permitted."); + } + private bool IsJobDone => CancellationToken.IsCancellationRequested || this.JobStateInfo.State == JobState.Failed || this.JobStateInfo.State == JobState.Stopped || this.JobStateInfo.State == JobState.Stopping || this.JobStateInfo.State == JobState.Completed; + + private readonly System.Action Cancel; + private readonly CancellationToken CancellationToken; + + internal AsyncJob(PSCmdlet cmdlet, string line, string name, CancellationToken cancellationToken, System.Action cancelMethod) : base(line, name) + { + SetJobState(JobState.NotStarted); + // know how to cancel/check for cancelation + this.CancellationToken = cancellationToken; + this.Cancel = cancelMethod; + + // we might need these. + this.originalCommandRuntime = cmdlet.CommandRuntime as ICommandRuntime2; + this.originalThread = System.Threading.Thread.CurrentThread; + + // the instance of the cmdlet we're going to run + this.cmdlet = cmdlet; + + // set the command runtime to the AsyncJob + cmdlet.CommandRuntime = this; + } + + /// + /// Monitors the task (which should be ProcessRecordAsync) to control + /// the lifetime of the job itself + /// + /// + public void Monitor(Task task) + { + SetJobState(JobState.Running); + task.ContinueWith(antecedent => + { + if (antecedent.IsCanceled) + { + // if the task was canceled, we're just going to call it completed. + SetJobState(JobState.Completed); + } + else if (antecedent.IsFaulted) + { + foreach (var innerException in antecedent.Exception.Flatten().InnerExceptions) + { + WriteError(new System.Management.Automation.ErrorRecord(innerException, string.Empty, System.Management.Automation.ErrorCategory.NotSpecified, null)); + } + + // a fault indicates an actual failure + SetJobState(JobState.Failed); + } + else + { + // otherwiser it's a completed state. + SetJobState(JobState.Completed); + } + }, CancellationToken); + } + + private void CheckForCancellation() + { + if (IsJobDone) + { + throw new LongRunningJobCancelledException("Long running job is canceled or stopping, continuation of the cmdlet is not permitted."); + } + } + + public void WriteInformation(InformationRecord informationRecord) + { + CheckForCancellation(); + + this.Information.Add(informationRecord); + } + + public bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public void WriteDebug(string text) + { + _statusMessage = text; + CheckForCancellation(); + + if (Debug.IsOpen && Debug.Count < MaxRecords) + { + Debug.Add(new DebugRecord(text)); + } + } + + public void WriteError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + + public void WriteObject(object sendToPipeline) + { + CheckForCancellation(); + + if (Output.IsOpen) + { + Output.Add(new PSObject(sendToPipeline)); + } + } + + public void WriteObject(object sendToPipeline, bool enumerateCollection) + { + CheckForCancellation(); + + if (enumerateCollection && sendToPipeline is System.Collections.IEnumerable enumerable) + { + foreach (var item in enumerable) + { + WriteObject(item); + } + } + else + { + WriteObject(sendToPipeline); + } + } + + public void WriteProgress(ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteProgress(long sourceId, ProgressRecord progressRecord) + { + CheckForCancellation(); + + if (Progress.IsOpen && Progress.Count < MaxRecords) + { + Progress.Add(progressRecord); + } + } + + public void WriteVerbose(string text) + { + CheckForCancellation(); + + if (Verbose.IsOpen && Verbose.Count < MaxRecords) + { + Verbose.Add(new VerboseRecord(text)); + } + } + + public void WriteWarning(string text) + { + CheckForCancellation(); + + if (Warning.IsOpen && Warning.Count < MaxRecords) + { + Warning.Add(new WarningRecord(text)); + } + } + + public void WriteCommandDetail(string text) + { + WriteVerbose(text); + } + + public bool ShouldProcess(string target) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string target, string action) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, out ShouldProcessReason shouldProcessReason) + { + CheckForInteractive(); + shouldProcessReason = ShouldProcessReason.None; + return false; + } + + public bool ShouldContinue(string query, string caption) + { + CheckForInteractive(); + return false; + } + + public bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + CheckForInteractive(); + return false; + } + + public bool TransactionAvailable() + { + // interactivity required? + return false; + } + + public void ThrowTerminatingError(ErrorRecord errorRecord) + { + if (Error.IsOpen) + { + Error.Add(errorRecord); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/AsyncOperationResponse.cs b/src/WindowsIotServices/generated/runtime/AsyncOperationResponse.cs new file mode 100644 index 000000000000..21c8441bf8b3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/AsyncOperationResponse.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + [System.ComponentModel.TypeConverter(typeof(AsyncOperationResponseTypeConverter))] + public class AsyncOperationResponse + { + private string _target; + public string Target { get => _target; set => _target = value; } + public AsyncOperationResponse() + { + } + internal AsyncOperationResponse(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json) + { + // pull target + { Target = If(json?.PropertyT("target"), out var _v) ? (string)_v : (string)Target; } + } + public string ToJsonString() + { + return $"{{ \"target\" : \"{this.Target}\" }}"; + } + + public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject json ? new AsyncOperationResponse(json) : null; + } + + + /// + /// 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 AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(jsonText)); + + } + + public partial class AsyncOperationResponseTypeConverter : 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 + /// parameter. + /// + /// 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(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.WindowsIotServices.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.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 to the parameter using and + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static object ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(AsyncOperationResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AsyncOperationResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString()); ; + } + catch + { + // Unable to use JSON pattern + } + + if (typeof(System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as System.Management.Automation.PSObject).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return new AsyncOperationResponse { Target = (sourceValue as global::System.Collections.IDictionary).GetValueForProperty("target", "", global::System.Convert.ToString) }; + } + 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/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs new file mode 100644 index 000000000000..dadcc8630c26 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs @@ -0,0 +1,113 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "CmdletSurface")] + [DoNotExport] + public class ExportCmdletSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CmdletFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool IncludeGeneralParameters { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = GetScriptCmdlets(this, CmdletFolder) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + foreach (var profileGroup in profileGroups) + { + var variantGroups = profileGroup.Variants + .GroupBy(v => new { v.CmdletName }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), String.Empty, profileGroup.ProfileName)); + var sb = UseExpandedFormat ? ExpandedFormat(variantGroups) : CondensedFormat(variantGroups); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, $"CmdletSurface-{profileGroup.ProfileName}.md"), sb.ToString()); + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private StringBuilder ExpandedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + foreach (var variantGroup in variantGroups.OrderBy(vg => vg.CmdletName)) + { + sb.Append($"### {variantGroup.CmdletName}{Environment.NewLine}"); + var parameterGroups = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private StringBuilder CondensedFormat(IEnumerable variantGroups) + { + var sb = new StringBuilder(); + var condensedGroups = variantGroups + .GroupBy(vg => vg.CmdletNoun) + .Select(vgg => ( + CmdletNoun: vgg.Key, + CmdletVerbs: vgg.Select(vg => vg.CmdletVerb).OrderBy(cv => cv).ToArray(), + ParameterGroups: vgg.SelectMany(vg => vg.ParameterGroups).DistinctBy(p => p.ParameterName).ToArray(), + OutputTypes: vgg.SelectMany(vg => vg.OutputTypes).Select(ot => ot.Type).DistinctBy(t => t.Name).Select(t => t.ToSyntaxTypeName()).ToArray())) + .OrderBy(vg => vg.CmdletNoun); + foreach (var condensedGroup in condensedGroups) + { + sb.Append($"### {condensedGroup.CmdletNoun} [{String.Join(", ", condensedGroup.CmdletVerbs)}] `{String.Join(", ", condensedGroup.OutputTypes)}`{Environment.NewLine}"); + var parameterGroups = condensedGroup.ParameterGroups + .Where(pg => !pg.DontShow && (IncludeGeneralParameters || (pg.OrderCategory != ParameterCategory.Azure && pg.OrderCategory != ParameterCategory.Runtime))); + foreach (var parameterGroup in parameterGroups) + { + sb.Append($" - {parameterGroup.ParameterName} `{parameterGroup.ParameterType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs new file mode 100644 index 000000000000..fcb5ee8cf221 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ExampleStub")] + [DoNotExport] + public class ExportExampleStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + + var exampleText = String.Join(String.Empty, DefaultExampleHelpInfos.Select(ehi => ehi.ToHelpExampleOutput())); + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var cmdletFilePaths = GetScriptCmdlets(exportDirectory).Select(fi => Path.Combine(outputFolder, $"{fi.Name}.md")).ToArray(); + var currentExamplesFilePaths = Directory.GetFiles(outputFolder).ToArray(); + // Remove examples of non-existing cmdlets + var removedCmdletFilePaths = currentExamplesFilePaths.Except(cmdletFilePaths); + foreach (var removedCmdletFilePath in removedCmdletFilePaths) + { + File.Delete(removedCmdletFilePath); + } + + // Only create example stubs if they don't exist + foreach (var cmdletFilePath in cmdletFilePaths.Except(currentExamplesFilePaths)) + { + File.WriteAllText(cmdletFilePath, exampleText); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs new file mode 100644 index 000000000000..f9fb9cbd8b0b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -0,0 +1,99 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "FormatPs1xml")] + [DoNotExport] + public class ExportFormatPs1xml : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string FilePath { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support"; + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + + protected override void ProcessRecord() + { + try + { + var viewModels = GetFilteredViewParameters().Select(CreateViewModel).ToList(); + var ps1xml = new Configuration + { + ViewDefinitions = new ViewDefinitions + { + Views = viewModels + } + }; + File.WriteAllText(FilePath, ps1xml.ToXmlString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static IEnumerable GetFilteredViewParameters() + { + //https://stackoverflow.com/a/79738/294804 + //https://stackoverflow.com/a/949285/294804 + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass + && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace)) + && !t.GetCustomAttributes().Any()); + return types.Select(t => new ViewParameters(t, t.GetProperties() + .Select(p => new PropertyFormat(p)) + .Where(pf => !pf.Property.GetCustomAttributes().Any() + && (!IsAzure || pf.Property.Name != "Id") + && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) + .OrderByDescending(pf => pf.Index.HasValue) + .ThenBy(pf => pf.Index) + .ThenByDescending(pf => pf.Origin.HasValue) + .ThenBy(pf => pf.Origin))).Where(vp => vp.Properties.Any()); + } + + private static View CreateViewModel(ViewParameters viewParameters) + { + var entries = viewParameters.Properties.Select(pf => + (TableColumnHeader: new TableColumnHeader { Label = pf.Label, Width = pf.Width }, + TableColumnItem: new TableColumnItem { PropertyName = pf.Property.Name })).ToArray(); + + return new View + { + Name = viewParameters.Type.FullName, + ViewSelectedBy = new ViewSelectedBy + { + TypeName = viewParameters.Type.FullName + }, + TableControl = new TableControl + { + TableHeaders = new TableHeaders + { + TableColumnHeaders = entries.Select(e => e.TableColumnHeader).ToList() + }, + TableRowEntries = new TableRowEntries + { + TableRowEntry = new TableRowEntry + { + TableColumnItems = new TableColumnItems + { + TableItems = entries.Select(e => e.TableColumnItem).ToList() + } + } + } + } + }; + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs new file mode 100644 index 000000000000..1c537890c806 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.MarkdownRenderer; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "HelpMarkdown")] + [DoNotExport] + public class ExportHelpMarkdown : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSModuleInfo ModuleInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] FunctionInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSObject[] HelpInfo { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + protected override void ProcessRecord() + { + try + { + var helpInfos = HelpInfo.Select(hi => hi.ToPsHelpInfo()); + var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() + .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) + .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs new file mode 100644 index 000000000000..83ef90464f52 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ModelSurface")] + [DoNotExport] + public class ExportModelSurface : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public bool UseExpandedFormat { get; set; } + + private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models"; + private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Support"; + + protected override void ProcessRecord() + { + try + { + var types = Assembly.GetExecutingAssembly().GetExportedTypes() + .Where(t => t.IsClass && (t.Namespace.StartsWith(ModelNamespace) || t.Namespace.StartsWith(SupportNamespace))); + var typeInfos = types.Select(t => new ModelTypeInfo + { + Type = t, + TypeName = t.Name, + Properties = t.GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(p => !p.GetIndexParameters().Any()).OrderBy(p => p.Name).ToArray(), + NamespaceGroup = t.Namespace.Split('.').LastOrDefault().EmptyIfNull() + }).Where(mti => mti.Properties.Any()); + var sb = UseExpandedFormat ? ExpandedFormat(typeInfos) : CondensedFormat(typeInfos); + Directory.CreateDirectory(OutputFolder); + File.WriteAllText(Path.Combine(OutputFolder, "ModelSurface.md"), sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + + private static StringBuilder ExpandedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + foreach (var typeInfo in typeInfos.OrderBy(mti => mti.TypeName).ThenBy(mti => mti.NamespaceGroup)) + { + sb.Append($"### {typeInfo.TypeName} [{typeInfo.NamespaceGroup}]{Environment.NewLine}"); + foreach (var property in typeInfo.Properties) + { + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}`{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + private static StringBuilder CondensedFormat(IEnumerable typeInfos) + { + var sb = new StringBuilder(); + var typeGroups = typeInfos + .GroupBy(mti => mti.TypeName) + .Select(tig => ( + Types: tig.Select(mti => mti.Type).ToArray(), + TypeName: tig.Key, + Properties: tig.SelectMany(mti => mti.Properties).DistinctBy(p => p.Name).OrderBy(p => p.Name).ToArray(), + NamespaceGroups: tig.Select(mti => mti.NamespaceGroup).OrderBy(ng => ng).ToArray() + )) + .OrderBy(tg => tg.TypeName); + foreach (var typeGroup in typeGroups) + { + var aType = typeGroup.Types.Select(GetAssociativeType).FirstOrDefault(t => t != null); + var aText = aType != null ? $@" \<{aType.ToSyntaxTypeName()}\>" : String.Empty; + sb.Append($"### {typeGroup.TypeName}{aText} [{String.Join(", ", typeGroup.NamespaceGroups)}]{Environment.NewLine}"); + foreach (var property in typeGroup.Properties) + { + var propertyAType = GetAssociativeType(property.PropertyType); + var propertyAText = propertyAType != null ? $" <{propertyAType.ToSyntaxTypeName()}>" : String.Empty; + var enumNames = GetEnumFieldNames(property.PropertyType.Unwrap()); + var enumNamesText = enumNames.Any() ? $" **{{{String.Join(", ", enumNames)}}}**" : String.Empty; + sb.Append($" - {property.Name} `{property.PropertyType.ToSyntaxTypeName()}{propertyAText}`{enumNamesText}{Environment.NewLine}"); + } + sb.AppendLine(); + } + + return sb; + } + + //https://stackoverflow.com/a/4963190/294804 + private static Type GetAssociativeType(Type type) => + type.GetInterfaces().FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>))?.GetGenericArguments().First(); + + private static string[] GetEnumFieldNames(Type type) => + type.IsValueType && !type.IsPrimitive && type != typeof(decimal) && type != typeof(DateTime) + ? type.GetFields(BindingFlags.Public | BindingFlags.Static).Where(f => f.FieldType == type).Select(p => p.Name).ToArray() + : new string[] { }; + + private class ModelTypeInfo + { + public Type Type { get; set; } + public string TypeName { get; set; } + public PropertyInfo[] Properties { get; set; } + public string NamespaceGroup { get; set; } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs new file mode 100644 index 000000000000..ff6433294174 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -0,0 +1,159 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.MarkdownRenderer; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyTypeExtensions; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "ProxyCmdlet", DefaultParameterSetName = "Docs")] + [DoNotExport] + public class ExportProxyCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string[] ModulePath { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string InternalFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [AllowEmptyString] + public string ModuleDescription { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string DocsFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + [ValidateNotNullOrEmpty] + public string ExamplesFolder { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "Docs")] + public Guid ModuleGuid { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] + public SwitchParameter ExcludeDocs { get; set; } + + protected override void ProcessRecord() + { + try { + var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + var variantGroups = profileGroups.SelectMany(pg => pg.Variants + .GroupBy(v => new { v.CmdletName, v.IsInternal }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + .ToArray(); + + foreach (var variantGroup in variantGroups) + { + var parameterGroups = variantGroup.ParameterGroups.ToList(); + var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; + var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); + List examples = new List(); + foreach (var it in markdownInfo.Examples) + { + examples.Add(it); + } + variantGroup.HelpInfo.Examples = examples.ToArray(); + var sb = new StringBuilder(); + sb.Append(@" +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +"); + sb.Append($"{Environment.NewLine}"); + sb.Append(variantGroup.ToHelpCommentOutput()); + sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); + sb.Append(variantGroup.Aliases.ToAliasOutput()); + sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); + sb.Append(variantGroup.ToCmdletBindingOutput()); + sb.Append(variantGroup.ProfileName.ToProfileOutput()); + + sb.Append("param("); + sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) + { + var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; + foreach (var parameter in parameters) + { + sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + } + sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); + sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); + sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); + sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); + sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); + sb.Append(parameterGroup.ToDefaultInfoOutput()); + sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); + sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); + sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); + } + sb.Append($"){Environment.NewLine}{Environment.NewLine}"); + + sb.Append(variantGroup.ToBeginOutput()); + sb.Append(variantGroup.ToProcessOutput()); + sb.Append(variantGroup.ToEndOutput()); + + sb.Append($"}}{Environment.NewLine}"); + + Directory.CreateDirectory(variantGroup.OutputFolder); + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); + } + + if (!ExcludeDocs) + { + var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); + foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + { + var profileName = variantGroupsByProfile.Key; + var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; + var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + } + } + } catch (Exception ee) { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs new file mode 100644 index 000000000000..85969e036472 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -0,0 +1,125 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } + + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.WindowsIotServices.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: WindowsIotServices cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.WindowsIotServices.private.dll"}'"); + + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.WindowsIotServices.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule WindowsIotServices".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs new file mode 100644 index 000000000000..2c04011ad270 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -0,0 +1,137 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() + { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing +} +"); + File.WriteAllText(utilFile, sc.ToString()); + } + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine(@"$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath)" +); + sb.AppendLine($@"$TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@"$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName +"); + + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); + + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); + + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs new file mode 100644 index 000000000000..7446e0ffb03b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs @@ -0,0 +1,52 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "CommonParameter")] + [OutputType(typeof(Dictionary))] + [DoNotExport] + public class GetCommonParameter : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public PSCmdlet PSCmdlet { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public Dictionary PSBoundParameter { get; set; } + + protected override void ProcessRecord() + { + try + { + var variants = PSCmdlet.MyInvocation.MyCommand.ToVariants(); + var commonParameterNames = variants.ToParameterGroups() + .Where(pg => pg.OrderCategory == ParameterCategory.Azure || pg.OrderCategory == ParameterCategory.Runtime) + .Select(pg => pg.ParameterName); + if (variants.Any(v => v.SupportsShouldProcess)) + { + commonParameterNames = commonParameterNames.Append("Confirm").Append("WhatIf"); + } + if (variants.Any(v => v.SupportsPaging)) + { + commonParameterNames = commonParameterNames.Append("First").Append("Skip").Append("IncludeTotalCount"); + } + + var names = commonParameterNames.ToArray(); + var keys = PSBoundParameter.Keys.Where(k => names.Contains(k)); + WriteObject(keys.ToDictionary(key => key, key => PSBoundParameter[key]), true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs new file mode 100644 index 000000000000..2bc9b0c97077 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ModuleGuid")] + [DoNotExport] + public class GetModuleGuid : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } + + protected override void ProcessRecord() + { + try + { + WriteObject(ReadGuidFromPsd1(Psd1Path)); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs new file mode 100644 index 000000000000..74be2a1b8ec9 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpers; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + [Cmdlet(VerbsCommon.Get, "ScriptCmdlet")] + [OutputType(typeof(string[]))] + [DoNotExport] + public class GetScriptCmdlet : PSCmdlet + { + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ScriptFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeDoNotExport { get; set; } + + [Parameter] + public SwitchParameter AsAlias { get; set; } + + [Parameter] + public SwitchParameter AsFunctionInfo { get; set; } + + protected override void ProcessRecord() + { + try + { + var functionInfos = GetScriptCmdlets(this, ScriptFolder) + .Where(fi => IncludeDoNotExport || !fi.ScriptBlock.Attributes.OfType().Any()) + .ToArray(); + if (AsFunctionInfo) + { + WriteObject(functionInfos, true); + return; + } + var aliases = functionInfos.SelectMany(i => i.ScriptBlock.Attributes).ToAliasNames(); + var names = functionInfos.Select(fi => fi.Name).Distinct(); + var output = (AsAlias ? aliases : names).DefaultIfEmpty("''").ToArray(); + WriteObject(output, true); + } + catch (System.Exception ee) + { + System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/CollectionExtensions.cs b/src/WindowsIotServices/generated/runtime/BuildTime/CollectionExtensions.cs new file mode 100644 index 000000000000..aa6f654c811b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/CollectionExtensions.cs @@ -0,0 +1,20 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class CollectionExtensions + { + public static T[] NullIfEmpty(this T[] collection) => (collection?.Any() ?? false) ? collection : null; + public static IEnumerable EmptyIfNull(this IEnumerable collection) => collection ?? Enumerable.Empty(); + + // https://stackoverflow.com/a/4158364/294804 + public static IEnumerable DistinctBy(this IEnumerable collection, Func selector) => + collection.GroupBy(selector).Select(group => group.First()); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/WindowsIotServices/generated/runtime/BuildTime/MarkdownRenderer.cs new file mode 100644 index 000000000000..ed9b7c474ad3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -0,0 +1,121 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class MarkdownRenderer + { + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + { + Directory.CreateDirectory(docsFolder); + var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); + + foreach (var markdownInfo in markdownInfos) + { + var sb = new StringBuilder(); + sb.Append(markdownInfo.ToHelpMetadataOutput()); + sb.Append($"# {markdownInfo.CmdletName}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"## SYNOPSIS{Environment.NewLine}{markdownInfo.Synopsis.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## SYNTAX{Environment.NewLine}{Environment.NewLine}"); + var hasMultipleParameterSets = markdownInfo.SyntaxInfos.Length > 1; + foreach (var syntaxInfo in markdownInfo.SyntaxInfos) + { + sb.Append(syntaxInfo.ToHelpSyntaxOutput(hasMultipleParameterSets)); + } + + sb.Append($"## DESCRIPTION{Environment.NewLine}{markdownInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## EXAMPLES{Environment.NewLine}{Environment.NewLine}"); + foreach (var exampleInfo in markdownInfo.Examples) + { + sb.Append(exampleInfo.ToHelpExampleOutput()); + } + + sb.Append($"## PARAMETERS{Environment.NewLine}{Environment.NewLine}"); + foreach (var parameter in markdownInfo.Parameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + if (markdownInfo.SupportsShouldProcess) + { + foreach (var parameter in SupportsShouldProcessParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + if (markdownInfo.SupportsPaging) + { + foreach (var parameter in SupportsPagingParameters) + { + sb.Append(parameter.ToHelpParameterOutput()); + } + } + + sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## INPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var input in markdownInfo.Inputs) + { + sb.Append($"### {input}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## OUTPUTS{Environment.NewLine}{Environment.NewLine}"); + foreach (var output in markdownInfo.Outputs) + { + sb.Append($"### {output}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); + foreach (var alias in markdownInfo.Aliases) + { + sb.Append($"### {alias}{Environment.NewLine}{Environment.NewLine}"); + } + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + + sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); + foreach (var relatedLink in markdownInfo.RelatedLinks) + { + sb.Append($"{relatedLink}{Environment.NewLine}{Environment.NewLine}"); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); + } + + WriteModulePage(moduleHelpInfo, markdownInfos, docsFolder); + } + + private static void WriteModulePage(PsModuleHelpInfo moduleInfo, MarkdownHelpInfo[] markdownInfos, string docsFolder) + { + var sb = new StringBuilder(); + sb.Append(moduleInfo.ToModulePageMetadataOutput()); + sb.Append($"# {moduleInfo.Name} Module{Environment.NewLine}"); + sb.Append($"## Description{Environment.NewLine}{moduleInfo.Description.ToDescriptionFormat()}{Environment.NewLine}{Environment.NewLine}"); + + sb.Append($"## {moduleInfo.Name} Cmdlets{Environment.NewLine}"); + foreach (var markdownInfo in markdownInfos) + { + sb.Append(markdownInfo.ToModulePageCmdletOutput()); + } + + File.WriteAllText(Path.Combine(docsFolder, $"{moduleInfo.Name}.md"), sb.ToString()); + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsFormatTypes.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsFormatTypes.cs new file mode 100644 index 000000000000..872a2b5169df --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsFormatTypes.cs @@ -0,0 +1,138 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class ViewParameters + { + public Type Type { get; } + public IEnumerable Properties { get; } + + public ViewParameters(Type type, IEnumerable properties) + { + Type = type; + Properties = properties; + } + } + + internal class PropertyFormat + { + public PropertyInfo Property { get; } + public FormatTableAttribute FormatTable { get; } + + public int? Index { get; } + public string Label { get; } + public int? Width { get; } + public PropertyOrigin? Origin { get; } + + public PropertyFormat(PropertyInfo propertyInfo) + { + Property = propertyInfo; + FormatTable = Property.GetCustomAttributes().FirstOrDefault(); + var origin = Property.GetCustomAttributes().FirstOrDefault(); + + Index = FormatTable?.HasIndex ?? false ? (int?)FormatTable.Index : null; + Label = FormatTable?.Label ?? propertyInfo.Name; + Width = FormatTable?.HasWidth ?? false ? (int?)FormatTable.Width : null; + // If we have an index, we don't want to use Origin. + Origin = FormatTable?.HasIndex ?? false ? null : origin?.Origin; + } + } + + [Serializable] + [XmlRoot(nameof(Configuration))] + public class Configuration + { + [XmlElement("ViewDefinitions")] + public ViewDefinitions ViewDefinitions { get; set; } + } + + [Serializable] + public class ViewDefinitions + { + //https://stackoverflow.com/a/10518657/294804 + [XmlElement("View")] + public List Views { get; set; } + } + + [Serializable] + public class View + { + [XmlElement(nameof(Name))] + public string Name { get; set; } + [XmlElement(nameof(ViewSelectedBy))] + public ViewSelectedBy ViewSelectedBy { get; set; } + [XmlElement(nameof(TableControl))] + public TableControl TableControl { get; set; } + } + + [Serializable] + public class ViewSelectedBy + { + [XmlElement(nameof(TypeName))] + public string TypeName { get; set; } + } + + [Serializable] + public class TableControl + { + [XmlElement(nameof(TableHeaders))] + public TableHeaders TableHeaders { get; set; } + [XmlElement(nameof(TableRowEntries))] + public TableRowEntries TableRowEntries { get; set; } + } + + [Serializable] + public class TableHeaders + { + [XmlElement("TableColumnHeader")] + public List TableColumnHeaders { get; set; } + } + + [Serializable] + public class TableColumnHeader + { + [XmlElement(nameof(Label))] + public string Label { get; set; } + [XmlElement(nameof(Width))] + public int? Width { get; set; } + + //https://stackoverflow.com/a/4095225/294804 + public bool ShouldSerializeWidth() => Width.HasValue; + } + + [Serializable] + public class TableRowEntries + { + [XmlElement(nameof(TableRowEntry))] + public TableRowEntry TableRowEntry { get; set; } + } + + [Serializable] + public class TableRowEntry + { + [XmlElement(nameof(TableColumnItems))] + public TableColumnItems TableColumnItems { get; set; } + } + + [Serializable] + public class TableColumnItems + { + [XmlElement("TableColumnItem")] + public List TableItems { get; set; } + } + + [Serializable] + public class TableColumnItem + { + [XmlElement(nameof(PropertyName))] + public string PropertyName { get; set; } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs new file mode 100644 index 000000000000..535e41445441 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class HelpMetadataOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public HelpMetadataOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"--- +external help file:{(!String.IsNullOrEmpty(HelpInfo.ExternalHelpFilename) ? $" {HelpInfo.ExternalHelpFilename}" : String.Empty)} +Module Name: {HelpInfo.ModuleName} +online version: {HelpInfo.OnlineVersion} +schema: {HelpInfo.Schema.ToString(3)} +--- + +"; + } + + internal class HelpSyntaxOutput + { + public MarkdownSyntaxHelpInfo SyntaxInfo { get; } + public bool HasMultipleParameterSets { get; } + + public HelpSyntaxOutput(MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) + { + SyntaxInfo = syntaxInfo; + HasMultipleParameterSets = hasMultipleParameterSets; + } + + public override string ToString() + { + var psnText = HasMultipleParameterSets ? $"### {SyntaxInfo.ParameterSetName}{(SyntaxInfo.IsDefault ? " (Default)" : String.Empty)}{Environment.NewLine}" : String.Empty; + return $@"{psnText}``` +{SyntaxInfo.SyntaxText} +``` + +"; + } + } + + internal class HelpExampleOutput + { + public MarkdownExampleHelpInfo ExampleInfo { get; } + + public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) + { + ExampleInfo = exampleInfo; + } + + public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} +{ExampleCodeHeader} +{ExampleInfo.Code} +{ExampleCodeFooter} + +{ExampleInfo.Description.ToDescriptionFormat()} + +"; + } + + + internal class HelpParameterOutput + { + public MarkdownParameterHelpInfo ParameterInfo { get; } + + public HelpParameterOutput(MarkdownParameterHelpInfo parameterInfo) + { + ParameterInfo = parameterInfo; + } + + public override string ToString() + { + var pipelineInputTypes = new[] + { + ParameterInfo.AcceptsPipelineByValue ? "ByValue" : String.Empty, + ParameterInfo.AcceptsPipelineByPropertyName ? "ByPropertyName" : String.Empty + }.JoinIgnoreEmpty(", "); + var pipelineInput = ParameterInfo.AcceptsPipelineByValue || ParameterInfo.AcceptsPipelineByPropertyName + ? $@"{true} ({pipelineInputTypes})" + : false.ToString(); + + return $@"### -{ParameterInfo.Name} +{ParameterInfo.Description.ToDescriptionFormat()} + +```yaml +Type: {ParameterInfo.Type.FullName} +Parameter Sets: {(ParameterInfo.HasAllParameterSets ? "(All)" : ParameterInfo.ParameterSetNames.JoinIgnoreEmpty(", "))} +Aliases:{(ParameterInfo.Aliases.Any() ? $" {ParameterInfo.Aliases.JoinIgnoreEmpty(", ")}" : String.Empty)} + +Required: {ParameterInfo.IsRequired} +Position: {ParameterInfo.Position} +Default value: {ParameterInfo.DefaultValue} +Accept pipeline input: {pipelineInput} +Accept wildcard characters: {ParameterInfo.AcceptsWildcardCharacters} +``` + +"; + } + } + + internal class ModulePageMetadataOutput + { + public PsModuleHelpInfo ModuleInfo { get; } + + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) + { + ModuleInfo = moduleInfo; + } + + public override string ToString() => $@"--- +Module Name: {ModuleInfo.Name} +Module Guid: {ModuleInfo.Guid} +Download Help Link: {HelpLinkPrefix}{ModuleInfo.Name.ToLowerInvariant()} +Help Version: 1.0.0.0 +Locale: en-US +--- + +"; + } + + internal class ModulePageCmdletOutput + { + public MarkdownHelpInfo HelpInfo { get; } + + public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) + { + HelpInfo = helpInfo; + } + + public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) +{HelpInfo.Description.ToDescriptionFormat()} + +"; + } + + internal static class PsHelpOutputExtensions + { + public static string EscapeAngleBrackets(this string text) => text?.Replace("<", @"\<").Replace(">", @"\>"); + public static string ReplaceSentenceEndWithNewline(this string text) => text?.Replace(". ", $".{Environment.NewLine}").Replace(". ", $".{Environment.NewLine}"); + public static string ReplaceBrWithNewline(this string text) => text?.Replace("
", $"{Environment.NewLine}"); + public static string ToDescriptionFormat(this string text, bool escapeAngleBrackets = true) + { + var description = text?.ReplaceBrWithNewline(); + description = escapeAngleBrackets ? description?.EscapeAngleBrackets() : description; + return description?.ReplaceSentenceEndWithNewline().Trim(); + } + + public const string ExampleNameHeader = "### "; + public const string ExampleCodeHeader = "```powershell"; + public const string ExampleCodeFooter = "```"; + + public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); + + public static HelpSyntaxOutput ToHelpSyntaxOutput(this MarkdownSyntaxHelpInfo syntaxInfo, bool hasMultipleParameterSets) => new HelpSyntaxOutput(syntaxInfo, hasMultipleParameterSets); + + public static HelpExampleOutput ToHelpExampleOutput(this MarkdownExampleHelpInfo exampleInfo) => new HelpExampleOutput(exampleInfo); + + public static HelpParameterOutput ToHelpParameterOutput(this MarkdownParameterHelpInfo parameterInfo) => new HelpParameterOutput(parameterInfo); + + public static ModulePageMetadataOutput ToModulePageMetadataOutput(this PsModuleHelpInfo moduleInfo) => new ModulePageMetadataOutput(moduleInfo); + + public static ModulePageCmdletOutput ToModulePageCmdletOutput(this MarkdownHelpInfo helpInfo) => new ModulePageCmdletOutput(helpInfo); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs new file mode 100644 index 000000000000..647593373b58 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -0,0 +1,199 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class PsHelpInfo + { + public string CmdletName { get; } + public string ModuleName { get; } + public string Synopsis { get; } + public string Description { get; } + public string AlertText { get; } + public string Category { get; } + public PsHelpLinkInfo OnlineVersion { get; } + public PsHelpLinkInfo[] RelatedLinks { get; } + public bool? HasCommonParameters { get; } + public bool? HasWorkflowCommonParameters { get; } + + public PsHelpTypeInfo[] InputTypes { get; } + public PsHelpTypeInfo[] OutputTypes { get; } + public PsHelpExampleInfo[] Examples { get; set; } + public string[] Aliases { get; } + + public PsParameterHelpInfo[] Parameters { get; } + public PsHelpSyntaxInfo[] Syntax { get; } + + public object Component { get; } + public object Functionality { get; } + public object PsSnapIn { get; } + public object Role { get; } + public string NonTerminatingErrors { get; } + + public PsHelpInfo(PSObject helpObject = null) + { + helpObject = helpObject ?? new PSObject(); + CmdletName = helpObject.GetProperty("Name").NullIfEmpty() ?? helpObject.GetNestedProperty("details", "name"); + ModuleName = helpObject.GetProperty("ModuleName"); + Synopsis = helpObject.GetProperty("Synopsis"); + Description = helpObject.GetProperty("description").EmptyIfNull().ToDescriptionText().NullIfEmpty() ?? + helpObject.GetNestedProperty("details", "description").EmptyIfNull().ToDescriptionText(); + AlertText = helpObject.GetNestedProperty("alertSet", "alert").EmptyIfNull().ToDescriptionText(); + Category = helpObject.GetProperty("Category"); + HasCommonParameters = helpObject.GetProperty("CommonParameters").ToNullableBool(); + HasWorkflowCommonParameters = helpObject.GetProperty("WorkflowCommonParameters").ToNullableBool(); + + var links = helpObject.GetNestedProperty("relatedLinks", "navigationLink").EmptyIfNull().Select(nl => nl.ToLinkInfo()).ToArray(); + OnlineVersion = links.FirstOrDefault(l => l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length == 1); + RelatedLinks = links.Where(l => !l.Text?.ToLowerInvariant().StartsWith("online version:") ?? links.Length != 1).ToArray(); + + InputTypes = helpObject.GetNestedProperty("inputTypes", "inputType").EmptyIfNull().Select(it => it.ToTypeInfo()).ToArray(); + OutputTypes = helpObject.GetNestedProperty("returnValues", "returnValue").EmptyIfNull().Select(rv => rv.ToTypeInfo()).ToArray(); + Examples = helpObject.GetNestedProperty("examples", "example").EmptyIfNull().Select(e => e.ToExampleInfo()).ToArray(); + Aliases = helpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); + + Parameters = helpObject.GetNestedProperty("parameters", "parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + Syntax = helpObject.GetNestedProperty("syntax", "syntaxItem").EmptyIfNull().Select(si => si.ToSyntaxInfo()).ToArray(); + + Component = helpObject.GetProperty("Component"); + Functionality = helpObject.GetProperty("Functionality"); + PsSnapIn = helpObject.GetProperty("PSSnapIn"); + Role = helpObject.GetProperty("Role"); + NonTerminatingErrors = helpObject.GetProperty("nonTerminatingErrors"); + } + } + + internal class PsHelpTypeInfo + { + public string Name { get; } + public string Description { get; } + + public PsHelpTypeInfo(PSObject typeObject) + { + Name = typeObject.GetNestedProperty("type", "name").EmptyIfNull().Trim(); + Description = typeObject.GetProperty("description").EmptyIfNull().ToDescriptionText(); + } + } + + internal class PsHelpLinkInfo + { + public string Uri { get; } + public string Text { get; } + + public PsHelpLinkInfo(PSObject linkObject) + { + Uri = linkObject.GetProperty("uri"); + Text = linkObject.GetProperty("linkText"); + } + } + + internal class PsHelpSyntaxInfo + { + public string CmdletName { get; } + public PsParameterHelpInfo[] Parameters { get; } + + public PsHelpSyntaxInfo(PSObject syntaxObject) + { + CmdletName = syntaxObject.GetProperty("name"); + Parameters = syntaxObject.GetProperty("parameter").EmptyIfNull().Select(p => p.ToPsParameterHelpInfo()).ToArray(); + } + } + + internal class PsHelpExampleInfo + { + public string Title { get; } + public string Code { get; } + public string Remarks { get; } + + public PsHelpExampleInfo(PSObject exampleObject) + { + Title = exampleObject.GetProperty("title"); + Code = exampleObject.GetProperty("code"); + Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); + } + public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) + { + Title = markdownExample.Name; + Code = markdownExample.Code; + Remarks = markdownExample.Description; + } + + public static implicit operator PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) => new PsHelpExampleInfo(markdownExample); + } + + internal class PsParameterHelpInfo + { + public string DefaultValueAsString { get; } + + public string Name { get; } + public string TypeName { get; } + public string Description { get; } + public string SupportsPipelineInput { get; } + public string PositionText { get; } + public string[] ParameterSetNames { get; } + public string[] Aliases { get; } + + public bool? SupportsGlobbing { get; } + public bool? IsRequired { get; } + public bool? IsVariableLength { get; } + public bool? IsDynamic { get; } + + public PsParameterHelpInfo(PSObject parameterHelpObject = null) + { + parameterHelpObject = parameterHelpObject ?? new PSObject(); + DefaultValueAsString = parameterHelpObject.GetProperty("defaultValue"); + Name = parameterHelpObject.GetProperty("name"); + TypeName = parameterHelpObject.GetProperty("parameterValue").NullIfEmpty() ?? parameterHelpObject.GetNestedProperty("type", "name"); + Description = parameterHelpObject.GetProperty("Description").EmptyIfNull().ToDescriptionText(); + SupportsPipelineInput = parameterHelpObject.GetProperty("pipelineInput"); + PositionText = parameterHelpObject.GetProperty("position"); + ParameterSetNames = parameterHelpObject.GetProperty("parameterSetName").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + Aliases = parameterHelpObject.GetProperty("aliases").EmptyIfNull().Split(new[] { ", " }, StringSplitOptions.RemoveEmptyEntries); + + SupportsGlobbing = parameterHelpObject.GetProperty("globbing").ToNullableBool(); + IsRequired = parameterHelpObject.GetProperty("required").ToNullableBool(); + IsVariableLength = parameterHelpObject.GetProperty("variableLength").ToNullableBool(); + IsDynamic = parameterHelpObject.GetProperty("isDynamic").ToNullableBool(); + } + } + + internal class PsModuleHelpInfo + { + public string Name { get; } + public Guid Guid { get; } + public string Description { get; } + + public PsModuleHelpInfo(PSModuleInfo moduleInfo) + : this(moduleInfo?.Name ?? String.Empty, moduleInfo?.Guid ?? Guid.NewGuid(), moduleInfo?.Description ?? String.Empty) + { + } + + public PsModuleHelpInfo(string name, Guid guid, string description) + { + Name = name; + Guid = guid; + Description = description; + } + } + + internal static class HelpTypesExtensions + { + public static PsHelpInfo ToPsHelpInfo(this PSObject helpObject) => new PsHelpInfo(helpObject); + public static PsParameterHelpInfo ToPsParameterHelpInfo(this PSObject parameterHelpObject) => new PsParameterHelpInfo(parameterHelpObject); + + public static string ToDescriptionText(this IEnumerable descriptionObject) => descriptionObject != null + ? String.Join(Environment.NewLine, descriptionObject.Select(dl => dl.GetProperty("Text").EmptyIfNull())).NullIfWhiteSpace() + : null; + public static PsHelpTypeInfo ToTypeInfo(this PSObject typeObject) => new PsHelpTypeInfo(typeObject); + public static PsHelpExampleInfo ToExampleInfo(this PSObject exampleObject) => new PsHelpExampleInfo(exampleObject); + public static PsHelpLinkInfo ToLinkInfo(this PSObject linkObject) => new PsHelpLinkInfo(linkObject); + public static PsHelpSyntaxInfo ToSyntaxInfo(this PSObject syntaxObject) => new PsHelpSyntaxInfo(syntaxObject); + public static PsModuleHelpInfo ToModuleInfo(this PSModuleInfo moduleInfo) => new PsModuleHelpInfo(moduleInfo); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs new file mode 100644 index 000000000000..ca8bf2786152 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -0,0 +1,291 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.MarkdownTypesExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsHelpOutputExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class MarkdownHelpInfo + { + public string ExternalHelpFilename { get; } + public string ModuleName { get; } + public string OnlineVersion { get; } + public Version Schema { get; } + + public string CmdletName { get; } + public string[] Aliases { get; } + public string Synopsis { get; } + public string Description { get; } + + public MarkdownSyntaxHelpInfo[] SyntaxInfos { get; } + public MarkdownExampleHelpInfo[] Examples { get; } + public MarkdownParameterHelpInfo[] Parameters { get; } + + public string[] Inputs { get; } + public string[] Outputs { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + public string[] RelatedLinks { get; } + + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") + { + ExternalHelpFilename = externalHelpFilename; + ModuleName = variantGroup.ModuleName; + var helpInfo = variantGroup.HelpInfo; + var commentInfo = variantGroup.CommentInfo; + Schema = Version.Parse("2.0.0"); + + CmdletName = variantGroup.CmdletName; + Aliases = (variantGroup.Aliases.NullIfEmpty() ?? helpInfo.Aliases).Where(a => a != "None").ToArray(); + Synopsis = commentInfo.Synopsis; + Description = commentInfo.Description; + + SyntaxInfos = variantGroup.Variants + .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) + .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); + Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() + ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() + ?? DefaultExampleHelpInfos; + + Parameters = variantGroup.ParameterGroups + .Where(pg => !pg.DontShow) + .Select(pg => new MarkdownParameterHelpInfo( + variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) + .OrderBy(phi => phi.Name).ToArray(); + + Inputs = commentInfo.Inputs; + Outputs = commentInfo.Outputs; + + ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; + OnlineVersion = commentInfo.OnlineVersion; + RelatedLinks = commentInfo.RelatedLinks; + + SupportsShouldProcess = variantGroup.SupportsShouldProcess; + SupportsPaging = variantGroup.SupportsPaging; + } + + private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) + { + var filePath = Path.Combine(examplesFolder, $"{CmdletName}.md"); + if (!Directory.Exists(examplesFolder) || !File.Exists(filePath)) return null; + + var lines = File.ReadAllLines(filePath); + var nameIndices = lines.Select((l, i) => l.StartsWith(ExampleNameHeader) ? i : -1).Where(i => i != -1).ToArray(); + //https://codereview.stackexchange.com/a/187148/68772 + var indexCountGroups = nameIndices.Skip(1).Append(lines.Length).Zip(nameIndices, (next, current) => (NameIndex: current, LineCount: next - current)); + var exampleGroups = indexCountGroups.Select(icg => lines.Skip(icg.NameIndex).Take(icg.LineCount).ToArray()); + return exampleGroups.Select(eg => + { + var name = eg.First().Replace(ExampleNameHeader, String.Empty); + var codeStartIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var codeEndIndex = eg.Select((l, i) => l.StartsWith(ExampleCodeFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i != codeStartIndex); + var code = codeStartIndex.HasValue && codeEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; + var descriptionEndIndex = eg.Length - 1; + descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; + var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); + return new MarkdownExampleHelpInfo(name, code, description); + }).ToArray(); + } + } + + internal class MarkdownSyntaxHelpInfo + { + public Variant Variant { get; } + public bool IsDefault { get; } + public string ParameterSetName { get; } + public Parameter[] Parameters { get; } + public string SyntaxText { get; } + + public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, bool isDefault) + { + Variant = variant; + IsDefault = isDefault; + ParameterSetName = Variant.VariantName; + Parameters = Variant.Parameters + .Where(p => !p.DontShow).OrderByDescending(p => p.IsMandatory) + //https://stackoverflow.com/a/6461526/294804 + .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) + // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. + .ThenBy(p => parameterGroups.First(pg => pg.ParameterName == p.ParameterName).OrderCategory).ThenBy(p => p.ParameterName).ToArray(); + SyntaxText = CreateSyntaxFormat(); + } + + //https://github.com/PowerShell/platyPS/blob/a607a926bfffe1e1a1e53c19e0057eddd0c07611/src/Markdown.MAML/Renderer/Markdownv2Renderer.cs#L29-L32 + private const int SyntaxLineWidth = 110; + private string CreateSyntaxFormat() + { + var parameterStrings = Parameters.Select(p => p.ToPropertySyntaxOutput().ToString()); + if (Variant.SupportsShouldProcess) + { + parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); + } + if (Variant.SupportsPaging) + { + parameterStrings = parameterStrings.Append(" [-First ]").Append(" [-IncludeTotalCount]").Append(" [-Skip ]"); + } + parameterStrings = parameterStrings.Append(" []"); + + var lines = new List(20); + return parameterStrings.Aggregate(Variant.CmdletName, (current, ps) => + { + var combined = current + ps; + if (combined.Length <= SyntaxLineWidth) return combined; + + lines.Add(current); + return ps; + }, last => + { + lines.Add(last); + return String.Join(Environment.NewLine, lines); + }); + } + } + + internal class MarkdownExampleHelpInfo + { + public string Name { get; } + public string Code { get; } + public string Description { get; } + + public MarkdownExampleHelpInfo(string name, string code, string description) + { + Name = name; + Code = code; + Description = description; + } + } + + internal class MarkdownParameterHelpInfo + { + public string Name { get; set; } + public string Description { get; set; } + public Type Type { get; set; } + public string Position { get; set; } + public string DefaultValue { get; set; } + + public bool HasAllParameterSets { get; set; } + public string[] ParameterSetNames { get; set; } + public string[] Aliases { get; set; } + + public bool IsRequired { get; set; } + public bool IsDynamic { get; set; } + public bool AcceptsPipelineByValue { get; set; } + public bool AcceptsPipelineByPropertyName { get; set; } + public bool AcceptsWildcardCharacters { get; set; } + + // For use by common parameters that have no backing data in the objects themselves. + public MarkdownParameterHelpInfo() { } + + public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, ParameterGroup parameterGroup) + { + Name = parameterGroup.ParameterName; + Description = parameterGroup.Description.NullIfEmpty() + ?? parameterHelpInfos.Select(phi => phi.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + Type = parameterGroup.ParameterType; + Position = parameterGroup.FirstPosition?.ToString() + ?? parameterHelpInfos.Select(phi => phi.PositionText).FirstOrDefault(d => !String.IsNullOrEmpty(d)).ToUpperFirstCharacter().NullIfEmpty() + ?? "Named"; + // This no longer uses firstHelpInfo.DefaultValueAsString since it seems to be broken. For example, it has a value of 0 for Int32, but no default value was declared. + DefaultValue = parameterGroup.DefaultInfo?.Script ?? "None"; + + HasAllParameterSets = parameterGroup.HasAllVariants; + ParameterSetNames = (parameterGroup.Parameters.Select(p => p.VariantName).ToArray().NullIfEmpty() + ?? parameterHelpInfos.SelectMany(phi => phi.ParameterSetNames).Distinct()) + .OrderBy(psn => psn).ToArray(); + Aliases = parameterGroup.Aliases.NullIfEmpty() ?? parameterHelpInfos.SelectMany(phi => phi.Aliases).ToArray(); + + IsRequired = parameterHelpInfos.Select(phi => phi.IsRequired).FirstOrDefault(r => r == true) ?? parameterGroup.Parameters.Any(p => p.IsMandatory); + IsDynamic = parameterHelpInfos.Select(phi => phi.IsDynamic).FirstOrDefault(d => d == true) ?? false; + AcceptsPipelineByValue = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByValue")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipeline; + AcceptsPipelineByPropertyName = parameterHelpInfos.Select(phi => phi.SupportsPipelineInput?.Contains("ByPropertyName")).FirstOrDefault(bv => bv == true) ?? parameterGroup.ValueFromPipelineByPropertyName; + AcceptsWildcardCharacters = parameterGroup.SupportsWildcards; + } + } + + internal static class MarkdownTypesExtensions + { + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + + public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = + { + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + }; + + public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = + { + new MarkdownParameterHelpInfo + { + Name = "Confirm", + Description ="Prompts you for confirmation before running the cmdlet.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "cf" } + }, + new MarkdownParameterHelpInfo + { + Name = "WhatIf", + Description ="Shows what would happen if the cmdlet runs. The cmdlet is not run.", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new [] { "wi" } + } + }; + + public static MarkdownParameterHelpInfo[] SupportsPagingParameters = + { + new MarkdownParameterHelpInfo + { + Name = "First", + Description ="Gets only the first 'n' objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "IncludeTotalCount", + Description ="Reports the number of objects in the data set (an integer) followed by the objects. If the cmdlet cannot determine the total count, it returns \"Unknown total count\".", + Type = typeof(SwitchParameter), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + }, + new MarkdownParameterHelpInfo + { + Name = "Skip", + Description ="Ignores the first 'n' objects and then gets the remaining objects.", + Type = typeof(ulong), + Position = "Named", + DefaultValue = "None", + HasAllParameterSets = true, + ParameterSetNames = new [] { "(All)" }, + Aliases = new string[0] + } + }; + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs new file mode 100644 index 000000000000..bcb5c8d9d1af --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -0,0 +1,513 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Text; +using System.Text.RegularExpressions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class OutputTypeOutput + { + public PSTypeName[] OutputTypes { get; } + + public OutputTypeOutput(IEnumerable outputTypes) + { + OutputTypes = outputTypes.ToArray(); + } + + public override string ToString() => OutputTypes != null && OutputTypes.Any() ? $"[OutputType({OutputTypes.Select(ot => $"[{ot}]").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class CmdletBindingOutput + { + public VariantGroup VariantGroup { get; } + + public CmdletBindingOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() + { + var dpsText = VariantGroup.DefaultParameterSetName.IsValidDefaultParameterSetName() ? $"DefaultParameterSetName='{VariantGroup.DefaultParameterSetName}'" : String.Empty; + var sspText = VariantGroup.SupportsShouldProcess ? $"SupportsShouldProcess{ItemSeparator}ConfirmImpact='Medium'" : String.Empty; + var pbText = $"PositionalBinding={false.ToPsBool()}"; + var propertyText = new[] { dpsText, pbText, sspText }.JoinIgnoreEmpty(ItemSeparator); + return $"[CmdletBinding({propertyText})]{Environment.NewLine}"; + } + } + + internal class ParameterOutput + { + public Parameter Parameter { get; } + public bool HasMultipleVariantsInVariantGroup { get; } + public bool HasAllVariantsInParameterGroup { get; } + + public ParameterOutput(Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) + { + Parameter = parameter; + HasMultipleVariantsInVariantGroup = hasMultipleVariantsInVariantGroup; + HasAllVariantsInParameterGroup = hasAllVariantsInParameterGroup; + } + + public override string ToString() + { + var psnText = HasMultipleVariantsInVariantGroup && !HasAllVariantsInParameterGroup ? $"ParameterSetName='{Parameter.VariantName}'" : String.Empty; + var positionText = Parameter.Position != null ? $"Position={Parameter.Position}" : String.Empty; + var mandatoryText = Parameter.IsMandatory ? "Mandatory" : String.Empty; + var dontShowText = Parameter.DontShow ? "DontShow" : String.Empty; + var vfpText = Parameter.ValueFromPipeline ? "ValueFromPipeline" : String.Empty; + var vfpbpnText = Parameter.ValueFromPipelineByPropertyName ? "ValueFromPipelineByPropertyName" : String.Empty; + var propertyText = new[] { psnText, positionText, mandatoryText, dontShowText, vfpText, vfpbpnText }.JoinIgnoreEmpty(ItemSeparator); + return $"{Indent}[Parameter({propertyText})]{Environment.NewLine}"; + } + } + + internal class AliasOutput + { + public string[] Aliases { get; } + public bool IncludeIndent { get; } + + public AliasOutput(string[] aliases, bool includeIndent = false) + { + Aliases = aliases; + IncludeIndent = includeIndent; + } + + public override string ToString() => Aliases?.Any() ?? false ? $"{(IncludeIndent ? Indent : String.Empty)}[Alias({Aliases.Select(an => $"'{an}'").JoinIgnoreEmpty(ItemSeparator)})]{Environment.NewLine}" : String.Empty; + } + + internal class ValidateNotNullOutput + { + public bool HasValidateNotNull { get; } + + public ValidateNotNullOutput(bool hasValidateNotNull) + { + HasValidateNotNull = hasValidateNotNull; + } + + public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; + } + + internal class ArgumentCompleterOutput + { + public CompleterInfo CompleterInfo { get; } + + public ArgumentCompleterOutput(CompleterInfo completerInfo) + { + CompleterInfo = completerInfo; + } + + public override string ToString() => CompleterInfo != null + ? $"{Indent}[ArgumentCompleter({(CompleterInfo.IsTypeCompleter ? $"[{CompleterInfo.Type.Unwrap().ToPsType()}]" : $"{{{CompleterInfo.Script.ToPsSingleLine("; ")}}}")})]{Environment.NewLine}" + : String.Empty; + } + + internal class DefaultInfoOutput + { + public bool HasDefaultInfo { get; } + public DefaultInfo DefaultInfo { get; } + + public DefaultInfoOutput(ParameterGroup parameterGroup) + { + HasDefaultInfo = parameterGroup.HasDefaultInfo; + DefaultInfo = parameterGroup.DefaultInfo; + } + + public override string ToString() + { + var nameText = !String.IsNullOrEmpty(DefaultInfo?.Name) ? $"Name='{DefaultInfo?.Name}'" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(DefaultInfo?.Description) ? $"Description='{DefaultInfo?.Description.ToPsStringLiteral()}'" : String.Empty; + var scriptText = !String.IsNullOrEmpty(DefaultInfo?.Script) ? $"Script='{DefaultInfo?.Script.ToPsSingleLine("; ")}'" : String.Empty; + var propertyText = new[] { nameText, descriptionText, scriptText }.JoinIgnoreEmpty(ItemSeparator); + return HasDefaultInfo ? $"{Indent}[{typeof(DefaultInfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class ParameterTypeOutput + { + public Type ParameterType { get; } + + public ParameterTypeOutput(Type parameterType) + { + ParameterType = parameterType; + } + + public override string ToString() => $"{Indent}[{ParameterType.ToPsType()}]{Environment.NewLine}"; + } + + internal class ParameterNameOutput + { + public string ParameterName { get; } + public bool IsLast { get; } + + public ParameterNameOutput(string parameterName, bool isLast) + { + ParameterName = parameterName; + IsLast = isLast; + } + + public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; + } + + internal class BeginOutput + { + public VariantGroup VariantGroup { get; } + + public BeginOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + } + + public override string ToString() => $@"begin {{ +{Indent}try {{ +{Indent}{Indent}$outBuffer = $null +{Indent}{Indent}if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {{ +{Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 +{Indent}{Indent}}} +{Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} +{Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) +{Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} +{Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) +{Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + + private string GetParameterSetToCmdletMapping() + { + var sb = new StringBuilder(); + sb.AppendLine($"{Indent}{Indent}$mapping = @{{"); + foreach (var variant in VariantGroup.Variants) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';"); + } + sb.Append($"{Indent}{Indent}}}"); + return sb.ToString(); + } + + private string GetDefaultValuesStatements() + { + var defaultInfos = VariantGroup.ParameterGroups.Where(pg => pg.HasDefaultInfo).Select(pg => pg.DefaultInfo).ToArray(); + var sb = new StringBuilder(); + + foreach (var defaultInfo in defaultInfos) + { + var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); + var parameterName = defaultInfo.ParameterGroup.ParameterName; + sb.AppendLine(); + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + return sb.ToString(); + } + } + + internal class ProcessOutput + { + public override string ToString() => $@"process {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.Process($_) +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} + +"; + } + + internal class EndOutput + { + public override string ToString() => $@"end {{ +{Indent}try {{ +{Indent}{Indent}$steppablePipeline.End() +{Indent}}} catch {{ +{Indent}{Indent}throw +{Indent}}} +}} +"; + } + + internal class HelpCommentOutput + { + public VariantGroup VariantGroup { get; } + public CommentInfo CommentInfo { get; } + + public HelpCommentOutput(VariantGroup variantGroup) + { + VariantGroup = variantGroup; + CommentInfo = variantGroup.CommentInfo; + } + + public override string ToString() + { + var inputs = String.Join(Environment.NewLine, CommentInfo.Inputs.Select(i => $".Inputs{Environment.NewLine}{i}")); + var inputsText = !String.IsNullOrEmpty(inputs) ? $"{Environment.NewLine}{inputs}" : String.Empty; + var outputs = String.Join(Environment.NewLine, CommentInfo.Outputs.Select(o => $".Outputs{Environment.NewLine}{o}")); + var outputsText = !String.IsNullOrEmpty(outputs) ? $"{Environment.NewLine}{outputs}" : String.Empty; + var notes = String.Join($"{Environment.NewLine}{Environment.NewLine}", VariantGroup.ComplexInterfaceInfos.Select(cii => cii.ToNoteOutput())); + var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; + var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); + var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; + var examples = ""; + foreach (var example in VariantGroup.HelpInfo.Examples) + { + examples = examples + ".Example" + "\r\n" + example.Code + "\r\n"; + } + return $@"<# +.Synopsis +{CommentInfo.Synopsis.ToDescriptionFormat(false)} +.Description +{CommentInfo.Description.ToDescriptionFormat(false)} +{examples}{inputsText}{outputsText}{notesText} +.Link +{CommentInfo.OnlineVersion}{relatedLinksText} +#> +"; + } + } + + internal class ParameterDescriptionOutput + { + public string Description { get; } + + public ParameterDescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) + ? Description.ToDescriptionFormat(false).NormalizeNewLines() + .Split(new [] { Environment.NewLine }, StringSplitOptions.None) + .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") + : String.Empty; + } + + internal class ProfileOutput + { + public string ProfileName { get; } + + public ProfileOutput(string profileName) + { + ProfileName = profileName; + } + + public override string ToString() => ProfileName != NoProfiles ? $"[{typeof(ProfileAttribute).ToPsAttributeType()}('{ProfileName}')]{Environment.NewLine}" : String.Empty; + } + + internal class DescriptionOutput + { + public string Description { get; } + + public DescriptionOutput(string description) + { + Description = description; + } + + public override string ToString() => !String.IsNullOrEmpty(Description) ? $"[{typeof(DescriptionAttribute).ToPsAttributeType()}('{Description.ToPsStringLiteral()}')]{Environment.NewLine}" : String.Empty; + } + + internal class ParameterCategoryOutput + { + public ParameterCategory Category { get; } + + public ParameterCategoryOutput(ParameterCategory category) + { + Category = category; + } + + public override string ToString() => $"{Indent}[{typeof(CategoryAttribute).ToPsAttributeType()}('{Category}')]{Environment.NewLine}"; + } + + internal class InfoOutput + { + public InfoAttribute Info { get; } + public Type ParameterType { get; } + + public InfoOutput(InfoAttribute info, Type parameterType) + { + Info = info; + ParameterType = parameterType; + } + + public override string ToString() + { + // Rendering of InfoAttribute members that are not used currently + /*var serializedNameText = Info.SerializedName != null ? $"SerializedName='{Info.SerializedName}'" : String.Empty; + var readOnlyText = Info.ReadOnly ? "ReadOnly" : String.Empty; + var descriptionText = !String.IsNullOrEmpty(Info.Description) ? $"Description='{Info.Description.ToPsStringLiteral()}'" : String.Empty;*/ + + var requiredText = Info.Required ? "Required" : String.Empty; + var unwrappedType = ParameterType.Unwrap(); + var hasValidPossibleTypes = Info.PossibleTypes.Any(pt => pt != unwrappedType); + var possibleTypesText = hasValidPossibleTypes + ? $"PossibleTypes=({Info.PossibleTypes.Select(pt => $"[{pt.ToPsType()}]").JoinIgnoreEmpty(ItemSeparator)})" + : String.Empty; + var propertyText = new[] { /*serializedNameText, */requiredText,/* readOnlyText,*/ possibleTypesText/*, descriptionText*/ }.JoinIgnoreEmpty(ItemSeparator); + return hasValidPossibleTypes ? $"{Indent}[{typeof(InfoAttribute).ToPsAttributeType()}({propertyText})]{Environment.NewLine}" : String.Empty; + } + } + + internal class PropertySyntaxOutput + { + public string ParameterName { get; } + public Type ParameterType { get; } + public bool IsMandatory { get; } + public int? Position { get; } + + public bool IncludeSpace { get; } + public bool IncludeDash { get; } + + public PropertySyntaxOutput(Parameter parameter) + { + ParameterName = parameter.ParameterName; + ParameterType = parameter.ParameterType; + IsMandatory = parameter.IsMandatory; + Position = parameter.Position; + IncludeSpace = true; + IncludeDash = true; + } + + public PropertySyntaxOutput(ComplexInterfaceInfo complexInterfaceInfo) + { + ParameterName = complexInterfaceInfo.Name; + ParameterType = complexInterfaceInfo.Type; + IsMandatory = complexInterfaceInfo.Required; + Position = null; + IncludeSpace = false; + IncludeDash = false; + } + + public override string ToString() + { + var leftOptional = !IsMandatory ? "[" : String.Empty; + var leftPositional = Position != null ? "[" : String.Empty; + var rightPositional = Position != null ? "]" : String.Empty; + var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty; + var rightOptional = !IsMandatory ? "]" : String.Empty; + var space = IncludeSpace ? " " : String.Empty; + var dash = IncludeDash ? "-" : String.Empty; + return $"{space}{leftOptional}{leftPositional}{dash}{ParameterName}{rightPositional}{type}{rightOptional}"; + } + } + + internal static class PsProxyOutputExtensions + { + public const string NoParameters = "__NoParameters"; + + public const string AllParameterSets = "__AllParameterSets"; + + public const string HalfIndent = " "; + + public const string Indent = HalfIndent + HalfIndent; + + public const string ItemSeparator = ", "; + + public static readonly string ComplexParameterHeader = $"COMPLEX PARAMETER PROPERTIES{Environment.NewLine}{Environment.NewLine}To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.{Environment.NewLine}{Environment.NewLine}"; + + public static string ToPsBool(this bool value) => $"${value.ToString().ToLowerInvariant()}"; + + public static string ToPsType(this Type type) + { + var regex = new Regex(@"^(.*)`{1}\d+(.*)$"); + var typeText = type.ToString(); + var match = regex.Match(typeText); + return match.Success ? $"{match.Groups[1]}{match.Groups[2]}" : typeText; + } + + public static string ToPsAttributeType(this Type type) => type.ToPsType().RemoveEnd("Attribute"); + + // https://stackoverflow.com/a/5284606/294804 + private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; + + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new []{"
", "\r\n", "\n"}); + + public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; + + public static string JoinIgnoreEmpty(this IEnumerable values, string separator) => String.Join(separator, values?.Where(v => !String.IsNullOrEmpty(v))); + + // https://stackoverflow.com/a/41961738/294804 + public static string ToSyntaxTypeName(this Type type) + { + if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) + { + return $"{type.GetGenericArguments().First().ToSyntaxTypeName()}?"; + } + + if (type.IsGenericType) + { + var genericTypes = String.Join(ItemSeparator, type.GetGenericArguments().Select(ToSyntaxTypeName)); + return $"{type.Name.Split('`').First()}<{genericTypes}>"; + } + + return type.Name; + } + + public static OutputTypeOutput ToOutputTypeOutput(this IEnumerable outputTypes) => new OutputTypeOutput(outputTypes); + + public static CmdletBindingOutput ToCmdletBindingOutput(this VariantGroup variantGroup) => new CmdletBindingOutput(variantGroup); + + public static ParameterOutput ToParameterOutput(this Parameter parameter, bool hasMultipleVariantsInVariantGroup, bool hasAllVariantsInParameterGroup) => new ParameterOutput(parameter, hasMultipleVariantsInVariantGroup, hasAllVariantsInParameterGroup); + + public static AliasOutput ToAliasOutput(this string[] aliases, bool includeIndent = false) => new AliasOutput(aliases, includeIndent); + + public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); + + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => new ArgumentCompleterOutput(completerInfo); + + public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); + + public static ParameterTypeOutput ToParameterTypeOutput(this Type parameterType) => new ParameterTypeOutput(parameterType); + + public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast); + + public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); + + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + + public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); + + public static ParameterDescriptionOutput ToParameterDescriptionOutput(this string description) => new ParameterDescriptionOutput(description); + + public static ProfileOutput ToProfileOutput(this string profileName) => new ProfileOutput(profileName); + + public static DescriptionOutput ToDescriptionOutput(this string description) => new DescriptionOutput(description); + + public static ParameterCategoryOutput ToParameterCategoryOutput(this ParameterCategory category) => new ParameterCategoryOutput(category); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this Parameter parameter) => new PropertySyntaxOutput(parameter); + + public static PropertySyntaxOutput ToPropertySyntaxOutput(this ComplexInterfaceInfo complexInterfaceInfo) => new PropertySyntaxOutput(complexInterfaceInfo); + + public static InfoOutput ToInfoOutput(this InfoAttribute info, Type parameterType) => new InfoOutput(info, parameterType); + + public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) + { + string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => + $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; + + var nested = complexInterfaceInfo.NestedInfos.Select(ni => + { + var nestedIndent = $"{currentIndent}{HalfIndent}"; + return ni.IsComplexInterface + ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) + : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + return String.Join(Environment.NewLine, nested); + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs new file mode 100644 index 000000000000..560faaea8e8e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -0,0 +1,499 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Reflection; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyOutputExtensions; +using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell.PsProxyTypeExtensions; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal class ProfileGroup + { + public string ProfileName { get; } + public Variant[] Variants { get; } + public string ProfileFolder { get; } + + public ProfileGroup(Variant[] variants, string profileName = NoProfiles) + { + ProfileName = profileName; + Variants = variants; + ProfileFolder = ProfileName != NoProfiles ? ProfileName : String.Empty; + } + } + + internal class VariantGroup + { + public string ModuleName { get; } + public string CmdletName { get; } + public string CmdletVerb { get; } + public string CmdletNoun { get; } + public string ProfileName { get; } + public Variant[] Variants { get; } + public ParameterGroup[] ParameterGroups { get; } + public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } + + public string[] Aliases { get; } + public PSTypeName[] OutputTypes { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + public string DefaultParameterSetName { get; } + public bool HasMultipleVariants { get; } + public PsHelpInfo HelpInfo { get; } + public bool IsGenerated { get; } + public bool IsInternal { get; } + + public string OutputFolder { get; } + public string FileName { get; } + public string FilePath { get; } + + public CommentInfo CommentInfo { get; } + + public VariantGroup(string moduleName, string cmdletName, Variant[] variants, string outputFolder, string profileName = NoProfiles, bool isTest = false, bool isInternal = false) + { + ModuleName = moduleName; + CmdletName = cmdletName; + var cmdletNameParts = CmdletName.Split('-'); + CmdletVerb = cmdletNameParts.First(); + CmdletNoun = cmdletNameParts.Last(); + ProfileName = profileName; + Variants = variants; + ParameterGroups = Variants.ToParameterGroups().OrderBy(pg => pg.OrderCategory).ThenByDescending(pg => pg.IsMandatory).ToArray(); + var aliasDuplicates = ParameterGroups.SelectMany(pg => pg.Aliases) + //https://stackoverflow.com/a/18547390/294804 + .GroupBy(a => a).Where(g => g.Count() > 1).Select(g => g.Key).ToArray(); + if (aliasDuplicates.Any()) + { + throw new ParsingMetadataException($"The alias(es) [{String.Join(", ", aliasDuplicates)}] are defined on multiple parameters for cmdlet '{CmdletName}', which is not supported."); + } + ComplexInterfaceInfos = ParameterGroups.Where(pg => !pg.DontShow && pg.IsComplexInterface).OrderBy(pg => pg.ParameterName).Select(pg => pg.ComplexInterfaceInfo).ToArray(); + + Aliases = Variants.SelectMany(v => v.Attributes).ToAliasNames().ToArray(); + OutputTypes = Variants.SelectMany(v => v.Info.OutputType).Where(ot => ot.Type != null).GroupBy(ot => ot.Type).Select(otg => otg.First()).ToArray(); + SupportsShouldProcess = Variants.Any(v => v.SupportsShouldProcess); + SupportsPaging = Variants.Any(v => v.SupportsPaging); + DefaultParameterSetName = DetermineDefaultParameterSetName(); + HasMultipleVariants = Variants.Length > 1; + HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); + IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); + IsInternal = isInternal; + + OutputFolder = outputFolder; + FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; + FilePath = Path.Combine(OutputFolder, FileName); + + CommentInfo = new CommentInfo(this); + } + + private string DetermineDefaultParameterSetName() + { + var defaultParameterSet = Variants + .Select(v => v.Metadata.DefaultParameterSetName) + .LastOrDefault(dpsn => dpsn.IsValidDefaultParameterSetName()); + + if (String.IsNullOrEmpty(defaultParameterSet)) + { + var variantParamCountGroups = Variants + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); + var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); + defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; + } + + return defaultParameterSet; + } + } + + internal class Variant + { + public string CmdletName { get; } + public string VariantName { get; } + public CommandInfo Info { get; } + public CommandMetadata Metadata { get; } + public PsHelpInfo HelpInfo { get; } + public bool HasParameterSets { get; } + public bool IsFunction { get; } + public string PrivateModuleName { get; } + public string PrivateCmdletName { get; } + public bool SupportsShouldProcess { get; } + public bool SupportsPaging { get; } + + public Attribute[] Attributes { get; } + public Parameter[] Parameters { get; } + public Parameter[] CmdletOnlyParameters { get; } + public bool IsInternal { get; } + public bool IsDoNotExport { get; } + public string[] Profiles { get; } + + public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) + { + CmdletName = cmdletName; + VariantName = variantName; + Info = info; + HelpInfo = helpInfo ?? new PsHelpInfo(); + Metadata = metadata; + HasParameterSets = hasParameterSets; + IsFunction = Info.CommandType == CommandTypes.Function; + PrivateModuleName = Info.Source; + PrivateCmdletName = Metadata.Name; + SupportsShouldProcess = Metadata.SupportsShouldProcess; + SupportsPaging = Metadata.SupportsPaging; + + Attributes = this.ToAttributes(); + Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); + IsInternal = Attributes.OfType().Any(); + IsDoNotExport = Attributes.OfType().Any(); + CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); + Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); + } + } + + internal class ParameterGroup + { + public string ParameterName { get; } + public Parameter[] Parameters { get; } + + public string[] VariantNames { get; } + public string[] AllVariantNames { get; } + public bool HasAllVariants { get; } + public Type ParameterType { get; } + public string Description { get; } + + public string[] Aliases { get; } + public bool HasValidateNotNull { get; } + public CompleterInfo CompleterInfo { get; } + public DefaultInfo DefaultInfo { get; } + public bool HasDefaultInfo { get; } + public ParameterCategory OrderCategory { get; } + public bool DontShow { get; } + public bool IsMandatory { get; } + public bool SupportsWildcards { get; } + public bool IsComplexInterface { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public InfoAttribute InfoAttribute { get; } + + public int? FirstPosition { get; } + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public bool IsInputType { get; } + + public ParameterGroup(string parameterName, Parameter[] parameters, string[] allVariantNames) + { + ParameterName = parameterName; + Parameters = parameters; + + VariantNames = Parameters.Select(p => p.VariantName).ToArray(); + AllVariantNames = allVariantNames; + HasAllVariants = VariantNames.Any(vn => vn == AllParameterSets) || !AllVariantNames.Except(VariantNames).Any(); + var types = Parameters.Select(p => p.ParameterType).Distinct().ToArray(); + if (types.Length > 1) + { + throw new ParsingMetadataException($"The parameter '{ParameterName}' has multiple parameter types [{String.Join(", ", types.Select(t => t.Name))}] defined, which is not supported."); + } + ParameterType = types.First(); + Description = Parameters.Select(p => p.Description).FirstOrDefault(d => !String.IsNullOrEmpty(d)).EmptyIfNull(); + + Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); + HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() + ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); + DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) + ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); + HasDefaultInfo = DefaultInfo != null && !String.IsNullOrEmpty(DefaultInfo.Script); + // When DefaultInfo is present, force all parameters from this group to be optional. + if (HasDefaultInfo) + { + foreach (var parameter in Parameters) + { + parameter.IsMandatory = false; + } + } + OrderCategory = Parameters.Select(p => p.OrderCategory).Distinct().DefaultIfEmpty(ParameterCategory.Body).Min(); + DontShow = Parameters.All(p => p.DontShow); + IsMandatory = HasAllVariants && Parameters.Any(p => p.IsMandatory); + SupportsWildcards = Parameters.Any(p => p.SupportsWildcards); + IsComplexInterface = Parameters.Any(p => p.IsComplexInterface); + ComplexInterfaceInfo = Parameters.Where(p => p.IsComplexInterface).Select(p => p.ComplexInterfaceInfo).FirstOrDefault(); + InfoAttribute = Parameters.Select(p => p.InfoAttribute).First(); + + FirstPosition = Parameters.Select(p => p.Position).FirstOrDefault(p => p != null); + ValueFromPipeline = Parameters.Any(p => p.ValueFromPipeline); + ValueFromPipelineByPropertyName = Parameters.Any(p => p.ValueFromPipelineByPropertyName); + IsInputType = ValueFromPipeline || ValueFromPipelineByPropertyName; + } + } + + internal class Parameter + { + public string VariantName { get; } + public string ParameterName { get; } + public ParameterMetadata Metadata { get; } + public PsParameterHelpInfo HelpInfo { get; } + public Type ParameterType { get; } + + public Attribute[] Attributes { get; } + public ParameterCategory[] Categories { get; } + public ParameterCategory OrderCategory { get; } + public PSDefaultValueAttribute DefaultValueAttribute { get; } + public DefaultInfoAttribute DefaultInfoAttribute { get; } + public ParameterAttribute ParameterAttribute { get; } + public bool SupportsWildcards { get; } + public CompleterInfoAttribute CompleterInfoAttribute { get; } + public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } + + public bool ValueFromPipeline { get; } + public bool ValueFromPipelineByPropertyName { get; } + public int? Position { get; } + public bool DontShow { get; } + public bool IsMandatory { get; set; } + + public InfoAttribute InfoAttribute { get; } + public ComplexInterfaceInfo ComplexInterfaceInfo { get; } + public bool IsComplexInterface { get; } + public string Description { get; } + + public Parameter(string variantName, string parameterName, ParameterMetadata metadata, PsParameterHelpInfo helpInfo = null) + { + VariantName = variantName; + ParameterName = parameterName; + Metadata = metadata; + HelpInfo = helpInfo ?? new PsParameterHelpInfo(); + + Attributes = Metadata.Attributes.ToArray(); + ParameterType = Attributes.OfType().FirstOrDefault()?.Type ?? Metadata.ParameterType; + Categories = Attributes.OfType().SelectMany(ca => ca.Categories).Distinct().ToArray(); + OrderCategory = Categories.DefaultIfEmpty(ParameterCategory.Body).Min(); + DefaultValueAttribute = Attributes.OfType().FirstOrDefault(); + DefaultInfoAttribute = Attributes.OfType().FirstOrDefault(); + ParameterAttribute = Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == VariantName || pa.ParameterSetName == AllParameterSets); + if (ParameterAttribute == null) + { + throw new ParsingMetadataException($"The variant '{VariantName}' has multiple parameter sets defined, which is not supported."); + } + SupportsWildcards = Attributes.OfType().Any(); + CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); + ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + + ValueFromPipeline = ParameterAttribute.ValueFromPipeline; + ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; + Position = ParameterAttribute.Position == Int32.MinValue ? (int?)null : ParameterAttribute.Position; + DontShow = ParameterAttribute.DontShow; + IsMandatory = ParameterAttribute.Mandatory; + + var complexParameterName = ParameterName.ToUpperInvariant(); + var complexMessage = $"{Environment.NewLine}To construct, see NOTES section for {complexParameterName} properties and create a hash table."; + var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; + // Remove the complex type message as it will be reinserted if this is a complex type + description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty); + // Make an InfoAttribute for processing only if one isn't provided + InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; + // Set the description if the InfoAttribute does not have one since they are exported without a description + InfoAttribute.Description = String.IsNullOrEmpty(InfoAttribute.Description) ? description : InfoAttribute.Description; + ComplexInterfaceInfo = InfoAttribute.ToComplexInterfaceInfo(complexParameterName, ParameterType, true); + IsComplexInterface = ComplexInterfaceInfo.IsComplexInterface; + Description = $"{description}{(IsComplexInterface ? complexMessage : String.Empty)}"; + } + } + + internal class ComplexInterfaceInfo + { + public InfoAttribute InfoAttribute { get; } + + public string Name { get; } + public Type Type { get; } + public bool Required { get; } + public bool ReadOnly { get; } + public string Description { get; } + + public ComplexInterfaceInfo[] NestedInfos { get; } + public bool IsComplexInterface { get; } + + public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, bool? required, List seenTypes) + { + Name = name; + Type = type; + InfoAttribute = infoAttribute; + + Required = required ?? InfoAttribute.Required; + ReadOnly = InfoAttribute.ReadOnly; + Description = InfoAttribute.Description.ToPsSingleLine(); + + var unwrappedType = Type.Unwrap(); + var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; + (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[]{} : + unwrappedType.GetInterfaces() + .Concat(InfoAttribute.PossibleTypes) + .SelectMany(pt => pt.GetProperties() + .SelectMany(pi => pi.GetCustomAttributes(true).OfType() + .Select(ia => ia.ToComplexInterfaceInfo(pi.Name, pi.PropertyType, seenTypes: seenTypes)))) + .Where(cii => !cii.ReadOnly).OrderByDescending(cii => cii.Required).ToArray(); + // https://stackoverflow.com/a/503359/294804 + var associativeArrayInnerType = Type.GetInterfaces() + .FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IAssociativeArray<>)) + ?.GetTypeInfo().GetGenericArguments().First(); + if (!hasBeenSeen && associativeArrayInnerType != null) + { + var anyInfo = new InfoAttribute { Description = "This indicates any property can be added to this object." }; + NestedInfos = NestedInfos.Prepend(anyInfo.ToComplexInterfaceInfo("(Any)", associativeArrayInnerType)).ToArray(); + } + IsComplexInterface = NestedInfos.Any(); + } + } + + internal class CommentInfo + { + public string Description { get; } + public string Synopsis { get; } + + public string[] Examples { get; } + public string[] Inputs { get; } + public string[] Outputs { get; } + + public string OnlineVersion { get; } + public string[] RelatedLinks { get; } + + private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + + public CommentInfo(VariantGroup variantGroup) + { + var helpInfo = variantGroup.HelpInfo; + Description = variantGroup.Variants.SelectMany(v => v.Attributes).OfType().FirstOrDefault()?.Description.NullIfEmpty() + ?? helpInfo.Description.EmptyIfNull(); + // If there is no Synopsis, PowerShell may put in the Syntax string as the Synopsis. This seems unintended, so we remove the Synopsis in this situation. + var synopsis = helpInfo.Synopsis.EmptyIfNull().Trim().StartsWith(variantGroup.CmdletName) ? String.Empty : helpInfo.Synopsis; + Synopsis = synopsis.NullIfEmpty() ?? Description; + + Examples = helpInfo.Examples.Select(rl => rl.Code).ToArray(); + + Inputs = (variantGroup.ParameterGroups.Where(pg => pg.IsInputType).Select(pg => pg.ParameterType.FullName).ToArray().NullIfEmpty() ?? + helpInfo.InputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(it => it.Name).ToArray()) + .Where(i => i != "None").Distinct().OrderBy(i => i).ToArray(); + Outputs = (variantGroup.OutputTypes.Select(ot => ot.Type.FullName).ToArray().NullIfEmpty() ?? + helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) + .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); + + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}"; + RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); + } + } + + internal class CompleterInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public Type Type { get; } + public bool IsTypeCompleter { get; } + + public CompleterInfo(CompleterInfoAttribute infoAttribute) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + } + + public CompleterInfo(ArgumentCompleterAttribute completerAttribute) + { + Script = completerAttribute.ScriptBlock?.ToString(); + if (completerAttribute.Type != null) + { + Type = completerAttribute.Type; + IsTypeCompleter = true; + } + } + } + + internal class DefaultInfo + { + public string Name { get; } + public string Description { get; } + public string Script { get; } + public ParameterGroup ParameterGroup { get; } + + public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) + { + Name = infoAttribute.Name; + Description = infoAttribute.Description; + Script = infoAttribute.Script; + ParameterGroup = parameterGroup; + } + + public DefaultInfo(PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) + { + Description = defaultValueAttribute.Help; + ParameterGroup = parameterGroup; + if (defaultValueAttribute.Value != null) + { + Script = defaultValueAttribute.Value.ToString(); + } + } + } + + internal static class PsProxyTypeExtensions + { + public const string NoProfiles = "__NoProfiles"; + + public static bool IsValidDefaultParameterSetName(this string parameterSetName) => + !String.IsNullOrEmpty(parameterSetName) && parameterSetName != AllParameterSets; + + public static Variant[] ToVariants(this CommandInfo info, PsHelpInfo helpInfo) + { + var metadata = new CommandMetadata(info); + var privateCmdletName = metadata.Name.Split('!').First(); + var parts = privateCmdletName.Split('_'); + return parts.Length > 1 + ? new[] { new Variant(parts[0], parts[1], info, metadata, helpInfo: helpInfo) } + // Process multiple parameter sets, so we declare a variant per parameter set. + : info.ParameterSets.Select(ps => new Variant(privateCmdletName, ps.Name, info, metadata, true, helpInfo)).ToArray(); + } + + public static Variant[] ToVariants(this CmdletAndHelpInfo info) => info.CommandInfo.ToVariants(info.HelpInfo); + + public static Variant[] ToVariants(this CommandInfo info, PSObject helpInfo = null) => info.ToVariants(helpInfo?.ToPsHelpInfo()); + + public static Parameter[] ToParameters(this Variant variant) + { + var parameters = variant.Metadata.Parameters.AsEnumerable(); + var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); + if (variant.HasParameterSets) + { + parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); + parameterHelp = parameterHelp.Where(ph => !ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)); + } + return parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))).ToArray(); + } + + public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction + ? ((FunctionInfo)variant.Info).ScriptBlock.Attributes.ToArray() + : variant.Metadata.CommandType.GetCustomAttributes(false).Cast().ToArray(); + + public static IEnumerable ToParameterGroups(this Variant[] variants) + { + var allVariantNames = variants.Select(vg => vg.VariantName).ToArray(); + return variants + .SelectMany(v => v.Parameters) + .GroupBy(p => p.ParameterName, StringComparer.InvariantCultureIgnoreCase) + .Select(pg => new ParameterGroup(pg.Key, pg.Select(p => p).ToArray(), allVariantNames)); + } + + public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute infoAttribute, string name, Type type, bool? required = null, List seenTypes = null) + => new ComplexInterfaceInfo(name, type, infoAttribute, required, seenTypes); + + public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); + public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); + + public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); + public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/PsAttributes.cs b/src/WindowsIotServices/generated/runtime/BuildTime/PsAttributes.cs new file mode 100644 index 000000000000..00a1b992e223 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/PsAttributes.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices +{ + [AttributeUsage(AttributeTargets.Class)] + public class DescriptionAttribute : Attribute + { + public string Description { get; } + + public DescriptionAttribute(string description) + { + Description = description; + } + } + + [AttributeUsage(AttributeTargets.Class)] + public class DoNotExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class InternalExportAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class GeneratedAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] + public class DoNotFormatAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Class)] + public class ProfileAttribute : Attribute + { + public string[] Profiles { get; } + + public ProfileAttribute(params string[] profiles) + { + Profiles = profiles; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class CategoryAttribute : Attribute + { + public ParameterCategory[] Categories { get; } + + public CategoryAttribute(params ParameterCategory[] categories) + { + Categories = categories; + } + } + + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + public class ExportAsAttribute : Attribute + { + public Type Type { get; set; } + + public ExportAsAttribute(Type type) + { + Type = type; + } + } + + public enum ParameterCategory + { + // Note: Order is significant + Uri = 0, + Path, + Query, + Header, + Cookie, + Body, + Azure, + Runtime + } + + [AttributeUsage(AttributeTargets.Property)] + public class OriginAttribute : Attribute + { + public PropertyOrigin Origin { get; } + + public OriginAttribute(PropertyOrigin origin) + { + Origin = origin; + } + } + + public enum PropertyOrigin + { + // Note: Order is significant + Inherited = 0, + Owned, + Inlined + } + + [AttributeUsage(AttributeTargets.Property)] + public class FormatTableAttribute : Attribute + { + public int Index { get; set; } = -1; + public bool HasIndex => Index != -1; + public string Label { get; set; } + public int Width { get; set; } = -1; + public bool HasWidth => Width != -1; + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/PsExtensions.cs b/src/WindowsIotServices/generated/runtime/BuildTime/PsExtensions.cs new file mode 100644 index 000000000000..d344fbe39f67 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/PsExtensions.cs @@ -0,0 +1,160 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class PsExtensions + { + // https://stackoverflow.com/a/863944/294804 + // https://stackoverflow.com/a/4452598/294804 + // https://stackoverflow.com/a/28701974/294804 + // Note: This will unwrap nested collections, but we don't generate nested collections. + public static Type Unwrap(this Type type) + { + if (type.IsArray) + { + return type.GetElementType().Unwrap(); + } + + var typeInfo = type.GetTypeInfo(); + if (typeInfo.IsGenericType + && (typeInfo.GetGenericTypeDefinition() == typeof(Nullable<>) || typeof(IEnumerable<>).IsAssignableFrom(type))) + { + return typeInfo.GetGenericArguments().First().Unwrap(); + } + + return type; + } + + // https://stackoverflow.com/a/863944/294804 + private static bool IsSimple(this Type type) + { + var typeInfo = type.GetTypeInfo(); + return typeInfo.IsPrimitive + || typeInfo.IsEnum + || type == typeof(string) + || type == typeof(decimal); + } + + // https://stackoverflow.com/a/32025393/294804 + private static bool HasImplicitConversion(this Type baseType, Type targetType) => + baseType.GetMethods(BindingFlags.Public | BindingFlags.Static) + .Where(mi => mi.Name == "op_Implicit" && mi.ReturnType == targetType) + .Any(mi => mi.GetParameters().FirstOrDefault()?.ParameterType == baseType); + + public static bool IsPsSimple(this Type type) + { + var unwrappedType = type.Unwrap(); + return unwrappedType.IsSimple() + || unwrappedType == typeof(SwitchParameter) + || unwrappedType == typeof(Hashtable) + || unwrappedType == typeof(PSCredential) + || unwrappedType == typeof(ScriptBlock) + || unwrappedType == typeof(DateTime) + || unwrappedType == typeof(Uri) + || unwrappedType.HasImplicitConversion(typeof(string)); + } + + public static string ToPsList(this IEnumerable items) => String.Join(", ", items.Select(i => $"'{i}'")); + + public static IEnumerable ToAliasNames(this IEnumerable attributes) => attributes.OfType().SelectMany(aa => aa.AliasNames).Distinct(); + + public static bool IsArrayAndElementTypeIsT(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return itemType.IsArray && !tType.IsArray && tType.IsAssignableFrom(itemType.GetElementType()); + } + + public static bool IsTArrayAndElementTypeIsItem(this object item) + { + var itemType = item.GetType(); + var tType = typeof(T); + return !itemType.IsArray && tType.IsArray && (tType.GetElementType()?.IsAssignableFrom(itemType) ?? false); + } + + public static bool IsTypeOrArrayOfType(this object item) => item is T || item.IsArrayAndElementTypeIsT() || item.IsTArrayAndElementTypeIsItem(); + + public static T NormalizeArrayType(this object item) + { + if (item is T result) + { + return result; + } + + if (item.IsArrayAndElementTypeIsT()) + { + var array = (T[])Convert.ChangeType(item, typeof(T[])); + return array.FirstOrDefault(); + } + + if (item.IsTArrayAndElementTypeIsItem()) + { + var tType = typeof(T); + var array = Array.CreateInstance(tType.GetElementType(), 1); + array.SetValue(item, 0); + return (T)Convert.ChangeType(array, tType); + } + + return default(T); + } + + public static T GetNestedProperty(this PSObject psObject, params string[] names) => psObject.Properties.GetNestedProperty(names); + + public static T GetNestedProperty(this PSMemberInfoCollection properties, params string[] names) + { + var lastName = names.Last(); + var nestedProperties = names.Take(names.Length - 1).Aggregate(properties, (p, n) => p?.GetProperty(n)?.Properties); + return nestedProperties != null ? nestedProperties.GetProperty(lastName) : default(T); + } + + public static T GetProperty(this PSObject psObject, string name) => psObject.Properties.GetProperty(name); + + public static T GetProperty(this PSMemberInfoCollection properties, string name) + { + switch (properties[name]?.Value) + { + case PSObject psObject when psObject.BaseObject is PSCustomObject && psObject.ImmediateBaseObject.IsTypeOrArrayOfType(): + return psObject.ImmediateBaseObject.NormalizeArrayType(); + case PSObject psObject when psObject.BaseObject.IsTypeOrArrayOfType(): + return psObject.BaseObject.NormalizeArrayType(); + case object value when value.IsTypeOrArrayOfType(): + return value.NormalizeArrayType(); + default: + return default(T); + } + } + + public static IEnumerable RunScript(this PSCmdlet cmdlet, string script) + => PsHelpers.RunScript(cmdlet.InvokeCommand, script); + + public static void RunScript(this PSCmdlet cmdlet, string script) + => cmdlet.RunScript(script); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, string script) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, script); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, string script) + => engineIntrinsics.RunScript(script); + + public static IEnumerable RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => PsHelpers.RunScript(cmdlet.InvokeCommand, block.ToString()); + + public static void RunScript(this PSCmdlet cmdlet, ScriptBlock block) + => cmdlet.RunScript(block.ToString()); + + public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => PsHelpers.RunScript(engineIntrinsics.InvokeCommand, block.ToString()); + + public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) + => engineIntrinsics.RunScript(block.ToString()); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/PsHelpers.cs b/src/WindowsIotServices/generated/runtime/BuildTime/PsHelpers.cs new file mode 100644 index 000000000000..45e03740fd35 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/PsHelpers.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Management.Automation; +using Pwsh = System.Management.Automation.PowerShell; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class PsHelpers + { + public static IEnumerable RunScript(string script) + => Pwsh.Create().AddScript(script).Invoke(); + + public static void RunScript(string script) + => RunScript(script); + + public static IEnumerable RunScript(CommandInvocationIntrinsics cii, string script) + => cii.InvokeScript(script).Select(o => o?.BaseObject).Where(o => o != null).OfType(); + + public static void RunScript(CommandInvocationIntrinsics cii, string script) + => RunScript(cii, script); + + public static IEnumerable GetModuleCmdlets(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletsCommand = String.Join(" + ", modulePaths.Select(mp => $"(Get-Command -Module (Import-Module '{mp}' -PassThru))")); + return (cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand)) + .Where(ci => ci.CommandType != CommandTypes.Alias); + } + + public static IEnumerable GetModuleCmdlets(params string[] modulePaths) + => GetModuleCmdlets(null, modulePaths); + + public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) + { + // https://stackoverflow.com/a/40969712/294804 + var getCmdletsCommand = $@" +$currentFunctions = Get-ChildItem function: +Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} +"; + return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); + } + + public static IEnumerable GetScriptCmdlets(string scriptFolder) + => GetScriptCmdlets(null, scriptFolder); + + public static IEnumerable GetScriptHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var importModules = String.Join(Environment.NewLine, modulePaths.Select(mp => $"Import-Module '{mp}'")); + var getHelpCommand = $@" +$currentFunctions = Get-ChildItem function: +{importModules} +Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} | ForEach-Object {{ Get-Help -Name $_.Name -Full }} +"; + return cmdlet?.RunScript(getHelpCommand) ?? RunScript(getHelpCommand); + } + + public static IEnumerable GetScriptHelpInfo(params string[] modulePaths) + => GetScriptHelpInfo(null, modulePaths); + + public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) + { + var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => + $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" + )); + return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) + .Select(h => new CmdletAndHelpInfo { CommandInfo = (h["CommandInfo"] as PSObject)?.BaseObject as CommandInfo, HelpInfo = h["HelpInfo"] as PSObject }); + } + + public static IEnumerable GetModuleCmdletsAndHelpInfo(params string[] modulePaths) + => GetModuleCmdletsAndHelpInfo(null, modulePaths); + + public static CmdletAndHelpInfo ToCmdletAndHelpInfo(this CommandInfo commandInfo, PSObject helpInfo) => new CmdletAndHelpInfo { CommandInfo = commandInfo, HelpInfo = helpInfo }; + + public const string Psd1Indent = " "; + public const string GuidStart = Psd1Indent + "GUID"; + + public static Guid ReadGuidFromPsd1(string psd1Path) + { + var guid = Guid.NewGuid(); + if (File.Exists(psd1Path)) + { + var currentGuid = File.ReadAllLines(psd1Path) + .FirstOrDefault(l => l.StartsWith(GuidStart))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) + .LastOrDefault()?.Replace("'", String.Empty); + guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; + } + + return guid; + } + } + + internal class CmdletAndHelpInfo + { + public CommandInfo CommandInfo { get; set; } + public PSObject HelpInfo { get; set; } + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/StringExtensions.cs b/src/WindowsIotServices/generated/runtime/BuildTime/StringExtensions.cs new file mode 100644 index 000000000000..579ae48a749a --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/StringExtensions.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class StringExtensions + { + public static string NullIfEmpty(this string text) => String.IsNullOrEmpty(text) ? null : text; + public static string NullIfWhiteSpace(this string text) => String.IsNullOrWhiteSpace(text) ? null : text; + public static string EmptyIfNull(this string text) => text ?? String.Empty; + + public static bool? ToNullableBool(this string text) => String.IsNullOrEmpty(text) ? (bool?)null : Convert.ToBoolean(text.ToLowerInvariant()); + + public static string ToUpperFirstCharacter(this string text) => String.IsNullOrEmpty(text) ? text : $"{text[0].ToString().ToUpperInvariant()}{text.Remove(0, 1)}"; + + public static string ReplaceNewLines(this string value, string replacer = " ", string[] newLineSymbols = null) + => (newLineSymbols ?? new []{ "\r\n", "\n" }).Aggregate(value.EmptyIfNull(), (current, symbol) => current.Replace(symbol, replacer)); + public static string NormalizeNewLines(this string value) => value.ReplaceNewLines("\u00A0").Replace("\u00A0", Environment.NewLine); + } +} diff --git a/src/WindowsIotServices/generated/runtime/BuildTime/XmlExtensions.cs b/src/WindowsIotServices/generated/runtime/BuildTime/XmlExtensions.cs new file mode 100644 index 000000000000..bc7581f53d7b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/BuildTime/XmlExtensions.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class XmlExtensions + { + public static string ToXmlString(this T inputObject, bool excludeDeclaration = false) + { + var serializer = new XmlSerializer(typeof(T)); + //https://stackoverflow.com/a/760290/294804 + //https://stackoverflow.com/a/3732234/294804 + var namespaces = new XmlSerializerNamespaces(new[] { XmlQualifiedName.Empty }); + var xmlSettings = new XmlWriterSettings { OmitXmlDeclaration = excludeDeclaration, Indent = true }; + using (var stringWriter = new StringWriter()) + using (var xmlWriter = XmlWriter.Create(stringWriter, xmlSettings)) + { + serializer.Serialize(xmlWriter, inputObject, namespaces); + return stringWriter.ToString(); + } + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/CmdInfoHandler.cs b/src/WindowsIotServices/generated/runtime/CmdInfoHandler.cs new file mode 100644 index 000000000000..5a5fbefd759f --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/CmdInfoHandler.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Management.Automation; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using NextDelegate = Func, Task>, Task>; + using SignalDelegate = Func, Task>; + + public class CmdInfoHandler + { + private readonly string processRecordId; + private readonly string parameterSetName; + private readonly InvocationInfo invocationInfo; + + public CmdInfoHandler(string processRecordId, InvocationInfo invocationInfo, string parameterSetName) + { + this.processRecordId = processRecordId; + this.parameterSetName = parameterSetName; + this.invocationInfo = invocationInfo; + } + + public Task SendAsync(HttpRequestMessage request, CancellationToken token, Action cancel, SignalDelegate signal, NextDelegate next) + { + request.Headers.Add("x-ms-client-request-id", processRecordId); + request.Headers.Add("CommandName", invocationInfo?.InvocationName); + request.Headers.Add("FullCommandName", invocationInfo?.MyCommand?.Name); + request.Headers.Add("ParameterSetName", parameterSetName); + + // continue with pipeline. + return next(request, token, cancel, signal); + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/Conversions/ConversionException.cs b/src/WindowsIotServices/generated/runtime/Conversions/ConversionException.cs new file mode 100644 index 000000000000..f7cb027de8f8 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/ConversionException.cs @@ -0,0 +1,17 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class ConversionException : Exception + { + internal ConversionException(string message) + : base(message) { } + + internal ConversionException(JsonNode node, Type targetType) + : base($"Cannot convert '{node.Type}' to a {targetType.Name}") { } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/IJsonConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/IJsonConverter.cs new file mode 100644 index 000000000000..65702a7c8f7e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/IJsonConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal interface IJsonConverter + { + JsonNode ToJson(object value); + + object FromJson(JsonNode node); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/BinaryConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/BinaryConverter.cs new file mode 100644 index 000000000000..ad200b3beddf --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/BinaryConverter.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class BinaryConverter : JsonConverter + { + internal override JsonNode ToJson(byte[] value) => new XBinary(value); + + internal override byte[] FromJson(JsonNode node) + { + switch (node.Type) + { + case JsonType.String : return Convert.FromBase64String(node.ToString()); // Base64 Encoded + case JsonType.Binary : return ((XBinary)node).Value; + } + + throw new ConversionException(node, typeof(byte[])); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/BooleanConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/BooleanConverter.cs new file mode 100644 index 000000000000..11b75e086a26 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/BooleanConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class BooleanConverter : JsonConverter + { + internal override JsonNode ToJson(bool value) => new JsonBoolean(value); + + internal override bool FromJson(JsonNode node) => (bool)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeConverter.cs new file mode 100644 index 000000000000..f0052aac8e48 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeConverter.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class DateTimeConverter : JsonConverter + { + internal override JsonNode ToJson(DateTime value) + { + return new JsonDate(value); + } + + internal override DateTime FromJson(JsonNode node) => (DateTime)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs new file mode 100644 index 000000000000..8bb1fd7677ed --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class DateTimeOffsetConverter : JsonConverter + { + internal override JsonNode ToJson(DateTimeOffset value) => new JsonDate(value); + + internal override DateTimeOffset FromJson(JsonNode node) => (DateTimeOffset)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/DecimalConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DecimalConverter.cs new file mode 100644 index 000000000000..7b146fe450a9 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DecimalConverter.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class DecimalConverter : JsonConverter + { + internal override JsonNode ToJson(decimal value) => new JsonNumber(value.ToString()); + + internal override decimal FromJson(JsonNode node) + { + return (decimal)node; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/DoubleConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DoubleConverter.cs new file mode 100644 index 000000000000..92ecf4be07d4 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/DoubleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class DoubleConverter : JsonConverter + { + internal override JsonNode ToJson(double value) => new JsonNumber(value); + + internal override double FromJson(JsonNode node) => (double)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/EnumConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/EnumConverter.cs new file mode 100644 index 000000000000..d871facd330e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/EnumConverter.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class EnumConverter : IJsonConverter + { + private readonly Type type; + + internal EnumConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + } + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + + public object FromJson(JsonNode node) + { + if (node.Type == JsonType.Number) + { + return Enum.ToObject(type, (int)node); + } + + return Enum.Parse(type, node.ToString(), ignoreCase: true); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/GuidConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/GuidConverter.cs new file mode 100644 index 000000000000..e1ce7863ddc6 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/GuidConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class GuidConverter : JsonConverter + { + internal override JsonNode ToJson(Guid value) => new JsonString(value.ToString()); + + internal override Guid FromJson(JsonNode node) => (Guid)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/HashSet'1Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/HashSet'1Converter.cs new file mode 100644 index 000000000000..f296bb8662c5 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/HashSet'1Converter.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class HashSetConverter : JsonConverter> + { + internal override JsonNode ToJson(HashSet value) + { + return new XSet(value); + } + + internal override HashSet FromJson(JsonNode node) + { + var collection = node as ICollection; + + if (collection.Count == 0) return null; + + // TODO: Remove Linq depedency + return new HashSet(collection.Cast()); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int16Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int16Converter.cs new file mode 100644 index 000000000000..28cde21463af --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class Int16Converter : JsonConverter + { + internal override JsonNode ToJson(short value) => new JsonNumber(value); + + internal override short FromJson(JsonNode node) => (short)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int32Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int32Converter.cs new file mode 100644 index 000000000000..e17eeb96f837 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class Int32Converter : JsonConverter + { + internal override JsonNode ToJson(int value) => new JsonNumber(value); + + internal override int FromJson(JsonNode node) => (int)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int64Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int64Converter.cs new file mode 100644 index 000000000000..71ddf06d4802 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/Int64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class Int64Converter : JsonConverter + { + internal override JsonNode ToJson(long value) => new JsonNumber(value); + + internal override long FromJson(JsonNode node) => (long)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonArrayConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonArrayConverter.cs new file mode 100644 index 000000000000..0708510cf2a3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonArrayConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class JsonArrayConverter : JsonConverter + { + internal override JsonNode ToJson(JsonArray value) => value; + + internal override JsonArray FromJson(JsonNode node) => (JsonArray)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonObjectConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonObjectConverter.cs new file mode 100644 index 000000000000..c1bbd1a7c205 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/JsonObjectConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class JsonObjectConverter : JsonConverter + { + internal override JsonNode ToJson(JsonObject value) => value; + + internal override JsonObject FromJson(JsonNode node) => (JsonObject)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/SingleConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/SingleConverter.cs new file mode 100644 index 000000000000..e15c2b4ea4fe --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/SingleConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class SingleConverter : JsonConverter + { + internal override JsonNode ToJson(float value) => new JsonNumber(value.ToString()); + + internal override float FromJson(JsonNode node) => (float)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/StringConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/StringConverter.cs new file mode 100644 index 000000000000..46ef0b710b3b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/StringConverter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class StringConverter : JsonConverter + { + internal override JsonNode ToJson(string value) => new JsonString(value); + + internal override string FromJson(JsonNode node) => node.ToString(); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/TimeSpanConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/TimeSpanConverter.cs new file mode 100644 index 000000000000..efb4621f60de --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/TimeSpanConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class TimeSpanConverter : JsonConverter + { + internal override JsonNode ToJson(TimeSpan value) => new JsonString(value.ToString()); + + internal override TimeSpan FromJson(JsonNode node) => (TimeSpan)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt16Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt16Converter.cs new file mode 100644 index 000000000000..38b73ef9b3bf --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt16Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class UInt16Converter : JsonConverter + { + internal override JsonNode ToJson(ushort value) => new JsonNumber(value); + + internal override ushort FromJson(JsonNode node) => (ushort)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt32Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt32Converter.cs new file mode 100644 index 000000000000..63c1f3b7cebb --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt32Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class UInt32Converter : JsonConverter + { + internal override JsonNode ToJson(uint value) => new JsonNumber(value); + + internal override uint FromJson(JsonNode node) => (uint)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt64Converter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt64Converter.cs new file mode 100644 index 000000000000..0a1f440bb538 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UInt64Converter.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class UInt64Converter : JsonConverter + { + internal override JsonNode ToJson(ulong value) => new JsonNumber(value.ToString()); + + internal override ulong FromJson(JsonNode node) => (ulong)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/Instances/UriConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UriConverter.cs new file mode 100644 index 000000000000..650d9551f42d --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/Instances/UriConverter.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class UriConverter : JsonConverter + { + internal override JsonNode ToJson(Uri value) => new JsonString(value.AbsoluteUri); + + internal override Uri FromJson(JsonNode node) => (Uri)node; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/JsonConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverter.cs new file mode 100644 index 000000000000..bdee2baec501 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverter.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public abstract class JsonConverter : IJsonConverter + { + internal abstract T FromJson(JsonNode node); + + internal abstract JsonNode ToJson(T value); + + #region IConverter + + object IJsonConverter.FromJson(JsonNode node) => FromJson(node); + + JsonNode IJsonConverter.ToJson(object value) => ToJson((T)value); + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterAttribute.cs b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterAttribute.cs new file mode 100644 index 000000000000..5dffbaa484dc --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterAttribute.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class JsonConverterAttribute : Attribute + { + internal JsonConverterAttribute(Type type) + { + Converter = (IJsonConverter)Activator.CreateInstance(type); + } + + internal IJsonConverter Converter { get; } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterFactory.cs b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterFactory.cs new file mode 100644 index 000000000000..4799b61860e2 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/JsonConverterFactory.cs @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class JsonConverterFactory + { + private static readonly Dictionary converters = new Dictionary(); + + static JsonConverterFactory() + { + AddInternal(new BooleanConverter()); + AddInternal(new DateTimeConverter()); + AddInternal(new DateTimeOffsetConverter()); + AddInternal(new BinaryConverter()); + AddInternal(new DecimalConverter()); + AddInternal(new DoubleConverter()); + AddInternal(new GuidConverter()); + AddInternal(new Int16Converter()); + AddInternal(new Int32Converter()); + AddInternal(new Int64Converter()); + AddInternal(new SingleConverter()); + AddInternal(new StringConverter()); + AddInternal(new TimeSpanConverter()); + AddInternal(new UInt16Converter()); + AddInternal(new UInt32Converter()); + AddInternal(new UInt64Converter()); + AddInternal(new UriConverter()); + + // Hash sets + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + AddInternal(new HashSetConverter()); + + // JSON + + AddInternal(new JsonObjectConverter()); + AddInternal(new JsonArrayConverter()); + } + + internal static Dictionary Instances => converters; + + internal static IJsonConverter Get(Type type) + { + var details = TypeDetails.Get(type); + + if (details.JsonConverter == null) + { + throw new ConversionException($"No converter found for '{type.Name}'."); + } + + return details.JsonConverter; + } + + internal static bool TryGet(Type type, out IJsonConverter converter) + { + var typeDetails = TypeDetails.Get(type); + + converter = typeDetails.JsonConverter; + + return converter != null; + } + + private static void AddInternal(JsonConverter converter) + => converters.Add(typeof(T), converter); + + private static void AddInternal(IJsonConverter converter) + => converters.Add(typeof(T), converter); + + internal static void Add(JsonConverter converter) + { + if (converter == null) + { + throw new ArgumentNullException(nameof(converter)); + } + + AddInternal(converter); + + var type = TypeDetails.Get(); + + type.JsonConverter = converter; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Conversions/StringLikeConverter.cs b/src/WindowsIotServices/generated/runtime/Conversions/StringLikeConverter.cs new file mode 100644 index 000000000000..40a3bdfe278d --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Conversions/StringLikeConverter.cs @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class StringLikeConverter : IJsonConverter + { + private readonly Type type; + private readonly MethodInfo parseMethod; + + internal StringLikeConverter(Type type) + { + this.type = type ?? throw new ArgumentNullException(nameof(type)); + this.parseMethod = StringLikeHelper.GetParseMethod(type); + } + + public object FromJson(JsonNode node) => + parseMethod.Invoke(null, new[] { node.ToString() }); + + public JsonNode ToJson(object value) => new JsonString(value.ToString()); + } + + internal static class StringLikeHelper + { + private static readonly Type[] parseMethodParamaterTypes = new[] { typeof(string) }; + + internal static bool IsStringLike(Type type) + { + return GetParseMethod(type) != null; + } + + internal static MethodInfo GetParseMethod(Type type) + { + MethodInfo method = type.GetMethod("Parse", parseMethodParamaterTypes); + + if (method?.IsPublic != true) return null; + + return method; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/IJsonSerializable.cs b/src/WindowsIotServices/generated/runtime/Customizations/IJsonSerializable.cs new file mode 100644 index 000000000000..1b5d0a880eb0 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/IJsonSerializable.cs @@ -0,0 +1,249 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json; +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + public interface IJsonSerializable + { + JsonNode ToJson(JsonObject container = null, SerializationMode serializationMode = SerializationMode.None); + } + internal static class JsonSerializable + { + /// + /// Serializes an enumerable and returns a JsonNode. + /// + /// an IEnumerable collection of items + /// A JsonNode that contains the collection of items serialized. + private static JsonNode ToJsonValue(System.Collections.IEnumerable enumerable) + { + if (enumerable != null) + { + // is it a byte array of some kind? + if (enumerable is System.Collections.Generic.IEnumerable byteEnumerable) + { + return new XBinary(System.Linq.Enumerable.ToArray(byteEnumerable)); + } + + var hasValues = false; + // just create an array of value nodes. + var result = new XNodeArray(); + foreach (var each in enumerable) + { + // we had at least one value. + hasValues = true; + + // try to serialize it. + var node = ToJsonValue(each); + if (null != node) + { + result.Add(node); + } + } + + // if we were able to add values, (or it was just empty), return it. + if (result.Count > 0 || !hasValues) + { + return result; + } + } + + // we couldn't serialize the values. Sorry. + return null; + } + + /// + /// Serializes a valuetype to a JsonNode. + /// + /// a ValueType (ie, a primitive, enum or struct) to be serialized + /// a JsonNode with the serialized value + private static JsonNode ToJsonValue(ValueType vValue) + { + // numeric type + if (vValue is SByte || vValue is Int16 || vValue is Int32 || vValue is Int64 || vValue is Byte || vValue is UInt16 || vValue is UInt32 || vValue is UInt64 || vValue is decimal || vValue is float || vValue is double) + { + return new JsonNumber(vValue.ToString()); + } + + // boolean type + if (vValue is bool bValue) + { + return new JsonBoolean(bValue); + } + + // dates + if (vValue is DateTime dtValue) + { + return new JsonDate(dtValue); + } + + // sorry, no idea. + return null; + } + /// + /// Attempts to serialize an object by using ToJson() or ToJsonString() if they exist. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + private static JsonNode TryToJsonValue(dynamic oValue) + { + object jsonValue = null; + dynamic v = oValue; + try + { + jsonValue = v.ToJson().ToString(); + } + catch + { + // no harm... + try + { + jsonValue = v.ToJsonString().ToString(); + } + catch + { + // no worries here either. + } + } + + // if we got something out, let's use it. + if (null != jsonValue) + { + // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? + return new JsonNumber(jsonValue.ToString()); + } + + return null; + } + + /// + /// Serialize an object by using a variety of methods. + /// + /// the object to be serialized. + /// the serialized JsonNode (if successful), otherwise, null + internal static JsonNode ToJsonValue(object value) + { + // things that implement our interface are preferred. + if (value is Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IJsonSerializable jsonSerializable) + { + return jsonSerializable.ToJson(); + } + + // strings are easy. + if (value is string || value is char) + { + return new JsonString(value.ToString()); + } + + // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) + if (value is System.ValueType vValue) + { + return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); + } + + // dictionaries are objects that should be able to serialize + if (value is System.Collections.Generic.IDictionary dictionary) + { + return Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.JsonSerializable.ToJson(dictionary, null); + } + + // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) + if (value is System.Collections.IEnumerable enumerableValue) + { + // some kind of enumerable value + return ToJsonValue(enumerableValue) ?? TryToJsonValue(value) ?? new JsonString(value.ToString()); + } + + // at this point, we're going to fallback to a string literal here, since we really have no idea what it is. + return new JsonString(value.ToString()); + } + + internal static JsonObject ToJson(System.Collections.Generic.Dictionary dictionary, JsonObject container) => ToJson((System.Collections.Generic.IDictionary)dictionary, container); + + /// + /// Serializes a dictionary into a JsonObject container. + /// + /// The dictionary to serailize + /// the container to serialize the dictionary into + /// the container + internal static JsonObject ToJson(System.Collections.Generic.IDictionary dictionary, JsonObject container) + { + container = container ?? new JsonObject(); + if (dictionary != null && dictionary.Count > 0) + { + foreach (var key in dictionary) + { + // currently, we don't serialize null values. + if (null != key.Value) + { + container.Add(key.Key, ToJsonValue(key.Value)); + continue; + } + } + } + return container; + } + + internal static Func> DeserializeDictionary(Func> dictionaryFactory) + { + return (node) => FromJson(node, dictionaryFactory(), (object)(DeserializeDictionary(dictionaryFactory)) as Func); + } + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.Dictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) => FromJson(json, (System.Collections.Generic.IDictionary)container, objectFactory, excludes); + + + internal static System.Collections.Generic.IDictionary FromJson(JsonObject json, System.Collections.Generic.IDictionary container, System.Func objectFactory, System.Collections.Generic.HashSet excludes = null) + { + if (null == json) + { + return container; + } + + foreach (var key in json.Keys) + { + if (true == excludes?.Contains(key)) + { + continue; + } + + var value = json[key]; + try + { + switch (value.Type) + { + case JsonType.Null: + // skip null values. + continue; + + case JsonType.Array: + case JsonType.Boolean: + case JsonType.Date: + case JsonType.Binary: + case JsonType.Number: + case JsonType.String: + container.Add(key, (V)value.ToValue()); + break; + case JsonType.Object: + if (objectFactory != null) + { + var v = objectFactory(value as JsonObject); + if (null != v) + { + container.Add(key, v); + } + } + break; + } + } + catch + { + } + } + return container; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonArray.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonArray.cs new file mode 100644 index 000000000000..9d37e7258d02 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonArray.cs @@ -0,0 +1,13 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public partial class JsonArray + { + internal override object ToValue() => Count == 0 ? new object[0] : System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Select(this, each => each.ToValue())); + } + + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonBoolean.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonBoolean.cs new file mode 100644 index 000000000000..f1fe2b54aa77 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonBoolean.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal partial class JsonBoolean + { + internal static JsonBoolean Create(bool? value) => value is bool b ? new JsonBoolean(b) : null; + internal bool ToBoolean() => Value; + + internal override object ToValue() => Value; + } + + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonNode.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonNode.cs new file mode 100644 index 000000000000..514c34388bd0 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonNode.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonNode + { + /// + /// Returns the content of this node as the underlying value. + /// Will default to the string representation if not overridden in child classes. + /// + /// an object with the underlying value of the node. + internal virtual object ToValue() { + return this.ToString(); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonNumber.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonNumber.cs new file mode 100644 index 000000000000..4a98bd95f268 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonNumber.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System; + + public partial class JsonNumber + { + internal static readonly DateTime EpochDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); + private static long ToUnixTime(DateTime dateTime) + { + return (long)dateTime.Subtract(EpochDate).TotalSeconds; + } + private static DateTime FromUnixTime(long totalSeconds) + { + return EpochDate.AddSeconds(totalSeconds); + } + internal byte ToByte() => this; + internal int ToInt() => this; + internal long ToLong() => this; + internal short ToShort() => this; + internal UInt16 ToUInt16() => this; + internal UInt32 ToUInt32() => this; + internal UInt64 ToUInt64() => this; + internal decimal ToDecimal() => this; + internal double ToDouble() => this; + internal float ToFloat() => this; + + internal static JsonNumber Create(int? value) => value is int n ? new JsonNumber(n) : null; + internal static JsonNumber Create(long? value) => value is long n ? new JsonNumber(n) : null; + internal static JsonNumber Create(float? value) => value is float n ? new JsonNumber(n) : null; + internal static JsonNumber Create(double? value) => value is double n ? new JsonNumber(n) : null; + internal static JsonNumber Create(decimal? value) => value is decimal n ? new JsonNumber(n) : null; + internal static JsonNumber Create(DateTime? value) => value is DateTime date ? new JsonNumber(ToUnixTime(date)) : null; + + public static implicit operator DateTime(JsonNumber number) => FromUnixTime(number); + internal DateTime ToDateTime() => this; + + internal JsonNumber(decimal value) + { + this.value = value.ToString(); + } + internal override object ToValue() + { + if (IsInteger) + { + if (int.TryParse(this.value, out int iValue)) + { + return iValue; + } + if (long.TryParse(this.value, out long lValue)) + { + return lValue; + } + } + else + { + if (float.TryParse(this.value, out float fValue)) + { + return fValue; + } + if (double.TryParse(this.value, out double dValue)) + { + return dValue; + } + if (decimal.TryParse(this.value, out decimal dcValue)) + { + return dcValue; + } + } + return null; + } + } + + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonObject.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonObject.cs new file mode 100644 index 000000000000..2b9e89845e75 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonObject.cs @@ -0,0 +1,183 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System; + using System.Collections.Generic; + + public partial class JsonObject + { + internal override object ToValue() => Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.JsonSerializable.FromJson(this, new System.Collections.Generic.Dictionary(), (obj) => obj.ToValue()); + + internal void SafeAdd(string name, Func valueFn) + { + if (valueFn != null) + { + var value = valueFn(); + if (null != value) + { + items.Add(name, value); + } + } + } + + internal void SafeAdd(string name, JsonNode value) + { + if (null != value) + { + items.Add(name, value); + } + } + + internal T NullableProperty(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; + } + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + //throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal JsonObject Property(string propertyName) + { + return PropertyT(propertyName); + } + + internal T PropertyT(string propertyName) where T : JsonNode + { + if (this.TryGetValue(propertyName, out JsonNode value)) + { + if (value.IsNull) + { + return null; // we're going to assume that the consumer knows what to do if null is explicity returned? + } + + if (value is T tval) + { + return tval; + } + /* it's present, but not the correct type... */ + // throw new Exception($"Property {propertyName} in object expected type {typeof(T).Name} but value of type {value.Type.ToString()} was found."); + } + return null; + } + + internal int NumberProperty(string propertyName, ref int output) => output = this.PropertyT(propertyName)?.ToInt() ?? output; + internal float NumberProperty(string propertyName, ref float output) => output = this.PropertyT(propertyName)?.ToFloat() ?? output; + internal byte NumberProperty(string propertyName, ref byte output) => output = this.PropertyT(propertyName)?.ToByte() ?? output; + internal long NumberProperty(string propertyName, ref long output) => output = this.PropertyT(propertyName)?.ToLong() ?? output; + internal double NumberProperty(string propertyName, ref double output) => output = this.PropertyT(propertyName)?.ToDouble() ?? output; + internal decimal NumberProperty(string propertyName, ref decimal output) => output = this.PropertyT(propertyName)?.ToDecimal() ?? output; + internal short NumberProperty(string propertyName, ref short output) => output = this.PropertyT(propertyName)?.ToShort() ?? output; + internal DateTime NumberProperty(string propertyName, ref DateTime output) => output = this.PropertyT(propertyName)?.ToDateTime() ?? output; + + internal int? NumberProperty(string propertyName, ref int? output) => output = this.NullableProperty(propertyName)?.ToInt() ?? null; + internal float? NumberProperty(string propertyName, ref float? output) => output = this.NullableProperty(propertyName)?.ToFloat() ?? null; + internal byte? NumberProperty(string propertyName, ref byte? output) => output = this.NullableProperty(propertyName)?.ToByte() ?? null; + internal long? NumberProperty(string propertyName, ref long? output) => output = this.NullableProperty(propertyName)?.ToLong() ?? null; + internal double? NumberProperty(string propertyName, ref double? output) => output = this.NullableProperty(propertyName)?.ToDouble() ?? null; + internal decimal? NumberProperty(string propertyName, ref decimal? output) => output = this.NullableProperty(propertyName)?.ToDecimal() ?? null; + internal short? NumberProperty(string propertyName, ref short? output) => output = this.NullableProperty(propertyName)?.ToShort() ?? null; + + internal DateTime? NumberProperty(string propertyName, ref DateTime? output) => output = this.NullableProperty(propertyName)?.ToDateTime() ?? null; + + + internal string StringProperty(string propertyName) => this.PropertyT(propertyName)?.ToString(); + internal string StringProperty(string propertyName, ref string output) => output = this.PropertyT(propertyName)?.ToString() ?? output; + internal char StringProperty(string propertyName, ref char output) => output = this.PropertyT(propertyName)?.ToChar() ?? output; + internal char? StringProperty(string propertyName, ref char? output) => output = this.PropertyT(propertyName)?.ToChar() ?? null; + + internal DateTime StringProperty(string propertyName, ref DateTime output) => DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out output) ? output : output; + internal DateTime? StringProperty(string propertyName, ref DateTime? output) => output = DateTime.TryParse(this.PropertyT(propertyName)?.ToString(), out var o) ? o : output; + + + internal bool BooleanProperty(string propertyName, ref bool output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? output; + internal bool? BooleanProperty(string propertyName, ref bool? output) => output = this.PropertyT(propertyName)?.ToBoolean() ?? null; + + internal T[] ArrayProperty(string propertyName, ref T[] output, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + } + return output; + } + internal T[] ArrayProperty(string propertyName, Func deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + var output = new T[array.Count]; + for (var i = 0; i < output.Length; i++) + { + output[i] = deserializer(array[i]); + } + return output; + } + return new T[0]; + } + internal void IterateArrayProperty(string propertyName, Action deserializer) + { + var array = this.PropertyT(propertyName); + if (array != null) + { + for (var i = 0; i < array.Count; i++) + { + deserializer(array[i]); + } + } + } + + internal Dictionary DictionaryProperty(string propertyName, ref Dictionary output, Func deserializer) + { + var dictionary = this.PropertyT(propertyName); + if (output == null) + { + output = new Dictionary(); + } + else + { + output.Clear(); + } + if (dictionary != null) + { + foreach (var key in dictionary.Keys) + { + output[key] = deserializer(dictionary[key]); + } + } + return output; + } + + internal static JsonObject Create(IDictionary source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new JsonObject(); + + foreach (var key in source.Keys) + { + result.SafeAdd(key, selector(source[key])); + } + return result; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/JsonString.cs b/src/WindowsIotServices/generated/runtime/Customizations/JsonString.cs new file mode 100644 index 000000000000..89bdaa99c702 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/JsonString.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System; + using System.Globalization; + using System.Linq; + + public partial class JsonString + { + internal static string DateFormat = "yyyy-MM-dd"; + internal static string DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK"; + internal static string DateTimeRfc1123Format = "R"; + + internal static JsonString Create(string value) => value == null ? null : new JsonString(value); + internal static JsonString Create(char? value) => value is char c ? new JsonString(c.ToString()) : null; + + internal static JsonString CreateDate(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTime(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeFormat, CultureInfo.CurrentCulture)) : null; + internal static JsonString CreateDateTimeRfc1123(DateTime? value) => value is DateTime date ? new JsonString(date.ToString(DateTimeRfc1123Format, CultureInfo.CurrentCulture)) : null; + + internal char ToChar() => this.Value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char(JsonString value) => value?.ToString()?.FirstOrDefault() ?? default(char); + public static implicit operator char? (JsonString value) => value?.ToString()?.FirstOrDefault(); + + public static implicit operator DateTime(JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime); + public static implicit operator DateTime? (JsonString value) => DateTime.TryParse(value, out var output) ? output : default(DateTime?); + + } + + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Customizations/XNodeArray.cs b/src/WindowsIotServices/generated/runtime/Customizations/XNodeArray.cs new file mode 100644 index 000000000000..e520b600ea6b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Customizations/XNodeArray.cs @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System; + using System.Linq; + + public partial class XNodeArray + { + internal static XNodeArray Create(T[] source, Func selector) + { + if (source == null || selector == null) + { + return null; + } + var result = new XNodeArray(); + foreach (var item in source.Select(selector)) + { + result.SafeAdd(item); + } + return result; + } + internal void SafeAdd(JsonNode item) + { + if (item != null) + { + items.Add(item); + } + } + internal void SafeAdd(Func itemFn) + { + if (itemFn != null) + { + var item = itemFn(); + if (item != null) + { + items.Add(item); + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Debugging.cs b/src/WindowsIotServices/generated/runtime/Debugging.cs new file mode 100644 index 000000000000..550a8e980cb0 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Debugging.cs @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + internal static class AttachDebugger + { + internal static void Break() + { + while (!System.Diagnostics.Debugger.IsAttached) + { + System.Console.Error.WriteLine($"Waiting for debugger to attach to process {System.Diagnostics.Process.GetCurrentProcess().Id}"); + for (int i = 0; i < 50; i++) + { + if (System.Diagnostics.Debugger.IsAttached) + { + break; + } + System.Threading.Thread.Sleep(100); + System.Console.Error.Write("."); + } + System.Console.Error.WriteLine(); + } + System.Diagnostics.Debugger.Break(); + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/DictionaryExtensions.cs b/src/WindowsIotServices/generated/runtime/DictionaryExtensions.cs new file mode 100644 index 000000000000..2f9cba4b6f52 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/DictionaryExtensions.cs @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + internal static class DictionaryExtensions + { + internal static void HashTableToDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) + { + foreach (var each in hashtable.Keys) + { + var key = each.ToString(); + var value = hashtable[key]; + if (null != value) + { + if (value is System.Collections.Hashtable nested) + { + HashTableToDictionary(nested, new System.Collections.Generic.Dictionary()); + } + else + { + try + { + dictionary[key] = (V)value; + } + catch + { + // Values getting dropped; not compatible with target dictionary. Not sure what to do here. + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/EventData.cs b/src/WindowsIotServices/generated/runtime/EventData.cs new file mode 100644 index 000000000000..eee8a75de736 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/EventData.cs @@ -0,0 +1,78 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + + using System; + using System.Threading; + + ///Represents the data in signaled event. + public partial class EventData + { + /// + /// The type of the event being signaled + /// + public string Id; + + /// + /// The user-ready message from the event. + /// + public string Message; + + /// + /// When the event is about a parameter, this is the parameter name. + /// Used in Validation Events + /// + public string Parameter; + + /// + /// This represents a numeric value associated with the event. + /// Use for progress-style events + /// + public double Value; + + /// + /// Any extended data for an event should be serialized and stored here. + /// + public string ExtendedData; + + /// + /// If the event triggers after the request message has been created, this will contain the Request Message (which in HTTP calls would be HttpRequestMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.RequestMessgae is HttpRequestMessage httpRequest) + /// { + /// httpRequest.Headers.Add("x-request-flavor", "vanilla"); + /// } + /// + /// + public object RequestMessage; + + /// + /// If the event triggers after the response is back, this will contain the Response Message (which in HTTP calls would be HttpResponseMessage) + /// + /// Typically you'd cast this to the expected type to use it: + /// + /// if(eventData.ResponseMessage is HttpResponseMessage httpResponse){ + /// var flavor = httpResponse.Headers.GetValue("x-request-flavor"); + /// } + /// + /// + public object ResponseMessage; + + /// + /// Cancellation method for this event. + /// + /// If the event consumer wishes to cancel the request that initiated this event, call Cancel() + /// + /// + /// The original initiator of the request must provide the implementation of this. + /// + public System.Action Cancel; + } + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/EventDataExtensions.cs b/src/WindowsIotServices/generated/runtime/EventDataExtensions.cs new file mode 100644 index 000000000000..d901b056fd59 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/EventDataExtensions.cs @@ -0,0 +1,94 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System; + + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] + /// + /// PowerShell-specific data on top of the llc# EventData + /// + /// + /// In PowerShell, we add on the EventDataConverter to support sending events between modules. + /// Obviously, this code would need to be duplcated on both modules. + /// This is preferable to sharing a common library, as versioning makes that problematic. + /// + public partial class EventData : EventArgs + { + } + + /// + /// A PowerShell PSTypeConverter to adapt an EventData object that has been passed. + /// Usually used between modules. + /// + public class EventDataConverter : System.Management.Automation.PSTypeConverter + { + public override bool CanConvertTo(object sourceValue, Type destinationType) => false; + public override object ConvertTo(object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => null; + public override bool CanConvertFrom(dynamic sourceValue, Type destinationType) => destinationType == typeof(EventData) && CanConvertFrom(sourceValue); + public override object ConvertFrom(dynamic sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Verifies that a given object has the required members to convert it to the target type (EventData) + /// + /// Uses a dynamic type so that it is able to use the simplest code without excessive checking. + /// + /// The instance to verify + /// True, if the object has all the required parameters. + public static bool CanConvertFrom(dynamic sourceValue) + { + try + { + // check if this has *required* parameters... + sourceValue?.Id?.GetType(); + sourceValue?.Message?.GetType(); + sourceValue?.Cancel?.GetType(); + + // remaining parameters are not *required*, + // and if they have values, it will copy them at conversion time. + } + catch + { + // if anything throws an exception (because it's null, or doesn't have that member) + return false; + } + return true; + } + + /// + /// Returns result of the delegate as the expected type, or default(T) + /// + /// This isolates any exceptions from the consumer. + /// + /// A delegate that returns a value + /// The desired output type + /// The value from the function if the type is correct + private static T To(Func srcValue) + { + try { return srcValue(); } + catch { return default(T); } + } + + /// + /// Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values. + /// + /// the incoming object + /// EventData + public static EventData ConvertFrom(dynamic sourceValue) + { + return new EventData + { + Id = To(() => sourceValue.Id), + Message = To(() => sourceValue.Message), + Parameter = To(() => sourceValue.Parameter), + Value = To(() => sourceValue.Value), + RequestMessage = To(() => sourceValue.RequestMessage), + ResponseMessage = To(() => sourceValue.ResponseMessage), + Cancel = To(() => sourceValue.Cancel) + }; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/EventListener.cs b/src/WindowsIotServices/generated/runtime/EventListener.cs new file mode 100644 index 000000000000..c94eb9423efe --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/EventListener.cs @@ -0,0 +1,247 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + public interface IValidates + { + Task Validate(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IEventListener listener); + } + + /// + /// The IEventListener Interface defines the communication mechanism for Signaling events during a remote call. + /// + /// + /// The interface is designed to be as minimal as possible, allow for quick peeking of the event type (id) + /// and the cancellation status and provides a delegate for retrieving the event details themselves. + /// + public interface IEventListener + { + Task Signal(string id, CancellationToken token, GetEventData createMessage); + CancellationToken Token { get; } + System.Action Cancel { get; } + } + + internal static partial class Extensions + { + public static Task Signal(this IEventListener instance, string id, CancellationToken token, Func createMessage) => instance.Signal(id, token, createMessage); + public static Task Signal(this IEventListener instance, string id, CancellationToken token) => instance.Signal(id, token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, HttpResponseMessage response) => instance.Signal(id, token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, CancellationToken token, EventData message) => instance.Signal(id, token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, Func createMessage) => instance.Signal(id, instance.Token, createMessage); + public static Task Signal(this IEventListener instance, string id) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = request, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, string messageText, double magnitude, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = messageText, RequestMessage = response.RequestMessage, ResponseMessage = response, Value = magnitude, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpRequestMessage request, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = request, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, HttpResponseMessage response) => instance.Signal(id, instance.Token, () => new EventData { Id = id, RequestMessage = response.RequestMessage, ResponseMessage = response, Cancel = instance.Cancel }); + public static Task Signal(this IEventListener instance, string id, EventData message) => instance.Signal(id, instance.Token, () => { message.Id = id; message.Cancel = instance.Cancel; return message; }); + + public static Task Signal(this IEventListener instance, string id, System.Uri uri) => instance.Signal(id, instance.Token, () => new EventData { Id = id, Message = uri.ToString(), Cancel = instance.Cancel }); + + public static async Task AssertNotNull(this IEventListener instance, string parameterName, object value) + { + if (value == null) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' should not be null", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMinimumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length < length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is less than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertMaximumLength(this IEventListener instance, string parameterName, string value, int length) + { + if (value != null && value.Length > length) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Length of '{parameterName}' is greater than {length}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + + public static async Task AssertRegEx(this IEventListener instance, string parameterName, string value, string regularExpression) + { + if (value != null && !System.Text.RegularExpressions.Regex.Match(value, regularExpression).Success) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' does not validate against pattern /{regularExpression}/", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertEnum(this IEventListener instance, string parameterName, string value, params string[] values) + { + if (!values.Any(each => each.Equals(value))) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"'{parameterName}' is not one of ({values.Aggregate((c, e) => $"'{e}',{c}")}", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertObjectIsValid(this IEventListener instance, string parameterName, object inst) + { + await (inst as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.IValidates)?.Validate(instance); + } + + public static async Task AssertIsLessThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) >= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThan(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) <= 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsLessThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) > 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be less than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsGreaterThanOrEqual(this IEventListener instance, string parameterName, T? value, T max) where T : struct, System.IComparable + { + if (null != value && ((T)value).CompareTo(max) < 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be greater than or equal to {max} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, Int64? value, Int64 multiple) + { + if (null != value && value % multiple != 0) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, double? value, double multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + public static async Task AssertIsMultipleOf(this IEventListener instance, string parameterName, decimal? value, decimal multiple) + { + if (null != value) + { + var i = (Int64)(value / multiple); + if (i != value / multiple) + { + await instance.Signal(Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, instance.Token, () => new EventData { Id = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Events.ValidationWarning, Message = $"Value of '{parameterName}' must be multiple of {multiple} (value is {value})", Parameter = parameterName, Cancel = instance.Cancel }); + } + } + } + } + + /// + /// An Implementation of the IEventListener that supports subscribing to events and dispatching them + /// (used for manually using the lowlevel interface) + /// + public class EventListener : CancellationTokenSource, IEnumerable>, IEventListener + { + private Dictionary calls = new Dictionary(); + public IEnumerator> GetEnumerator() => calls.GetEnumerator(); + IEnumerator IEnumerable.GetEnumerator() => calls.GetEnumerator(); + public EventListener() + { + } + + public new Action Cancel => base.Cancel; + private Event tracer; + + public EventListener(params (string name, Event callback)[] initializer) + { + foreach (var each in initializer) + { + Add(each.name, each.callback); + } + } + + public void Add(string name, SynchEvent callback) + { + Add(name, (message) => { callback(message); return Task.CompletedTask; }); + } + + public void Add(string name, Event callback) + { + if (callback != null) + { + if (string.IsNullOrEmpty(name)) + { + if (calls.ContainsKey(name)) + { + tracer += callback; + } + else + { + tracer = callback; + } + } + else + { + if (calls.ContainsKey(name)) + { + calls[name ?? System.String.Empty] += callback; + } + else + { + calls[name ?? System.String.Empty] = callback; + } + } + } + } + + + public async Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + using (NoSynchronizationContext) + { + if (!string.IsNullOrEmpty(id) && (calls.TryGetValue(id, out Event listener) || tracer != null)) + { + var message = createMessage(); + message.Id = id; + + await listener?.Invoke(message); + await tracer?.Invoke(message); + + if (token.IsCancellationRequested) + { + throw new OperationCanceledException($"Canceled by event {id} ", this.Token); + } + } + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Events.cs b/src/WindowsIotServices/generated/runtime/Events.cs new file mode 100644 index 000000000000..025357450c61 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Events.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + public static partial class Events + { + public const string Log = nameof(Log); + public const string Validation = nameof(Validation); + public const string ValidationWarning = nameof(ValidationWarning); + public const string AfterValidation = nameof(AfterValidation); + public const string RequestCreated = nameof(RequestCreated); + public const string ResponseCreated = nameof(ResponseCreated); + public const string URLCreated = nameof(URLCreated); + public const string Finally = nameof(Finally); + public const string HeaderParametersAdded = nameof(HeaderParametersAdded); + public const string BodyContentSet = nameof(BodyContentSet); + public const string BeforeCall = nameof(BeforeCall); + public const string BeforeResponseDispatch = nameof(BeforeResponseDispatch); + public const string FollowingNextLink = nameof(FollowingNextLink); + public const string DelayBeforePolling = nameof(DelayBeforePolling); + public const string Polling = nameof(Polling); + + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/EventsExtensions.cs b/src/WindowsIotServices/generated/runtime/EventsExtensions.cs new file mode 100644 index 000000000000..ca81e850aee6 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/EventsExtensions.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + public static partial class Events + { + public const string CmdletProcessRecordStart = nameof(CmdletProcessRecordStart); + public const string CmdletProcessRecordAsyncStart = nameof(CmdletProcessRecordAsyncStart); + public const string CmdletException = nameof(CmdletException); + public const string CmdletGetPipeline = nameof(CmdletGetPipeline); + public const string CmdletBeforeAPICall = nameof(CmdletBeforeAPICall); + public const string CmdletBeginProcessing = nameof(CmdletBeginProcessing); + public const string CmdletEndProcessing = nameof(CmdletEndProcessing); + public const string CmdletProcessRecordEnd = nameof(CmdletProcessRecordEnd); + public const string CmdletProcessRecordAsyncEnd = nameof(CmdletProcessRecordAsyncEnd); + public const string CmdletAfterAPICall = nameof(CmdletAfterAPICall); + + public const string Verbose = nameof(Verbose); + public const string Debug = nameof(Debug); + public const string Information = nameof(Information); + public const string Error = nameof(Error); + public const string Warning = nameof(Warning); + } + +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Extensions.cs b/src/WindowsIotServices/generated/runtime/Extensions.cs new file mode 100644 index 000000000000..1aa054b96e93 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Extensions.cs @@ -0,0 +1,111 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System.Linq; + + internal static partial class Extensions + { + + public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class + { + (instance as IHeaderSerializable)?.ReadHeaders(headers); + return instance; + } + + internal static bool If(T input, out T output) + { + if (null == input) + { + output = default(T); + return false; + } + output = input; + return true; + } + + internal static void AddIf(T value, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(value); + } + } + + internal static void AddIf(T value, string serializedName, System.Action addMethod) + { + // if value is present (and it's not just an empty JSON Object) + if (null != value && (value as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject)?.Keys.Count != 0) + { + addMethod(serializedName, value); + } + } + + /// + /// Returns the first header value as a string from an HttpReponseMessage. + /// + /// the HttpResponseMessage to fetch a header from + /// the header name + /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => headerName == each.Key).Value?.FirstOrDefault() ?? string.Empty; + + /// + /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, + /// will restore the synchonization context to the original value. + /// + /// This is used a less-invasive means to ensure that code in the library that doesn't + /// need to be continued in the original context doesn't have to have ConfigureAwait(false) + /// on every single await + /// + /// If the SynchronizationContext is null when this is used, the resulting IDisposable + /// will not do anything (this prevents excessive re-setting of the SynchronizationContext) + /// + /// Usage: + /// + /// using(NoSynchronizationContext) { + /// await SomeAsyncOperation(); + /// await SomeOtherOperation(); + /// } + /// + /// + /// + /// An IDisposable that will return the SynchronizationContext to original state + internal static System.IDisposable NoSynchronizationContext => System.Threading.SynchronizationContext.Current == null ? Dummy : new NoSyncContext(); + + /// + /// An instance of the Dummy IDispoable. + /// + /// + internal static System.IDisposable Dummy = new DummyDisposable(); + + /// + /// An IDisposable that does absolutely nothing. + /// + internal class DummyDisposable : System.IDisposable + { + public void Dispose() + { + } + } + /// + /// An IDisposable that saves the SynchronizationContext,sets it to null and + /// restores it to the original upon Dispose(). + /// + /// NOTE: This is designed to be less invasive than using .ConfigureAwait(false) + /// on every single await in library code (ie, places where we know we don't need + /// to continue in the same context as we went async) + /// + internal class NoSyncContext : System.IDisposable + { + private System.Threading.SynchronizationContext original = System.Threading.SynchronizationContext.Current; + internal NoSyncContext() + { + System.Threading.SynchronizationContext.SetSynchronizationContext(null); + } + public void Dispose() => System.Threading.SynchronizationContext.SetSynchronizationContext(original); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs b/src/WindowsIotServices/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs new file mode 100644 index 000000000000..9ef4ba8d8edc --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal static class StringBuilderExtensions + { + /// + /// Extracts the buffered value and resets the buffer + /// + internal static string Extract(this StringBuilder builder) + { + var text = builder.ToString(); + + builder.Clear(); + + return text; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Helpers/Extensions/TypeExtensions.cs b/src/WindowsIotServices/generated/runtime/Helpers/Extensions/TypeExtensions.cs new file mode 100644 index 000000000000..5ebf4d82419d --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Helpers/Extensions/TypeExtensions.cs @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal static class TypeExtensions + { + internal static bool IsNullable(this Type type) => + type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>)); + + internal static Type GetOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition() == openGenericInterfaceType) + { + return candidateType; + } + + // Check if it references it's own converter.... + + foreach (Type interfaceType in candidateType.GetInterfaces()) + { + if (interfaceType.IsGenericType + && interfaceType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return interfaceType; + } + } + + return null; + } + + // Author: Sebastian Good + // http://stackoverflow.com/questions/503263/how-to-determine-if-a-type-implements-a-specific-generic-interface-type + internal static bool ImplementsOpenGenericInterface(this Type candidateType, Type openGenericInterfaceType) + { + if (candidateType.Equals(openGenericInterfaceType)) + { + return true; + } + + if (candidateType.IsGenericType && candidateType.GetGenericTypeDefinition().Equals(openGenericInterfaceType)) + { + return true; + } + + foreach (Type i in candidateType.GetInterfaces()) + { + if (i.IsGenericType && i.ImplementsOpenGenericInterface(openGenericInterfaceType)) + { + return true; + } + } + + return false; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Helpers/Seperator.cs b/src/WindowsIotServices/generated/runtime/Helpers/Seperator.cs new file mode 100644 index 000000000000..7a39c20db1e0 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Helpers/Seperator.cs @@ -0,0 +1,11 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal static class Seperator + { + internal static readonly char[] Dash = { '-' }; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Helpers/TypeDetails.cs b/src/WindowsIotServices/generated/runtime/Helpers/TypeDetails.cs new file mode 100644 index 000000000000..6e77778cfe1d --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Helpers/TypeDetails.cs @@ -0,0 +1,116 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + + + + internal class TypeDetails + { + private readonly Type info; + + internal TypeDetails(Type info) + { + this.info = info ?? throw new ArgumentNullException(nameof(info)); + } + + internal Type NonNullType { get; set; } + + internal object DefaultValue { get; set; } + + internal bool IsNullable { get; set; } + + internal bool IsList { get; set; } + + internal bool IsStringLike { get; set; } + + internal bool IsEnum => info.IsEnum; + + internal bool IsArray => info.IsArray; + + internal bool IsValueType => info.IsValueType; + + internal Type ElementType { get; set; } + + internal IJsonConverter JsonConverter { get; set; } + + #region Creation + + private static readonly ConcurrentDictionary cache = new ConcurrentDictionary(); + + internal static TypeDetails Get() => Get(typeof(T)); + + internal static TypeDetails Get(Type type) => cache.GetOrAdd(type, Create); + + private static TypeDetails Create(Type type) + { + var isGenericList = !type.IsPrimitive && type.ImplementsOpenGenericInterface(typeof(IList<>)); + var isList = !type.IsPrimitive && (isGenericList || typeof(IList).IsAssignableFrom(type)); + + var isNullable = type.IsNullable(); + + Type elementType; + + if (type.IsArray) + { + elementType = type.GetElementType(); + } + else if (isGenericList) + { + var iList = type.GetOpenGenericInterface(typeof(IList<>)); + + elementType = iList.GetGenericArguments()[0]; + } + else + { + elementType = null; + } + + var nonNullType = isNullable ? type.GetGenericArguments()[0] : type; + + var isStringLike = false; + + IJsonConverter converter; + + var jsonConverterAttribute = type.GetCustomAttribute(); + + if (jsonConverterAttribute != null) + { + converter = jsonConverterAttribute.Converter; + } + else if (nonNullType.IsEnum) + { + converter = new EnumConverter(nonNullType); + } + else if (JsonConverterFactory.Instances.TryGetValue(nonNullType, out converter)) + { + } + else if (StringLikeHelper.IsStringLike(nonNullType)) + { + isStringLike = true; + + converter = new StringLikeConverter(nonNullType); + } + + return new TypeDetails(nonNullType) { + NonNullType = nonNullType, + DefaultValue = type.IsValueType ? Activator.CreateInstance(type) : null, + IsNullable = isNullable, + IsList = isList, + IsStringLike = isStringLike, + ElementType = elementType, + JsonConverter = converter + }; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Helpers/XHelper.cs b/src/WindowsIotServices/generated/runtime/Helpers/XHelper.cs new file mode 100644 index 000000000000..8dc238c8b1eb --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Helpers/XHelper.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal static class XHelper + { + internal static JsonNode Create(JsonType type, TypeCode code, object value) + { + switch (type) + { + case JsonType.Binary : return new XBinary((byte[])value); + case JsonType.Boolean : return new JsonBoolean((bool)value); + case JsonType.Number : return new JsonNumber(value.ToString()); + case JsonType.String : return new JsonString((string)value); + } + + throw new Exception($"JsonType '{type}' does not have a fast conversion"); + } + + internal static bool TryGetElementType(TypeCode code, out JsonType type) + { + switch (code) + { + case TypeCode.Boolean : type = JsonType.Boolean; return true; + case TypeCode.Byte : type = JsonType.Number; return true; + case TypeCode.DateTime : type = JsonType.Date; return true; + case TypeCode.Decimal : type = JsonType.Number; return true; + case TypeCode.Double : type = JsonType.Number; return true; + case TypeCode.Empty : type = JsonType.Null; return true; + case TypeCode.Int16 : type = JsonType.Number; return true; + case TypeCode.Int32 : type = JsonType.Number; return true; + case TypeCode.Int64 : type = JsonType.Number; return true; + case TypeCode.SByte : type = JsonType.Number; return true; + case TypeCode.Single : type = JsonType.Number; return true; + case TypeCode.String : type = JsonType.String; return true; + case TypeCode.UInt16 : type = JsonType.Number; return true; + case TypeCode.UInt32 : type = JsonType.Number; return true; + case TypeCode.UInt64 : type = JsonType.Number; return true; + } + + type = default; + + return false; + } + + internal static JsonType GetElementType(TypeCode code) + { + switch (code) + { + case TypeCode.Boolean : return JsonType.Boolean; + case TypeCode.Byte : return JsonType.Number; + case TypeCode.DateTime : return JsonType.Date; + case TypeCode.Decimal : return JsonType.Number; + case TypeCode.Double : return JsonType.Number; + case TypeCode.Empty : return JsonType.Null; + case TypeCode.Int16 : return JsonType.Number; + case TypeCode.Int32 : return JsonType.Number; + case TypeCode.Int64 : return JsonType.Number; + case TypeCode.SByte : return JsonType.Number; + case TypeCode.Single : return JsonType.Number; + case TypeCode.String : return JsonType.String; + case TypeCode.UInt16 : return JsonType.Number; + case TypeCode.UInt32 : return JsonType.Number; + case TypeCode.UInt64 : return JsonType.Number; + default : return JsonType.Object; + } + + throw new Exception($"TypeCode '{code}' does not have a fast converter"); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/HttpPipeline.cs b/src/WindowsIotServices/generated/runtime/HttpPipeline.cs new file mode 100644 index 000000000000..8043cecead5e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/HttpPipeline.cs @@ -0,0 +1,88 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + using GetEventData = System.Func; + using NextDelegate = System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + + using SignalDelegate = System.Func, System.Threading.Tasks.Task>; + using GetParameterDelegate = System.Func, string, object>; + using SendAsyncStepDelegate = System.Func, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>; + using PipelineChangeDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>; + using ModuleLoadPipelineDelegate = System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + using NewRequestPipelineDelegate = System.Action, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>, System.Action, System.Threading.Tasks.Task>, System.Func, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>, System.Threading.Tasks.Task>>>; + +/* + public class DelegateBasedEventListener : IEventListener + { + private EventListenerDelegate _listener; + public DelegateBasedEventListener(EventListenerDelegate listener) + { + _listener = listener; + } + public CancellationToken Token => CancellationToken.None; + public System.Action Cancel => () => { }; + + + public Task Signal(string id, CancellationToken token, GetEventData createMessage) + { + return _listener(id, token, () => createMessage()); + } + } +*/ + /// + /// This is a necessary extension to the SendAsyncFactory to support the 'generic' delegate format. + /// + public partial class SendAsyncFactory + { + /// + /// This translates a generic-defined delegate for a listener into one that fits our ISendAsync pattern. + /// (Provided to support out-of-module delegation for Azure Cmdlets) + /// + /// The Pipeline Step as a delegate + public SendAsyncFactory(SendAsyncStepDelegate step) => this.implementation = (request, listener, next) => + step( + request, + listener.Token, + listener.Cancel, + (id, token, getEventData) => listener.Signal(id, token, () => { + var data = EventDataConverter.ConvertFrom( getEventData() ) as EventData; + data.Id = id; + data.Cancel = listener.Cancel; + data.RequestMessage = request; + return data; + }), + (req, token, cancel, listenerDelegate) => next.SendAsync(req, listener)); + } + + public partial class HttpPipeline : ISendAsync + { + public HttpPipeline Append(SendAsyncStepDelegate item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStepDelegate item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/HttpPipelineMocking.ps1 b/src/WindowsIotServices/generated/runtime/HttpPipelineMocking.ps1 new file mode 100644 index 000000000000..ba3488777df3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/HttpPipelineMocking.ps1 @@ -0,0 +1,110 @@ +$ErrorActionPreference = "Stop" + +# get the recording path +if (-not $TestRecordingFile) { + $TestRecordingFile = Join-Path $PSScriptRoot 'recording.json' +} + +# create the Http Pipeline Recorder +$Mock = New-Object -Type Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PipelineMock $TestRecordingFile + +# set the recorder to the appropriate mode (default to 'live') +Write-Host -ForegroundColor Green "Running '$TestMode' mode..." +switch ($TestMode) { + 'record' { + Write-Host -ForegroundColor Green "Recording to $TestRecordingFile" + $Mock.SetRecord() + $null = erase -ea 0 $TestRecordingFile + } + 'playback' { + if (-not (Test-Path $TestRecordingFile)) { + Write-Host -fore:yellow "Recording file '$TestRecordingFile' is not present. Tests expecting recorded responses will fail" + } else { + Write-Host -ForegroundColor Green "Using recording $TestRecordingFile" + } + $Mock.SetPlayback() + $Mock.ForceResponseHeaders["Retry-After"] = "0"; + } + default: { + $Mock.SetLive() + } +} + +# overrides for Pester Describe/Context/It + +function Describe( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushDescription($Name) + try { + return pester\Describe -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopDescription() + } +} + +function Context( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ValidateNotNull()] + [ScriptBlock] $Fixture = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") +) { + $Mock.PushContext($Name) + try { + return pester\Context -Name $Name -Tag $Tag -Fixture $fixture + } + finally { + $Mock.PopContext() + } +} + +function It { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test = { }, + + [System.Collections.IDictionary[]] $TestCases, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + $Mock.PushScenario($Name) + + try { + if ($skip) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Skip + } + if ($pending) { + return pester\It -Name $Name -Test $Test -TestCases $TestCases -Pending + } + return pester\It -Name $Name -Test $Test -TestCases $TestCases + } + finally { + $null = $Mock.PopScenario() + } +} + +# set the HttpPipelineAppend for all the cmdlets +$PSDefaultParameterValues["*:HttpPipelinePrepend"] = $Mock diff --git a/src/WindowsIotServices/generated/runtime/IAssociativeArray.cs b/src/WindowsIotServices/generated/runtime/IAssociativeArray.cs new file mode 100644 index 000000000000..b78f85d59341 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/IAssociativeArray.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter + public interface IAssociativeArray + { + System.Collections.Generic.IEnumerable Keys { get; } + System.Collections.Generic.IEnumerable Values { get; } + System.Collections.Generic.IDictionary AdditionalProperties { get; } + T this[string index] { get; set; } + int Count { get; } + void Add(string key, T value); + bool ContainsKey(string key); + bool Remove(string key); + bool TryGetValue(string key, out T value); + void Clear(); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/IHeaderSerializable.cs b/src/WindowsIotServices/generated/runtime/IHeaderSerializable.cs new file mode 100644 index 000000000000..00acbe641140 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/IHeaderSerializable.cs @@ -0,0 +1,14 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + public interface IHeaderSerializable + { + void ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/ISendAsync.cs b/src/WindowsIotServices/generated/runtime/ISendAsync.cs new file mode 100644 index 000000000000..d7232774ae88 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/ISendAsync.cs @@ -0,0 +1,296 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System.Net.Http; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + using System.Collections; + using System.Linq; + + /// + /// The interface for sending an HTTP request across the wire. + /// + public interface ISendAsync + { + Task SendAsync(HttpRequestMessage request, IEventListener callback); + } + + public class SendAsyncTerminalFactory : ISendAsyncTerminalFactory, ISendAsync + { + SendAsync implementation; + + public SendAsyncTerminalFactory(SendAsync implementation) => this.implementation = implementation; + public SendAsyncTerminalFactory(ISendAsync implementation) => this.implementation = implementation.SendAsync; + public ISendAsync Create() => this; + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback); + } + + public partial class SendAsyncFactory : ISendAsyncFactory + { + public class Sender : ISendAsync + { + internal ISendAsync next; + internal SendAsyncStep implementation; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => implementation(request, callback, next); + } + SendAsyncStep implementation; + + public SendAsyncFactory(SendAsyncStep implementation) => this.implementation = implementation; + public ISendAsync Create(ISendAsync next) => new Sender { next = next, implementation = implementation }; + + } + + public class HttpClientFactory : ISendAsyncTerminalFactory, ISendAsync + { + HttpClient client; + public HttpClientFactory() : this(new HttpClient()) + { + } + public HttpClientFactory(HttpClient client) => this.client = client; + public ISendAsync Create() => this; + + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, callback.Token); + } + + public interface ISendAsyncFactory + { + ISendAsync Create(ISendAsync next); + } + + public interface ISendAsyncTerminalFactory + { + ISendAsync Create(); + } + + public partial class HttpPipeline : ISendAsync + { + private ISendAsync pipeline; + private ISendAsyncTerminalFactory terminal; + private List steps = new List(); + + public HttpPipeline() : this(new HttpClientFactory()) + { + } + + public HttpPipeline(ISendAsyncTerminalFactory terminalStep) + { + if (terminalStep == null) + { + throw new System.ArgumentNullException(nameof(terminalStep), "Terminal Step Factory in HttpPipeline may not be null"); + } + TerminalFactory = terminalStep; + } + + /// + /// Returns an HttpPipeline with the current state of this pipeline. + /// + public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; + + public ISendAsyncTerminalFactory TerminalFactory + { + get => terminal; + set + { + if (value == null) + { + throw new System.ArgumentNullException("TerminalFactory in HttpPipeline may not be null"); + } + terminal = value; + } + } + + public ISendAsync Pipeline + { + get + { + // if the pipeline has been created and not invalidated, return it. + if (this.pipeline != null) + { + return this.pipeline; + } + + // create the pipeline from scratch. + var next = terminal.Create(); + foreach (var factory in steps) + { + // skip factories that return null. + next = factory.Create(next) ?? next; + } + return this.pipeline = next; + } + } + + public int Count => steps.Count; + + public HttpPipeline Prepend(ISendAsyncFactory item) + { + if (item != null) + { + steps.Add(item); + pipeline = null; + } + return this; + } + + public HttpPipeline Append(SendAsyncStep item) + { + if (item != null) + { + Append(new SendAsyncFactory(item)); + } + return this; + } + + public HttpPipeline Prepend(SendAsyncStep item) + { + if (item != null) + { + Prepend(new SendAsyncFactory(item)); + } + return this; + } + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(new SendAsyncFactory(item)); + } + } + return this; + } + + public HttpPipeline Append(ISendAsyncFactory item) + { + if (item != null) + { + steps.Insert(0, item); + pipeline = null; + } + return this; + } + public HttpPipeline Prepend(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Prepend(item); + } + } + return this; + } + + public HttpPipeline Append(IEnumerable items) + { + if (items != null) + { + foreach (var item in items) + { + Append(item); + } + } + return this; + } + + // you can use this as the ISendAsync Implementation + public Task SendAsync(HttpRequestMessage request, IEventListener callback) => Pipeline.SendAsync(request, callback); + } + + internal static partial class Extensions + { + internal static HttpRequestMessage CloneAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.Clone(requestUri, method); + } + } + + internal static Task CloneWithContentAndDispose(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + using (original) + { + return original.CloneWithContent(requestUri, method); + } + } + + /// + /// Clones an HttpRequestMessage (without the content) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = new HttpRequestMessage + { + Method = method ?? original.Method, + RequestUri = requestUri ?? original.RequestUri, + Version = original.Version, + }; + + foreach (KeyValuePair prop in original.Properties) + { + clone.Properties.Add(prop); + } + + foreach (KeyValuePair> header in original.Headers) + { + /* + **temporarily skip cloning telemetry related headers** + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + */ + if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key)) + { + clone.Headers.TryAddWithoutValidation(header.Key, header.Value); + } + } + + return clone; + } + + /// + /// Clones an HttpRequestMessage (including the content stream and content headers) + /// + /// Original HttpRequestMessage (Will be diposed before returning) + /// A clone of the HttpRequestMessage + internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) + { + var clone = original.Clone(requestUri, method); + var stream = new System.IO.MemoryStream(); + if (original.Content != null) + { + await original.Content.CopyToAsync(stream).ConfigureAwait(false); + stream.Position = 0; + clone.Content = new StreamContent(stream); + if (original.Content.Headers != null) + { + foreach (var h in original.Content.Headers) + { + clone.Content.Headers.Add(h.Key, h.Value); + } + } + } + return clone; + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/InfoAttribute.cs b/src/WindowsIotServices/generated/runtime/InfoAttribute.cs new file mode 100644 index 000000000000..f11b4dfbf22b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/InfoAttribute.cs @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System; + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class)] + public class InfoAttribute : Attribute + { + public bool Required { get; set; } = false; + public bool ReadOnly { get; set; } = false; + public Type[] PossibleTypes { get; set; } = new Type[0]; + public string Description { get; set; } = ""; + public string SerializedName { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class CompleterInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class DefaultInfoAttribute : Attribute + { + public string Script { get; set; } = ""; + public string Name { get; set; } = ""; + public string Description { get; set; } = ""; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Iso/IsoDate.cs b/src/WindowsIotServices/generated/runtime/Iso/IsoDate.cs new file mode 100644 index 000000000000..b20c5589aab9 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Iso/IsoDate.cs @@ -0,0 +1,214 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal struct IsoDate + { + internal int Year { get; set; } // 0-3000 + + internal int Month { get; set; } // 1-12 + + internal int Day { get; set; } // 1-31 + + internal int Hour { get; set; } // 0-24 + + internal int Minute { get; set; } // 0-60 (60 is a special case) + + internal int Second { get; set; } // 0-60 (60 is used for leap seconds) + + internal double Millisecond { get; set; } // 0-999.9... + + internal TimeSpan Offset { get; set; } + + internal DateTimeKind Kind { get; set; } + + internal TimeSpan TimeOfDay => new TimeSpan(Hour, Minute, Second); + + internal DateTime ToDateTime() + { + if (Kind == DateTimeKind.Utc || Offset == TimeSpan.Zero) + { + return new DateTime(Year, Month, Day, Hour, Minute, Second, (int)Millisecond, DateTimeKind.Utc); + } + + return ToDateTimeOffset().DateTime; + } + + internal DateTimeOffset ToDateTimeOffset() + { + return new DateTimeOffset( + Year, + Month, + Day, + Hour, + Minute, + Second, + (int)Millisecond, + Offset + ); + } + + internal DateTime ToUtcDateTime() + { + return ToDateTimeOffset().UtcDateTime; + } + + public override string ToString() + { + var sb = new StringBuilder(); + + // yyyy-MM-dd + sb.Append($"{Year}-{Month:00}-{Day:00}"); + + if (TimeOfDay > new TimeSpan(0)) + { + sb.Append($"T{Hour:00}:{Minute:00}"); + + if (TimeOfDay.Seconds > 0) + { + sb.Append($":{Second:00}"); + } + } + + if (Offset.Ticks == 0) + { + sb.Append('Z'); // UTC + } + else + { + if (Offset.Ticks >= 0) + { + sb.Append('+'); + } + + sb.Append($"{Offset.Hours:00}:{Offset.Minutes:00}"); + } + + return sb.ToString(); + } + + internal static IsoDate FromDateTimeOffset(DateTimeOffset date) + { + return new IsoDate { + Year = date.Year, + Month = date.Month, + Day = date.Day, + Hour = date.Hour, + Minute = date.Minute, + Second = date.Second, + Offset = date.Offset, + Kind = date.Offset == TimeSpan.Zero ? DateTimeKind.Utc : DateTimeKind.Unspecified + }; + } + + private static readonly char[] timeSeperators = { ':', '.' }; + + internal static IsoDate Parse(string text) + { + var tzIndex = -1; + var timeIndex = text.IndexOf('T'); + + var builder = new IsoDate { Day = 1, Month = 1 }; + + // TODO: strip the time zone offset off the end + string dateTime = text; + string timeZone = null; + + if (dateTime.IndexOf('Z') > -1) + { + tzIndex = dateTime.LastIndexOf('Z'); + + builder.Kind = DateTimeKind.Utc; + } + else if (dateTime.LastIndexOf('+') > 10) + { + tzIndex = dateTime.LastIndexOf('+'); + } + else if (dateTime.LastIndexOf('-') > 10) + { + tzIndex = dateTime.LastIndexOf('-'); + } + + if (tzIndex > -1) + { + timeZone = dateTime.Substring(tzIndex); + dateTime = dateTime.Substring(0, tzIndex); + } + + string date = (timeIndex == -1) ? dateTime : dateTime.Substring(0, timeIndex); + + var dateParts = date.Split(Seperator.Dash); // '-' + + for (int i = 0; i < dateParts.Length; i++) + { + var part = dateParts[i]; + + switch (i) + { + case 0: builder.Year = int.Parse(part); break; + case 1: builder.Month = int.Parse(part); break; + case 2: builder.Day = int.Parse(part); break; + } + } + + if (timeIndex > -1) + { + string[] timeParts = dateTime.Substring(timeIndex + 1).Split(timeSeperators); + + for (int i = 0; i < timeParts.Length; i++) + { + var part = timeParts[i]; + + switch (i) + { + case 0: builder.Hour = int.Parse(part); break; + case 1: builder.Minute = int.Parse(part); break; + case 2: builder.Second = int.Parse(part); break; + case 3: builder.Millisecond = double.Parse("0." + part) * 1000; break; + } + } + } + + if (timeZone != null && timeZone != "Z") + { + var hours = int.Parse(timeZone.Substring(1, 2)); + var minutes = int.Parse(timeZone.Substring(4, 2)); + + if (timeZone[0] == '-') + { + hours = -hours; + minutes = -minutes; + } + + builder.Offset = new TimeSpan(hours, minutes, 0); + } + + return builder; + } + } + + /* + YYYY # eg 1997 + YYYY-MM # eg 1997-07 + YYYY-MM-DD # eg 1997-07-16 + YYYY-MM-DDThh:mmTZD # eg 1997-07-16T19:20+01:00 + YYYY-MM-DDThh:mm:ssTZD # eg 1997-07-16T19:20:30+01:00 + YYYY-MM-DDThh:mm:ss.sTZD # eg 1997-07-16T19:20:30.45+01:00 + + where: + + YYYY = four-digit year + MM = two-digit month (01=January, etc.) + DD = two-digit day of month (01 through 31) + hh = two digits of hour (00 through 23) (am/pm NOT allowed) + mm = two digits of minute (00 through 59) + ss = two digits of second (00 through 59) + s = one or more digits representing a decimal fraction of a second + TZD = time zone designator (Z or +hh:mm or -hh:mm) + */ +} diff --git a/src/WindowsIotServices/generated/runtime/JsonType.cs b/src/WindowsIotServices/generated/runtime/JsonType.cs new file mode 100644 index 000000000000..370a09a5c6dd --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/JsonType.cs @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal enum JsonType + { + Null = 0, + Object = 1, + Array = 2, + Binary = 3, + Boolean = 4, + Date = 5, + Number = 6, + String = 7 + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Method.cs b/src/WindowsIotServices/generated/runtime/Method.cs new file mode 100644 index 000000000000..3ab341be5827 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Method.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + internal static class Method + { + internal static System.Net.Http.HttpMethod Get = System.Net.Http.HttpMethod.Get; + internal static System.Net.Http.HttpMethod Put = System.Net.Http.HttpMethod.Put; + internal static System.Net.Http.HttpMethod Head = System.Net.Http.HttpMethod.Head; + internal static System.Net.Http.HttpMethod Post = System.Net.Http.HttpMethod.Post; + internal static System.Net.Http.HttpMethod Delete = System.Net.Http.HttpMethod.Delete; + internal static System.Net.Http.HttpMethod Options = System.Net.Http.HttpMethod.Options; + internal static System.Net.Http.HttpMethod Trace = System.Net.Http.HttpMethod.Trace; + internal static System.Net.Http.HttpMethod Patch = new System.Net.Http.HttpMethod("PATCH"); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Models/JsonMember.cs b/src/WindowsIotServices/generated/runtime/Models/JsonMember.cs new file mode 100644 index 000000000000..3e6567bbcbc2 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Models/JsonMember.cs @@ -0,0 +1,83 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Reflection; +using System.Runtime.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + + + internal sealed class JsonMember + { + private readonly TypeDetails type; + + private readonly Func getter; + private readonly Action setter; + + internal JsonMember(PropertyInfo property, int defaultOrder) + { + getter = property.GetValue; + setter = property.SetValue; + + var dataMember = property.GetCustomAttribute(); + + Name = dataMember?.Name ?? property.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(property.PropertyType); + + CanRead = property.CanRead; + } + + internal JsonMember(FieldInfo field, int defaultOrder) + { + getter = field.GetValue; + setter = field.SetValue; + + var dataMember = field.GetCustomAttribute(); + + Name = dataMember?.Name ?? field.Name; + Order = dataMember?.Order ?? defaultOrder; + EmitDefaultValue = dataMember?.EmitDefaultValue ?? true; + + this.type = TypeDetails.Get(field.FieldType); + + CanRead = true; + } + + internal string Name { get; } + + internal int Order { get; } + + internal TypeDetails TypeDetails => type; + + internal Type Type => type.NonNullType; + + internal bool IsList => type.IsList; + + // Arrays, Sets, ... + internal Type ElementType => type.ElementType; + + internal IJsonConverter Converter => type.JsonConverter; + + internal bool EmitDefaultValue { get; } + + internal bool IsStringLike => type.IsStringLike; + + internal object DefaultValue => type.DefaultValue; + + internal bool CanRead { get; } + + #region Helpers + + internal object GetValue(object instance) => getter(instance); + + internal void SetValue(object instance, object value) => setter(instance, value); + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Models/JsonModel.cs b/src/WindowsIotServices/generated/runtime/Models/JsonModel.cs new file mode 100644 index 000000000000..75dc6ecd1bd7 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Models/JsonModel.cs @@ -0,0 +1,89 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Reflection; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class JsonModel + { + private Dictionary map; + private readonly object _sync = new object(); + + private JsonModel(Type type, List members) + { + Type = type ?? throw new ArgumentNullException(nameof(type)); + Members = members ?? throw new ArgumentNullException(nameof(members)); + } + + internal string Name => Type.Name; + + internal Type Type { get; } + + internal List Members { get; } + + internal JsonMember this[string name] + { + get + { + if (map == null) + { + lock (_sync) + { + if (map == null) + { + map = new Dictionary(); + + foreach (JsonMember m in Members) + { + map[m.Name.ToLower()] = m; + } + } + } + } + + + map.TryGetValue(name.ToLower(), out JsonMember member); + + return member; + } + } + + internal static JsonModel FromType(Type type) + { + var members = new List(); + + int i = 0; + + // BindingFlags.Instance | BindingFlags.Public + + foreach (var member in type.GetFields()) + { + if (member.IsStatic) continue; + + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + foreach (var member in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) + { + if (member.IsDefined(typeof(IgnoreDataMemberAttribute))) continue; + + members.Add(new JsonMember(member, i)); + + i++; + } + + members.Sort((a, b) => a.Order.CompareTo(b.Order)); // inline sort + + return new JsonModel(type, members); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Models/JsonModelCache.cs b/src/WindowsIotServices/generated/runtime/Models/JsonModelCache.cs new file mode 100644 index 000000000000..35c5ba35bd6b --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Models/JsonModelCache.cs @@ -0,0 +1,19 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Runtime.CompilerServices; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal static class JsonModelCache + { + private static readonly ConditionalWeakTable cache + = new ConditionalWeakTable(); + + internal static JsonModel Get(Type type) => cache.GetValue(type, Create); + + private static JsonModel Create(Type type) => JsonModel.FromType(type); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/Collections/JsonArray.cs b/src/WindowsIotServices/generated/runtime/Nodes/Collections/JsonArray.cs new file mode 100644 index 000000000000..def7f1b02f7a --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/Collections/JsonArray.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public abstract partial class JsonArray : JsonNode, IEnumerable + { + internal override JsonType Type => JsonType.Array; + + internal abstract JsonType? ElementType { get; } + + public abstract int Count { get; } + + internal virtual bool IsSet => false; + + internal bool IsEmpty => Count == 0; + + #region IEnumerable + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException(); + } + + #endregion + + #region Static Helpers + + internal static JsonArray Create(short[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(int[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(long[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(decimal[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(float[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(string[] values) + => new XImmutableArray(values); + + internal static JsonArray Create(XBinary[] values) + => new XImmutableArray(values); + + #endregion + + internal static new JsonArray Parse(string text) + => (JsonArray)JsonNode.Parse(text); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/Collections/XImmutableArray.cs b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XImmutableArray.cs new file mode 100644 index 000000000000..8df37bbb501a --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XImmutableArray.cs @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed class XImmutableArray : JsonArray, IEnumerable + { + private readonly T[] values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XImmutableArray(T[] values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Length; + + public bool IsReadOnly => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (T value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + #region Static Constructor + + internal XImmutableArray Create(T[] items) + { + return new XImmutableArray(items); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/Collections/XList.cs b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XList.cs new file mode 100644 index 000000000000..995aa4389790 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XList.cs @@ -0,0 +1,64 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed class XList : JsonArray, IEnumerable + { + private readonly IList values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XList(IList values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + public override JsonNode this[int index] => + XHelper.Create(elementType, elementCode, values[index]); + + internal override JsonType? ElementType => elementType; + + public override int Count => values.Count; + + public bool IsReadOnly => values.IsReadOnly; + + #region IList + + public void Add(T value) + { + values.Add(value); + } + + public bool Contains(T value) => values.Contains(value); + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/Collections/XNodeArray.cs b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XNodeArray.cs new file mode 100644 index 000000000000..d0411be2dbc2 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XNodeArray.cs @@ -0,0 +1,68 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed partial class XNodeArray : JsonArray, ICollection + { + private readonly List items; + + internal XNodeArray() + { + items = new List(); + } + + internal XNodeArray(params JsonNode[] values) + { + items = new List(values); + } + + public override JsonNode this[int index] => items[index]; + + internal override JsonType? ElementType => null; + + public bool IsReadOnly => false; + + public override int Count => items.Count; + + #region ICollection Members + + public void Add(JsonNode item) + { + items.Add(item); + } + + void ICollection.Clear() + { + items.Clear(); + } + + public bool Contains(JsonNode item) => items.Contains(item); + + void ICollection.CopyTo(JsonNode[] array, int arrayIndex) + { + items.CopyTo(array, arrayIndex); + } + + public bool Remove(JsonNode item) + { + return items.Remove(item); + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/Collections/XSet.cs b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XSet.cs new file mode 100644 index 000000000000..bd9be4dbc856 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/Collections/XSet.cs @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed class XSet : JsonArray, IEnumerable + { + private readonly HashSet values; + private readonly JsonType elementType; + private readonly TypeCode elementCode; + + internal XSet(IEnumerable values) + : this(new HashSet(values)) + { } + + internal XSet(HashSet values) + { + this.values = values ?? throw new ArgumentNullException(nameof(values)); + this.elementCode = System.Type.GetTypeCode(typeof(T)); + this.elementType = XHelper.GetElementType(this.elementCode); + } + + internal override JsonType Type => JsonType.Array; + + internal override JsonType? ElementType => elementType; + + public bool IsReadOnly => true; + + public override int Count => values.Count; + + internal override bool IsSet => true; + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + foreach (var value in values) + { + yield return XHelper.Create(elementType, elementCode, value); + } + } + + #endregion + + internal HashSet AsHashSet() => values; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonBoolean.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonBoolean.cs new file mode 100644 index 000000000000..08bc4d3d8cee --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonBoolean.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed partial class JsonBoolean : JsonNode + { + internal static readonly JsonBoolean True = new JsonBoolean(true); + internal static readonly JsonBoolean False = new JsonBoolean(false); + + internal JsonBoolean(bool value) + { + Value = value; + } + + internal bool Value { get; } + + internal override JsonType Type => JsonType.Boolean; + + internal static new JsonBoolean Parse(string text) + { + switch (text) + { + case "false": return False; + case "true": return True; + + default: throw new ArgumentException($"Expected true or false. Was {text}."); + } + } + + #region Implicit Casts + + public static implicit operator bool(JsonBoolean data) => data.Value; + + public static implicit operator JsonBoolean(bool data) => new JsonBoolean(data); + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonDate.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonDate.cs new file mode 100644 index 000000000000..781fa87f5629 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonDate.cs @@ -0,0 +1,173 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + + + internal sealed partial class JsonDate : JsonNode, IEquatable, IComparable + { + internal static bool AssumeUtcWhenKindIsUnspecified = true; + + private readonly DateTimeOffset value; + + internal JsonDate(DateTime value) + { + if (value.Kind == DateTimeKind.Unspecified && AssumeUtcWhenKindIsUnspecified) + { + value = DateTime.SpecifyKind(value, DateTimeKind.Utc); + } + + this.value = value; + } + + internal JsonDate(DateTimeOffset value) + { + this.value = value; + } + + internal override JsonType Type => JsonType.Date; + + #region Helpers + + internal DateTimeOffset ToDateTimeOffset() + { + return value; + } + + internal DateTime ToDateTime() + { + if (value.Offset == TimeSpan.Zero) + { + return value.UtcDateTime; + } + + return value.DateTime; + } + + internal DateTime ToUtcDateTime() => value.UtcDateTime; + + internal int ToUnixTimeSeconds() + { + return (int)value.ToUnixTimeSeconds(); + } + + internal long ToUnixTimeMilliseconds() + { + return (int)value.ToUnixTimeMilliseconds(); + } + + internal string ToIsoString() + { + return IsoDate.FromDateTimeOffset(value).ToString(); + } + + #endregion + + public override string ToString() + { + return ToIsoString(); + } + + internal static new JsonDate Parse(string text) + { + if (text == null) throw new ArgumentNullException(nameof(text)); + + // TODO support: unixtimeseconds.partialseconds + + if (text.Length > 4 && _IsNumber(text)) // UnixTime + { + var date = DateTimeOffset.FromUnixTimeSeconds(long.Parse(text)); + + return new JsonDate(date); + } + else if (text.Length <= 4 || text[4] == '-') // ISO: 2012- + { + return new JsonDate(IsoDate.Parse(text).ToDateTimeOffset()); + } + else + { + // NOT ISO ENCODED + // "Thu, 5 Apr 2012 16:59:01 +0200", + return new JsonDate(DateTimeOffset.Parse(text)); + } + } + + private static bool _IsNumber(string text) + { + foreach (var c in text) + { + if (!char.IsDigit(c)) return false; + } + + return true; + } + + internal static JsonDate FromUnixTime(int seconds) + { + return new JsonDate(DateTimeOffset.FromUnixTimeSeconds(seconds)); + } + + internal static JsonDate FromUnixTime(double seconds) + { + var milliseconds = (long)(seconds * 1000d); + + return new JsonDate(DateTimeOffset.FromUnixTimeMilliseconds(milliseconds)); + } + + #region Implicit Casts + + public static implicit operator DateTimeOffset(JsonDate value) + => value.ToDateTimeOffset(); + + public static implicit operator DateTime(JsonDate value) + => value.ToDateTime(); + + // From Date + public static implicit operator JsonDate(DateTimeOffset value) + { + return new JsonDate(value); + } + + public static implicit operator JsonDate(DateTime value) + { + return new JsonDate(value); + } + + // From String + public static implicit operator JsonDate(string value) + { + return Parse(value); + } + + #endregion + + #region Equality + + public override bool Equals(object obj) + { + return obj is JsonDate date && date.value == this.value; + } + + public bool Equals(JsonDate other) + { + return this.value == other.value; + } + + public override int GetHashCode() => value.GetHashCode(); + + #endregion + + #region IComparable Members + + int IComparable.CompareTo(JsonDate other) + { + return value.CompareTo(other.value); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonNode.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonNode.cs new file mode 100644 index 000000000000..e336ae9e68d4 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonNode.cs @@ -0,0 +1,250 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.IO; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + + + public abstract partial class JsonNode + { + internal abstract JsonType Type { get; } + + public virtual JsonNode this[int index] => throw new NotImplementedException(); + + public virtual JsonNode this[string name] + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + #region Type Helpers + + internal bool IsArray => Type == JsonType.Array; + + internal bool IsDate => Type == JsonType.Date; + + internal bool IsObject => Type == JsonType.Object; + + internal bool IsNumber => Type == JsonType.Number; + + internal bool IsNull => Type == JsonType.Null; + + #endregion + + internal void WriteTo(TextWriter textWriter, bool pretty = true) + { + var writer = new JsonWriter(textWriter, pretty); + + writer.WriteNode(this); + } + + internal T As() + where T : new() + => new JsonSerializer().Deseralize((JsonObject)this); + + internal T[] ToArrayOf() + { + return (T[])new JsonSerializer().DeserializeArray(typeof(T[]), (JsonArray)this); + } + + #region ToString Overrides + + public override string ToString() => ToString(pretty: true); + + internal string ToString(bool pretty) + { + var sb = new StringBuilder(); + + using (var writer = new StringWriter(sb)) + { + WriteTo(writer, pretty); + + return sb.ToString(); + } + } + + #endregion + + #region Static Constructors + + internal static JsonNode Parse(string text) + { + return Parse(new SourceReader(new StringReader(text))); + } + + internal static JsonNode Parse(TextReader textReader) + => Parse(new SourceReader(textReader)); + + private static JsonNode Parse(SourceReader sourceReader) + { + using (var parser = new JsonParser(sourceReader)) + { + return parser.ReadNode(); + } + } + + internal static JsonNode FromObject(object instance) + => new JsonSerializer().Serialize(instance); + + #endregion + + #region Implict Casts + + public static implicit operator string(JsonNode node) => node.ToString(); + + #endregion + + #region Explict Casts + + public static explicit operator DateTime(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date: + return ((JsonDate)node).ToDateTime(); + + case JsonType.String: + return JsonDate.Parse(node.ToString()).ToDateTime(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num).UtcDateTime; + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)).UtcDateTime; + } + } + + throw new ConversionException(node, typeof(DateTime)); + } + + public static explicit operator DateTimeOffset(JsonNode node) + { + switch (node.Type) + { + case JsonType.Date : return ((JsonDate)node).ToDateTimeOffset(); + case JsonType.String : return JsonDate.Parse(node.ToString()).ToDateTimeOffset(); + + case JsonType.Number: + var num = (JsonNumber)node; + + if (num.IsInteger) + { + return DateTimeOffset.FromUnixTimeSeconds(num); + } + else + { + return DateTimeOffset.FromUnixTimeMilliseconds((long)((double)num * 1000)); + } + + } + + throw new ConversionException(node, typeof(DateTimeOffset)); + } + + public static explicit operator float(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return float.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(float)); + } + + public static explicit operator double(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return double.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(double)); + } + + public static explicit operator decimal(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return decimal.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(decimal)); + } + + public static explicit operator Guid(JsonNode node) + => new Guid(node.ToString()); + + public static explicit operator short(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return short.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(short)); + } + + public static explicit operator int(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number : return (JsonNumber)node; + case JsonType.String : return int.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(int)); + } + + public static explicit operator long(JsonNode node) + { + switch (node.Type) + { + case JsonType.Number: return (JsonNumber)node; + case JsonType.String: return long.Parse(node.ToString()); + } + + throw new ConversionException(node, typeof(long)); + } + + public static explicit operator bool(JsonNode node) + => ((JsonBoolean)node).Value; + + public static explicit operator ushort(JsonNode node) + => (JsonNumber)node; + + public static explicit operator uint(JsonNode node) + => (JsonNumber)node; + + public static explicit operator ulong(JsonNode node) + => (JsonNumber)node; + + public static explicit operator TimeSpan(JsonNode node) + => TimeSpan.Parse(node.ToString()); + + public static explicit operator Uri(JsonNode node) + { + if (node.Type == JsonType.String) + { + return new Uri(node.ToString()); + } + + throw new ConversionException(node, typeof(Uri)); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonNumber.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonNumber.cs new file mode 100644 index 000000000000..69ddbc83d854 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonNumber.cs @@ -0,0 +1,109 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed partial class JsonNumber : JsonNode + { + private readonly string value; + private readonly bool overflows = false; + + internal JsonNumber(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal JsonNumber(int value) + { + this.value = value.ToString(); + } + + internal JsonNumber(long value) + { + this.value = value.ToString(); + + if (value > 9007199254740991) + { + overflows = true; + } + } + + internal JsonNumber(float value) + { + this.value = value.ToString(); + } + + internal JsonNumber(double value) + { + this.value = value.ToString(); + } + + internal override JsonType Type => JsonType.Number; + + internal string Value => value; + + #region Helpers + + internal bool Overflows => overflows; + + internal bool IsInteger => !value.Contains("."); + + internal bool IsFloat => value.Contains("."); + + #endregion + + #region Casting + + public static implicit operator byte(JsonNumber number) + => byte.Parse(number.Value); + + public static implicit operator short(JsonNumber number) + => short.Parse(number.Value); + + public static implicit operator int(JsonNumber number) + => int.Parse(number.Value); + + public static implicit operator long(JsonNumber number) + => long.Parse(number.value); + + public static implicit operator UInt16(JsonNumber number) + => ushort.Parse(number.Value); + + public static implicit operator UInt32(JsonNumber number) + => uint.Parse(number.Value); + + public static implicit operator UInt64(JsonNumber number) + => ulong.Parse(number.Value); + + public static implicit operator decimal(JsonNumber number) + => decimal.Parse(number.Value); + + public static implicit operator Double(JsonNumber number) + => double.Parse(number.value); + + public static implicit operator float(JsonNumber number) + => float.Parse(number.value); + + public static implicit operator JsonNumber(short data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(int data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(long data) + => new JsonNumber(data); + + public static implicit operator JsonNumber(Single data) + => new JsonNumber(data.ToString()); + + public static implicit operator JsonNumber(double data) + => new JsonNumber(data.ToString()); + + #endregion + + public override string ToString() => value; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonObject.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonObject.cs new file mode 100644 index 000000000000..4e49ea15841c --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonObject.cs @@ -0,0 +1,172 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public partial class JsonObject : JsonNode, IDictionary + { + private readonly Dictionary items; + + internal JsonObject() + { + items = new Dictionary(); + } + + internal JsonObject(IEnumerable> properties) + { + if (properties == null) throw new ArgumentNullException(nameof(properties)); + + items = new Dictionary(); + + foreach (var field in properties) + { + items.Add(field.Key, field.Value); + } + } + + #region IDictionary Constructors + + internal JsonObject(IDictionary dic) + { + items = new Dictionary(dic.Count); + + foreach (var pair in dic) + { + Add(pair.Key, pair.Value); + } + } + + #endregion + + internal override JsonType Type => JsonType.Object; + + #region Add Overloads + + public void Add(string name, JsonNode value) => + items.Add(name, value); + + public void Add(string name, byte[] value) => + items.Add(name, new XBinary(value)); + + public void Add(string name, DateTime value) => + items.Add(name, new JsonDate(value)); + + public void Add(string name, int value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, long value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, float value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, double value) => + items.Add(name, new JsonNumber(value.ToString())); + + public void Add(string name, string value) => + items.Add(name, new JsonString(value)); + + public void Add(string name, bool value) => + items.Add(name, new JsonBoolean(value)); + + public void Add(string name, Uri url) => + items.Add(name, new JsonString(url.AbsoluteUri)); + + public void Add(string name, string[] values) => + items.Add(name, new XImmutableArray(values)); + + public void Add(string name, int[] values) => + items.Add(name, new XImmutableArray(values)); + + #endregion + + #region ICollection> Members + + void ICollection>.Add(KeyValuePair item) + { + items.Add(item.Key, item.Value); + } + + void ICollection>.Clear() + { + items.Clear(); + } + + bool ICollection>.Contains(KeyValuePair item) => + throw new NotImplementedException(); + + void ICollection>.CopyTo(KeyValuePair[] array, int arrayIndex) => + throw new NotImplementedException(); + + + int ICollection>.Count => items.Count; + + bool ICollection>.IsReadOnly => false; + + bool ICollection>.Remove(KeyValuePair item) => + throw new NotImplementedException(); + + #endregion + + #region IDictionary Members + + public bool ContainsKey(string key) => items.ContainsKey(key); + + public ICollection Keys => items.Keys; + + public bool Remove(string key) => items.Remove(key); + + public bool TryGetValue(string key, out JsonNode value) => + items.TryGetValue(key, out value); + + public ICollection Values => items.Values; + + public override JsonNode this[string key] + { + get => items[key]; + set => items[key] = value; + } + + #endregion + + #region IEnumerable + + IEnumerator> IEnumerable>.GetEnumerator() + => items.GetEnumerator(); + + IEnumerator IEnumerable.GetEnumerator() + => items.GetEnumerator(); + + #endregion + + #region Helpers + + internal static new JsonObject FromObject(object instance) => + (JsonObject)new JsonSerializer().Serialize(instance); + + #endregion + + #region Static Constructors + + internal static JsonObject FromStream(Stream stream) + { + using (var tr = new StreamReader(stream)) + { + return (JsonObject)Parse(tr); + } + } + + internal static new JsonObject Parse(string text) + { + return (JsonObject)JsonNode.Parse(text); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/JsonString.cs b/src/WindowsIotServices/generated/runtime/Nodes/JsonString.cs new file mode 100644 index 000000000000..f94efacc891d --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/JsonString.cs @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed partial class JsonString : JsonNode, IEquatable + { + private readonly string value; + + internal JsonString(string value) + { + this.value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal override JsonType Type => JsonType.String; + + internal string Value => value; + + internal int Length => value.Length; + + #region #region Implicit Casts + + public static implicit operator string(JsonString data) => data.Value; + + public static implicit operator JsonString(string value) => new JsonString(value); + + #endregion + + public override int GetHashCode() => value.GetHashCode(); + + public override string ToString() => value; + + #region IEquatable + + bool IEquatable.Equals(JsonString other) => this.Value == other.Value; + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/XBinary.cs b/src/WindowsIotServices/generated/runtime/Nodes/XBinary.cs new file mode 100644 index 000000000000..912a7725e283 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/XBinary.cs @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed class XBinary : JsonNode + { + private readonly byte[] _value; + private readonly string _base64; + + internal XBinary(byte[] value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + internal XBinary(string base64EncodedString) + { + _base64 = base64EncodedString ?? throw new ArgumentNullException(nameof(base64EncodedString)); + } + + internal override JsonType Type => JsonType.Binary; + + internal byte[] Value => _value ?? Convert.FromBase64String(_base64); + + #region #region Implicit Casts + + public static implicit operator byte[] (XBinary data) => data.Value; + + public static implicit operator XBinary(byte[] data) => new XBinary(data); + + #endregion + + public override int GetHashCode() => Value.GetHashCode(); + + public override string ToString() => _base64 ?? Convert.ToBase64String(_value); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Nodes/XNull.cs b/src/WindowsIotServices/generated/runtime/Nodes/XNull.cs new file mode 100644 index 000000000000..c886645ca993 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Nodes/XNull.cs @@ -0,0 +1,15 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal sealed class XNull : JsonNode + { + internal static readonly XNull Instance = new XNull(); + + private XNull() { } + + internal override JsonType Type => JsonType.Null; + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/Exceptions/ParseException.cs b/src/WindowsIotServices/generated/runtime/Parser/Exceptions/ParseException.cs new file mode 100644 index 000000000000..417efda85415 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/Exceptions/ParseException.cs @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class ParserException : Exception + { + internal ParserException(string message) + : base(message) + { } + + internal ParserException(string message, SourceLocation location) + : base(message) + { + + Location = location; + } + + internal SourceLocation Location { get; } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/JsonParser.cs b/src/WindowsIotServices/generated/runtime/Parser/JsonParser.cs new file mode 100644 index 000000000000..7d9868a99896 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/JsonParser.cs @@ -0,0 +1,180 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public class JsonParser : IDisposable + { + private readonly TokenReader reader; + + internal JsonParser(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonParser(SourceReader sourceReader) + { + if (sourceReader == null) + throw new ArgumentNullException(nameof(sourceReader)); + + this.reader = new TokenReader(new JsonTokenizer(sourceReader)); + + this.reader.Next(); // Start with the first token + } + + internal IEnumerable ReadNodes() + { + JsonNode node; + + while ((node = ReadNode()) != null) yield return node; + } + + internal JsonNode ReadNode() + { + if (reader.Current.Kind == TokenKind.Eof || reader.Current.IsTerminator) + { + return null; + } + + switch (reader.Current.Kind) + { + case TokenKind.LeftBrace : return ReadObject(); // { + case TokenKind.LeftBracket : return ReadArray(); // [ + + default: throw new ParserException($"Expected '{{' or '['. Was {reader.Current}."); + } + } + + private JsonNode ReadFieldValue() + { + // Boolean, Date, Null, Number, String, Uri + if (reader.Current.IsLiteral) + { + return ReadLiteral(); + } + else + { + switch (reader.Current.Kind) + { + case TokenKind.LeftBracket: return ReadArray(); + case TokenKind.LeftBrace : return ReadObject(); + + default: throw new ParserException($"Unexpected token reading field value. Was {reader.Current}."); + } + } + } + + private JsonNode ReadLiteral() + { + var literal = reader.Current; + + reader.Next(); // Read the literal token + + switch (literal.Kind) + { + case TokenKind.Boolean : return JsonBoolean.Parse(literal.Value); + case TokenKind.Null : return XNull.Instance; + case TokenKind.Number : return new JsonNumber(literal.Value); + case TokenKind.String : return new JsonString(literal.Value); + + default: throw new ParserException($"Unexpected token reading literal. Was {literal}."); + } + } + + internal JsonObject ReadObject() + { + reader.Ensure(TokenKind.LeftBrace, "object"); + + reader.Next(); // Read '{' (Object start) + + var jsonObject = new JsonObject(); + + // Read the object's fields until we reach the end of the object ('}') + while (reader.Current.Kind != TokenKind.RightBrace) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read ',' (Seperator) + } + + // Ensure we have a field name + reader.Ensure(TokenKind.String, "Expected field name"); + + var field = ReadField(); + + jsonObject.Add(field.Key, field.Value); + } + + reader.Next(); // Read '}' (Object end) + + return jsonObject; + } + + + // TODO: Use ValueTuple in C#7 + private KeyValuePair ReadField() + { + var fieldName = reader.Current.Value; + + reader.Next(); // Read the field name + + reader.Ensure(TokenKind.Colon, "field"); + + reader.Next(); // Read ':' (Field value indicator) + + return new KeyValuePair(fieldName, ReadFieldValue()); + } + + + internal JsonArray ReadArray() + { + reader.Ensure(TokenKind.LeftBracket, "array"); + + var array = new XNodeArray(); + + reader.Next(); // Read the '[' (Array start) + + // Read the array's items + while (reader.Current.Kind != TokenKind.RightBracket) + { + if (reader.Current.Kind == TokenKind.Comma) + { + reader.Next(); // Read the ',' (Seperator) + } + + if (reader.Current.IsLiteral) + { + array.Add(ReadLiteral()); // Boolean, Date, Number, Null, String, Uri + } + else if (reader.Current.Kind == TokenKind.LeftBracket) + { + array.Add(ReadArray()); // Array + } + else if (reader.Current.Kind == TokenKind.LeftBrace) + { + array.Add(ReadObject()); // Object + } + else + { + throw new ParserException($"Expected comma, literal, or object. Was {reader.Current}."); + } + } + + reader.Next(); // Read the ']' (Array end) + + return array; + } + + #region IDisposable + + public void Dispose() + { + reader.Dispose(); + } + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/JsonToken.cs b/src/WindowsIotServices/generated/runtime/Parser/JsonToken.cs new file mode 100644 index 000000000000..a6f6b0654e48 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/JsonToken.cs @@ -0,0 +1,66 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal enum TokenKind + { + LeftBrace, // { Object start + RightBrace, // } Object end + + LeftBracket, // [ Array start + RightBracket, // ] Array end + + Comma, // , Comma + Colon, // : Value indicator + Dot, // . Access field indicator + Terminator, // \0 Stream terminator + + Boolean = 31, // true or false + Null = 33, // null + Number = 34, // i.e. -1.93, -1, 0, 1, 1.1 + String = 35, // i.e. "text" + + Eof = 50 + } + + internal /* readonly */ struct JsonToken + { + internal static readonly JsonToken BraceOpen = new JsonToken(TokenKind.LeftBrace, "{"); + internal static readonly JsonToken BraceClose = new JsonToken(TokenKind.RightBrace, "}"); + + internal static readonly JsonToken BracketOpen = new JsonToken(TokenKind.LeftBracket, "["); + internal static readonly JsonToken BracketClose = new JsonToken(TokenKind.RightBracket, "]"); + + internal static readonly JsonToken Colon = new JsonToken(TokenKind.Colon, ":"); + internal static readonly JsonToken Comma = new JsonToken(TokenKind.Comma, ","); + internal static readonly JsonToken Terminator = new JsonToken(TokenKind.Terminator, "\0"); + + internal static readonly JsonToken True = new JsonToken(TokenKind.Boolean, "true"); + internal static readonly JsonToken False = new JsonToken(TokenKind.Boolean, "false"); + internal static readonly JsonToken Null = new JsonToken(TokenKind.Null, "null"); + + internal static readonly JsonToken Eof = new JsonToken(TokenKind.Eof, null); + + internal JsonToken(TokenKind kind, string value) + { + Kind = kind; + Value = value; + } + + internal readonly TokenKind Kind; + + internal readonly string Value; + + public override string ToString() => Kind + ": " + Value; + + #region Helpers + + internal bool IsLiteral => (byte)Kind > 30 && (byte)Kind < 40; + + internal bool IsTerminator => Kind == TokenKind.Terminator; + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/JsonTokenizer.cs b/src/WindowsIotServices/generated/runtime/Parser/JsonTokenizer.cs new file mode 100644 index 000000000000..a95d417c5633 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/JsonTokenizer.cs @@ -0,0 +1,177 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Text; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + using System.IO; + + + public class JsonTokenizer : IDisposable + { + private readonly StringBuilder sb = new StringBuilder(); + + private readonly SourceReader reader; + + internal JsonTokenizer(TextReader reader) + : this(new SourceReader(reader)) { } + + internal JsonTokenizer(SourceReader reader) + { + this.reader = reader; + + reader.Next(); // Start with the first char + } + + internal JsonToken ReadNext() + { + reader.SkipWhitespace(); + + if (reader.IsEof) return JsonToken.Eof; + + switch (reader.Current) + { + case '"': return ReadQuotedString(); + + // Symbols + case '[' : reader.Next(); return JsonToken.BracketOpen; // Array start + case ']' : reader.Next(); return JsonToken.BracketClose; // Array end + case ',' : reader.Next(); return JsonToken.Comma; // Value seperator + case ':' : reader.Next(); return JsonToken.Colon; // Field value indicator + case '{' : reader.Next(); return JsonToken.BraceOpen; // Object start + case '}' : reader.Next(); return JsonToken.BraceClose; // Object end + case '\0' : reader.Next(); return JsonToken.Terminator; // Stream terminiator + + default: return ReadLiteral(); + } + } + + private JsonToken ReadQuotedString() + { + Expect('"', "quoted string indicator"); + + reader.Next(); // Read '"' (Starting quote) + + // Read until we reach an unescaped quote char + while (reader.Current != '"') + { + EnsureNotEof("quoted string"); + + if (reader.Current == '\\') + { + char escapedCharacter = reader.ReadEscapeCode(); + + sb.Append(escapedCharacter); + + continue; + } + + StoreCurrentCharacterAndReadNext(); + } + + reader.Next(); // Read '"' (Ending quote) + + return new JsonToken(TokenKind.String, value: sb.Extract()); + } + + private JsonToken ReadLiteral() + { + if (char.IsDigit(reader.Current) || + reader.Current == '-' || + reader.Current == '+') + { + return ReadNumber(); + } + + return ReadIdentifer(); + } + + private JsonToken ReadNumber() + { + // Read until we hit a non-numeric character + // -6.247737e-06 + // E + + while (char.IsDigit(reader.Current) + || reader.Current == '.' + || reader.Current == 'e' + || reader.Current == 'E' + || reader.Current == '-' + || reader.Current == '+') + { + StoreCurrentCharacterAndReadNext(); + } + + return new JsonToken(TokenKind.Number, value: sb.Extract()); + } + + int count = 0; + + private JsonToken ReadIdentifer() + { + count++; + + if (!char.IsLetter(reader.Current)) + { + throw new ParserException( + message : $"Expected literal (number, boolean, or null). Was '{reader.Current}'.", + location : reader.Location + ); + } + + // Read letters, numbers, and underscores '_' + while (char.IsLetterOrDigit(reader.Current) || reader.Current == '_') + { + StoreCurrentCharacterAndReadNext(); + } + + string text = sb.Extract(); + + switch (text) + { + case "true": return JsonToken.True; + case "false": return JsonToken.False; + case "null": return JsonToken.Null; + + default: return new JsonToken(TokenKind.String, text); + } + } + + private void Expect(char character, string description) + { + if (reader.Current != character) + { + throw new ParserException( + message: $"Expected {description} ('{character}'). Was '{reader.Current}'.", + location: reader.Location + ); + } + } + + private void EnsureNotEof(string tokenType) + { + if (reader.IsEof) + { + throw new ParserException( + message: $"Unexpected EOF while reading {tokenType}.", + location: reader.Location + ); + } + } + + private void StoreCurrentCharacterAndReadNext() + { + sb.Append(reader.Current); + + reader.Next(); + } + + public void Dispose() + { + reader.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/Location.cs b/src/WindowsIotServices/generated/runtime/Parser/Location.cs new file mode 100644 index 000000000000..1d8c68851eb2 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/Location.cs @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal struct SourceLocation + { + private int line; + private int column; + private int position; + + internal SourceLocation(int line = 0, int column = 0, int position = 0) + { + this.line = line; + this.column = column; + this.position = position; + } + + internal int Line => line; + + internal int Column => column; + + internal int Position => position; + + internal void Advance() + { + this.column++; + this.position++; + } + + internal void MarkNewLine() + { + this.line++; + this.column = 0; + } + + internal SourceLocation Clone() + { + return new SourceLocation(line, column, position); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/Readers/SourceReader.cs b/src/WindowsIotServices/generated/runtime/Parser/Readers/SourceReader.cs new file mode 100644 index 000000000000..8b50168f2e85 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/Readers/SourceReader.cs @@ -0,0 +1,130 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Globalization; +using System.IO; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public sealed class SourceReader : IDisposable + { + private readonly TextReader source; + + private char current; + + private readonly SourceLocation location = new SourceLocation(); + + private bool isEof = false; + + internal SourceReader(TextReader textReader) + { + this.source = textReader ?? throw new ArgumentNullException(nameof(textReader)); + } + + /// + /// Advances to the next character + /// + internal void Next() + { + // Advance to the new line when we see a new line '\n'. + // A new line may be prefixed by a carriage return '\r'. + + if (current == '\n') + { + location.MarkNewLine(); + } + + int charCode = source.Read(); // -1 for end + + if (charCode >= 0) + { + current = (char)charCode; + } + else + { + // If we've already marked this as the EOF, throw an exception + if (isEof) + { + throw new EndOfStreamException("Cannot advance past end of stream."); + } + + isEof = true; + + current = '\0'; + } + + location.Advance(); + } + + internal void SkipWhitespace() + { + while (char.IsWhiteSpace(current)) + { + Next(); + } + } + + internal char ReadEscapeCode() + { + Next(); + + char escapedChar = current; + + Next(); // Consume escaped character + + switch (escapedChar) + { + // Special escape codes + case '"': return '"'; // " (Quotation mark) U+0022 + case '/': return '/'; // / (Solidus) U+002F + case '\\': return '\\'; // \ (Reverse solidus) U+005C + + // Control Characters + case '0': return '\0'; // Nul (0) U+0000 + case 'a': return '\a'; // Alert (7) + case 'b': return '\b'; // Backspace (8) U+0008 + case 'f': return '\f'; // Form feed (12) U+000C + case 'n': return '\n'; // Line feed (10) U+000A + case 'r': return '\r'; // Carriage return (13) U+000D + case 't': return '\t'; // Horizontal tab (9) U+0009 + case 'v': return '\v'; // Vertical tab + + // Unicode escape sequence + case 'u': return ReadUnicodeEscapeSequence(); // U+XXXX + + default: throw new Exception($"Unrecognized escape sequence '\\{escapedChar}'"); + } + } + + private readonly char[] hexCode = new char[4]; + + private char ReadUnicodeEscapeSequence() + { + hexCode[0] = current; Next(); + hexCode[1] = current; Next(); + hexCode[2] = current; Next(); + hexCode[3] = current; Next(); + + return Convert.ToChar(int.Parse( + s : new string(hexCode), + style : NumberStyles.HexNumber, + provider: NumberFormatInfo.InvariantInfo + )); + } + + internal char Current => current; + + internal bool IsEof => isEof; + + internal char Peek() => (char)source.Peek(); + + internal SourceLocation Location => location; + + public void Dispose() + { + source.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Parser/TokenReader.cs b/src/WindowsIotServices/generated/runtime/Parser/TokenReader.cs new file mode 100644 index 000000000000..526bb2b9ba63 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Parser/TokenReader.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. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + public class TokenReader : IDisposable + { + private readonly JsonTokenizer tokenizer; + private JsonToken current; + + internal TokenReader(JsonTokenizer tokenizer) + { + this.tokenizer = tokenizer ?? throw new ArgumentNullException(nameof(tokenizer)); + } + + internal void Next() + { + current = tokenizer.ReadNext(); + } + + internal JsonToken Current => current; + + internal void Ensure(TokenKind kind, string readerName) + { + if (current.Kind != kind) + { + throw new ParserException($"Expected {kind} while reading {readerName}). Was {current}."); + } + } + + public void Dispose() + { + tokenizer.Dispose(); + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/PipelineMocking.cs b/src/WindowsIotServices/generated/runtime/PipelineMocking.cs new file mode 100644 index 000000000000..e77ede91506e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/PipelineMocking.cs @@ -0,0 +1,254 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System.Threading.Tasks; + using System.Collections.Generic; + using System.Net.Http; + using System.Linq; + using System.Net; + using Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json; + + public enum MockMode + { + Live, + Record, + Playback, + + } + + public class PipelineMock + { + + private System.Collections.Generic.Stack scenario = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack context = new System.Collections.Generic.Stack(); + private System.Collections.Generic.Stack description = new System.Collections.Generic.Stack(); + + private readonly string recordingPath; + private int counter = 0; + + public static implicit operator Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep(PipelineMock instance) => instance.SendAsync; + + public MockMode Mode { get; set; } = MockMode.Live; + public PipelineMock(string recordingPath) + { + this.recordingPath = recordingPath; + } + + public void PushContext(string text) => context.Push(text); + + public void PushDescription(string text) => description.Push(text); + + + public void PushScenario(string it) + { + // reset counter too + counter = 0; + + scenario.Push(it); + } + + public void PopContext() => context.Pop(); + + public void PopDescription() => description.Pop(); + + public void PopScenario() => scenario.Pop(); + + public void SetRecord() => Mode = MockMode.Record; + + public void SetPlayback() => Mode = MockMode.Playback; + + public void SetLive() => Mode = MockMode.Live; + + public string Scenario => (scenario.Count > 0 ? scenario.Peek() : "[NoScenario]"); + public string Description => (description.Count > 0 ? description.Peek() : "[NoDescription]"); + public string Context => (context.Count > 0 ? context.Peek() : "[NoContext]"); + + /// + /// Headers that we substitute out blank values for in the recordings + /// Add additional headers as necessary + /// + public static HashSet Blacklist = new HashSet(System.StringComparer.CurrentCultureIgnoreCase) { + "Authorization", + }; + + public Dictionary ForceResponseHeaders = new Dictionary(); + + internal static XImmutableArray Removed = new XImmutableArray(new string[] { "[Filtered]" }); + + internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); + + internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + + internal static JsonNode SerializeContent(byte[] content) + { + if (null == content || content.Length == 0) + { + return XNull.Instance; + } + var first = content[0]; + var last = content[content.Length - 1]; + + // plaintext for JSON/SGML/XML/HTML/STRINGS/ARRAYS + if ((first == '{' && last == '}') || (first == '<' && last == '>') || (first == '[' && last == ']') || (first == '"' && last == '"')) + { + return new JsonString(System.Text.Encoding.UTF8.GetString(content)); + } + + // base64 for everyone else + return new JsonString(System.Convert.ToBase64String(content)); + } + + internal static byte[] DeserializeContent(string content) + { + if (string.IsNullOrWhiteSpace(content)) + { + return new byte[0]; + } + + if (content.EndsWith("==")) + { + try + { + return System.Convert.FromBase64String(content); + } + catch + { + // hmm. didn't work, return it as a string I guess. + } + } + return System.Text.Encoding.UTF8.GetBytes(content); + } + + public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) + { + var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + messages[rqKey] = new JsonObject { + { "Request",new JsonObject { + { "Method", request.Method.Method }, + { "RequestUri", request.RequestUri }, + { "Content", SerializeContent( request.Content) }, + { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, + { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} + } }, + {"Response", new JsonObject { + { "StatusCode", (int)response.StatusCode}, + { "Headers", new JsonObject(FilterHeaders(response.Headers))}, + { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, + { "Content", SerializeContent(response.Content) }, + }} + }; + System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); + } + + private JsonObject Load() + { + if (System.IO.File.Exists(this.recordingPath)) + { + try + { + return JsonObject.FromStream(System.IO.File.OpenRead(this.recordingPath)); + } + catch + { + throw new System.Exception($"Invalid recording file: '{recordingPath}'"); + } + } + + throw new System.ArgumentException($"Missing recording file: '{recordingPath}'", nameof(recordingPath)); + } + + public HttpResponseMessage LoadMessage(string rqKey) + { + var responses = Load(); + var message = responses.Property(rqKey); + + if (null == message) + { + throw new System.ArgumentException($"Missing Request '{rqKey}' in recording file", nameof(rqKey)); + } + + var sc = 0; + var reqMessage = message.Property("Request"); + var respMessage = message.Property("Response"); + + // --------------------------- deserialize response ---------------------------------------------------------------- + var response = new HttpResponseMessage + { + StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + }; + + foreach (var each in respMessage.Property("Headers")) + { + response.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + foreach (var frh in ForceResponseHeaders) + { + response.Headers.Remove(frh.Key); + response.Headers.TryAddWithoutValidation(frh.Key, frh.Value); + } + + foreach (var each in respMessage.Property("ContentHeaders")) + { + response.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + // --------------------------- deserialize request ---------------------------------------------------------------- + response.RequestMessage = new HttpRequestMessage + { + Method = new HttpMethod(reqMessage.StringProperty("Method")), + RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + }; + + foreach (var each in reqMessage.Property("Headers")) + { + response.RequestMessage.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + foreach (var each in reqMessage.Property("ContentHeaders")) + { + response.RequestMessage.Content.Headers.TryAddWithoutValidation(each.Key, each.Value.ToArrayOf()); + } + + return response; + } + + public async Task SendAsync(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + counter++; + var rqkey = $"{Description}+{Context}+{Scenario}+${request.Method.Method}+{request.RequestUri}+{counter}"; + + switch (Mode) + { + case MockMode.Record: + //Add following code since the request.Content will be released after sendAsync + var requestClone = request; + if (requestClone.Content != null) + { + requestClone = await request.CloneWithContent(request.RequestUri, request.Method); + } + // make the call + var response = await next.SendAsync(request, callback); + + // save the message to the recording file + SaveMessage(rqkey, requestClone, response); + + // return the response. + return response; + + case MockMode.Playback: + // load and return the response. + return LoadMessage(rqkey); + + default: + // pass-thru, do nothing + return await next.SendAsync(request, callback); + } + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Response.cs b/src/WindowsIotServices/generated/runtime/Response.cs new file mode 100644 index 000000000000..7ba04a3883c3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Response.cs @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System; + using System.Threading.Tasks; + public class Response : EventData + { + public Response() : base() + { + } + } + + public class Response : Response + { + private Func> _resultDelegate; + private Task _resultValue; + + public Response(T value) : base() => _resultValue = Task.FromResult(value); + public Response(Func value) : base() => _resultDelegate = () => Task.FromResult(value()); + public Response(Func> value) : base() => _resultDelegate = value; + public Task Result => _resultValue ?? (_resultValue = this._resultDelegate()); + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Serialization/JsonSerializer.cs b/src/WindowsIotServices/generated/runtime/Serialization/JsonSerializer.cs new file mode 100644 index 000000000000..32cb41ef25c3 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Serialization/JsonSerializer.cs @@ -0,0 +1,350 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class JsonSerializer + { + private int depth = 0; + + private SerializationOptions options = new SerializationOptions(); + + #region Deserialization + + internal T Deseralize(JsonObject json) + where T : new() + { + var contract = JsonModelCache.Get(typeof(T)); + + return (T)DeserializeObject(contract, json); + } + + internal object DeserializeObject(JsonModel contract, JsonObject json) + { + var instance = Activator.CreateInstance(contract.Type); + + depth++; + + // Ensure we don't recurse forever + if (depth > 5) throw new Exception("Depth greater than 5"); + + foreach (var field in json) + { + var member = contract[field.Key]; + + if (member != null) + { + var value = DeserializeValue(member, field.Value); + + member.SetValue(instance, value); + } + } + + depth--; + + return instance; + } + + private object DeserializeValue(JsonMember member, JsonNode value) + { + if (value.Type == JsonType.Null) return null; + + var type = member.Type; + + if (member.IsStringLike && value.Type != JsonType.String) + { + // Take the long path... + return DeserializeObject(JsonModelCache.Get(type), (JsonObject)value); + } + else if (member.Converter != null) + { + return member.Converter.FromJson(value); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (member.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + private object DeserializeValue(Type type, JsonNode value) + { + if (type == null) throw new ArgumentNullException(nameof(type)); + + if (value.Type == JsonType.Null) return null; + + var typeDetails = TypeDetails.Get(type); + + if (typeDetails.JsonConverter != null) + { + return typeDetails.JsonConverter.FromJson(value); + } + else if (typeDetails.IsEnum) + { + return Enum.Parse(type, value.ToString(), ignoreCase: true); + } + else if (type.IsArray) + { + return DeserializeArray(type, (JsonArray)value); + } + else if (typeDetails.IsList) + { + return DeserializeList(type, (JsonArray)value); + } + else + { + var contract = JsonModelCache.Get(type); + + return DeserializeObject(contract, (JsonObject)value); + } + } + + internal Array DeserializeArray(Type type, JsonArray elements) + { + var elementType = type.GetElementType(); + + var elementTypeDetails = TypeDetails.Get(elementType); + + var array = Array.CreateInstance(elementType, elements.Count); + + int i = 0; + + if (elementTypeDetails.JsonConverter != null) + { + foreach (var value in elements) + { + array.SetValue(elementTypeDetails.JsonConverter.FromJson(value), i); + + i++; + } + } + else + { + foreach (var value in elements) + { + array.SetValue(DeserializeValue(elementType, value), i); + + i++; + } + } + + return array; + } + + internal IList DeserializeList(Type type, JsonArray jsonArray) + { + // TODO: Handle non-generic types + if (!type.IsGenericType) + throw new ArgumentException("Must be a generic type", nameof(type)); + + var elementType = type.GetGenericArguments()[0]; + + IList list; + + if (type.IsInterface) + { + // Create a concrete generic list + list = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); + } + else + { + list = (IList)Activator.CreateInstance(type); + } + + foreach (var value in jsonArray) + { + list.Add(DeserializeValue(elementType, value)); + } + + return list; + } + + #endregion + + #region Serialization + + internal JsonNode Serialize(object instance) => + Serialize(instance, SerializationOptions.Default); + + internal JsonNode Serialize(object instance, string[] include) => + Serialize(instance, new SerializationOptions { Include = include }); + + internal JsonNode Serialize(object instance, SerializationOptions options) + { + this.options = options; + + if (instance == null) + { + return XNull.Instance; + } + + return ReadValue(instance.GetType(), instance); + } + + #region Readers + + internal JsonArray ReadArray(IEnumerable collection) + { + var array = new XNodeArray(); + + foreach (var item in collection) + { + array.Add(ReadValue(item.GetType(), item)); + } + + return array; + } + + internal IEnumerable> ReadProperties(object instance) + { + var contract = JsonModelCache.Get(instance.GetType()); + + foreach (var member in contract.Members) + { + string name = member.Name; + + if (options.PropertyNameTransformer != null) + { + name = options.PropertyNameTransformer.Invoke(name); + } + + // Skip the field if it's not included + if ((depth == 1 && !options.IsIncluded(name))) + { + continue; + } + + var value = member.GetValue(instance); + + if (!member.EmitDefaultValue && (value == null || (member.IsList && ((IList)value).Count == 0) || value.Equals(member.DefaultValue))) + { + continue; + } + else if (options.IgnoreNullValues && value == null) // Ignore null values + { + continue; + } + + // Transform the value if there is one + if (options.Transformations != null) + { + var transform = options.GetTransformation(name); + + if (transform != null) + { + value = transform.Transformer(value); + } + } + + yield return new KeyValuePair(name, ReadValue(member.TypeDetails, value)); + } + } + + private JsonObject ReadObject(object instance) + { + depth++; + + // TODO: Guard against a self referencing graph + if (depth > options.MaxDepth) + { + depth--; + + return new JsonObject(); + } + + var node = new JsonObject(ReadProperties(instance)); + + depth--; + + return node; + } + + private JsonNode ReadValue(Type type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + var member = TypeDetails.Get(type); + + return ReadValue(member, value); + } + + private JsonNode ReadValue(TypeDetails type, object value) + { + if (value == null) + { + return XNull.Instance; + } + + if (type.JsonConverter != null) + { + return type.JsonConverter.ToJson(value); + } + else if (type.IsArray) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateArray((string[])value); + case TypeCode.UInt16: return CreateArray((ushort[])value); + case TypeCode.UInt32: return CreateArray((uint[])value); + case TypeCode.UInt64: return CreateArray((ulong[])value); + case TypeCode.Int16: return CreateArray((short[])value); + case TypeCode.Int32: return CreateArray((int[])value); + case TypeCode.Int64: return CreateArray((long[])value); + case TypeCode.Single: return CreateArray((float[])value); + case TypeCode.Double: return CreateArray((double[])value); + default: return ReadArray((IEnumerable)value); + } + } + else if (value is IEnumerable) + { + if (type.IsList && type.ElementType != null) + { + switch (Type.GetTypeCode(type.ElementType)) + { + case TypeCode.String: return CreateList(value); + case TypeCode.UInt16: return CreateList(value); + case TypeCode.UInt32: return CreateList(value); + case TypeCode.UInt64: return CreateList(value); + case TypeCode.Int16: return CreateList(value); + case TypeCode.Int32: return CreateList(value); + case TypeCode.Int64: return CreateList(value); + case TypeCode.Single: return CreateList(value); + case TypeCode.Double: return CreateList(value); + } + } + + return ReadArray((IEnumerable)value); + } + else + { + // Complex object + return ReadObject(value); + } + } + + private XList CreateList(object value) => new XList((IList)value); + + private XImmutableArray CreateArray(T[] array) => new XImmutableArray(array); + + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Serialization/PropertyTransformation.cs b/src/WindowsIotServices/generated/runtime/Serialization/PropertyTransformation.cs new file mode 100644 index 000000000000..bb89f93ba023 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Serialization/PropertyTransformation.cs @@ -0,0 +1,21 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class PropertyTransformation + { + internal PropertyTransformation(string name, Func transformer) + { + Name = name ?? throw new ArgumentNullException(nameof(name)); + Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); + } + + internal string Name { get; } + + internal Func Transformer { get; } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Serialization/SerializationOptions.cs b/src/WindowsIotServices/generated/runtime/Serialization/SerializationOptions.cs new file mode 100644 index 000000000000..e59023606deb --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Serialization/SerializationOptions.cs @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Linq; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class SerializationOptions + { + internal static readonly SerializationOptions Default = new SerializationOptions(); + + internal SerializationOptions() { } + + internal SerializationOptions( + string[] include = null, + bool ingoreNullValues = false) + { + Include = include; + IgnoreNullValues = ingoreNullValues; + } + + internal string[] Include { get; set; } + + internal string[] Exclude { get; set; } + + internal bool IgnoreNullValues { get; set; } + + internal PropertyTransformation[] Transformations { get; set; } + + internal Func PropertyNameTransformer { get; set; } + + internal int MaxDepth { get; set; } = 5; + + internal bool IsIncluded(string name) + { + if (Exclude != null) + { + return !Exclude.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + else if (Include != null) + { + return Include.Any(exclude => exclude.Equals(name, StringComparison.OrdinalIgnoreCase)); + } + + return true; + } + + internal PropertyTransformation GetTransformation(string propertyName) + { + if (Transformations == null) return null; + + foreach (var t in Transformations) + { + if (t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)) + { + return t; + } + } + + return null; + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/SerializationMode.cs b/src/WindowsIotServices/generated/runtime/SerializationMode.cs new file mode 100644 index 000000000000..34ffb94fe210 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/SerializationMode.cs @@ -0,0 +1,16 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + [System.Flags] + public enum SerializationMode + { + None = 0, + IncludeHeaders = 1 << 0, + IncludeReadOnly = 1 << 1, + + IncludeAll = IncludeHeaders | IncludeReadOnly + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/TypeConverterExtensions.cs b/src/WindowsIotServices/generated/runtime/TypeConverterExtensions.cs new file mode 100644 index 000000000000..e7d47dbe221e --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/TypeConverterExtensions.cs @@ -0,0 +1,190 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System.IO; +using System.Linq; +using System.Xml; +using System.Xml.Serialization; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.PowerShell +{ + internal static class TypeConverterExtensions + { + internal static T[] SelectToArray(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0]; // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result.ToArray(); + } + + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.IDictionary dictionary) + { + if (null != dictionary) + { + foreach (var each in dictionary.Keys) + { + yield return each; + } + } + } + internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Management.Automation.PSObject instance) + { + if (null != instance) + { + foreach (var each in instance.Properties) + { + yield return each; + } + } + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.Generic.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Collections.IDictionary instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + return (null == instance || instance.Count == 0) ? + Enumerable.Empty>() : + instance.Keys.OfType() + .Where(key => + !(true == exclusions?.Contains(key?.ToString())) + && (false != inclusions?.Contains(key?.ToString()))) + .Select(key => new System.Collections.Generic.KeyValuePair(key, instance[key])); + } + + internal static System.Collections.Generic.IEnumerable> GetFilteredProperties(this System.Management.Automation.PSObject instance, global::System.Collections.Generic.HashSet exclusions = null, global::System.Collections.Generic.HashSet inclusions = null) + { + // new global::System.Collections.Generic.HashSet(System.StringComparer.InvariantCultureIgnoreCase) + return (null == instance || !instance.Properties.Any()) ? + Enumerable.Empty>() : + instance.Properties + .Where(property => + !(true == exclusions?.Contains(property.Name)) + && (false != inclusions?.Contains(property.Name))) + .Select(property => new System.Collections.Generic.KeyValuePair(property.Name, property.Value)); + } + + + internal static T GetValueForProperty(this System.Collections.Generic.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys, each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + internal static T GetValueForProperty(this System.Collections.IDictionary dictionary, string propertyName, T defaultValue, System.Func converter) + { + try + { + var key = System.Linq.Enumerable.FirstOrDefault(dictionary.Keys.OfType(), each => System.String.Equals(each.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return key == null ? defaultValue : (T)converter(dictionary[key]); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + + internal static T GetValueForProperty(this System.Management.Automation.PSObject psObject, string propertyName, T defaultValue, System.Func converter) + { + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + return property == null ? defaultValue : (T)converter(property.Value); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return defaultValue; + } + } +} diff --git a/src/WindowsIotServices/generated/runtime/UndeclaredResponseException.cs b/src/WindowsIotServices/generated/runtime/UndeclaredResponseException.cs new file mode 100644 index 000000000000..ab35ee841e3f --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/UndeclaredResponseException.cs @@ -0,0 +1,104 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System; + using System.Net.Http; + using System.Net.Http.Headers; + using static Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Extensions; + + public class RestException : Exception, IDisposable + { + public System.Net.HttpStatusCode StatusCode { get; set; } + public string Code { get; protected set; } + protected string message; + public HttpRequestMessage RequestMessage { get; protected set; } + public HttpResponseHeaders ResponseHeaders { get; protected set; } + + public string ResponseBody { get; protected set; } + public string ClientRequestId { get; protected set; } + public string RequestId { get; protected set; } + + public override string Message => message; + public string Action { get; protected set; } + + public RestException(System.Net.Http.HttpResponseMessage response) + { + StatusCode = response.StatusCode; + //CloneWithContent will not work here since the content is disposed after sendAsync + //Besides, it seems there is no need for the request content cloned here. + RequestMessage = response.RequestMessage.Clone(); + ResponseBody = response.Content.ReadAsStringAsync().Result; + ResponseHeaders = response.Headers; + + RequestId = response.GetFirstHeader("x-ms-request-id"); + ClientRequestId = response.GetFirstHeader("x-ms-client-request-id"); + + try + { + // try to parse the body as JSON, and see if a code and message are in there. + var json = Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonNode.Parse(ResponseBody) as Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json.JsonObject; + + // see if there is an error block in the body + json = json.Property("error") ?? json; + + { Code = If(json?.PropertyT("code"), out var c) ? (string)c : (string)StatusCode.ToString(); } + { message = If(json?.PropertyT("message"), out var m) ? (string)m : (string)Message; } + { Action = If(json?.PropertyT("action"), out var a) ? (string)a : (string)Action; } + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // couldn't get the code/message from the body response. + // we'll create one below. + } +#endif + if (string.IsNullOrEmpty(message)) + { + if (StatusCode >= System.Net.HttpStatusCode.BadRequest && StatusCode < System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Request Error, Status: {StatusCode}"; + } + else if (StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + message = $"The server responded with a Server Error, Status: {StatusCode}"; + } + else + { + message = $"The server responded with an unrecognized response, Status: {StatusCode}"; + } + } + } + + public void Dispose() + { + ((IDisposable)RequestMessage).Dispose(); + } + } + + public class RestException : RestException + { + public T Error { get; protected set; } + public RestException(System.Net.Http.HttpResponseMessage response, T error) : base(response) + { + Error = error; + } + } + + + public class UndeclaredResponseException : RestException + { + public UndeclaredResponseException(System.Net.Http.HttpResponseMessage response) : base(response) + { + + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/generated/runtime/Writers/JsonWriter.cs b/src/WindowsIotServices/generated/runtime/Writers/JsonWriter.cs new file mode 100644 index 000000000000..ddcd45826fef --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/Writers/JsonWriter.cs @@ -0,0 +1,223 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +using System; +using System.Collections.Generic; +using System.IO; +using System.Web; + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.Json +{ + internal class JsonWriter + { + const string indentation = " "; // 2 spaces + + private readonly bool pretty; + private readonly TextWriter writer; + + protected int currentLevel = 0; + + internal JsonWriter(TextWriter writer, bool pretty = true) + { + this.writer = writer ?? throw new ArgumentNullException(nameof(writer)); + this.pretty = pretty; + } + + internal void WriteNode(JsonNode node) + { + switch (node.Type) + { + case JsonType.Array: WriteArray((IEnumerable)node); break; + case JsonType.Object: WriteObject((JsonObject)node); break; + + // Primitives + case JsonType.Binary: WriteBinary((XBinary)node); break; + case JsonType.Boolean: WriteBoolean((bool)node); break; + case JsonType.Date: WriteDate((JsonDate)node); break; + case JsonType.Null: WriteNull(); break; + case JsonType.Number: WriteNumber((JsonNumber)node); break; + case JsonType.String: WriteString(node); break; + } + } + + internal void WriteArray(IEnumerable array) + { + currentLevel++; + + writer.Write('['); + + bool doIndentation = false; + + if (pretty) + { + foreach (var node in array) + { + if (node.Type == JsonType.Object || node.Type == JsonType.Array) + { + doIndentation = true; + + break; + } + } + } + + bool isFirst = true; + + foreach (JsonNode node in array) + { + if (!isFirst) writer.Write(','); + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + WriteNode(node); + + isFirst = false; + } + + currentLevel--; + + if (doIndentation) + { + WriteIndent(); + } + else if (pretty) + { + writer.Write(' '); + } + + writer.Write(']'); + } + + internal void WriteIndent() + { + if (pretty) + { + writer.Write(Environment.NewLine); + + for (int level = 0; level < currentLevel; level++) + { + writer.Write(indentation); + } + } + } + + internal void WriteObject(JsonObject obj) + { + currentLevel++; + + writer.Write('{'); + + bool isFirst = true; + + foreach (var field in obj) + { + if (!isFirst) writer.Write(','); + + WriteIndent(); + + WriteFieldName(field.Key); + + writer.Write(':'); + + if (pretty) + { + writer.Write(' '); + } + + // Write the field value + WriteNode(field.Value); + + isFirst = false; + } + + currentLevel--; + + WriteIndent(); + + writer.Write('}'); + } + + internal void WriteFieldName(string fieldName) + { + writer.Write('"'); + writer.Write(HttpUtility.JavaScriptStringEncode(fieldName)); + writer.Write('"'); + } + + #region Primitives + + internal void WriteBinary(XBinary value) + { + writer.Write('"'); + writer.Write(value.ToString()); + writer.Write('"'); + } + + internal void WriteBoolean(bool value) + { + writer.Write(value ? "true" : "false"); + } + + internal void WriteDate(JsonDate date) + { + if (date.ToDateTime().Year == 1) + { + WriteNull(); + } + else + { + writer.Write('"'); + writer.Write(date.ToIsoString()); + writer.Write('"'); + } + } + + internal void WriteNull() + { + writer.Write("null"); + } + + internal void WriteNumber(JsonNumber number) + { + if (number.Overflows) + { + writer.Write('"'); + writer.Write(number.Value); + writer.Write('"'); + } + else + { + writer.Write(number.Value); + } + } + + internal void WriteString(string text) + { + if (text == null) + { + WriteNull(); + } + else + { + writer.Write('"'); + + writer.Write(HttpUtility.JavaScriptStringEncode(text)); + + writer.Write('"'); + } + } + + #endregion + } +} + + +// TODO: Replace with System.Text.Json when available diff --git a/src/WindowsIotServices/generated/runtime/delegates.cs b/src/WindowsIotServices/generated/runtime/delegates.cs new file mode 100644 index 000000000000..ad45354b9716 --- /dev/null +++ b/src/WindowsIotServices/generated/runtime/delegates.cs @@ -0,0 +1,23 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData=System.Func; + + public delegate Task SendAsync(HttpRequestMessage request, IEventListener callback); + public delegate Task SendAsyncStep(HttpRequestMessage request, IEventListener callback, ISendAsync next); + public delegate Task SignalEvent(string id, CancellationToken token, GetEventData getEventData); + public delegate Task Event(EventData message); + public delegate void SynchEvent(EventData message); + public delegate Task OnResponse(Response message); + public delegate Task OnResponse(Response message); +} \ No newline at end of file diff --git a/src/WindowsIotServices/help/Az.WindowsIotServices.md b/src/WindowsIotServices/help/Az.WindowsIotServices.md new file mode 100644 index 000000000000..748f0c35015e --- /dev/null +++ b/src/WindowsIotServices/help/Az.WindowsIotServices.md @@ -0,0 +1,27 @@ +--- +Module Name: Az.WindowsIotServices +Module Guid: d5c7f2ce-fe23-49d5-a869-fb780e78a663 +Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.WindowsIotServices Module +## Description +Microsoft Azure PowerShell: WindowsIotServices cmdlets + +## Az.WindowsIotServices Cmdlets +### [Get-AzWindowsIotServicesDevice](Get-AzWindowsIotServicesDevice.md) +Get the non-security related metadata of a Windows IoT Device Service. + +### [New-AzWindowsIotServicesDevice](New-AzWindowsIotServicesDevice.md) +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + +### [Remove-AzWindowsIotServicesDevice](Remove-AzWindowsIotServicesDevice.md) +Delete a Windows IoT Device Service. + +### [Update-AzWindowsIotServicesDevice](Update-AzWindowsIotServicesDevice.md) +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + diff --git a/src/WindowsIotServices/help/Get-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/help/Get-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..5d5e65655fa0 --- /dev/null +++ b/src/WindowsIotServices/help/Get-AzWindowsIotServicesDevice.md @@ -0,0 +1,206 @@ +--- +external help file: +Module Name: Az.WindowsIotServices +online version: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesdevice +schema: 2.0.0 +--- + +# Get-AzWindowsIotServicesDevice + +## SYNOPSIS +Get the non-security related metadata of a Windows IoT Device Service. + +## SYNTAX + +### List1 (Default) +``` +Get-AzWindowsIotServicesDevice [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzWindowsIotServicesDevice -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzWindowsIotServicesDevice -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzWindowsIotServicesDevice -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the non-security related metadata of a Windows IoT Device Service. + +## EXAMPLES + +### Example 1: Get all Windows IoT services under a subscription +```powershell +PS C:\> Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +``` + +This command gets all Windows IoT services under a subscription. + +### Example 2: Get all Windows IoT services under a resource group +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +eastus wsi-t02 Microsoft.WindowsIoT/DeviceServices "5c006ad2-0000-0700-0000-5faa3e090000" +``` + +This command gets all Windows IoT services under a resource group. + +### Example 3: Get a Windows IoT service by name +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by name. + +### Example 4: Get a Windows IoT service by object +```powershell +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by object. + +### Example 4: Get a Windows IoT service by pipeline +```powershell +PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5c006e63-0000-0700-0000-5faa37830000" +``` + +This command gets a Windows IoT service by pipeline. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription identifier. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[DeviceName ]`: The name of the Windows IoT Device Service. + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: The name of the resource group that contains the Windows IoT Device Service. + - `[SubscriptionId ]`: The subscription identifier. + +## RELATED LINKS + diff --git a/src/WindowsIotServices/help/New-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/help/New-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..202fb0929453 --- /dev/null +++ b/src/WindowsIotServices/help/New-AzWindowsIotServicesDevice.md @@ -0,0 +1,270 @@ +--- +external help file: +Module Name: Az.WindowsIotServices +online version: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/new-azwindowsiotservicesdevice +schema: 2.0.0 +--- + +# New-AzWindowsIotServicesDevice + +## SYNOPSIS +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + +## SYNTAX + +``` +New-AzWindowsIotServicesDevice -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-AdminDomainName ] [-BillingDomainName ] [-Etag ] + [-Location ] [-Note ] [-Quantity ] [-Tag ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create or update the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + +## EXAMPLES + +### Example 1: Create a new Windows IoT services +```powershell +PS C:\> New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "6a00eee9-0000-0700-0000-5fab82870000" +``` + +This command creates a new Windows IoT services. + +## PARAMETERS + +### -AdminDomainName +Windows IoT Device Service OEM AAD domain + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingDomainName +Windows IoT Device Service ODM AAD domain + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +The Etag field is *not* required. +If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the Windows IoT Device Service. +Do not specify for creating a new Windows IoT Device Service. +Required to update an existing Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The Azure Region where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Note +Windows IoT Device Service notes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Quantity +Windows IoT Device Service device allocation, + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription identifier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/WindowsIotServices/help/Remove-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/help/Remove-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..355757a2ce76 --- /dev/null +++ b/src/WindowsIotServices/help/Remove-AzWindowsIotServicesDevice.md @@ -0,0 +1,185 @@ +--- +external help file: +Module Name: Az.WindowsIotServices +online version: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/remove-azwindowsiotservicesdevice +schema: 2.0.0 +--- + +# Remove-AzWindowsIotServicesDevice + +## SYNOPSIS +Delete a Windows IoT Device Service. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzWindowsIotServicesDevice -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzWindowsIotServicesDevice -InputObject [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Windows IoT Device Service. + +## EXAMPLES + +### Example 1: Remove a Windows IoT services by name +```powershell +PS C:\> Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test + +``` + +This command removes a Windows IoT services by name. + +### Example 2: Remove a Windows IoT services by pipeline +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice + + +``` + +This command removes a Windows IoT services by pipeline. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription identifier. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[DeviceName ]`: The name of the Windows IoT Device Service. + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: The name of the resource group that contains the Windows IoT Device Service. + - `[SubscriptionId ]`: The subscription identifier. + +## RELATED LINKS + diff --git a/src/WindowsIotServices/help/Update-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/help/Update-AzWindowsIotServicesDevice.md new file mode 100644 index 000000000000..09e2e95306ae --- /dev/null +++ b/src/WindowsIotServices/help/Update-AzWindowsIotServicesDevice.md @@ -0,0 +1,319 @@ +--- +external help file: +Module Name: Az.WindowsIotServices +online version: https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/update-azwindowsiotservicesdevice +schema: 2.0.0 +--- + +# Update-AzWindowsIotServicesDevice + +## SYNOPSIS +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzWindowsIotServicesDevice -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-AdminDomainName ] [-BillingDomainName ] [-Etag ] + [-Location ] [-Note ] [-Quantity ] [-Tag ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzWindowsIotServicesDevice -InputObject [-IfMatch ] + [-AdminDomainName ] [-BillingDomainName ] [-Etag ] [-Location ] + [-Note ] [-Quantity ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates the metadata of a Windows IoT Device Service. +The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service. + +## EXAMPLES + +### Example 1: Update a Windows IoT services by name +```powershell +PS C:\> Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 + +Location Name Type Etag +-------- ---- ---- ---- +eastus wsi-t03 Microsoft.WindowsIoT/DeviceServices "5d006a5c-0000-0700-0000-5faa46760000" +``` + +This command updates a Windows IoT services by name. + +### Example 2: Update a Windows IoT services by pipeline +```powershell +PS C:\> Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} + +Location Name Type Etag +-------- ---- ---- ---- +West US wsi-t01 Microsoft.WindowsIoT/DeviceServices "5d005f5f-0000-0700-0000-5faa46ae0000" +``` + +This command updates a Windows IoT services by pipeline. + +## PARAMETERS + +### -AdminDomainName +Windows IoT Device Service OEM AAD domain + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BillingDomainName +Windows IoT Device Service ODM AAD domain + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +The Etag field is *not* required. +If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the Windows IoT Device Service. +Do not specify for creating a brand new Windows IoT Device Service. +Required to update an existing Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +The Azure Region where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Note +Windows IoT Device Service notes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Quantity +Windows IoT Device Service device allocation, + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group that contains the Windows IoT Device Service. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription identifier. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.IWindowsIotServicesIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IDeviceService + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[DeviceName ]`: The name of the Windows IoT Device Service. + - `[Id ]`: Resource identity path + - `[ResourceGroupName ]`: The name of the resource group that contains the Windows IoT Device Service. + - `[SubscriptionId ]`: The subscription identifier. + +## RELATED LINKS + diff --git a/src/WindowsIotServices/how-to.md b/src/WindowsIotServices/how-to.md new file mode 100644 index 000000000000..b9304547795a --- /dev/null +++ b/src/WindowsIotServices/how-to.md @@ -0,0 +1,58 @@ +# How-To +This document describes how to develop for `Az.WindowsIotServices`. + +## Building `Az.WindowsIotServices` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [readme.md](exports/readme.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [readme.md](custom/readme.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. + +## Testing `Az.WindowsIotServices` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. + +## Packing `Az.WindowsIotServices` +To pack `Az.WindowsIotServices` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.WindowsIotServices`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.WindowsIotServices.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.WindowsIotServices.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.WindowsIotServices`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.WindowsIotServices` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/WindowsIotServices/internal/Az.WindowsIotServices.internal.psm1 b/src/WindowsIotServices/internal/Az.WindowsIotServices.internal.psm1 new file mode 100644 index 000000000000..e306d5e92fd8 --- /dev/null +++ b/src/WindowsIotServices/internal/Az.WindowsIotServices.internal.psm1 @@ -0,0 +1,38 @@ +# region Generated + # Load the private module dll + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.WindowsIotServices.private.dll') + + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Module]::Instance + + # Export nothing to clear implicit exports + Export-ModuleMember + + # Export proxy cmdlet scripts + $exportsPath = $PSScriptRoot + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } +# endregion diff --git a/src/WindowsIotServices/internal/Get-AzWindowsIotServicesOperation.ps1 b/src/WindowsIotServices/internal/Get-AzWindowsIotServicesOperation.ps1 new file mode 100644 index 000000000000..3df15d687d52 --- /dev/null +++ b/src/WindowsIotServices/internal/Get-AzWindowsIotServicesOperation.ps1 @@ -0,0 +1,121 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Lists all of the available Windows IoT Services REST API operations. +.Description +Lists all of the available Windows IoT Services REST API operations. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesoperation +#> +function Get-AzWindowsIotServicesOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesOperation_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/internal/ProxyCmdletDefinitions.ps1 b/src/WindowsIotServices/internal/ProxyCmdletDefinitions.ps1 new file mode 100644 index 000000000000..3df15d687d52 --- /dev/null +++ b/src/WindowsIotServices/internal/ProxyCmdletDefinitions.ps1 @@ -0,0 +1,121 @@ + +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Lists all of the available Windows IoT Services REST API operations. +.Description +Lists all of the available Windows IoT Services REST API operations. +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} +.Example +PS C:\> {{ Add code here }} + +{{ Add output here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity +.Link +https://docs.microsoft.com/en-us/powershell/module/az.windowsiotservices/get-azwindowsiotservicesoperation +#> +function Get-AzWindowsIotServicesOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Models.Api20190601.IOperationEntity])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.WindowsIotServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ + List = 'Az.WindowsIotServices.private\Get-AzWindowsIotServicesOperation_List'; + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + throw + } +} + +end { + try { + $steppablePipeline.End() + } catch { + throw + } +} +} diff --git a/src/WindowsIotServices/internal/readme.md b/src/WindowsIotServices/internal/readme.md new file mode 100644 index 000000000000..08787a92c7d1 --- /dev/null +++ b/src/WindowsIotServices/internal/readme.md @@ -0,0 +1,14 @@ +# Internal +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. + +## Info +- Modifiable: no +- Generated: all +- Committed: no +- Packaged: yes + +## Details +The `Az.WindowsIotServices.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.WindowsIotServices`. Instead, this sub-module is imported by the `..\custom\Az.WindowsIotServices.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.WindowsIotServices.internal\Get-Example` would call an internal cmdlet named `Get-Example`. + +## Purpose +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.WindowsIotServices`. \ No newline at end of file diff --git a/src/WindowsIotServices/pack-module.ps1 b/src/WindowsIotServices/pack-module.ps1 new file mode 100644 index 000000000000..c22fad33d87b --- /dev/null +++ b/src/WindowsIotServices/pack-module.ps1 @@ -0,0 +1,16 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +Write-Host -ForegroundColor Green 'Packing module...' +dotnet pack $PSScriptRoot --no-build /nologo +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/WindowsIotServices/readme.md b/src/WindowsIotServices/readme.md new file mode 100644 index 000000000000..3e10ba464073 --- /dev/null +++ b/src/WindowsIotServices/readme.md @@ -0,0 +1,113 @@ + +# Az.WindowsIotServices +This directory contains the PowerShell module for the WindowsIotServices service. + +--- +## Status +[![Az.WindowsIotServices](https://img.shields.io/powershellgallery/v/Az.WindowsIotServices.svg?style=flat-square&label=Az.WindowsIotServices "Az.WindowsIotServices")](https://www.powershellgallery.com/packages/Az.WindowsIotServices/) + +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.8.1 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.WindowsIotServices`, see [how-to.md](how-to.md). + + +### AutoRest Configuration +> see https://aka.ms/autorest + +``` yaml +branch: cae75058ed79deb758e08021315ce5a7fc27d403 +require: + - $(this-folder)/../readme.azure.noprofile.md +input-file: + # - D:\azure-rest-api\azure-rest-api-specs\specification\windowsiot\resource-manager\Microsoft.WindowsIoT\stable\2019-06-01\WindowsIotServices.json + - $(repo)/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/WindowsIotServices.json + +title: WindowsIotServices +module-version: 0.1.0 +subject-prefix: WindowsIotServices + +directive: + # Changed schema ref of the patch and put request. + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}"].patch.parameters[4].schema["$ref"] + transform: return "#/definitions/DeviceService" + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}"].put.parameters[4].schema["$ref"] + transform: return "#/definitions/DeviceService" + # Add status code 200 of the response status code after created or updated windows iot services. + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}"].put.responses + transform: >- + return { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "201": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DeviceService" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + # Uppercase to lowercase of the path + - from: swagger-document + where: $ + transform: return $.replace(/\/subscriptions\/\{subscriptionId\}\/resourceGroups\/\{resourceGroupName\}\/providers\/Microsoft\.WindowsIoT\/deviceServices/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/DeviceServices") + # Remove set- cmdlet + - where: + verb: Set + subject: Service$ + remove: true + # Remove parameter set name + - where: + verb: New + subject: Service$ + variant: Create$|CreateViaIdentity$|CreateViaIdentityExpanded$ + remove: true + - where: + verb: Update + subject: Service$ + variant: Update$|UpdateViaIdentity$ + remove: true + # Rename parameter name + - where: + verb: Get|New|Update|Remove + subject: Service$ + parameter-name: DeviceName$ + set: + parameter-name: Name + # Remove cmdlet + - where: + verb: Test + subject: ServiceDeviceServiceNameAvailability$ + remove: true + - where: + verb: Get|New|Update|Remove + subject: Service$ + set: + subject: Device +``` diff --git a/src/WindowsIotServices/run-module.ps1 b/src/WindowsIotServices/run-module.ps1 new file mode 100644 index 000000000000..e1e2ea0f55df --- /dev/null +++ b/src/WindowsIotServices/run-module.ps1 @@ -0,0 +1,59 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Code) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$isAzure = $true +if($isAzure) { + . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.WindowsIotServices.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +function Prompt { + Write-Host -NoNewline -ForegroundColor Green "PS $(Get-Location)" + Write-Host -NoNewline -ForegroundColor Gray ' [' + Write-Host -NoNewline -ForegroundColor White -BackgroundColor DarkCyan $moduleName + ']> ' +} + +# where we would find the launch.json file +$vscodeDirectory = New-Item -ItemType Directory -Force -Path (Join-Path $PSScriptRoot '.vscode') +$launchJson = Join-Path $vscodeDirectory 'launch.json' + +# if there is a launch.json file, let's just assume -Code, and update the file +if(($Code) -or (test-Path $launchJson) ) { + $launchContent = '{ "version": "0.2.0", "configurations":[{ "name":"Attach to PowerShell", "type":"coreclr", "request":"attach", "processId":"' + ([System.Diagnostics.Process]::GetCurrentProcess().Id) + '", "justMyCode":false }] }' + Set-Content -Path $launchJson -Value $launchContent + if($Code) { + # only launch vscode if they say -code + code $PSScriptRoot + } +} + +Import-Module -Name $modulePath \ No newline at end of file diff --git a/src/WindowsIotServices/test-module.ps1 b/src/WindowsIotServices/test-module.ps1 new file mode 100644 index 000000000000..47f40ccf42ba --- /dev/null +++ b/src/WindowsIotServices/test-module.ps1 @@ -0,0 +1,68 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback) +$ErrorActionPreference = 'Stop' + +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$ProgressPreference = 'SilentlyContinue' +$baseName = $PSScriptRoot.BaseName +$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule +. ("$PSScriptRoot\test\utils.ps1") + +if ($requireResourceModule) { + $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') + Import-Module -Name $resourceModulePSD.FullName +} + +$localModulesPath = Join-Path $PSScriptRoot 'generated\modules' +if(Test-Path -Path $localModulesPath) { + $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" +} + +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot './Az.WindowsIotServices.psd1') +$modulePath = $modulePsd1.FullName +$moduleName = $modulePsd1.BaseName + +Import-Module -Name Pester +Import-Module -Name $modulePath + +$TestMode = 'playback' +if($Live) { + $TestMode = 'live' +} +if($Record) { + $TestMode = 'record' +} +try { + if ($TestMode -ne 'playback') { + setupEnv + } + $testFolder = Join-Path $PSScriptRoot 'test' + Invoke-Pester -Script @{ Path = $testFolder } -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") +} +Finally +{ + if ($TestMode -ne 'playback') { + cleanupEnv + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/WindowsIotServices/test/Az.WindowsIotServices-TestResults.xml b/src/WindowsIotServices/test/Az.WindowsIotServices-TestResults.xml new file mode 100644 index 000000000000..2fbaa0c52a85 --- /dev/null +++ b/src/WindowsIotServices/test/Az.WindowsIotServices-TestResults.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Recording.json b/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Recording.json new file mode 100644 index 000000000000..52b1f08fa9aa --- /dev/null +++ b/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Recording.json @@ -0,0 +1,205 @@ +{ + "Get-AzWindowsIotServicesDevice+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.WindowsIoT/deviceServices?api-version=2019-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.WindowsIoT/deviceServices?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "1de7b3ad-f980-4a6e-8bbb-a2ed33fb3b78" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "91a9c2c4-7039-41d4-a353-7f7730be2df7" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "9f268130-7c74-463d-9157-6c3f95e7ef00" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061816Z:9f268130-7c74-463d-9157-6c3f95e7ef00" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1001" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w\",\"name\":\"wis-uo7z4w\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a9000066-0000-0700-0000-5fb36b260000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:10.9414703Z\",\"provisioningState\":\"Succeeded\"}}]}" + } + }, + "Get-AzWindowsIotServicesDevice+[NoContext]+List+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "7815ab6e-f58b-41d8-9f85-9e87d4f99226" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-request-id": [ "3ff2b28e-eb7a-4348-93cf-6363bfec7738" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "95280812-d550-43ad-97bd-628f73f68025" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061816Z:95280812-d550-43ad-97bd-628f73f68025" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1001" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w\",\"name\":\"wis-uo7z4w\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a9000066-0000-0700-0000-5fb36b260000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:10.9414703Z\",\"provisioningState\":\"Succeeded\"}}]}" + } + }, + "Get-AzWindowsIotServicesDevice+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "f676e98d-0be4-4d19-93cc-0f05e5efc324" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900b565-0000-0700-0000-5fb36b1d0000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-request-id": [ "be6ebbca-18d5-4bde-8d0f-b698d2693e55" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "34ea2d83-af40-4868-835c-fc53d09f3bf5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061817Z:34ea2d83-af40-4868-835c-fc53d09f3bf5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "494" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + }, + "Get-AzWindowsIotServicesDevice+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "b596afd7-5d5b-41e2-93b8-fedcd39525d4" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900b565-0000-0700-0000-5fb36b1d0000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-request-id": [ "db7e60b9-465c-456d-8855-b2cc99685463" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "76bc4d81-a9e4-44c4-a5c9-d0eb2b91ab7b" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061817Z:76bc4d81-a9e4-44c4-a5c9-d0eb2b91ab7b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "494" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + }, + "Get-AzWindowsIotServicesDevice+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "bacd0607-93fe-4131-bdd6-51e55a277254" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900b565-0000-0700-0000-5fb36b1d0000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-request-id": [ "24ee05cd-8ef3-4762-9a6c-aa8ba38021b4" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "c7c2d4a7-8103-4590-987e-f05ea804dcc7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061817Z:c7c2d4a7-8103-4590-987e-f05ea804dcc7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "494" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Tests.ps1 b/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Tests.ps1 new file mode 100644 index 000000000000..9848da64a91b --- /dev/null +++ b/src/WindowsIotServices/test/Get-AzWindowsIotServicesDevice.Tests.ps1 @@ -0,0 +1,35 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzWindowsIotServicesDevice.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Get-AzWindowsIotServicesDevice' { + It 'List1' { + $wisList = Get-AzWindowsIotServicesDevice + $wisList.Count | Should -BeGreaterOrEqual 2 + } + + It 'List' { + $wisList = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup + $wisList.Count | Should -Be 2 + } + + It 'Get' { + $wis = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis01 + $wis.Name | Should -Be $env.wis01 + } + + It 'GetViaIdentity' { + $wis = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis01 + $wis = Get-AzWindowsIotServicesDevice -InputObject $wis + $wis.Name | Should -Be $env.wis01 + } +} diff --git a/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Recording.json b/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Recording.json new file mode 100644 index 000000000000..0434c30f6382 --- /dev/null +++ b/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Recording.json @@ -0,0 +1,37 @@ +{ + "New-AzWindowsIotServicesDevice+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-kj9yc4?api-version=2019-06-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-kj9yc4?api-version=2019-06-01", + "Content": "{\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"quantity\": 10,\r\n \"billingDomainName\": \"microsoft.onmicrosoft.com\",\r\n \"adminDomainName\": \"microsoft.onmicrosoft.com\"\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "181" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a9005166-0000-0700-0000-5fb36b300000\"" ], + "x-ms-request-id": [ "a69e52ac-96b1-4cc8-b877-94b962a70769" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "aae940f8-e5fc-465d-8889-7f34d1ac2faf" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061827Z:aae940f8-e5fc-465d-8889-7f34d1ac2faf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "494" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-kj9yc4\",\"name\":\"wis-kj9yc4\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a9005166-0000-0700-0000-5fb36b300000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:20.7517086Z\",\"provisioningState\":\"Succeeded\"}}" + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Tests.ps1 b/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Tests.ps1 new file mode 100644 index 000000000000..647d20aae812 --- /dev/null +++ b/src/WindowsIotServices/test/New-AzWindowsIotServicesDevice.Tests.ps1 @@ -0,0 +1,19 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzWindowsIotServicesDevice.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'New-AzWindowsIotServicesDevice' { + It 'CreateExpanded' { + $wis = New-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis03 -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + $wis.Name | Should -Be $env.wis03 + } +} diff --git a/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Recording.json b/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Recording.json new file mode 100644 index 000000000000..d7a2fe83ede0 --- /dev/null +++ b/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Recording.json @@ -0,0 +1,199 @@ +{ + "Remove-AzWindowsIotServicesDevice+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-kj9yc4?api-version=2019-06-01+1": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-kj9yc4?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "413f1c40-bae5-4705-9e77-daacf36ae3de" ], + "CommandName": [ "Remove-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Remove-AzWindowsIotServicesDevice_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-request-id": [ "44bb3906-2157-4e70-a8e4-7c43b2cfea0a" ], + "x-ms-correlation-request-id": [ "44bb3906-2157-4e70-a8e4-7c43b2cfea0a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061833Z:44bb3906-2157-4e70-a8e4-7c43b2cfea0a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:32 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzWindowsIotServicesDevice+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "6db9bbb1-289d-438c-936f-75009b6e6455" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-request-id": [ "bb51dabc-ff58-42e3-8369-f8572c197210" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "a71c9a4b-ff54-4c74-999c-fba6ea69cf85" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061833Z:a71c9a4b-ff54-4c74-999c-fba6ea69cf85" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1001" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w\",\"name\":\"wis-uo7z4w\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a9000066-0000-0700-0000-5fb36b260000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:10.9414703Z\",\"provisioningState\":\"Succeeded\"}}]}" + } + }, + "Remove-AzWindowsIotServicesDevice+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w?api-version=2019-06-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "df31828d-f10d-49b9-9fa1-85d4f824f6ea" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a9000066-0000-0700-0000-5fb36b260000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-request-id": [ "b45a23d1-d6ac-497c-b7bc-cfa48d3235c8" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "f4562be8-3f4d-4808-b4db-9060b3fe9f60" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061833Z:f4562be8-3f4d-4808-b4db-9060b3fe9f60" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "494" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w\",\"name\":\"wis-uo7z4w\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a9000066-0000-0700-0000-5fb36b260000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:10.9414703Z\",\"provisioningState\":\"Succeeded\"}}" + } + }, + "Remove-AzWindowsIotServicesDevice+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w?api-version=2019-06-01+2": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-uo7z4w?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "577b22c1-5673-4d9a-ab66-4cb2844b86ba" ], + "CommandName": [ "Remove-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Remove-AzWindowsIotServicesDevice_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], + "x-ms-request-id": [ "6e831c31-6b78-46ae-9614-164e9e98cd42" ], + "x-ms-correlation-request-id": [ "6e831c31-6b78-46ae-9614-164e9e98cd42" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061840Z:6e831c31-6b78-46ae-9614-164e9e98cd42" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:39 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null + } + }, + "Remove-AzWindowsIotServicesDevice+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices?api-version=2019-06-01", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "b0d1ce6c-d1ce-472d-86e2-9374fb0067de" ], + "CommandName": [ "Get-AzWindowsIotServicesDevice" ], + "FullCommandName": [ "Get-AzWindowsIotServicesDevice_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-request-id": [ "7895ace7-ccd6-4626-9358-35b135cc026c" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "5ae66cbc-b6d1-468f-a4ed-58d76d92a441" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061840Z:5ae66cbc-b6d1-468f-a4ed-58d76d92a441" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "506" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900b565-0000-0700-0000-5fb36b1d0000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":10,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}]}" + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Tests.ps1 b/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Tests.ps1 new file mode 100644 index 000000000000..74384074fa49 --- /dev/null +++ b/src/WindowsIotServices/test/Remove-AzWindowsIotServicesDevice.Tests.ps1 @@ -0,0 +1,27 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzWindowsIotServicesDevice.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Remove-AzWindowsIotServicesDevice' { + It 'Delete' { + Remove-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis03 + $wisList = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup + $wisList.Name | Should -Not -Contain $env.wis03 + } + + It 'DeleteViaIdentity' { + $wis = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis02 + Remove-AzWindowsIotServicesDevice -InputObject $wis + $wisList = Get-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup + $wisList.Name | Should -Not -Contain $env.wis02 + } +} diff --git a/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Recording.json b/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Recording.json new file mode 100644 index 000000000000..e5835df1c8c2 --- /dev/null +++ b/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Recording.json @@ -0,0 +1,110 @@ +{ + "Update-AzWindowsIotServicesDevice+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": "{\r\n \"properties\": {\r\n \"quantity\": 100\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900e466-0000-0700-0000-5fb36b410000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-request-id": [ "ab8cfb3c-7a3b-4ee3-90e7-83ef0bbeb6d5" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "948c0389-ad12-43db-b5b2-9189a8c0af61" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061841Z:948c0389-ad12-43db-b5b2-9189a8c0af61" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "495" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900e466-0000-0700-0000-5fb36b410000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":100,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + }, + "Update-AzWindowsIotServicesDevice+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": "{\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "4" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900ed66-0000-0700-0000-5fb36b420000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-request-id": [ "26ee8ceb-8cd0-4e83-99b8-300dd109ef85" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "c1b78d6c-a538-4e52-8606-e6acc0260861" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061842Z:c1b78d6c-a538-4e52-8606-e6acc0260861" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "495" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900ed66-0000-0700-0000-5fb36b420000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":100,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + }, + "Update-AzWindowsIotServicesDevice+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01+2": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v?api-version=2019-06-01", + "Content": "{\r\n \"properties\": {\r\n \"quantity\": 200\r\n }\r\n}", + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"a900f966-0000-0700-0000-5fb36b420000\"" ], + "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-request-id": [ "af5abf55-c568-4e27-b2ad-7a90f5ba140d" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-correlation-request-id": [ "1ad7f4f3-c39b-468b-8364-4a01ab37c193" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20201117T061842Z:1ad7f4f3-c39b-468b-8364-4a01ab37c193" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Tue, 17 Nov 2020 06:18:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "495" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/wis-f4v98a-test/providers/Microsoft.WindowsIoT/DeviceServices/wis-imsg4v\",\"name\":\"wis-imsg4v\",\"type\":\"Microsoft.WindowsIoT/DeviceServices\",\"etag\":\"\\\"a900f966-0000-0700-0000-5fb36b420000\\\"\",\"location\":\"eastus\",\"properties\":{\"adminDomainName\":\"microsoft.onmicrosoft.com\",\"billingDomainName\":\"microsoft.onmicrosoft.com\",\"quantity\":200,\"notes\":null,\"startDate\":\"2020-11-17T06:18:01.7321539Z\",\"provisioningState\":\"Succeeded\"}}" + } + } +} \ No newline at end of file diff --git a/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Tests.ps1 b/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Tests.ps1 new file mode 100644 index 000000000000..53f9e967b092 --- /dev/null +++ b/src/WindowsIotServices/test/Update-AzWindowsIotServicesDevice.Tests.ps1 @@ -0,0 +1,28 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzWindowsIotServicesDevice.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'Update-AzWindowsIotServicesDevice' { + It 'UpdateExpanded' { + # Cannot update paramter tag and the azure portal cannot update it. + $wis = Update-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis01 -Quantity 100 #-Tag @{'key1'=1;'key2'=1} + $wis.Quantity | Should -Be 100 + # $wis.Tag.Count | Should -be 2 + } + + It 'UpdateViaIdentityExpanded' { + $wis = Update-AzWindowsIotServicesDevice -ResourceGroupName $env.resourceGroup -Name $env.wis01 + $wis = Update-AzWindowsIotServicesDevice -InputObject $wis -Quantity 200 # -Tag @{'key1'=1;'key2'=1; 'key3'=1} + $wis.Quantity | Should -Be 200 + # $wis.Tag.Count | Should -be 2 + } +} diff --git a/src/WindowsIotServices/test/env.json b/src/WindowsIotServices/test/env.json new file mode 100644 index 000000000000..1ace026a79ee --- /dev/null +++ b/src/WindowsIotServices/test/env.json @@ -0,0 +1,13 @@ +{ + "rstr1": "f4v98a", + "wis01": "wis-imsg4v", + "wis02": "wis-uo7z4w", + "rstr2": "5jq4zo", + "wis03": "wis-kj9yc4", + "location": "eastus", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "wis04": "wis-2j4b6i", + "rstr3": "64zocf", + "resourceGroup": "wis-f4v98a-test", + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f" +} diff --git a/src/WindowsIotServices/test/loadEnv.ps1 b/src/WindowsIotServices/test/loadEnv.ps1 new file mode 100644 index 000000000000..c4ebf2e8310c --- /dev/null +++ b/src/WindowsIotServices/test/loadEnv.ps1 @@ -0,0 +1,28 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json + $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} +} \ No newline at end of file diff --git a/src/WindowsIotServices/test/readme.md b/src/WindowsIotServices/test/readme.md new file mode 100644 index 000000000000..7c752b4c8c43 --- /dev/null +++ b/src/WindowsIotServices/test/readme.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file diff --git a/src/WindowsIotServices/test/utils.ps1 b/src/WindowsIotServices/test/utils.ps1 new file mode 100644 index 000000000000..fb13dcb7b214 --- /dev/null +++ b/src/WindowsIotServices/test/utils.ps1 @@ -0,0 +1,46 @@ +function RandomString([bool]$allChars, [int32]$len) { + if ($allChars) { + return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) + } else { + return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) + } +} +$env = @{} +function setupEnv() { + # Preload subscriptionId and tenant from context, which will be used in test + # as default. You could change them if needed. + $env.SubscriptionId = (Get-AzContext).Subscription.Id + $env.Tenant = (Get-AzContext).Tenant.Id + # For any resources you created for test, you should add it to $env here. + $env.location = 'eastus' + # Generate some random strings for use in the test. + $env.rstr1 = RandomString -allChars $false -len 6 + $env.rstr2 = RandomString -allChars $false -len 6 + $env.rstr3 = RandomString -allChars $false -len 6 + + $env.wis01 = 'wis-' + (RandomString -allChars $false -len 6) + $env.wis02 = 'wis-' + (RandomString -allChars $false -len 6) + $env.wis03 = 'wis-' + (RandomString -allChars $false -len 6) + $env.wis04 = 'wis-' + (RandomString -allChars $false -len 6) + + # Create the test group + Write-Host -ForegroundColor Green "start to create test group" + $env.resourceGroup = 'wis-' + $env.rstr1 + '-test' + New-AzResourceGroup -Name $env.resourceGroup -Location eastus + Write-Host -ForegroundColor Green "----------------------------" + + Write-Host -ForegroundColor Green "Creating the windows iot service for test..." + New-AzWindowsIotServicesDevice -Name $env.wis01 -ResourceGroupName $env.resourceGroup -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + New-AzWindowsIotServicesDevice -Name $env.wis02 -ResourceGroupName $env.resourceGroup -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' + Write-Host -ForegroundColor Green "Create completed" + $envFile = 'env.json' + if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' + } + set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) +} +function cleanupEnv() { + # Clean resources you create for testing + Remove-AzResourceGroup -Name $env.resourceGroup +} + diff --git a/tools/Az/Az.psd1 b/tools/Az/Az.psd1 index 0dc0d968f967..44517d8bd283 100644 --- a/tools/Az/Az.psd1 +++ b/tools/Az/Az.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/13/2020 +# Generated on: 12/3/2020 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '5.1.0' +ModuleVersion = '5.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -52,11 +52,11 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }, +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.2'; }, @{ModuleName = 'Az.Advisor'; RequiredVersion = '1.1.1'; }, @{ModuleName = 'Az.Aks'; RequiredVersion = '2.0.1'; }, @{ModuleName = 'Az.AnalysisServices'; RequiredVersion = '1.1.4'; }, - @{ModuleName = 'Az.ApiManagement'; RequiredVersion = '2.1.0'; }, + @{ModuleName = 'Az.ApiManagement'; RequiredVersion = '2.2.0'; }, @{ModuleName = 'Az.AppConfiguration'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.ApplicationInsights'; RequiredVersion = '1.1.0'; }, @{ModuleName = 'Az.Automation'; RequiredVersion = '1.4.0'; }, @@ -64,12 +64,12 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }, @{ModuleName = 'Az.Billing'; RequiredVersion = '2.0.0'; }, @{ModuleName = 'Az.Cdn'; RequiredVersion = '1.6.0'; }, @{ModuleName = 'Az.CognitiveServices'; RequiredVersion = '1.8.0'; }, - @{ModuleName = 'Az.Compute'; RequiredVersion = '4.6.0'; }, + @{ModuleName = 'Az.Compute'; RequiredVersion = '4.7.0'; }, @{ModuleName = 'Az.ContainerInstance'; RequiredVersion = '1.0.3'; }, - @{ModuleName = 'Az.ContainerRegistry'; RequiredVersion = '2.0.0'; }, + @{ModuleName = 'Az.ContainerRegistry'; RequiredVersion = '2.1.0'; }, @{ModuleName = 'Az.DataBoxEdge'; RequiredVersion = '1.1.0'; }, @{ModuleName = 'Az.Databricks'; RequiredVersion = '1.0.1'; }, - @{ModuleName = 'Az.DataFactory'; RequiredVersion = '1.11.1'; }, + @{ModuleName = 'Az.DataFactory'; RequiredVersion = '1.11.2'; }, @{ModuleName = 'Az.DataLakeAnalytics'; RequiredVersion = '1.0.2'; }, @{ModuleName = 'Az.DataLakeStore'; RequiredVersion = '1.3.0'; }, @{ModuleName = 'Az.DataShare'; RequiredVersion = '1.0.0'; }, @@ -82,9 +82,9 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }, @{ModuleName = 'Az.FrontDoor'; RequiredVersion = '1.6.1'; }, @{ModuleName = 'Az.Functions'; RequiredVersion = '2.0.0'; }, @{ModuleName = 'Az.HDInsight'; RequiredVersion = '4.1.0'; }, - @{ModuleName = 'Az.HealthcareApis'; RequiredVersion = '1.1.0'; }, - @{ModuleName = 'Az.IotHub'; RequiredVersion = '2.7.0'; }, - @{ModuleName = 'Az.KeyVault'; RequiredVersion = '3.1.0'; }, + @{ModuleName = 'Az.HealthcareApis'; RequiredVersion = '1.2.0'; }, + @{ModuleName = 'Az.IotHub'; RequiredVersion = '2.7.1'; }, + @{ModuleName = 'Az.KeyVault'; RequiredVersion = '3.2.0'; }, @{ModuleName = 'Az.Kusto'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.LogicApp'; RequiredVersion = '1.4.0'; }, @{ModuleName = 'Az.MachineLearning'; RequiredVersion = '1.1.3'; }, @@ -92,28 +92,28 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.1'; }, @{ModuleName = 'Az.ManagedServices'; RequiredVersion = '2.0.0'; }, @{ModuleName = 'Az.MarketplaceOrdering'; RequiredVersion = '1.0.2'; }, @{ModuleName = 'Az.Media'; RequiredVersion = '1.1.1'; }, - @{ModuleName = 'Az.Monitor'; RequiredVersion = '2.2.0'; }, + @{ModuleName = 'Az.Monitor'; RequiredVersion = '2.3.0'; }, @{ModuleName = 'Az.Network'; RequiredVersion = '4.3.0'; }, @{ModuleName = 'Az.NotificationHubs'; RequiredVersion = '1.1.1'; }, @{ModuleName = 'Az.OperationalInsights'; RequiredVersion = '2.3.0'; }, @{ModuleName = 'Az.PolicyInsights'; RequiredVersion = '1.3.1'; }, @{ModuleName = 'Az.PowerBIEmbedded'; RequiredVersion = '1.1.2'; }, @{ModuleName = 'Az.PrivateDns'; RequiredVersion = '1.0.3'; }, - @{ModuleName = 'Az.RecoveryServices'; RequiredVersion = '3.0.1'; }, + @{ModuleName = 'Az.RecoveryServices'; RequiredVersion = '3.1.0'; }, @{ModuleName = 'Az.RedisCache'; RequiredVersion = '1.4.0'; }, @{ModuleName = 'Az.Relay'; RequiredVersion = '1.0.3'; }, - @{ModuleName = 'Az.Resources'; RequiredVersion = '3.0.1'; }, + @{ModuleName = 'Az.Resources'; RequiredVersion = '3.1.0'; }, @{ModuleName = 'Az.ServiceBus'; RequiredVersion = '1.4.1'; }, - @{ModuleName = 'Az.ServiceFabric'; RequiredVersion = '2.2.0'; }, + @{ModuleName = 'Az.ServiceFabric'; RequiredVersion = '2.2.1'; }, @{ModuleName = 'Az.SignalR'; RequiredVersion = '1.2.0'; }, - @{ModuleName = 'Az.Sql'; RequiredVersion = '2.12.0'; }, + @{ModuleName = 'Az.Sql'; RequiredVersion = '2.13.0'; }, @{ModuleName = 'Az.SqlVirtualMachine'; RequiredVersion = '1.1.0'; }, - @{ModuleName = 'Az.Storage'; RequiredVersion = '3.0.0'; }, - @{ModuleName = 'Az.StorageSync'; RequiredVersion = '1.3.0'; }, + @{ModuleName = 'Az.Storage'; RequiredVersion = '3.1.0'; }, + @{ModuleName = 'Az.StorageSync'; RequiredVersion = '1.4.0'; }, @{ModuleName = 'Az.StreamAnalytics'; RequiredVersion = '1.0.1'; }, @{ModuleName = 'Az.Support'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.TrafficManager'; RequiredVersion = '1.0.4'; }, - @{ModuleName = 'Az.Websites'; RequiredVersion = '2.1.0'; }) + @{ModuleName = 'Az.Websites'; RequiredVersion = '2.1.1'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() @@ -169,112 +169,80 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '5.1.0 - November 2020 + ReleaseNotes = '5.2.0 - December 2020 Az.Accounts -* Fixed an issue that TenantId may be not respected if using ''Connect-AzAccount -DeviceCode''[#13477] -* Added new cmdlet ''Get-AzAccessToken'' -* Fixed an issue that error happens if user profile path is inaccessible -* Fixed an issue causing Write-Object error during Connect-AzAccount [#13419] -* Added parameter ''ContainerRegistryEndpointSuffix'' to: ''Add-AzEnvironment'', ''Set-AzEnvironment'' -* Supported interrupting login by hitting CTRL+C -* Fixed an issue causing ''Connect-AzAccount -KeyVaultAccessToken'' not working [#13127] -* Fixed null reference and method case insensitive in ''Invoke-AzRestMethod'' +* Managed to parse ExpiresOn time from raw token if could not get from underlying library +* Improved warning message if Interactive authentication is unavailable -Az.Aks -* Fixed the issue that user cannot use service principal to create a new Kubernetes cluster. [#13012] +Az.ApiManagement +* [Breaking change] ''New-AzApiManagementProduct'' by default has no subscription limit. -Az.AppConfiguration -* General availability of ''Az.AppConfiguration'' module +Az.Compute +* Edited Get-AzVm to filter by ''-Name'' prior to checking for throttling due to too many resources. +* New cmdlet ''Start-AzVmssRollingExtensionUpgrade''. -Az.DataFactory -* Improved error message of ''New-AzDataFactoryV2LinkedServiceEncryptedCredential'' command - -Az.DataLakeStore -* Updated ADLS dataplane SDK to 1.2.4-alpha. Changes:https://github.com/Azure/azure-data-lake-store-net/blob/preview-alpha/CHANGELOG.md#version-124-alpha - -Az.DesktopVirtualization -* Added new MSIX Package cmdlets and updated Applications cmdlets. +Az.ContainerRegistry +* Supported parameter ''Name'' for and value from pipeline input for ''Get-AzContainerRegistryUsage'' [#13605] +* Polished exceptions for ''Connect-AzContainerRegistry'' -Az.EventHub -* Fixed Cluster commands for EventHub cluster without tags -* Updated help text for PartnerNamespace of AzEventHubGeoDRConfiguration commands +Az.DataFactory +* Updated ADF .Net SDK version to 4.13.0 -Az.HDInsight -* Add parameters ''ResourceProviderConnection'' and ''PrivateLink'' to cmdlet ''New-AzHDInsightCluster'' to support relay outbound and private link feature -* Add parameter ''AmbariDatabase'' to cmdlet ''New-AzHDInsightCluster'' to support custom Ambari database feature -* Add accept value ''AmbariDatabase'' to the parameter ''MetastoreType'' of the cmdlet ''Add-AzHDInsightMetastore'' +Az.HealthcareApis +* Added support for customer managed keys Az.IotHub -* Allowed tags in IoT Hub create cmdlet. +* Fixed an issue of SAS token. Az.KeyVault -* Supported updating key vault tag - -Az.LogicApp -* Fixed for Get-AzLogicAppRunHistory only retrieving the first page of results - -Az.Network -* Updated below cmdlet - - ''New-AzLoadBalancerFrontendIpConfigCommand'', ''Set-AzLoadBalancerFrontendIpConfigCommand'', ''Add-AzLoadBalancerFrontendIpConfigCommand'': - - Added PublicIpAddressPrefix property - - Added PublicIpAddressPrefixId property -* Added new properties to the following cmdlets to allow for global load balancing - - ''New-AzLoadBalancer'': - - Added Sku Tier property - - ''New-AzPuplicIpAddress'': - - Added Sku Tier property - - ''New-AzPublicIpPrefix'': - - Added Sku Tier property - - ''New-AzLoadBalancerBackendAddressConfig'': - - Added LoadBalancerFrontendIPConfigurationId property -* Updated planning to deprecate warnings for the following cmdlets - -''New-AzVirtualHubRoute'' - -''New-AzVirtualHubRouteTable'' - -''Add-AzVirtualHubRoute'' - -''Add-AzVirtualHubRouteTable'' - -''Get-AzVirtualHubRouteTable'' - -''Remove-AzVirtualHubRouteTable'' -* Added planning to deprecate warnings on the argument ''RouteTable'' for the following cmdlets - -''New-AzVirtualHub'' - -''Set-AzVirtualHub'' - -''Update-AzVirtualHub'' -* Made arguments ''-MinScaleUnits'' and ''-MaxScaleUnits'' optional in ''Set-AzExpressRouteGateway'' -* Added new cmdlets to support Mutual Authentication and SSL Profiles on Application Gateway - - ''Get-AzApplicationGatewayClientAuthConfiguration'' - - ''New-AzApplicationGatewayClientAuthConfiguration'' - - ''Remove-AzApplicationGatewayClientAuthConfiguration'' - - ''Set-AzApplicationGatewayClientAuthConfiguration'' - - ''Add-AzApplicationGatewayTrustedClientCertificate'' - - ''Get-AzApplicationGatewayTrustedClientCertificate'' - - ''New-AzApplicationGatewayTrustedClientCertificate'' - - ''Remove-AzApplicationGatewayTrustedClientCertificate'' - - ''Set-AzApplicationGatewayTrustedClientCertificate'' - - ''Add-AzApplicationGatewaySslProfile'' - - ''Get-AzApplicationGatewaySslProfile'' - - ''New-AzApplicationGatewaySslProfile'' - - ''Remove-AzApplicationGatewaySslProfile'' - - ''Set-AzApplicationGatewaySslProfile'' - - ''Get-AzApplicationGatewaySslProfilePolicy'' - - ''Remove-AzApplicationGatewaySslProfilePolicy'' - - ''Set-AzApplicationGatewaySslProfilePolicy'' +* Supported ''all'' as an option when setting key vault access policies +* Supported new version of SecretManagement module [#13366] +* Supported ByteArray, String, PSCredential and Hashtable for ''SecretValue'' in SecretManagementModule [#12190] +* [Breaking change] redesigned the API surface of cmdlets related to managed HSM. + +Az.Monitor +* Changed parameter ''Rule'' of ''New-AzAutoscaleProfile'' to accept empty list. [#12903] +* Added new cmdlets to support creating diagnostic settings more flexible: + * ''Get-AzDiagnosticSettingCategory'' + * ''New-AzDiagnosticSetting'' + * ''New-AzDiagnosticDetailSetting'' Az.RecoveryServices -* Specifying policy BackupTime is in UTC. -* Modifying breaking change warning in Get-AzRecoveryServicesBackupJobDetails cmdlet. -* Updating sample script help text for Set-AzRecoveryServicesBackupProtectionPolicy cmdlet. +* Made help text and parameter set name changes to ''Restore-AzRecoveryServicesBackupItem'' cmdlet. Az.Resources -* Fixed an issue where What-If shows two resource group scopes with different casing -* Updated ''Export-AzResourceGroup'' to use the SDK. -* Added culture info to parse methods +* Added ''-Tag'' parameter support to ''Set-AzTemplateSpec'' and ''New-AzTemplateSpec'' +* Added Tag display support to default formatter for Template Specs + +Az.ServiceFabric +* Added example to ''Set-AzServiceFabricSetting'' with SettingsSectionDescription param +* Updated application related cmdlets to call out that support is only for ARM deployed resources +* Marked for deprecation cluster cert cmdlets ''Add-AzureRmServiceFabricClusterCertificate'' and ''Remove-AzureRmServiceFabricClusterCertificate'' Az.Sql -* Fixed issues where Set-AzSqlDatabaseAudit were not support Hyperscale database and database edition cannot be determined -* Added MaintenanceConfigurationId to ''New-AzSqlInstance'' and ''Set-AzSqlInstance'' -* Fixed a bug in GetAzureSqlDatabaseReplicationLink.cs where PartnerServerName parameter was being checked for by value instead of key +* Added SecondaryType to the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase'' + - ''New-AzSqlDatabaseSecondary'' +* Added HighAvailabilityReplicaCount to the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase'' +* Made ReadReplicaCount an alias of HighAvailabilityReplicaCount in the following: + - ''New-AzSqlDatabase'' + - ''Set-AzSqlDatabase'' + +Az.Storage +* Supported upload Azure File size up to 4 TiB + - ''Set-AzStorageFileContent'' +* Upgraded Azure.Storage.Blobs to 12.7.0 +* Upgraded Azure.Storage.Files.Shares to 12.5.0 +* Upgraded Azure.Storage.Files.DataLake to 12.5.0 + +Az.StorageSync +* Added Sync tiering policy feature with download policy and local cache mode Az.Websites -* Added support for new access restriction features: ServiceTag, multi-ip and http-headers +* Prevent duplicate access restriction rules ' # Prerelease string of this module diff --git a/tools/CreateMappings_rules.json b/tools/CreateMappings_rules.json index c465766bb505..51b734333ab9 100644 --- a/tools/CreateMappings_rules.json +++ b/tools/CreateMappings_rules.json @@ -600,5 +600,17 @@ { "regex": "DigitalTwins", "alias": "DigitalTwins" + }, + { + "regex": "CloudService", + "alias": "CloudService" + }, + { + "alias": "WindowsIotServices", + "regex": "WindowsIotServices" + }, + { + "regex": "CostManagement", + "alias": "CostManagement" } -] \ No newline at end of file +] diff --git a/tools/GeneratedModuleList.txt b/tools/GeneratedModuleList.txt index e0968dd34c1f..d2c9ac05a686 100644 --- a/tools/GeneratedModuleList.txt +++ b/tools/GeneratedModuleList.txt @@ -1,6 +1,8 @@ Az.AppConfiguration Az.Blockchain +Az.CloudService Az.ConnectedKubernetes +Az.CostManagement Az.CustomProviders Az.Databricks Az.DesktopVirtualization @@ -19,3 +21,4 @@ Az.PostgreSql Az.ResourceMover Az.SpringCloud Az.TimeSeriesInsights +Az.WindowsIotServices diff --git a/tools/SecurityTools/CredScanSuppressions.json b/tools/SecurityTools/CredScanSuppressions.json index 68bab5e83b09..8f4567be4a21 100644 --- a/tools/SecurityTools/CredScanSuppressions.json +++ b/tools/SecurityTools/CredScanSuppressions.json @@ -1053,6 +1053,10 @@ "file": "src\\Compute\\generated\\cmdlets\\UpdateAzVM_UpdateExpanded1.cs", "_justification": "Generated cs, specified disallowed password values" }, + { + "file": "src\\CloudService\\test\\env.json", + "_justification": "Test resource is deleted" + }, { "file": "src\\TimeSeriesInsights\\test\\env.json", "_justification": "Test resource is deleted" diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv new file mode 100644 index 000000000000..c138f735c8c7 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv @@ -0,0 +1,7 @@ +"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand","Get-AzDiagnosticSetting","0","3030","The generic type for 'property Logs' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]'. ","Change the generic type for 'property Logs' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]'." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand","Get-AzDiagnosticSetting","0","3030","The generic type for 'property Metrics' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]'. ","Change the generic type for 'property Metrics' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]'." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","0","3030","The generic type for 'property Logs' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]'. ","Change the generic type for 'property Logs' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]'." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","0","3030","The generic type for 'property Metrics' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]'. ","Change the generic type for 'property Metrics' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]'." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","0","3030","The generic type for 'property Logs' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]'. ","Change the generic type for 'property Logs' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]'." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","0","3030","The generic type for 'property Metrics' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]'. ","Change the generic type for 'property Metrics' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]'." \ No newline at end of file diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/SignatureIssues.csv index 31c081f3f5c0..bcbed4ea1e8a 100644 --- a/tools/StaticAnalysis/Exceptions/Az.Monitor/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.Monitor/SignatureIssues.csv @@ -10,4 +10,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.ScheduledQueryRules.NewScheduledQueryRuleTriggerConditionCommand","New-AzScheduledQueryRuleTriggerCondition","1","8100","New-AzScheduledQueryRuleTriggerCondition Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.PrivateLinkScopes.NewAzureInsightsPrivateLinkScope","New-AzInsightsPrivateLinkScope","1","8410","Parameter Tags of cmdlet New-AzInsightsPrivateLinkScope does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.PrivateLinkScopes.UpdateAzureInsightsPrivateLinkScope","Update-AzInsightsPrivateLinkScope","1","8410","Parameter Tags of cmdlet Update-AzInsightsPrivateLinkScope does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." -"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","1","8410","Parameter EnableMetrics of cmdlet Set-AzDiagnosticSetting does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." \ No newline at end of file +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand","Set-AzDiagnosticSetting","1","8410","Parameter EnableMetrics of cmdlet Set-AzDiagnosticSetting does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.NewAzureRmDiagnosticDetailSettingCommand","New-AzDiagnosticDetailSetting","1","8100","New-AzDiagnosticDetailSetting Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.NewAzureRmDiagnosticDetailSettingCommand","New-AzDiagnosticDetailSetting","1","8510","Cmdlet 'New-AzDiagnosticDetailSetting' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute." +"Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll","Microsoft.Azure.Commands.Insights.Diagnostics.NewAzureRmDiagnosticSettingCommand","New-AzDiagnosticSetting","1","8100","New-AzDiagnosticSetting Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" \ No newline at end of file diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll.json index d404ae52dc7e..16a1574eff8e 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Common", "Name": "Microsoft.Azure.Commands.Common.VTable", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.VTable, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.VTable, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProfileName": "System.String" }, @@ -530,7 +530,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -770,7 +770,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1147,7 +1147,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1500,7 +1500,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1901,7 +1901,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2258,7 +2258,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2707,7 +2707,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3159,7 +3159,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3639,7 +3639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3808,7 +3808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4012,7 +4012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4250,7 +4250,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4488,7 +4488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4665,7 +4665,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4818,7 +4818,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5710,7 +5710,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6212,7 +6212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6389,7 +6389,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6542,7 +6542,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8069,7 +8069,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8371,7 +8371,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8682,7 +8682,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9008,7 +9008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9290,7 +9290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9545,7 +9545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9773,7 +9773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10884,7 +10884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11775,7 +11775,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12322,7 +12322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12523,7 +12523,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12676,7 +12676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13198,7 +13198,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13364,7 +13364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14219,7 +14219,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14631,7 +14631,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15533,7 +15533,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16080,7 +16080,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17079,7 +17079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Models", "Name": "Microsoft.Azure.Commands.Profile.Models.PSAccessToken", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSAccessToken, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSAccessToken, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExpiresOn": "System.DateTimeOffset", "Token": "System.String", @@ -17645,7 +17645,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Models", "Name": "Microsoft.Azure.Commands.Profile.Models.PSHttpResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSHttpResponse, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSHttpResponse, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Int32", "Headers": "System.Net.Http.Headers.HttpResponseHeaders", @@ -18475,7 +18475,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Errors", "Name": "Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorCategory": "System.Management.Automation.ErrorCategoryInfo", "ErrorDetails": "System.Management.Automation.ErrorDetails", @@ -18532,7 +18532,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Errors", "Name": "Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InnerException": "System.Boolean", "Exception": "System.Exception", @@ -18602,7 +18602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Errors", "Name": "Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RequestMessage": "Microsoft.Azure.Commands.Profile.Errors.HttpRequestInfo", "ServerResponse": "Microsoft.Azure.Commands.Profile.Errors.HttpResponseInfo", @@ -19035,7 +19035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19249,7 +19249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19450,7 +19450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19610,7 +19610,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Models", "Name": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceGroupName": "System.String", @@ -19843,7 +19843,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Models", "Name": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Models.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceGroupName": "System.String", @@ -19936,7 +19936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20126,7 +20126,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20303,7 +20303,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21009,7 +21009,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21151,7 +21151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21369,7 +21369,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21511,7 +21511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21729,7 +21729,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21871,7 +21871,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22086,7 +22086,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22276,7 +22276,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22631,7 +22631,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22906,7 +22906,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23107,7 +23107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23462,7 +23462,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23737,7 +23737,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23938,7 +23938,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24257,7 +24257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24484,7 +24484,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24637,7 +24637,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Profile.Common", "Name": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Common.ContextModificationScope, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25838,7 +25838,7 @@ "Microsoft.Azure.Commands.Profile.Errors.HttpRequestInfo": { "Namespace": "Microsoft.Azure.Commands.Profile.Errors", "Name": "Microsoft.Azure.Commands.Profile.Errors.HttpRequestInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.HttpRequestInfo, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.HttpRequestInfo, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Headers": "System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]]", "Verb": "System.String", @@ -25935,7 +25935,7 @@ "Microsoft.Azure.Commands.Profile.Errors.HttpResponseInfo": { "Namespace": "Microsoft.Azure.Commands.Profile.Errors", "Name": "Microsoft.Azure.Commands.Profile.Errors.HttpResponseInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.HttpResponseInfo, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Profile.Errors.HttpResponseInfo, Microsoft.Azure.PowerShell.Cmdlets.Accounts, Version=2.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Headers": "System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.IEnumerable`1[System.String]]", "ResponseStatusCode": "System.String", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement.dll.json index 204c10b24752..b03a5af1305d 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement.dll.json @@ -33,7 +33,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -122,7 +122,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -142,7 +142,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -199,7 +199,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -306,7 +306,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -332,7 +332,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -399,7 +399,7 @@ "Name": "Add-AzApiManagementApiToProduct", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.AddAzureApiManagementApiToProduct", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -426,7 +426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -515,7 +515,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -572,7 +572,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -679,7 +679,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -746,7 +746,7 @@ "Name": "Add-AzApiManagementProductToGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.AddAzureApiManagementProductToGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -773,7 +773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -862,7 +862,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -919,7 +919,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -1026,7 +1026,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1093,7 +1093,7 @@ "Name": "Add-AzApiManagementUserToGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.AddAzureApiManagementUserToGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -1120,7 +1120,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -1209,7 +1209,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1266,7 +1266,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -1373,7 +1373,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1467,7 +1467,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -1556,7 +1556,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1677,7 +1677,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1695,7 +1695,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1752,7 +1752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -1859,7 +1859,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2036,7 +2036,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2060,7 +2060,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2084,7 +2084,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -2191,7 +2191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2347,7 +2347,7 @@ "Name": "Get-AzApiManagementApi", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementApi", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllApis", "OutputTypes": [ @@ -2355,7 +2355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -2431,7 +2431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -2613,7 +2613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -2764,7 +2764,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -2891,7 +2891,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3018,7 +3018,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3145,7 +3145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3251,7 +3251,7 @@ "Name": "Get-AzApiManagementApiRelease", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementApiRelease", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -3259,7 +3259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -3330,7 +3330,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3476,7 +3476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3738,7 +3738,7 @@ "Name": "Get-AzApiManagementApiRevision", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementApiRevision", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -3746,7 +3746,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRevision", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRevision, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRevision, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsOnline": "System.Nullable`1[System.Boolean]", "IsCurrent": "System.Nullable`1[System.Boolean]", @@ -3806,7 +3806,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -3934,7 +3934,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -4084,7 +4084,7 @@ "Name": "Get-AzApiManagementApiSchema", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementApiSchema", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -4092,7 +4092,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -4162,7 +4162,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -4308,7 +4308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -4570,7 +4570,7 @@ "Name": "Get-AzApiManagementApiVersionSet", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementApiVersionSet", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -4578,7 +4578,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -4650,7 +4650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -4778,7 +4778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -4929,7 +4929,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -5059,7 +5059,7 @@ "Name": "Get-AzApiManagementAuthorizationServer", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementAuthorizationServer", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -5067,7 +5067,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessTokenSendingMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", "AuthorizationRequestMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", @@ -5149,7 +5149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -5277,7 +5277,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -5563,7 +5563,7 @@ "Name": "Get-AzApiManagementAuthorizationServerClientSecret", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementAuthorizationServerClientSecret", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -5571,7 +5571,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ClientSecret": "System.String" }, @@ -5624,7 +5624,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -5752,7 +5752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -6038,7 +6038,7 @@ "Name": "Get-AzApiManagementBackend", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementBackend", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -6046,7 +6046,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Credentials": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", "Proxy": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", @@ -6121,7 +6121,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -6249,7 +6249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -6535,7 +6535,7 @@ "Name": "Get-AzApiManagementCache", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementCache", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -6543,7 +6543,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -6613,7 +6613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -6741,7 +6741,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -6987,7 +6987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExpirationDate": "System.DateTime", "CertificateId": "System.String", @@ -7057,7 +7057,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -7185,7 +7185,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -7471,7 +7471,7 @@ "Name": "Get-AzApiManagementDiagnostic", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementDiagnostic", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -7479,7 +7479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -7553,7 +7553,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -7699,7 +7699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -7961,7 +7961,7 @@ "Name": "Get-AzApiManagementGateway", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementGateway", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllGateways", "OutputTypes": [ @@ -7969,7 +7969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -8037,7 +8037,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8147,7 +8147,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8274,7 +8274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8380,7 +8380,7 @@ "Name": "Get-AzApiManagementGatewayHostnameConfiguration", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementGatewayHostnameConfiguration", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetByGatewayId", "OutputTypes": [ @@ -8388,7 +8388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NegotiateClientCertificate": "System.Nullable`1[System.Boolean]", "Hostname": "System.String", @@ -8459,7 +8459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8587,7 +8587,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8714,7 +8714,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8865,7 +8865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -8967,7 +8967,7 @@ "Name": "Get-AzApiManagementGatewayKey", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementGatewayKey", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetByGatewayId", "OutputTypes": [ @@ -8975,7 +8975,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayKey, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayKey, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrimaryKey": "System.String", "SecondaryKey": "System.String" @@ -9029,7 +9029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9139,7 +9139,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9266,7 +9266,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9368,7 +9368,7 @@ "Name": "Get-AzApiManagementGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllGroups", "OutputTypes": [ @@ -9376,7 +9376,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType", "System": "System.Boolean", @@ -9436,7 +9436,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9600,7 +9600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9751,7 +9751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -9902,7 +9902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10053,7 +10053,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10183,7 +10183,7 @@ "Name": "Get-AzApiManagementIdentityProvider", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementIdentityProvider", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "AllIdentityProviders", "OutputTypes": [ @@ -10191,7 +10191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", "ClientId": "System.String", @@ -10256,7 +10256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10309,7 +10309,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10451,7 +10451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10554,7 +10554,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10663,7 +10663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10769,7 +10769,7 @@ "Name": "Get-AzApiManagementIdentityProviderClientSecret", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementIdentityProviderClientSecret", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "IdentityProviderByType", "OutputTypes": [ @@ -10777,7 +10777,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ClientSecret": "System.String" }, @@ -10830,7 +10830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -10883,7 +10883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11025,7 +11025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11128,7 +11128,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11237,7 +11237,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11339,7 +11339,7 @@ "Name": "Get-AzApiManagementLogger", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementLogger", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllLoggers", "OutputTypes": [ @@ -11347,7 +11347,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType", "IsBuffered": "System.Nullable`1[System.Boolean]", @@ -11406,7 +11406,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11516,7 +11516,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11643,7 +11643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11749,7 +11749,7 @@ "Name": "Get-AzApiManagementNamedValue", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementNamedValue", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllNamedValues", "OutputTypes": [ @@ -11757,7 +11757,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Secret": "System.Boolean", "NamedValueId": "System.String", @@ -11817,7 +11817,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -11963,7 +11963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12090,7 +12090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12217,7 +12217,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12344,7 +12344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12450,7 +12450,7 @@ "Name": "Get-AzApiManagementNamedValueSecretValue", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementNamedValueSecretValue", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "Default", "OutputTypes": [ @@ -12458,7 +12458,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValueSecretValue", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValueSecretValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValueSecretValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Value": "System.String" }, @@ -12511,7 +12511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12621,7 +12621,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12748,7 +12748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -12854,7 +12854,7 @@ "Name": "Get-AzApiManagementOpenIdConnectProvider", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementOpenIdConnectProvider", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllOpenIdConnectProviders", "OutputTypes": [ @@ -12862,7 +12862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenIdConnectProviderId": "System.String", "Name": "System.String", @@ -12923,7 +12923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13051,7 +13051,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13178,7 +13178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13305,7 +13305,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13411,7 +13411,7 @@ "Name": "Get-AzApiManagementOpenIdConnectProviderClientSecret", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementOpenIdConnectProviderClientSecret", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetByOpenIdConnectProviderId", "OutputTypes": [ @@ -13419,7 +13419,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientSecret, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ClientSecret": "System.String" }, @@ -13472,7 +13472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13582,7 +13582,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13709,7 +13709,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -13811,7 +13811,7 @@ "Name": "Get-AzApiManagementOperation", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementOperation", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllApiOperations", "OutputTypes": [ @@ -13819,7 +13819,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TemplateParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", @@ -13883,7 +13883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14029,7 +14029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14180,7 +14180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14355,7 +14355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14484,7 +14484,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14645,7 +14645,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14702,7 +14702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -14809,7 +14809,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14901,7 +14901,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -15008,7 +15008,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15124,7 +15124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -15231,7 +15231,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15371,7 +15371,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -15478,7 +15478,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15549,7 +15549,7 @@ "Name": "Get-AzApiManagementProduct", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementProduct", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllProducts", "OutputTypes": [ @@ -15557,7 +15557,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState", "SubscriptionRequired": "System.Nullable`1[System.Boolean]", @@ -15623,7 +15623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -15769,7 +15769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -15896,7 +15896,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16023,7 +16023,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16150,7 +16150,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16256,7 +16256,7 @@ "Name": "Get-AzApiManagementSubscription", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementSubscription", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetAllSubscriptions", "OutputTypes": [ @@ -16264,7 +16264,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -16350,7 +16350,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16514,7 +16514,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16641,7 +16641,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16792,7 +16792,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -16919,7 +16919,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17046,7 +17046,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17173,7 +17173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17279,7 +17279,7 @@ "Name": "Get-AzApiManagementSubscriptionKey", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementSubscriptionKey", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetBySubscriptionId", "OutputTypes": [ @@ -17287,7 +17287,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionKey, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionKey, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrimaryKey": "System.String", "SecondaryKey": "System.String" @@ -17341,7 +17341,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17451,7 +17451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17578,7 +17578,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17680,7 +17680,7 @@ "Name": "Get-AzApiManagementTenantSyncState", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementTenantSyncState", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -17688,7 +17688,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementTenantConfigurationSyncState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementTenantConfigurationSyncState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementTenantConfigurationSyncState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsExport": "System.Boolean", "IsSynced": "System.Boolean", @@ -17747,7 +17747,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17839,7 +17839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -17941,7 +17941,7 @@ "Name": "Get-AzApiManagementUser", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementUser", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GeAllUsers", "OutputTypes": [ @@ -17949,7 +17949,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", "Identities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18012,7 +18012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18119,7 +18119,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18214,7 +18214,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18341,7 +18341,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18492,7 +18492,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18566,7 +18566,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18672,7 +18672,7 @@ "Name": "Get-AzApiManagementUserSsoUrl", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureApiManagementUserSsoUrl", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -18699,7 +18699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18809,7 +18809,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -18935,7 +18935,7 @@ "Name": "Get-AzApiManagementTenantAccess", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureRmApiManagementTenantAccess", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -18943,7 +18943,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Id": "System.String", @@ -18999,7 +18999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19091,7 +19091,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19193,7 +19193,7 @@ "Name": "Get-AzApiManagementTenantAccessSecret", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureRmApiManagementTenantAccessSecret", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -19201,7 +19201,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Id": "System.String", @@ -19257,7 +19257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19349,7 +19349,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19451,7 +19451,7 @@ "Name": "Get-AzApiManagementTenantGitAccess", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureRmApiManagementTenantGitAccess", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -19459,7 +19459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Id": "System.String", @@ -19515,7 +19515,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19607,7 +19607,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19709,7 +19709,7 @@ "Name": "Get-AzApiManagementTenantGitAccessSecret", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.GetAzureRmApiManagementTenantGitAccessSecret", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -19717,7 +19717,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Id": "System.String", @@ -19773,7 +19773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19865,7 +19865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -19967,7 +19967,7 @@ "Name": "Import-AzApiManagementApi", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.ImportAzureApiManagementApi", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ImportFromLocalFile", "OutputTypes": [ @@ -19975,7 +19975,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -20051,7 +20051,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -20140,7 +20140,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20333,7 +20333,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -20353,7 +20353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -20464,7 +20464,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -20571,7 +20571,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20752,7 +20752,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -20778,7 +20778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -20942,7 +20942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -21049,7 +21049,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21230,7 +21230,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21256,7 +21256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -21420,7 +21420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -21527,7 +21527,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiFormat, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21708,7 +21708,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21734,7 +21734,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -21873,7 +21873,7 @@ "Name": "New-AzApiManagementApi", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementApi", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -21881,7 +21881,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -21957,7 +21957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -22100,7 +22100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -22244,7 +22244,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22391,7 +22391,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -22570,7 +22570,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -22762,7 +22762,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22957,7 +22957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -23027,7 +23027,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -23191,7 +23191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -23397,7 +23397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -23473,7 +23473,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -23655,7 +23655,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -23885,7 +23885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -23955,7 +23955,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -24137,7 +24137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -24336,7 +24336,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -24535,7 +24535,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -24717,7 +24717,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -24788,7 +24788,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -24877,7 +24877,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25073,7 +25073,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -25180,7 +25180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25404,7 +25404,7 @@ "Name": "New-AzApiManagementAuthorizationServer", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementAuthorizationServer", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -25412,7 +25412,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessTokenSendingMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", "AuthorizationRequestMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", @@ -25494,7 +25494,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -25691,7 +25691,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", "GenericTypeArguments": [], @@ -25709,7 +25709,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", "GenericTypeArguments": [], @@ -25727,7 +25727,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", "GenericTypeArguments": [], @@ -25801,7 +25801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", "GenericTypeArguments": [], @@ -25894,7 +25894,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -26145,7 +26145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", "GenericTypeArguments": [], @@ -26169,7 +26169,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", "GenericTypeArguments": [], @@ -26193,7 +26193,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", "GenericTypeArguments": [], @@ -26291,7 +26291,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", "GenericTypeArguments": [], @@ -26414,7 +26414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Credentials": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", "Proxy": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", @@ -26489,7 +26489,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -26693,7 +26693,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -26748,7 +26748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -26801,7 +26801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -26896,7 +26896,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -27154,7 +27154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -27215,7 +27215,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -27274,7 +27274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -27379,7 +27379,7 @@ "Name": "New-AzApiManagementBackendCredential", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementBackendCredential", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -27387,7 +27387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -27735,7 +27735,7 @@ "Name": "New-AzApiManagementBackendProxy", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementBackendProxy", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -27743,7 +27743,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -27815,7 +27815,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27896,7 +27896,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27963,7 +27963,7 @@ "Name": "New-AzApiManagementBackendServiceFabric", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementBackendServiceFabric", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -27971,7 +27971,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -28332,7 +28332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -28401,7 +28401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -28565,7 +28565,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -28763,7 +28763,7 @@ "Name": "New-AzApiManagementCertificate", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementCertificate", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "LoadFromFile", "OutputTypes": [ @@ -28771,7 +28771,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExpirationDate": "System.DateTime", "CertificateId": "System.String", @@ -28840,7 +28840,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -29004,7 +29004,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -29179,7 +29179,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -29354,7 +29354,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -29504,7 +29504,7 @@ "Name": "New-AzApiManagementContext", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementContext", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ContextParameterSet", "OutputTypes": [ @@ -29512,7 +29512,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -29871,7 +29871,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -29944,7 +29944,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -30069,7 +30069,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -30122,7 +30122,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -30175,7 +30175,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -30267,7 +30267,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -30422,7 +30422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -30481,7 +30481,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -30540,7 +30540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -30650,7 +30650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -30718,7 +30718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -30807,7 +30807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -30901,7 +30901,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -31008,7 +31008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -31120,7 +31120,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NegotiateClientCertificate": "System.Nullable`1[System.Boolean]", "Hostname": "System.String", @@ -31190,7 +31190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -31315,7 +31315,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31372,7 +31372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -31527,7 +31527,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31594,7 +31594,7 @@ "Name": "New-AzApiManagementGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -31602,7 +31602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType", "System": "System.Boolean", @@ -31662,7 +31662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -31769,7 +31769,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -31846,7 +31846,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -31977,7 +31977,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32070,7 +32070,7 @@ "Name": "New-AzApiManagementHttpMessageDiagnostic", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementHttpMessageDiagnostic", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -32078,7 +32078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -32310,7 +32310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", "ClientId": "System.String", @@ -32375,7 +32375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -32428,7 +32428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32732,7 +32732,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -32791,7 +32791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33159,7 +33159,7 @@ "Name": "New-AzApiManagementLogger", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementLogger", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "EventHubLoggerSet", "OutputTypes": [ @@ -33167,7 +33167,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType", "IsBuffered": "System.Nullable`1[System.Boolean]", @@ -33227,7 +33227,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -33429,7 +33429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -33654,7 +33654,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -33829,7 +33829,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -33987,7 +33987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Secret": "System.Boolean", "NamedValueId": "System.String", @@ -34047,7 +34047,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -34154,7 +34154,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -34229,7 +34229,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -34360,7 +34360,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -34451,7 +34451,7 @@ "Name": "New-AzApiManagementOpenIdConnectProvider", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementOpenIdConnectProvider", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -34459,7 +34459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenIdConnectProviderId": "System.String", "Name": "System.String", @@ -34520,7 +34520,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -34720,7 +34720,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -34966,7 +34966,7 @@ "Name": "New-AzApiManagementOperation", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementOperation", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -34974,7 +34974,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TemplateParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", @@ -35038,7 +35038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -35217,7 +35217,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", "GenericTypeArguments": [], @@ -35235,7 +35235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueryParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Headers": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", @@ -35290,7 +35290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", "GenericTypeArguments": [], @@ -35347,7 +35347,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -35574,7 +35574,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", "GenericTypeArguments": [], @@ -35598,7 +35598,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueryParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Headers": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", @@ -35659,7 +35659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", "GenericTypeArguments": [], @@ -35726,7 +35726,7 @@ "Name": "New-AzApiManagementPipelineDiagnosticSetting", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementPipelineDiagnosticSetting", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -35734,7 +35734,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -35788,7 +35788,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -35841,7 +35841,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -35933,7 +35933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -35992,7 +35992,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -36094,7 +36094,7 @@ "Name": "New-AzApiManagementProduct", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementProduct", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -36102,7 +36102,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState", "SubscriptionRequired": "System.Nullable`1[System.Boolean]", @@ -36165,7 +36165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -36350,7 +36350,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -36409,7 +36409,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -36642,7 +36642,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -36711,7 +36711,7 @@ "Name": "New-AzApiManagementResourceLocationObject", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementResourceLocationObject", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -36719,7 +36719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -37025,7 +37025,7 @@ "Name": "New-AzApiManagementSamplingSetting", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementSamplingSetting", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -37033,7 +37033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -37257,7 +37257,7 @@ "Name": "New-AzApiManagementSubscription", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementSubscription", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "OldSubscriptionModel", "OutputTypes": [ @@ -37265,7 +37265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -37346,7 +37346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -37525,7 +37525,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37543,7 +37543,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -37602,7 +37602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -37757,7 +37757,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37781,7 +37781,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -37899,7 +37899,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -38054,7 +38054,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38078,7 +38078,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -38196,7 +38196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -38351,7 +38351,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38375,7 +38375,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -38444,7 +38444,7 @@ "Name": "New-AzApiManagementUser", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementUser", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -38452,7 +38452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", "Identities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -38515,7 +38515,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -38658,7 +38658,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -38735,7 +38735,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -38914,7 +38914,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39007,7 +39007,7 @@ "Name": "New-AzApiManagementUserToken", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.NewAzureApiManagementUserToken", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -39015,7 +39015,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserToken", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserToken, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserToken, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "KeyType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType", "TokenExpiry": "System.DateTime", @@ -39071,7 +39071,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -39142,7 +39142,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39304,7 +39304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -39387,7 +39387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39573,7 +39573,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody", "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState", @@ -39641,7 +39641,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -39712,7 +39712,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39730,7 +39730,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39748,7 +39748,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39805,7 +39805,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -39888,7 +39888,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39912,7 +39912,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39936,7 +39936,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40030,7 +40030,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40101,7 +40101,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40158,7 +40158,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40241,7 +40241,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40335,7 +40335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40424,7 +40424,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40481,7 +40481,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40588,7 +40588,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40655,7 +40655,7 @@ "Name": "Remove-AzApiManagementApiFromProduct", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.RemoveAzureApiManagementApiFromProduct", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -40682,7 +40682,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40771,7 +40771,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40828,7 +40828,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -40935,7 +40935,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41029,7 +41029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -41082,7 +41082,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -41187,7 +41187,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41244,7 +41244,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -41351,7 +41351,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41419,7 +41419,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -41494,7 +41494,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41562,7 +41562,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41657,7 +41657,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -41746,7 +41746,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -41821,7 +41821,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41878,7 +41878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -41985,7 +41985,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42053,7 +42053,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -42134,7 +42134,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42202,7 +42202,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42298,7 +42298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -42387,7 +42387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -42473,7 +42473,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42530,7 +42530,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -42637,7 +42637,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42705,7 +42705,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -42779,7 +42779,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42871,7 +42871,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42939,7 +42939,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43033,7 +43033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -43086,7 +43086,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -43192,7 +43192,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43249,7 +43249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -43332,7 +43332,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43400,7 +43400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -43476,7 +43476,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43568,7 +43568,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43636,7 +43636,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43730,7 +43730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -43801,7 +43801,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43858,7 +43858,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -43941,7 +43941,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44035,7 +44035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -44106,7 +44106,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44163,7 +44163,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -44246,7 +44246,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44342,7 +44342,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -44413,7 +44413,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -44499,7 +44499,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44556,7 +44556,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -44639,7 +44639,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44707,7 +44707,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -44781,7 +44781,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44873,7 +44873,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44941,7 +44941,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45035,7 +45035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -45106,7 +45106,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45163,7 +45163,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -45246,7 +45246,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45342,7 +45342,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -45431,7 +45431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -45521,7 +45521,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45578,7 +45578,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -45685,7 +45685,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45753,7 +45753,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -45831,7 +45831,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45923,7 +45923,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45991,7 +45991,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46087,7 +46087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -46158,7 +46158,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -46243,7 +46243,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46300,7 +46300,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -46383,7 +46383,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46451,7 +46451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -46524,7 +46524,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46616,7 +46616,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46684,7 +46684,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46780,7 +46780,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -46869,7 +46869,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NegotiateClientCertificate": "System.Nullable`1[System.Boolean]", "Hostname": "System.String", @@ -46956,7 +46956,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47013,7 +47013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -47120,7 +47120,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47188,7 +47188,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayHostnameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NegotiateClientCertificate": "System.Nullable`1[System.Boolean]", "Hostname": "System.String", @@ -47263,7 +47263,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47355,7 +47355,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47423,7 +47423,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47517,7 +47517,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -47588,7 +47588,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47645,7 +47645,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -47728,7 +47728,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47822,7 +47822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -47875,7 +47875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47978,7 +47978,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48035,7 +48035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48094,7 +48094,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48203,7 +48203,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48297,7 +48297,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48368,7 +48368,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48425,7 +48425,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48508,7 +48508,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48602,7 +48602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48673,7 +48673,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48730,7 +48730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48813,7 +48813,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48907,7 +48907,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -48978,7 +48978,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49035,7 +49035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49118,7 +49118,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49212,7 +49212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49319,7 +49319,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49376,7 +49376,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49507,7 +49507,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49601,7 +49601,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49708,7 +49708,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49765,7 +49765,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49824,7 +49824,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49916,7 +49916,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -49975,7 +49975,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50067,7 +50067,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50126,7 +50126,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50242,7 +50242,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50301,7 +50301,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50399,7 +50399,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50470,7 +50470,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50488,7 +50488,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50545,7 +50545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50628,7 +50628,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50652,7 +50652,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50719,7 +50719,7 @@ "Name": "Remove-AzApiManagementProductFromGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.RemoveAzureApiManagementProductFromGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -50746,7 +50746,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50835,7 +50835,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50892,7 +50892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -50999,7 +50999,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51095,7 +51095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -51166,7 +51166,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -51264,7 +51264,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51321,7 +51321,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -51404,7 +51404,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51472,7 +51472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -51558,7 +51558,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -51641,7 +51641,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51733,7 +51733,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -51816,7 +51816,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51914,7 +51914,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -51985,7 +51985,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52003,7 +52003,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52060,7 +52060,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -52143,7 +52143,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52167,7 +52167,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52234,7 +52234,7 @@ "Name": "Remove-AzApiManagementUserFromGroup", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.RemoveAzureApiManagementUserFromGroup", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -52261,7 +52261,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -52350,7 +52350,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52407,7 +52407,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -52514,7 +52514,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52589,7 +52589,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody", "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState", @@ -52657,7 +52657,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -52728,7 +52728,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52746,7 +52746,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52803,7 +52803,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -52886,7 +52886,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52910,7 +52910,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52977,7 +52977,7 @@ "Name": "Set-AzApiManagementApi", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureApiManagementApi", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ExpandedParameter", "OutputTypes": [ @@ -52985,7 +52985,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -53062,7 +53062,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -53133,7 +53133,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -53280,7 +53280,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -53406,7 +53406,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53424,7 +53424,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53481,7 +53481,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -53660,7 +53660,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -53828,7 +53828,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53852,7 +53852,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53920,7 +53920,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -54097,7 +54097,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -54265,7 +54265,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54289,7 +54289,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54453,7 +54453,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -54621,7 +54621,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54645,7 +54645,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54720,7 +54720,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -54815,7 +54815,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -54886,7 +54886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -55033,7 +55033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -55159,7 +55159,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55177,7 +55177,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55258,7 +55258,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -55437,7 +55437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -55605,7 +55605,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55629,7 +55629,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55697,7 +55697,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApi, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Protocols": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", "IsOnline": "System.Boolean", @@ -55874,7 +55874,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -56042,7 +56042,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56066,7 +56066,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56230,7 +56230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -56398,7 +56398,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56422,7 +56422,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56497,7 +56497,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -56568,7 +56568,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -56657,7 +56657,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -56797,7 +56797,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56854,7 +56854,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -57033,7 +57033,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57101,7 +57101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SchemaId": "System.String", "ApiId": "System.String", @@ -57247,7 +57247,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57411,7 +57411,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57551,7 +57551,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57626,7 +57626,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -57698,7 +57698,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -57751,7 +57751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -57857,7 +57857,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58014,7 +58014,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58071,7 +58071,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -58178,7 +58178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58359,7 +58359,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58427,7 +58427,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiVersionSet, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VersioningScheme": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", "ApiVersionSetId": "System.String", @@ -58527,7 +58527,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58708,7 +58708,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58800,7 +58800,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58981,7 +58981,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59048,7 +59048,7 @@ "Name": "Set-AzApiManagementAuthorizationServer", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureApiManagementAuthorizationServer", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -59056,7 +59056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOAuth2AuthorizationServer, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessTokenSendingMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", "AuthorizationRequestMethods": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", @@ -59138,7 +59138,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -59335,7 +59335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", "GenericTypeArguments": [], @@ -59353,7 +59353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", "GenericTypeArguments": [], @@ -59371,7 +59371,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", "GenericTypeArguments": [], @@ -59445,7 +59445,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", "GenericTypeArguments": [], @@ -59499,7 +59499,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59556,7 +59556,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -59807,7 +59807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", "GenericTypeArguments": [], @@ -59831,7 +59831,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", "GenericTypeArguments": [], @@ -59855,7 +59855,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", "GenericTypeArguments": [], @@ -59953,7 +59953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", "GenericTypeArguments": [], @@ -60025,7 +60025,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60100,7 +60100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Credentials": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", "Proxy": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", @@ -60175,7 +60175,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -60246,7 +60246,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Credentials": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", "Proxy": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", @@ -60453,7 +60453,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -60508,7 +60508,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -60561,7 +60561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -60617,7 +60617,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60674,7 +60674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -60932,7 +60932,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -60993,7 +60993,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -61052,7 +61052,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -61114,7 +61114,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61182,7 +61182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackend, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Credentials": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", "Proxy": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", @@ -61437,7 +61437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -61498,7 +61498,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -61557,7 +61557,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -61619,7 +61619,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61862,7 +61862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -61923,7 +61923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -61982,7 +61982,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -62044,7 +62044,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62111,7 +62111,7 @@ "Name": "Set-AzApiManagementCertificate", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureApiManagementCertificate", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "LoadFromFile", "OutputTypes": [ @@ -62119,7 +62119,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExpirationDate": "System.DateTime", "CertificateId": "System.String", @@ -62188,7 +62188,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -62313,7 +62313,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62370,7 +62370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -62477,7 +62477,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62569,7 +62569,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -62676,7 +62676,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62768,7 +62768,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -62875,7 +62875,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62950,7 +62950,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -63025,7 +63025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -63096,7 +63096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -63240,7 +63240,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -63293,7 +63293,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -63346,7 +63346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -63399,7 +63399,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63456,7 +63456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -63611,7 +63611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -63670,7 +63670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -63729,7 +63729,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -63788,7 +63788,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63856,7 +63856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", "BackendSetting": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", @@ -63982,7 +63982,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -64041,7 +64041,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64100,7 +64100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64159,7 +64159,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64299,7 +64299,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -64358,7 +64358,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64417,7 +64417,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64476,7 +64476,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64592,7 +64592,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -64651,7 +64651,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64710,7 +64710,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -64769,7 +64769,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64844,7 +64844,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType", "System": "System.Boolean", @@ -64904,7 +64904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -65011,7 +65011,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65068,7 +65068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -65199,7 +65199,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65274,7 +65274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", "ClientId": "System.String", @@ -65340,7 +65340,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -65393,7 +65393,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65496,7 +65496,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", "ClientId": "System.String", @@ -65722,7 +65722,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65779,7 +65779,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -65838,7 +65838,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66163,7 +66163,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66231,7 +66231,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", "ClientId": "System.String", @@ -66517,7 +66517,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66801,7 +66801,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66876,7 +66876,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLogger, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType", "IsBuffered": "System.Nullable`1[System.Boolean]", @@ -66936,7 +66936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -67079,7 +67079,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67097,7 +67097,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67154,7 +67154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -67261,7 +67261,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67377,7 +67377,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67401,7 +67401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -67508,7 +67508,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67600,7 +67600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -67707,7 +67707,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67782,7 +67782,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementNamedValue, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Secret": "System.Boolean", "NamedValueId": "System.String", @@ -67842,7 +67842,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -67987,7 +67987,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68044,7 +68044,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -68225,7 +68225,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68300,7 +68300,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOpenIdConnectProvider, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenIdConnectProviderId": "System.String", "Name": "System.String", @@ -68361,7 +68361,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -68522,7 +68522,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68579,7 +68579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -68782,7 +68782,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68857,7 +68857,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementOperation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TemplateParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", @@ -68921,7 +68921,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -69100,7 +69100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", "GenericTypeArguments": [], @@ -69118,7 +69118,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueryParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Headers": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", @@ -69173,7 +69173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", "GenericTypeArguments": [], @@ -69191,7 +69191,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69248,7 +69248,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -69475,7 +69475,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", "GenericTypeArguments": [], @@ -69499,7 +69499,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueryParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Headers": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", @@ -69560,7 +69560,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", "GenericTypeArguments": [], @@ -69584,7 +69584,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69651,7 +69651,7 @@ "Name": "Set-AzApiManagementPolicy", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureApiManagementPolicy", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "SetTenantLevel", "OutputTypes": [ @@ -69678,7 +69678,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -69875,7 +69875,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69932,7 +69932,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -70087,7 +70087,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70179,7 +70179,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -70334,7 +70334,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70450,7 +70450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -70605,7 +70605,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70745,7 +70745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -70900,7 +70900,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70979,7 +70979,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProduct, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState", "SubscriptionRequired": "System.Nullable`1[System.Boolean]", @@ -71042,7 +71042,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -71227,7 +71227,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -71247,7 +71247,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -71304,7 +71304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -71537,7 +71537,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -71563,7 +71563,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -71638,7 +71638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -71720,7 +71720,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -71791,7 +71791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -71961,7 +71961,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -72019,7 +72019,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72076,7 +72076,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -72279,7 +72279,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -72355,7 +72355,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72423,7 +72423,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscription, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", "CreatedDate": "System.DateTime", @@ -72629,7 +72629,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -72705,7 +72705,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72893,7 +72893,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -72969,7 +72969,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73044,7 +73044,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUser, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", "Identities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -73107,7 +73107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -73250,7 +73250,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73371,7 +73371,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73428,7 +73428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -73607,7 +73607,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73740,7 +73740,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73807,7 +73807,7 @@ "Name": "Set-AzApiManagementTenantAccess", "ClassName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.SetAzureRmApiManagementTenantAccess", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -73815,7 +73815,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Id": "System.String", @@ -73871,7 +73871,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -73942,7 +73942,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73999,7 +73999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -74082,7 +74082,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74157,7 +74157,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -74228,7 +74228,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -74335,7 +74335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -74404,7 +74404,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74461,7 +74461,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -74592,7 +74592,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74684,7 +74684,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74752,7 +74752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiRelease, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedDateTime": "System.Nullable`1[System.DateTime]", "UpdatedDateTime": "System.Nullable`1[System.DateTime]", @@ -74851,7 +74851,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74926,7 +74926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -74997,7 +74997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -75068,7 +75068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -75208,7 +75208,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75265,7 +75265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -75420,7 +75420,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75488,7 +75488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCache, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CacheId": "System.String", "Description": "System.String", @@ -75634,7 +75634,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75798,7 +75798,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75938,7 +75938,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -76013,7 +76013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -76083,7 +76083,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -76154,7 +76154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -76257,7 +76257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -76312,7 +76312,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -76369,7 +76369,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServiceName": "System.String" @@ -76476,7 +76476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -76537,7 +76537,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -76605,7 +76605,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGateway, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocationData": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", "GatewayId": "System.String", @@ -76702,7 +76702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -76763,7 +76763,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -76879,7 +76879,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -76940,7 +76940,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77032,7 +77032,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -77093,7 +77093,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77309,7 +77309,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGatewayApiProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77463,6 +77463,8 @@ "Properties": { "OnPremise": "System.Boolean", "VersionProfiles": "System.Collections.Generic.IList`1[System.String]", + "Name": "System.String", + "AdTenant": "System.String", "AzureDataLakeStoreFileSystemEndpointSuffix": "System.String", "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "System.String", "BatchEndpointResourceId": "System.String", @@ -77472,7 +77474,6 @@ "AzureKeyVaultDnsSuffix": "System.String", "TrafficManagerDnsSuffix": "System.String", "SqlDatabaseDnsSuffix": "System.String", - "StorageEndpointSuffix": "System.String", "ActiveDirectoryServiceEndpointResourceId": "System.String", "GraphUrl": "System.String", "GalleryUrl": "System.String", @@ -77481,8 +77482,8 @@ "ManagementPortalUrl": "System.String", "ResourceManagerUrl": "System.String", "ServiceManagementUrl": "System.String", - "AdTenant": "System.String", - "Name": "System.String" + "StorageEndpointSuffix": "System.String", + "ContainerRegistryEndpointSuffix": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -77604,7 +77605,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", "GenericTypeArguments": [], @@ -77614,7 +77615,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSchema, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77753,7 +77754,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementVersioningScheme, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77848,7 +77849,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", "GenericTypeArguments": [], @@ -77858,7 +77859,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessTokenSendingMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77953,7 +77954,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", "GenericTypeArguments": [], @@ -77963,7 +77964,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationRequestMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78058,7 +78059,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", "GenericTypeArguments": [], @@ -78068,7 +78069,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementClientAuthenticationMethod, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78163,7 +78164,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", "GenericTypeArguments": [], @@ -78173,7 +78174,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGrantType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78278,7 +78279,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authorization": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", "Certificate": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -78325,7 +78326,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAuthorizationHeaderCredential, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Scheme": "System.String", "Parameter": "System.String" @@ -78382,7 +78383,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBackendProxy, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProxyCredentials": "System.Management.Automation.PSCredential", "Url": "System.String" @@ -78427,7 +78428,7 @@ "System.Management.Automation.PSCredential": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78437,7 +78438,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementServiceFabric, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerX509Names": "System.Collections.Hashtable", "MaxPartitionResolutionRetries": "System.Nullable`1[System.Int32]", @@ -78520,7 +78521,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementPipelineDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", "Response": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic" @@ -78565,7 +78566,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementHttpMessageDiagnostic, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Body": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", "HeadersToLog": "System.String[]" @@ -78610,7 +78611,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementBodyDiagnosticSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BodyBytesToLog": "System.Nullable`1[System.Int32]" }, @@ -78654,7 +78655,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSamplingSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingPercentage": "System.Nullable`1[System.Double]", "SamplingType": "System.String" @@ -78711,7 +78712,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResourceLocation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "City": "System.String", @@ -78758,7 +78759,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementGroupType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78853,7 +78854,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementIdentityProviderType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78948,7 +78949,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementLoggerType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79043,7 +79044,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", "GenericTypeArguments": [], @@ -79053,7 +79054,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Required": "System.Boolean", "Name": "System.String", @@ -79102,7 +79103,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRequest, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueryParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "Headers": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", @@ -79149,7 +79150,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation", "GenericTypeArguments": [], @@ -79159,7 +79160,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FormParameters": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementParameter[]", "ContentType": "System.String", @@ -79207,7 +79208,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", "GenericTypeArguments": [], @@ -79217,7 +79218,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementResponse, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Representations": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementRepresentation[]", "StatusCode": "System.Int32", @@ -79263,7 +79264,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProductState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79358,7 +79359,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementSubscriptionState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79453,7 +79454,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79548,7 +79549,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementApiType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79643,7 +79644,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementUserKeyType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79738,7 +79739,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorBody, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField[]", "Message": "System.String", @@ -79794,7 +79795,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField", "GenericTypeArguments": [], @@ -79804,7 +79805,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.ErrorField, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Code": "System.String", "Message": "System.String", @@ -79860,7 +79861,7 @@ "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.TenantConfigurationState, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.ServiceManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.dll.json index 16b373cf0d5f..f074a087d05a 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ApiManagement.dll.json @@ -6,7 +6,7 @@ "Name": "Add-AzApiManagementRegion", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.AddAzureApiManagementRegion", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -162,7 +162,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -327,7 +327,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -367,7 +367,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -460,7 +460,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -637,7 +637,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -689,7 +689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -792,7 +792,7 @@ "Name": "Backup-AzApiManagement", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.BackupAzureApiManagement", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -800,7 +800,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -1048,7 +1048,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1235,7 +1235,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1302,7 +1302,7 @@ "Name": "Get-AzApiManagement", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.GetAzureApiManagement", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "GetBySubscription", "OutputTypes": [ @@ -1310,7 +1310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -1829,7 +1829,7 @@ "Name": "Get-AzApiManagementNetworkStatus", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.GetAzureApiManagementNetworkStatus", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ByInputObject", "OutputTypes": [ @@ -1837,7 +1837,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementNetworkStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementNetworkStatus, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementNetworkStatus, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectivityStatus": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus[]", "Location": "System.String", @@ -1893,7 +1893,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -2133,7 +2133,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -2537,7 +2537,7 @@ "Name": "Get-AzApiManagementSsoToken", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.GetAzureApiManagementSsoToken", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ExpandedParameter", "OutputTypes": [ @@ -2565,7 +2565,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -2787,7 +2787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -3119,7 +3119,7 @@ "Name": "New-AzApiManagement", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagement", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -3127,7 +3127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -3365,7 +3365,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -3411,7 +3411,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3518,7 +3518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -3593,7 +3593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion", "GenericTypeArguments": [], @@ -3611,7 +3611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "GenericTypeArguments": [], @@ -3629,7 +3629,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate", "GenericTypeArguments": [], @@ -3647,7 +3647,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendProtocol": "System.Collections.Hashtable", "BackendProtocol": "System.Collections.Hashtable", @@ -3702,7 +3702,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3738,7 +3738,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3915,7 +3915,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -3973,7 +3973,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4086,7 +4086,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -4173,7 +4173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion", "GenericTypeArguments": [], @@ -4197,7 +4197,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "GenericTypeArguments": [], @@ -4221,7 +4221,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate", "GenericTypeArguments": [], @@ -4245,7 +4245,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendProtocol": "System.Collections.Hashtable", "BackendProtocol": "System.Collections.Hashtable", @@ -4306,7 +4306,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4354,7 +4354,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4421,7 +4421,7 @@ "Name": "New-AzApiManagementCustomHostnameConfiguration", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagementCustomHostnameConfiguration", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "NoChangeCertificate", "OutputTypes": [ @@ -4429,7 +4429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CertificateInformation": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", "HostnameType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", @@ -4507,7 +4507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4664,7 +4664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Expiry": "System.DateTime", "Subject": "System.String", @@ -4718,7 +4718,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4736,7 +4736,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4817,7 +4817,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4926,7 +4926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Expiry": "System.DateTime", "Subject": "System.String", @@ -4986,7 +4986,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5010,7 +5010,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5102,7 +5102,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5259,7 +5259,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5283,7 +5283,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5375,7 +5375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5508,7 +5508,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5532,7 +5532,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5600,7 +5600,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5624,7 +5624,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5691,7 +5691,7 @@ "Name": "New-AzApiManagementRegion", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagementRegion", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -5699,7 +5699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku", "VirtualNetwork": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", @@ -5796,7 +5796,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -5939,7 +5939,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -6042,7 +6042,7 @@ "Name": "New-AzApiManagementSslSetting", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagementSslSetting", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -6050,7 +6050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendProtocol": "System.Collections.Hashtable", "BackendProtocol": "System.Collections.Hashtable", @@ -6356,7 +6356,7 @@ "Name": "New-AzApiManagementSystemCertificate", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagementSystemCertificate", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -6364,7 +6364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CertificateInformation": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", "EncodedCertificate": "System.String", @@ -6634,7 +6634,7 @@ "Name": "New-AzApiManagementVirtualNetwork", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.NewAzureApiManagementVirtualNetwork", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -6642,7 +6642,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -6884,7 +6884,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6989,7 +6989,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7056,7 +7056,7 @@ "Name": "Remove-AzApiManagementRegion", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.RemoveAzureApiManagementRegion", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -7064,7 +7064,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -7212,7 +7212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -7416,7 +7416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -7636,7 +7636,7 @@ "Name": "Restore-AzApiManagement", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.RestoreAzureApiManagement", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -7644,7 +7644,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -7892,7 +7892,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8079,7 +8079,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8154,7 +8154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -8302,7 +8302,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -8449,7 +8449,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8485,7 +8485,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8503,7 +8503,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8560,7 +8560,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -8713,7 +8713,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8761,7 +8761,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8785,7 +8785,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8852,7 +8852,7 @@ "Name": "Update-AzApiManagementRegion", "ClassName": "Microsoft.Azure.Commands.ApiManagement.Commands.UpdateAzureApiManagementRegion", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ @@ -8860,7 +8860,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -9008,7 +9008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -9173,7 +9173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9294,7 +9294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -9387,7 +9387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PortalCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "ManagementCustomHostnameConfiguration": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", @@ -9564,7 +9564,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9697,7 +9697,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -9939,7 +9939,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CertificateInformation": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", "HostnameType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", @@ -9990,7 +9990,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Expiry": "System.DateTime", "Subject": "System.String", @@ -10056,7 +10056,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10173,7 +10173,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCustomHostNameConfiguration", "GenericTypeArguments": [], @@ -10183,7 +10183,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UserAssignedIdentity": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation]", "PrincipalId": "System.String", @@ -10230,7 +10230,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -10243,7 +10243,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementUserAssignedInformation, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10285,7 +10285,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10380,7 +10380,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSslSetting, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrontendProtocol": "System.Collections.Hashtable", "BackendProtocol": "System.Collections.Hashtable", @@ -10437,7 +10437,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate", "GenericTypeArguments": [], @@ -10447,7 +10447,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSystemCertificate, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CertificateInformation": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementCertificateInformation", "EncodedCertificate": "System.String", @@ -10494,7 +10494,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VnetId": "System.Guid", "SubnetName": "System.String", @@ -10550,7 +10550,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVpnType, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10658,7 +10658,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -10670,7 +10670,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementSku", "VirtualNetwork": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork", @@ -10788,6 +10788,8 @@ "Properties": { "OnPremise": "System.Boolean", "VersionProfiles": "System.Collections.Generic.IList`1[System.String]", + "Name": "System.String", + "AdTenant": "System.String", "AzureDataLakeStoreFileSystemEndpointSuffix": "System.String", "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "System.String", "BatchEndpointResourceId": "System.String", @@ -10797,7 +10799,6 @@ "AzureKeyVaultDnsSuffix": "System.String", "TrafficManagerDnsSuffix": "System.String", "SqlDatabaseDnsSuffix": "System.String", - "StorageEndpointSuffix": "System.String", "ActiveDirectoryServiceEndpointResourceId": "System.String", "GraphUrl": "System.String", "GalleryUrl": "System.String", @@ -10806,8 +10807,8 @@ "ManagementPortalUrl": "System.String", "ResourceManagerUrl": "System.String", "ServiceManagementUrl": "System.String", - "AdTenant": "System.String", - "Name": "System.String" + "StorageEndpointSuffix": "System.String", + "ContainerRegistryEndpointSuffix": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -10939,7 +10940,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus[]": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus[], Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus", "GenericTypeArguments": [], @@ -10949,7 +10950,7 @@ "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus": { "Namespace": "Microsoft.Azure.Commands.ApiManagement.Models", "Name": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementConnectivityStatus, Microsoft.Azure.PowerShell.Cmdlets.ApiManagement, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastUpdated": "System.DateTime", "LastStatusChange": "System.DateTime", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Compute.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Compute.dll.json index 808d33598fd8..1e7d04db2797 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Compute.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Compute.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -263,7 +263,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -814,7 +814,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -1134,7 +1134,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1205,7 +1205,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1386,7 +1386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1602,7 +1602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1799,7 +1799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "Version": "System.String", @@ -1856,7 +1856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageDetails, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageDetails, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "SupportsMultipleExtensions": "System.Nullable`1[System.Boolean]", @@ -2222,7 +2222,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtensionImageType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "PublisherName": "System.String", @@ -2455,7 +2455,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineADDomainExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineADDomainExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineADDomainExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -2799,7 +2799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -3509,7 +3509,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -3885,7 +3885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -4249,7 +4249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -4991,7 +4991,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Extension.AEM", "Name": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Result": "System.Boolean", "PartialResults": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult]", @@ -5382,7 +5382,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -5878,7 +5878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -6218,7 +6218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -6582,7 +6582,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -6696,7 +6696,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -6798,7 +6798,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -7974,7 +7974,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -8452,7 +8452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -9484,7 +9484,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -9925,7 +9925,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineCustomScriptExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -10519,7 +10519,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -10853,7 +10853,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -11175,7 +11175,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -11252,7 +11252,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -11387,7 +11387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -11546,7 +11546,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -12230,7 +12230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -12564,7 +12564,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -12886,7 +12886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -14314,7 +14314,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.VirtualMachineSqlServerExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.VirtualMachineSqlServerExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.VirtualMachineSqlServerExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -14602,7 +14602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoBackupSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "EnableEncryption": "System.Boolean", @@ -15760,7 +15760,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "MaintenanceWindowStartingHour": "System.Int32", @@ -16067,7 +16067,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "Credentials": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential]", @@ -16396,7 +16396,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -16718,7 +16718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -16848,7 +16848,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "MaintenanceWindowStartingHour": "System.Int32", @@ -16904,7 +16904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoBackupSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "EnableEncryption": "System.Boolean", @@ -16967,7 +16967,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "Credentials": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential]", @@ -17180,7 +17180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoPatchingSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "MaintenanceWindowStartingHour": "System.Int32", @@ -17242,7 +17242,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AutoBackupSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AutoBackupSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "EnableEncryption": "System.Boolean", @@ -17311,7 +17311,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.KeyVaultCredentialSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enable": "System.Boolean", "Credentials": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential]", @@ -17450,7 +17450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineAccessExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineAccessExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VirtualMachineAccessExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -17791,7 +17791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -18155,7 +18155,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -18693,7 +18693,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "Version": "System.String", @@ -18750,7 +18750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageDetail", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageDetail, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageDetail, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutomaticOSUpgradeProperties": "Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradeProperties", "OSDiskImage": "Microsoft.Azure.Management.Compute.Models.OSDiskImage", @@ -19392,7 +19392,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageOffer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageOffer, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageOffer, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "Offer": "System.String", @@ -19624,7 +19624,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImagePublisher", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImagePublisher, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImagePublisher, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "PublisherName": "System.String", @@ -19813,7 +19813,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineImageSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusCode": "System.Net.HttpStatusCode", "Skus": "System.String", @@ -20585,7 +20585,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSUsage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSUsage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSUsage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "Microsoft.Azure.Management.Compute.Models.UsageName", "StatusCode": "System.Net.HttpStatusCode", @@ -20775,7 +20775,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineSize", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineSize, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineSize, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MemoryInMB": "System.Int32", "NumberOfCores": "System.Int32", @@ -21249,7 +21249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -21303,7 +21303,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -22165,7 +22165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -22989,7 +22989,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -23043,7 +23043,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -24495,7 +24495,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -24549,7 +24549,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -25089,7 +25089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -25143,7 +25143,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -25953,7 +25953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -26040,7 +26040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -26203,7 +26203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -26394,7 +26394,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -26475,7 +26475,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -26555,7 +26555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -26969,7 +26969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -27388,7 +27388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28087,7 +28087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28174,7 +28174,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28358,7 +28358,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28545,7 +28545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28756,7 +28756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -28843,7 +28843,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -29024,7 +29024,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -29239,7 +29239,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -29326,7 +29326,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -29487,7 +29487,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -29676,7 +29676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -30926,7 +30926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ManagedDisk": "Microsoft.Azure.Management.Compute.Models.ManagedDiskParameters", "Vhd": "Microsoft.Azure.Management.Compute.Models.VirtualHardDisk", @@ -32275,7 +32275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -32362,7 +32362,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -32507,7 +32507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -32674,7 +32674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -32761,7 +32761,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -32907,7 +32907,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33075,7 +33075,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33162,7 +33162,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33307,7 +33307,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33474,7 +33474,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33561,7 +33561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33758,7 +33758,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -33966,7 +33966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -34126,7 +34126,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -34267,7 +34267,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -34354,7 +34354,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -34611,7 +34611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -34895,7 +34895,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -35181,7 +35181,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -35446,7 +35446,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -35533,7 +35533,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -35910,7 +35910,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -36262,7 +36262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -36662,7 +36662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -37014,7 +37014,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -37414,7 +37414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -37670,7 +37670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -37883,7 +37883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -37970,7 +37970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -38413,7 +38413,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -38849,7 +38849,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -39381,7 +39381,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -39817,7 +39817,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -40349,7 +40349,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -40770,7 +40770,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -40857,7 +40857,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41054,7 +41054,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41291,7 +41291,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41378,7 +41378,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41593,7 +41593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41825,7 +41825,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -41985,7 +41985,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -42126,7 +42126,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -42207,7 +42207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BootDiagnostics": "Microsoft.Azure.Management.Compute.Models.BootDiagnosticsInstanceView", "MaintenanceRedeployStatus": "Microsoft.Azure.Management.Compute.Models.MaintenanceRedeployStatus", @@ -42797,7 +42797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -42878,7 +42878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BootDiagnostics": "Microsoft.Azure.Management.Compute.Models.BootDiagnosticsInstanceView", "MaintenanceRedeployStatus": "Microsoft.Azure.Management.Compute.Models.MaintenanceRedeployStatus", @@ -43041,7 +43041,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43353,7 +43353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43789,7 +43789,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -43841,7 +43841,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -43964,7 +43964,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -44738,7 +44738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -46583,7 +46583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSComputeLongRunningOperation, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -46637,7 +46637,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -47273,7 +47273,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -47367,7 +47367,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -47716,7 +47716,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -48142,7 +48142,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -48518,7 +48518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -48870,7 +48870,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -49227,7 +49227,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VhdUploadContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VhdUploadContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VhdUploadContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocalFilePath": "System.IO.FileInfo", "DestinationUri": "System.Uri" @@ -49887,7 +49887,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.VhdDownloadContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VhdDownloadContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.VhdDownloadContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LocalFilePath": "System.IO.FileInfo", "Source": "System.Uri" @@ -50693,7 +50693,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Extension.DSC", "Name": "Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.DSC.VirtualMachineDscExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -51026,7 +51026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BootDiagnostics": "Microsoft.Azure.Management.Compute.Models.BootDiagnosticsInstanceView", "MaintenanceRedeployStatus": "Microsoft.Azure.Management.Compute.Models.MaintenanceRedeployStatus", @@ -52173,7 +52173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -52487,7 +52487,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -53791,7 +53791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -53868,7 +53868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -54096,7 +54096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -54378,7 +54378,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -55084,7 +55084,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -55778,7 +55778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -57948,7 +57948,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -58224,7 +58224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -58770,7 +58770,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption", "Name": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureDiskEncryptionExtensionContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureDiskEncryptionExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureDiskEncryptionExtensionContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubStatuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", "Statuses": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.InstanceViewStatus]", @@ -59161,7 +59161,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -59525,7 +59525,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -61589,7 +61589,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSAzureOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsSuccessStatusCode": "System.Boolean", "StatusCode": "System.Net.HttpStatusCode", @@ -61911,7 +61911,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -62384,7 +62384,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVmssDiskEncryptionStatusContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVmssDiskEncryptionStatusContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVmssDiskEncryptionStatusContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EncryptionSettings": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVmssDiskEncryptionExtensionPublicSettings", "EncryptionEnabled": "System.Boolean", @@ -62664,7 +62664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVmssVMDiskEncryptionStatusContext", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVmssVMDiskEncryptionStatusContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVmssVMDiskEncryptionStatusContext, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OsVolumeEncrypted": "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus", "DataVolumesEncrypted": "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus", @@ -62986,7 +62986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineScaleSetExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoUpgradeMinorVersion": "System.Nullable`1[System.Boolean]", "Settings": "System.Object", @@ -63756,7 +63756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.PrivateEndpointConnection]", @@ -64124,7 +64124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.PrivateEndpointConnection]", @@ -64450,7 +64450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -64565,7 +64565,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.PrivateEndpointConnection]", @@ -64893,7 +64893,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskAccess, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.PrivateEndpointConnection]", @@ -65101,7 +65101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -65168,7 +65168,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -65345,7 +65345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -65564,7 +65564,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66313,7 +66313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66380,7 +66380,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66503,7 +66503,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66643,7 +66643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66766,7 +66766,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -66869,7 +66869,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -67040,7 +67040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -67255,7 +67255,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -67358,7 +67358,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -67529,7 +67529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -67744,7 +67744,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -68151,7 +68151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSContainerService, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceCustomProfile", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.ContainerServiceDiagnosticsProfile", @@ -68436,7 +68436,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -69117,7 +69117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -69232,7 +69232,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -69563,7 +69563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -69774,7 +69774,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -70187,7 +70187,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView", "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", @@ -71235,7 +71235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -71368,7 +71368,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView", "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", @@ -71727,7 +71727,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView", "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", @@ -71942,7 +71942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHost, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceView": "Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView", "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", @@ -72449,7 +72449,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -72854,7 +72854,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -72957,7 +72957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -73128,7 +73128,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -73339,7 +73339,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -73472,7 +73472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -73943,7 +73943,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -74110,7 +74110,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -74395,7 +74395,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -74516,7 +74516,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -75045,7 +75045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskEncryptionSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Compute.Models.EncryptionSetIdentity", "ActiveKey": "Microsoft.Azure.Management.Compute.Models.KeyVaultAndKeyReference", @@ -75400,7 +75400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -77192,7 +77192,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -78302,7 +78302,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -78384,7 +78384,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -78540,7 +78540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -78726,7 +78726,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -78808,7 +78808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -78964,7 +78964,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -79150,7 +79150,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -79232,7 +79232,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -79388,7 +79388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -79574,7 +79574,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -79640,7 +79640,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -79780,7 +79780,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -79950,7 +79950,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -80016,7 +80016,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -80156,7 +80156,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -80326,7 +80326,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -80446,7 +80446,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -80634,7 +80634,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -80864,7 +80864,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -81275,7 +81275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -81579,7 +81579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessSAS": "System.String" }, @@ -82004,7 +82004,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -82349,7 +82349,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -82469,7 +82469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -82534,7 +82534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -82722,7 +82722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -82911,7 +82911,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Sku": "Microsoft.Azure.Management.Compute.Models.DiskSku", @@ -83338,7 +83338,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -84594,7 +84594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -84750,7 +84750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -85458,7 +85458,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -85908,7 +85908,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -86077,7 +86077,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -86595,7 +86595,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -86761,7 +86761,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImageVersion, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PublishingProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionPublishingProfile", "StorageProfile": "Microsoft.Azure.Management.Compute.Models.GalleryImageVersionStorageProfile", @@ -87305,7 +87305,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -89602,7 +89602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -89749,7 +89749,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -91036,7 +91036,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -91927,7 +91927,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -92078,7 +92078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -92581,7 +92581,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -92756,7 +92756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGalleryImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Disallowed": "Microsoft.Azure.Management.Compute.Models.Disallowed", "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier", @@ -93177,7 +93177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -93724,7 +93724,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -93843,7 +93843,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -94304,7 +94304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -94609,7 +94609,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -94742,7 +94742,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -95211,7 +95211,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -95376,7 +95376,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSGallery, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identifier": "Microsoft.Azure.Management.Compute.Models.GalleryIdentifier", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -95745,7 +95745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -95807,7 +95807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -96053,7 +96053,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -96365,7 +96365,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -96989,7 +96989,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97051,7 +97051,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97171,7 +97171,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97308,7 +97308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97426,7 +97426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97488,7 +97488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -97756,7 +97756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -98096,7 +98096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -98196,7 +98196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -98364,7 +98364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -98574,7 +98574,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -98728,7 +98728,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -99178,7 +99178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -99344,7 +99344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -99755,7 +99755,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSImage, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StorageProfile": "Microsoft.Azure.Management.Compute.Models.ImageStorageProfile", "SourceVirtualMachine": "Microsoft.Azure.Management.Compute.Models.SubResource", @@ -100081,7 +100081,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Properties": "Microsoft.Azure.Management.Compute.Models.LogAnalyticsOutput", @@ -100911,7 +100911,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSLogAnalyticsOperationResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Properties": "Microsoft.Azure.Management.Compute.Models.LogAnalyticsOutput", @@ -101529,7 +101529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ColocationStatus": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -101942,7 +101942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -102075,7 +102075,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ColocationStatus": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -102546,7 +102546,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ColocationStatus": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -102713,7 +102713,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ColocationStatus": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -103174,7 +103174,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSResourceSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSResourceSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSResourceSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capacity": "Microsoft.Azure.Management.Compute.Models.ResourceSkuCapacity", "Capabilities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.ResourceSkuCapabilities]", @@ -103375,7 +103375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -104672,7 +104672,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -105426,7 +105426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -105499,7 +105499,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -105646,7 +105646,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -105823,7 +105823,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -105896,7 +105896,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -106043,7 +106043,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -106220,7 +106220,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -106293,7 +106293,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -106440,7 +106440,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -106617,7 +106617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -106675,7 +106675,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -106807,7 +106807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -106969,7 +106969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -107027,7 +107027,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -107159,7 +107159,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -107321,7 +107321,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -107432,7 +107432,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -107611,7 +107611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -107832,7 +107832,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -108243,7 +108243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -108538,7 +108538,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessSAS": "System.String" }, @@ -108963,7 +108963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -109308,7 +109308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -109419,7 +109419,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -109476,7 +109476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -109655,7 +109655,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotUpdate, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", "EncryptionSettingsCollection": "Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection", @@ -109836,7 +109836,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationData": "Microsoft.Azure.Management.Compute.Models.CreationData", "Encryption": "Microsoft.Azure.Management.Compute.Models.Encryption", @@ -110057,7 +110057,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandDocument", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandDocument, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandDocument, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OsType": "Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes", "Parameters": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.RunCommandParameterDefinition]", @@ -110334,7 +110334,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -110745,7 +110745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRollingUpgradeStatusInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRollingUpgradeStatusInfo, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRollingUpgradeStatusInfo, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Policy": "Microsoft.Azure.Management.Compute.Models.RollingUpgradePolicy", @@ -111028,7 +111028,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -111373,7 +111373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -111875,7 +111875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -113114,7 +113114,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Item": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", @@ -113304,7 +113304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -113956,7 +113956,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -114186,7 +114186,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -114320,7 +114320,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", "GenericTypeArguments": [], @@ -114392,7 +114392,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -114600,7 +114600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", "GenericTypeArguments": [], @@ -114740,7 +114740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", "GenericTypeArguments": [], @@ -114904,7 +114904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", "GenericTypeArguments": [], @@ -115044,7 +115044,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -115127,7 +115127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", "GenericTypeArguments": [], @@ -115274,7 +115274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -115351,7 +115351,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -115544,7 +115544,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -115779,7 +115779,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -115856,7 +115856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -116153,7 +116153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -116528,7 +116528,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -116605,7 +116605,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -116884,7 +116884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -117235,7 +117235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -117312,7 +117312,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -117575,7 +117575,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -117904,7 +117904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -117981,7 +117981,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118132,7 +118132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118313,7 +118313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118390,7 +118390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118541,7 +118541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118722,7 +118722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118799,7 +118799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -118952,7 +118952,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -119135,7 +119135,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -119531,7 +119531,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension", "GenericTypeArguments": [], @@ -120588,7 +120588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension", "GenericTypeArguments": [], @@ -121824,7 +121824,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension[], Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension", "GenericTypeArguments": [], @@ -123929,7 +123929,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124006,7 +124006,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124159,7 +124159,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124309,7 +124309,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124461,7 +124461,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124594,7 +124594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124671,7 +124671,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124822,7 +124822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -124972,7 +124972,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125122,7 +125122,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125255,7 +125255,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125332,7 +125332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125483,7 +125483,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125633,7 +125633,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125783,7 +125783,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125916,7 +125916,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -125993,7 +125993,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -126146,7 +126146,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -126329,7 +126329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -126406,7 +126406,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -126743,7 +126743,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -127170,7 +127170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -127247,7 +127247,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -127434,7 +127434,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -127663,7 +127663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -127740,7 +127740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -128149,7 +128149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -128672,7 +128672,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -128787,7 +128787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -129676,7 +129676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -130929,7 +130929,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -131632,7 +131632,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -132085,7 +132085,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRecoveryWalkResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRecoveryWalkResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRecoveryWalkResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WalkPerformed": "System.Nullable`1[System.Boolean]", "NextPlatformUpdateDomain": "System.Nullable`1[System.Int32]" @@ -132213,7 +132213,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -132696,7 +132696,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -132879,7 +132879,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -133410,7 +133410,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetSku, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", "Capacity": "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetSkuCapacity", @@ -133687,7 +133687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -134784,7 +134784,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -135171,7 +135171,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -135320,7 +135320,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -135875,7 +135875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -136080,7 +136080,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -136467,7 +136467,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -136854,7 +136854,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -136969,7 +136969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -138170,7 +138170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -139670,7 +139670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -141081,7 +141081,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachinePatchAssessmentResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachinePatchAssessmentResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachinePatchAssessmentResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Patches": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.VirtualMachineSoftwarePatchProperties]", @@ -141197,7 +141197,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -141548,7 +141548,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -141784,7 +141784,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -142129,7 +142129,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "StartTime": "System.Nullable`1[System.DateTime]", @@ -142516,7 +142516,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSRunCommandResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", "Item": "Microsoft.Azure.Management.Compute.Models.InstanceViewStatus", @@ -142690,7 +142690,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -143327,7 +143327,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayHint": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", @@ -143564,7 +143564,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -143642,7 +143642,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -143987,7 +143987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -144398,7 +144398,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -144476,7 +144476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -144610,7 +144610,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVM, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", "DiagnosticsProfile": "Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile", @@ -144753,6 +144753,687 @@ } ], "AliasList": [] + }, + { + "VerbName": "Start", + "NounName": "AzVmssRollingExtensionUpgrade", + "Name": "Start-AzVmssRollingExtensionUpgrade", + "ClassName": "Microsoft.Azure.Commands.Compute.Automation.VirtualMachineScaleSetRollingExtensionStartUpgrade", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "DefaultParameter", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", + "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSOperationStatusResponse, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Error": "Microsoft.Azure.Management.Compute.Models.ApiError", + "StartTime": "System.Nullable`1[System.DateTime]", + "EndTime": "System.Nullable`1[System.DateTime]", + "Name": "System.String", + "Status": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "VMScaleSetName", + "AliasList": [ + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "VirtualMachineScaleSet", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", + "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", + "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", + "AutomaticRepairsPolicy": "Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy", + "Plan": "Microsoft.Azure.Management.Compute.Models.Plan", + "ScaleInPolicy": "Microsoft.Azure.Management.Compute.Models.ScaleInPolicy", + "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", + "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", + "HostGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", + "UpgradePolicy": "Microsoft.Azure.Management.Compute.Models.UpgradePolicy", + "Identity": "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity", + "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Zones": "System.Collections.Generic.IList`1[System.String]", + "SinglePlacementGroup": "System.Nullable`1[System.Boolean]", + "ZoneBalance": "System.Nullable`1[System.Boolean]", + "DoNotRunExtensionsOnOverprovisionedVMs": "System.Nullable`1[System.Boolean]", + "Overprovision": "System.Nullable`1[System.Boolean]", + "PlatformFaultDomainCount": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "Id": "System.String", + "UniqueId": "System.String", + "ProvisioningState": "System.String", + "Name": "System.String", + "FullyQualifiedDomainName": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "DefaultParameter", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "VMScaleSetName", + "AliasList": [ + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VirtualMachineScaleSet", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", + "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "VirtualMachineProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", + "AdditionalCapabilities": "Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities", + "AutomaticRepairsPolicy": "Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy", + "Plan": "Microsoft.Azure.Management.Compute.Models.Plan", + "ScaleInPolicy": "Microsoft.Azure.Management.Compute.Models.ScaleInPolicy", + "Sku": "Microsoft.Azure.Management.Compute.Models.Sku", + "ProximityPlacementGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", + "HostGroup": "Microsoft.Azure.Management.Compute.Models.SubResource", + "UpgradePolicy": "Microsoft.Azure.Management.Compute.Models.UpgradePolicy", + "Identity": "Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity", + "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Zones": "System.Collections.Generic.IList`1[System.String]", + "SinglePlacementGroup": "System.Nullable`1[System.Boolean]", + "ZoneBalance": "System.Nullable`1[System.Boolean]", + "DoNotRunExtensionsOnOverprovisionedVMs": "System.Nullable`1[System.Boolean]", + "Overprovision": "System.Nullable`1[System.Boolean]", + "PlatformFaultDomainCount": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "Id": "System.String", + "UniqueId": "System.String", + "ProvisioningState": "System.String", + "Name": "System.String", + "FullyQualifiedDomainName": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] } ], "TypeDictionary": { @@ -145437,7 +146118,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -145449,7 +146130,7 @@ "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult": { "Namespace": "Microsoft.Azure.Commands.Compute.Extension.AEM", "Name": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Result": "System.Boolean", "PartialResults": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.Extension.AEM.AEMTestResult]", @@ -145527,7 +146208,7 @@ "Microsoft.Azure.Commands.Compute.Models.DisplayHintType": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.DisplayHintType, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -150008,7 +150689,7 @@ "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetVMProfile, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExtensionProfile": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtensionProfile", "BillingProfile": "Microsoft.Azure.Management.Compute.Models.BillingProfile", @@ -150062,7 +150743,7 @@ "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtensionProfile": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtensionProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtensionProfile, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Extensions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension]" }, @@ -150106,7 +150787,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -150118,7 +150799,7 @@ "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProvisionAfterExtensions": "System.Collections.Generic.IList`1[System.String]", "AutoUpgradeMinorVersion": "System.Nullable`1[System.Boolean]", @@ -151962,7 +152643,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -151974,7 +152655,7 @@ "Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential": { "Namespace": "Microsoft.Azure.Commands.Compute", "Name": "Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.AzureVMSqlServerKeyVaultCredential, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CredentialName": "System.String", "KeyVaultName": "System.String" @@ -152605,7 +153286,7 @@ "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVmssDiskEncryptionExtensionPublicSettings": { "Namespace": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption", "Name": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVmssDiskEncryptionExtensionPublicSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVmssDiskEncryptionExtensionPublicSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption.AzureVmssDiskEncryptionExtensionPublicSettings, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "KeyVaultURL": "System.String", "KeyEncryptionKeyURL": "System.String", @@ -152726,7 +153407,7 @@ "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.EncryptionStatus, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -153865,7 +154546,7 @@ "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView": { "Namespace": "Microsoft.Azure.Commands.Compute.Automation.Models", "Name": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Automation.Models.PSHostGroupInstanceView, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Hosts": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceViewWithName]" }, @@ -158145,7 +158826,7 @@ "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk": { "Namespace": "Microsoft.Azure.Commands.Compute.Models", "Name": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Compute, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ManagedDisk": "Microsoft.Azure.Management.Compute.Models.ManagedDiskParameters", "Vhd": "Microsoft.Azure.Management.Compute.Models.VirtualHardDisk", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.dll.json index 7826da50ccd2..c36692f8acec 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.dll.json @@ -361,7 +361,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -931,7 +931,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Username": "System.String", "Password": "System.String", @@ -1031,7 +1031,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1257,7 +1257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1499,7 +1499,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "StatusTimestamp": "System.Nullable`1[System.DateTime]", @@ -1624,7 +1624,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1902,7 +1902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2117,7 +2117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2359,7 +2359,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2485,7 +2485,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2805,7 +2805,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3068,7 +3068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3382,7 +3382,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhookEvent", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhookEvent, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhookEvent, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EventRequestMessage": "Microsoft.Azure.Commands.ContainerRegistry.PSEventRequestMessage", "EventResponseMessage": "Microsoft.Azure.Management.ContainerRegistry.Models.EventResponseMessage", @@ -3498,7 +3498,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3741,7 +3741,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3978,7 +3978,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4422,7 +4422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "StatusTimestamp": "System.Nullable`1[System.DateTime]", @@ -4526,7 +4526,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4890,7 +4890,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5369,7 +5369,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5538,7 +5538,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -6339,7 +6339,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7026,7 +7026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7294,7 +7294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7688,7 +7688,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "StatusTimestamp": "System.Nullable`1[System.DateTime]", @@ -7977,7 +7977,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "StatusTimestamp": "System.Nullable`1[System.DateTime]", @@ -8363,7 +8363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -8651,7 +8651,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9173,7 +9173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryEventInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryEventInfo, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryEventInfo, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String" }, @@ -9290,7 +9290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9536,7 +9536,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9773,7 +9773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9963,7 +9963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -10256,7 +10256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -10572,7 +10572,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -10888,7 +10888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -11178,7 +11178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -11468,7 +11468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -11706,7 +11706,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -11970,7 +11970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -12165,7 +12165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Username": "System.String", "Password": "System.String", @@ -12265,7 +12265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12709,7 +12709,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "NetworkRuleSet": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -13287,7 +13287,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -13456,7 +13456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14153,7 +14153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Config": "Microsoft.Azure.Management.ContainerRegistry.Models.CallbackConfig", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14670,7 +14670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSRegistryUsage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSRegistryUsage, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSRegistryUsage, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Limit": "System.Nullable`1[System.Int64]", "CurrentValue": "System.Nullable`1[System.Int64]", @@ -14766,8 +14766,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "RegistryName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "RegistryName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -14843,12 +14845,14 @@ "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "RegistryName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "RegistryName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -14867,7 +14871,7 @@ "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -16322,7 +16326,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "System.String", "NetworkRuleType": "System.String" @@ -16786,7 +16790,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -16914,7 +16918,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", "GenericTypeArguments": [], @@ -16932,7 +16936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -17104,7 +17108,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", "GenericTypeArguments": [], @@ -17199,7 +17203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -17311,7 +17315,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", "GenericTypeArguments": [], @@ -17379,7 +17383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", "GenericTypeArguments": [], @@ -17776,7 +17780,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", "VirtualNetworkRules": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", @@ -17874,7 +17878,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -17886,7 +17890,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSIPRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "System.String", "NetworkRuleType": "System.String", @@ -18035,7 +18039,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18047,7 +18051,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "System.String", "NetworkRuleType": "System.String", @@ -18470,7 +18474,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.PSEventRequestMessage": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSEventRequestMessage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSEventRequestMessage, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSEventRequestMessage, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.ContainerRegistry.PSEventContent", "Headers": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18523,7 +18527,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.PSEventContent": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSEventContent", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSEventContent, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSEventContent, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Request": "Microsoft.Azure.Commands.ContainerRegistry.PSRequest", "Source": "Microsoft.Azure.Commands.ContainerRegistry.PSSource", @@ -18578,7 +18582,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.PSRequest": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSRequest, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Addr": "System.String", @@ -18631,7 +18635,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.PSSource": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSSource, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSSource, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Addr": "System.String", "InstanceID": "System.String" @@ -18681,7 +18685,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.PSTarget": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry", "Name": "Microsoft.Azure.Commands.ContainerRegistry.PSTarget", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSTarget, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.PSTarget, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Size": "System.Nullable`1[System.Int64]", "Length": "System.Nullable`1[System.Int64]", @@ -18820,7 +18824,7 @@ "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule": { "Namespace": "Microsoft.Azure.Commands.ContainerRegistry.Models", "Name": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ContainerRegistry.Models.IPSNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "System.String", "NetworkRuleType": "System.String" diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactories.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactories.dll.json index a8ee6e0e08fc..009da0c3dbd9 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactories.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactories.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSActivityWindow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSActivityWindow, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSActivityWindow, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OutputDatasets": "System.Collections.Generic.IList`1[System.String]", "InputDatasets": "System.Collections.Generic.IList`1[System.String]", @@ -103,7 +103,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -472,7 +472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1627,7 +1627,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -1938,7 +1938,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2486,7 +2486,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2747,7 +2747,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -2964,7 +2964,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Availability": "Microsoft.Azure.Management.DataFactories.Common.Models.Availability", "Policy": "Microsoft.Azure.Management.DataFactories.Common.Models.Policy", @@ -3035,7 +3035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3196,7 +3196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3529,7 +3529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Availability": "Microsoft.Azure.Management.DataFactories.Common.Models.Availability", "Policy": "Microsoft.Azure.Management.DataFactories.Common.Models.Policy", @@ -3600,7 +3600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -3797,7 +3797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4311,7 +4311,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4568,7 +4568,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4885,7 +4885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSliceRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSliceRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSliceRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "DataSliceEnd": "System.DateTime", @@ -4964,7 +4964,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5143,7 +5143,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5548,7 +5548,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSlice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSlice, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataSlice, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Start": "System.DateTime", "End": "System.DateTime", @@ -5638,7 +5638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5933,7 +5933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -6294,7 +6294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSRunLogInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSRunLogInfo, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSRunLogInfo, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SasUri": "System.String", "StorageAccountName": "System.String", @@ -6361,7 +6361,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -6558,7 +6558,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7117,7 +7117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7469,7 +7469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -7963,7 +7963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -8265,7 +8265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -8940,7 +8940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Key1": "System.String", "Key2": "System.String" @@ -9005,7 +9005,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9168,7 +9168,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9501,7 +9501,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "RegisterTime": "System.Nullable`1[System.DateTime]", @@ -9579,7 +9579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -9740,7 +9740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -10073,7 +10073,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayAuthKey, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Key1": "System.String", "Key2": "System.String" @@ -10138,7 +10138,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -10322,7 +10322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -10736,7 +10736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "RegisterTime": "System.Nullable`1[System.DateTime]", @@ -10814,7 +10814,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -10993,7 +10993,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -11417,7 +11417,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -11596,7 +11596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12001,7 +12001,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "RegisterTime": "System.Nullable`1[System.DateTime]", @@ -12079,7 +12079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12258,7 +12258,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12663,7 +12663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSHub, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSHub, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.HubBaseProperties", "HubName": "System.String", @@ -12748,7 +12748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12959,7 +12959,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -13224,7 +13224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSHub, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSHub, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.HubBaseProperties", "HubName": "System.String", @@ -13345,7 +13345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -13604,7 +13604,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14022,7 +14022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14259,7 +14259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14576,7 +14576,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.LinkedServiceProperties", "LinkedServiceName": "System.String", @@ -14643,7 +14643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -14804,7 +14804,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -15137,7 +15137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.LinkedServiceProperties", "LinkedServiceName": "System.String", @@ -15204,7 +15204,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -15401,7 +15401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -15915,7 +15915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -16172,7 +16172,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -16489,7 +16489,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.PipelineProperties", "PipelineName": "System.String", @@ -16574,7 +16574,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -16785,7 +16785,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -17050,7 +17050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.PipelineProperties", "PipelineName": "System.String", @@ -17135,7 +17135,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -17430,7 +17430,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -17848,7 +17848,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18085,7 +18085,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18441,7 +18441,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18654,7 +18654,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -18962,7 +18962,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -19343,7 +19343,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -19843,7 +19843,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -20056,7 +20056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactories.Models", "Name": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactories.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactories, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactories.Models.DataFactoryProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll.json index e54106595095..56e62af8c061 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -372,7 +372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -639,7 +639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -954,7 +954,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -1088,7 +1088,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -3133,7 +3133,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -3356,7 +3356,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -3747,7 +3747,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -4218,7 +4218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -4331,7 +4331,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -4598,7 +4598,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -5021,7 +5021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -5386,7 +5386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -5751,7 +5751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CoreCount": "System.Nullable`1[System.Int32]", "TimeToLiveInMinutes": "System.Nullable`1[System.Int32]", @@ -5839,7 +5839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -6056,7 +6056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -6323,7 +6323,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionCommandResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionCommandResult, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSessionCommandResult, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Data": "System.String", "Status": "System.String" @@ -6535,7 +6535,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -7096,7 +7096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -7559,7 +7559,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSession, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlowDebugSession, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SessionId": "System.String", "Status": "System.String" @@ -7679,7 +7679,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -7996,7 +7996,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -8443,7 +8443,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -8780,7 +8780,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -9191,7 +9191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.DataFlow", "Name": "System.String", @@ -9307,7 +9307,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -9600,7 +9600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -9897,7 +9897,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.DataFlow", "Name": "System.String", @@ -10269,7 +10269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.DataFlow", "Name": "System.String", @@ -10659,7 +10659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.DataFlow", "Name": "System.String", @@ -11251,7 +11251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Dataset", "Structure": "System.Object", @@ -11366,7 +11366,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -11659,7 +11659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -11941,7 +11941,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Dataset", "Structure": "System.Object", @@ -12270,7 +12270,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Dataset", "Structure": "System.Object", @@ -12587,7 +12587,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Dataset", "Structure": "System.Object", @@ -13178,7 +13178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -13245,7 +13245,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExpressCustomSetup": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.CustomSetupBase]", "DataFlowTimeToLive": "System.Nullable`1[System.Int32]", @@ -13334,7 +13334,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -13401,7 +13401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizationType": "System.String", "Name": "System.String", @@ -13567,7 +13567,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -13980,7 +13980,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -14131,7 +14131,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthKey1": "System.String", "AuthKey2": "System.String" @@ -14270,7 +14270,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -14567,7 +14567,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -14738,7 +14738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeMetrics", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeMetrics, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeMetrics, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.IntegrationRuntimeNodeMonitoringData]", "IntegrationRuntimeName": "System.String", @@ -14888,7 +14888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -15185,7 +15185,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -15356,7 +15356,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeNode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.ManagedIntegrationRuntimeError]", "ResourceGroupName": "System.String", @@ -15432,7 +15432,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "IsActiveDispatcher": "System.Nullable`1[System.Boolean]", @@ -15641,7 +15641,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -16124,7 +16124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -16394,7 +16394,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -16691,7 +16691,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -16862,7 +16862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthKey1": "System.String", "AuthKey2": "System.String" @@ -17040,7 +17040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -17534,7 +17534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -17843,7 +17843,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -18328,7 +18328,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -18632,7 +18632,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -19115,7 +19115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -19290,7 +19290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -19417,7 +19417,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -21779,7 +21779,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -22494,7 +22494,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -22839,7 +22839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSManagedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastOperation": "Microsoft.Azure.Management.DataFactory.Models.ManagedIntegrationRuntimeOperationResult", "ExpressCustomSetup": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.CustomSetupBase]", @@ -23034,7 +23034,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -23447,7 +23447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -23711,7 +23711,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -24124,7 +24124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -24386,7 +24386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -24797,7 +24797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -24948,7 +24948,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Links": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.LinkedIntegrationRuntime]", @@ -25161,7 +25161,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -25661,7 +25661,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -25841,7 +25841,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "IsActiveDispatcher": "System.Nullable`1[System.Boolean]", @@ -26050,7 +26050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -26533,7 +26533,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -26708,7 +26708,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.LinkedService", "Name": "System.String", @@ -26822,7 +26822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -27115,7 +27115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -27433,7 +27433,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -27798,7 +27798,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -28060,7 +28060,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.LinkedService", "Name": "System.String", @@ -28388,7 +28388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.LinkedService", "Name": "System.String", @@ -28704,7 +28704,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.LinkedService", "Name": "System.String", @@ -29294,7 +29294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -29409,7 +29409,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -29702,7 +29702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -29984,7 +29984,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -30313,7 +30313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -30630,7 +30630,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -31221,7 +31221,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSActivityRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "ActivityRunStart": "System.Nullable`1[System.DateTime]", @@ -31397,7 +31397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -31666,7 +31666,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -32053,7 +32053,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Management.DataFactory.Models.PipelineRunInvokedBy", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -32137,7 +32137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -32358,7 +32358,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -32506,7 +32506,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -33033,7 +33033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "TriggeredPipelines": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -33170,7 +33170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -33393,7 +33393,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -33734,7 +33734,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -33811,7 +33811,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -34088,7 +34088,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -34334,7 +34334,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -35103,7 +35103,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Management.DataFactory.Models.ParameterSpecification]", "Activities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.DataFactory.Models.Activity]", @@ -35180,7 +35180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "TriggeredPipelines": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -35314,7 +35314,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -35463,7 +35463,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "TriggeredPipelines": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -35829,7 +35829,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -36075,7 +36075,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Management.DataFactory.Models.PipelineRunInvokedBy", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36194,7 +36194,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -36343,7 +36343,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Management.DataFactory.Models.PipelineRunInvokedBy", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36664,7 +36664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -36906,7 +36906,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "TriggeredPipelines": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -37040,7 +37040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -37189,7 +37189,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "TriggeredPipelines": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -37555,7 +37555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -37778,7 +37778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerName": "System.String", "Status": "System.String" @@ -37862,7 +37862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -38149,7 +38149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -38394,7 +38394,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -38509,7 +38509,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -38802,7 +38802,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.DataFactory.Models.FactoryIdentity", "RepoConfiguration": "Microsoft.Azure.Management.DataFactory.Models.FactoryRepoConfiguration", @@ -39045,7 +39045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerSubscriptionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerName": "System.String", "Status": "System.String" @@ -39129,7 +39129,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -39416,7 +39416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -39700,7 +39700,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -40029,7 +40029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -40385,7 +40385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -40756,7 +40756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -41145,7 +41145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -41736,7 +41736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -41833,7 +41833,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -42162,7 +42162,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -42479,7 +42479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -42576,7 +42576,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", @@ -42905,7 +42905,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.DataFactoryV2.Models", "Name": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.DataFactoryV2.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2, Version=1.11.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.DataFactory.Models.Trigger", "Name": "System.String", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.dll.json index 866beacf9757..07a2efe962ea 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.dll.json @@ -6,7 +6,7 @@ "Name": "Get-AzHealthcareApisService", "ClassName": "Microsoft.Azure.Commands.HealthcareApis.Commands.GetAzureRmHealthcareApisService", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ListParameterSet", "OutputTypes": [ @@ -14,30 +14,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -481,30 +484,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -660,7 +666,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -780,6 +786,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "CosmosKeyVaultKeyUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "CosmosOfferThroughput", "AliasList": [], @@ -824,7 +848,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -842,7 +866,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -898,7 +922,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -910,6 +934,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "PublicNetworkAccess", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -1075,7 +1120,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1236,6 +1281,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "CosmosKeyVaultKeyUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "CosmosOfferThroughput", @@ -1293,7 +1362,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1317,7 +1386,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1391,7 +1460,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1408,6 +1477,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PublicNetworkAccess", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -1524,30 +1620,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -1630,7 +1729,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1648,7 +1747,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1756,7 +1855,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1780,7 +1879,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1848,30 +1947,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -1942,7 +2044,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1966,7 +2068,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2058,7 +2160,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2082,7 +2184,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2150,7 +2252,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2174,7 +2276,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2249,30 +2351,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -2388,6 +2493,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "CosmosKeyVaultKeyUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Authority", "AliasList": [], @@ -2430,7 +2553,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2448,7 +2571,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2540,7 +2663,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2558,7 +2681,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2612,7 +2735,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2630,7 +2753,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2668,30 +2791,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -2774,7 +2900,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2786,6 +2912,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "PublicNetworkAccess", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -2898,6 +3045,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "CosmosKeyVaultKeyUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Authority", @@ -2953,7 +3124,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2977,7 +3148,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3099,7 +3270,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3123,7 +3294,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3195,7 +3366,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3219,7 +3390,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3262,6 +3433,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PublicNetworkAccess", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -3269,7 +3467,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3358,7 +3556,7 @@ }, { "ParameterMetadata": { - "Name": "Authority", + "Name": "CosmosKeyVaultKeyUri", "AliasList": [], "Type": { "Namespace": "System", @@ -3382,7 +3580,7 @@ }, { "ParameterMetadata": { - "Name": "Audience", + "Name": "Authority", "AliasList": [], "Type": { "Namespace": "System", @@ -3406,12 +3604,12 @@ }, { "ParameterMetadata": { - "Name": "EnableSmartProxy", + "Name": "Audience", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3430,12 +3628,36 @@ }, { "ParameterMetadata": { - "Name": "DisableSmartProxy", + "Name": "EnableSmartProxy", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DisableSmartProxy", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3557,7 +3779,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3581,7 +3803,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3653,7 +3875,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3677,7 +3899,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3744,6 +3966,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "PublicNetworkAccess", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -3751,7 +4000,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3819,30 +4068,33 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -3913,7 +4165,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3981,7 +4233,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4200,7 +4452,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -4212,7 +4464,7 @@ "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.String" }, @@ -4268,6 +4520,230 @@ "Methods": [], "Constructors": [] }, + "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection, Microsoft.Azure.Management.HealthcareApis, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection" + ], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection": { + "Namespace": "Microsoft.Azure.Management.HealthcareApis.Models", + "Name": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection", + "AssemblyQualifiedName": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection, Microsoft.Azure.Management.HealthcareApis, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "PrivateEndpoint": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpoint", + "PrivateLinkServiceConnectionState": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateLinkServiceConnectionState", + "ProvisioningState": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "privateLinkServiceConnectionState", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "type", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "privateEndpoint", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provisioningState", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpoint": { + "Namespace": "Microsoft.Azure.Management.HealthcareApis.Models", + "Name": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpoint", + "AssemblyQualifiedName": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpoint, Microsoft.Azure.Management.HealthcareApis, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "Microsoft.Azure.Management.HealthcareApis.Models.PrivateLinkServiceConnectionState": { + "Namespace": "Microsoft.Azure.Management.HealthcareApis.Models", + "Name": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateLinkServiceConnectionState", + "AssemblyQualifiedName": "Microsoft.Azure.Management.HealthcareApis.Models.PrivateLinkServiceConnectionState, Microsoft.Azure.Management.HealthcareApis, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Status": "System.String", + "Description": "System.String", + "ActionsRequired": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "status", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "description", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "actionsRequired", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "System.Void": { + "Namespace": "System", + "Name": "System.Void", + "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "System.Collections.Generic.IList`1[System.String]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[System.String]", @@ -4307,30 +4783,33 @@ "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService": { "Namespace": "Microsoft.Azure.Commands.HealthcareApis.Models", "Name": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisService, Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "AccessPolicies": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisFhirServiceAccessPolicyEntry]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.HealthcareApis.Models.PrivateEndpointConnection]", "CorsHeaders": "System.Collections.Generic.IList`1[System.String]", "CorsMethods": "System.Collections.Generic.IList`1[System.String]", "CorsOrigins": "System.Collections.Generic.IList`1[System.String]", - "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsAllowCredentials": "System.Nullable`1[System.Boolean]", + "SmartProxyEnabled": "System.Nullable`1[System.Boolean]", "CorsMaxAge": "System.Nullable`1[System.Int32]", "CosmosDbOfferThroughput": "System.Nullable`1[System.Int32]", + "IdentityTenantId": "System.String", + "IdentityPrincipalId": "System.String", "IdentityType": "System.String", "ResourceType": "System.String", + "Audience": "System.String", "ResourceGroupName": "System.String", - "Name": "System.String", - "Etag": "System.String", "Kind": "System.String", - "Id": "System.String", - "IdentityPrincipalId": "System.String", - "ExportStorageAccountName": "System.String", - "Authority": "System.String", - "Audience": "System.String", "Location": "System.String", - "IdentityTenantId": "System.String" + "Authority": "System.String", + "PublicNetworkAccess": "System.String", + "Etag": "System.String", + "ExportStorageAccountName": "System.String", + "CosmosDbKeyVaultKeyUri": "System.String", + "Name": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -4423,6 +4902,8 @@ "Properties": { "OnPremise": "System.Boolean", "VersionProfiles": "System.Collections.Generic.IList`1[System.String]", + "Name": "System.String", + "AdTenant": "System.String", "AzureDataLakeStoreFileSystemEndpointSuffix": "System.String", "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "System.String", "BatchEndpointResourceId": "System.String", @@ -4432,7 +4913,6 @@ "AzureKeyVaultDnsSuffix": "System.String", "TrafficManagerDnsSuffix": "System.String", "SqlDatabaseDnsSuffix": "System.String", - "StorageEndpointSuffix": "System.String", "ActiveDirectoryServiceEndpointResourceId": "System.String", "GraphUrl": "System.String", "GalleryUrl": "System.String", @@ -4441,8 +4921,8 @@ "ManagementPortalUrl": "System.String", "ResourceManagerUrl": "System.String", "ServiceManagementUrl": "System.String", - "AdTenant": "System.String", - "Name": "System.String" + "StorageEndpointSuffix": "System.String", + "ContainerRegistryEndpointSuffix": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -4503,16 +4983,6 @@ "Methods": [], "Constructors": [] }, - "System.Void": { - "Namespace": "System", - "Name": "System.Void", - "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.IotHub.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.IotHub.dll.json index ffc4b00f51bc..faa4ef2f5077 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.IotHub.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.IotHub.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -73,7 +73,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -278,7 +278,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -1026,7 +1026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -1190,7 +1190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1428,7 +1428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1701,7 +1701,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1902,7 +1902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2062,7 +2062,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -2126,7 +2126,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -2387,7 +2387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -3284,7 +3284,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -3344,7 +3344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations", "GenericTypeArguments": [], @@ -3363,7 +3363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -3534,7 +3534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -3951,7 +3951,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Result": "System.Collections.Generic.IList`1[System.String]", "Criteria": "System.String", @@ -4006,7 +4006,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -4156,7 +4156,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4298,7 +4298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -4412,7 +4412,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4637,7 +4637,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4886,7 +4886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5087,7 +5087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5268,7 +5268,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -5457,7 +5457,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -5970,7 +5970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -6034,7 +6034,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -6295,7 +6295,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -7168,7 +7168,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -7232,7 +7232,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -7493,7 +7493,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -8390,7 +8390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -8450,7 +8450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments", "GenericTypeArguments": [], @@ -8469,7 +8469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -8640,7 +8640,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -9057,7 +9057,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricsResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Result": "System.Collections.Generic.IList`1[System.String]", "Criteria": "System.String", @@ -9112,7 +9112,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -9262,7 +9262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9404,7 +9404,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -9518,7 +9518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9743,7 +9743,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9992,7 +9992,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10193,7 +10193,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetricType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10374,7 +10374,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -10563,7 +10563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -11076,7 +11076,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -11140,7 +11140,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -11401,7 +11401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -12298,7 +12298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -12363,7 +12363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -12495,7 +12495,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12598,7 +12598,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12830,7 +12830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -12968,7 +12968,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13077,7 +13077,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13422,7 +13422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13531,7 +13531,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13852,7 +13852,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13961,7 +13961,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14186,7 +14186,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14295,7 +14295,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14527,7 +14527,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChildrenDeviceId": "System.Collections.Generic.IList`1[System.String]", "DeviceId": "System.String" @@ -14581,7 +14581,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -14788,7 +14788,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -15351,7 +15351,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -15412,7 +15412,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices", "GenericTypeArguments": [], @@ -15431,7 +15431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -15602,7 +15602,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -15995,7 +15995,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChildrenDeviceId": "System.Collections.Generic.IList`1[System.String]", "DeviceId": "System.String" @@ -16045,7 +16045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren", "GenericTypeArguments": [], @@ -16064,7 +16064,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -16235,7 +16235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -16630,7 +16630,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionString", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionString, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionString, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeviceId": "System.String", "ConnectionString": "System.String" @@ -16684,7 +16684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -16816,7 +16816,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16958,7 +16958,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -17048,7 +17048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17273,7 +17273,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17474,7 +17474,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17680,7 +17680,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -17745,7 +17745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -17916,7 +17916,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -18309,7 +18309,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -18375,7 +18375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -18546,7 +18546,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -18939,7 +18939,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Int32", "Payload": "System.String" @@ -18993,7 +18993,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -19236,7 +19236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -20032,7 +20032,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -20221,7 +20221,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -20729,7 +20729,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -20936,7 +20936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -21518,7 +21518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -21668,7 +21668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21828,7 +21828,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -21942,7 +21942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22215,7 +22215,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22464,7 +22464,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22689,7 +22689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTransportType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22875,7 +22875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -22940,7 +22940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -23072,7 +23072,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23175,7 +23175,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23353,7 +23353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -23443,7 +23443,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23596,7 +23596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -23686,7 +23686,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23863,7 +23863,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -24093,7 +24093,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24318,7 +24318,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24683,7 +24683,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24884,7 +24884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25228,7 +25228,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevice, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -25293,7 +25293,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -25500,7 +25500,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -26061,7 +26061,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -26127,7 +26127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -26352,7 +26352,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -26985,7 +26985,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TracingOption": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing", "IsSynced": "System.Boolean", @@ -27040,7 +27040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -27211,7 +27211,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -27606,7 +27606,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TracingOption": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing", "IsSynced": "System.Boolean", @@ -27661,7 +27661,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -27795,7 +27795,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27957,7 +27957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -28049,7 +28049,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28302,7 +28302,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28531,7 +28531,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28782,7 +28782,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -28971,7 +28971,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -29460,7 +29460,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -29522,7 +29522,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -29672,7 +29672,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29814,7 +29814,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -29928,7 +29928,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -30177,7 +30177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -30402,7 +30402,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -30555,7 +30555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -30715,7 +30715,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -30773,7 +30773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules", "GenericTypeArguments": [], @@ -30792,7 +30792,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -30981,7 +30981,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -31446,7 +31446,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleConnectionString", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleConnectionString, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleConnectionString, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ModuleId": "System.String", "ConnectionString": "System.String" @@ -31500,7 +31500,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -31650,7 +31650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31792,7 +31792,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -31906,7 +31906,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32155,7 +32155,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32380,7 +32380,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32586,7 +32586,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -32653,7 +32653,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -32842,7 +32842,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -33331,7 +33331,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceMethodResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Int32", "Payload": "System.String" @@ -33385,7 +33385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -33646,7 +33646,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -34514,7 +34514,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -34721,7 +34721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -35282,7 +35282,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules", "GenericTypeArguments": [], @@ -35301,7 +35301,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -35490,7 +35490,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -36003,7 +36003,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -36065,7 +36065,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -36215,7 +36215,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36357,7 +36357,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -36471,7 +36471,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36720,7 +36720,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36945,7 +36945,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceAuthType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37149,7 +37149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModuleTwin, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -37216,7 +37216,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -37459,7 +37459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -38255,7 +38255,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -38423,7 +38423,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38583,7 +38583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -38721,7 +38721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39018,7 +39018,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39291,7 +39291,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39540,7 +39540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSKeyType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -39724,7 +39724,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubConsumerGroupInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubConsumerGroupInfo, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubConsumerGroupInfo, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -39957,7 +39957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -40304,7 +40304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -40363,7 +40363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -40534,7 +40534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -40951,7 +40951,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateWithNonceDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateWithNonceDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateWithNonceDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificatePropertiesWithNonce", "ResourceGroupName": "System.String", @@ -41010,7 +41010,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -41197,7 +41197,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -41590,7 +41590,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -41862,7 +41862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus]", "StartTimeUtc": "System.Nullable`1[System.DateTime]", @@ -42137,7 +42137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -42563,7 +42563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubQuotaMetric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubQuotaMetric, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubQuotaMetric, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "CurrentValue": "System.String", @@ -42792,7 +42792,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubRegistryStatistics", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubRegistryStatistics, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubRegistryStatistics, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalDeviceCount": "System.Nullable`1[System.Int64]", "EnabledDeviceCount": "System.Nullable`1[System.Int64]", @@ -43021,7 +43021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capacity": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubCapacity", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -43269,7 +43269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -43458,7 +43458,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -43971,7 +43971,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -44068,7 +44068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44207,7 +44207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Features": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities", "CloudToDevice": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", @@ -44372,7 +44372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44529,7 +44529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Features": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities", "CloudToDevice": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", @@ -44670,7 +44670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus]", "StartTimeUtc": "System.Nullable`1[System.DateTime]", @@ -44987,7 +44987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobResponse, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus]", "StartTimeUtc": "System.Nullable`1[System.DateTime]", @@ -45304,7 +45304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -46008,7 +46008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -46213,7 +46213,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -46937,7 +46937,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -47363,7 +47363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointNames": "System.Collections.Generic.IList`1[System.String]", "Value": "System.String", @@ -47418,7 +47418,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -47625,7 +47625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -48164,7 +48164,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -48221,7 +48221,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -48353,7 +48353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48549,7 +48549,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -48639,7 +48639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48936,7 +48936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49209,7 +49209,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49533,7 +49533,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -49585,7 +49585,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -49637,7 +49637,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -49689,7 +49689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BatchFrequencyInSeconds": "System.Nullable`1[System.Int32]", "MaxChunkSizeInBytes": "System.Nullable`1[System.Int32]", @@ -49750,7 +49750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -49882,7 +49882,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50078,7 +50078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -50168,7 +50168,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50465,7 +50465,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50738,7 +50738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51014,7 +51014,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointNames": "System.Collections.Generic.IList`1[System.String]", "Value": "System.String", @@ -51065,7 +51065,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties", "GenericTypeArguments": [], @@ -51084,7 +51084,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -51255,7 +51255,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -51650,7 +51650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -51703,7 +51703,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties", "GenericTypeArguments": [], @@ -51722,7 +51722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -51893,7 +51893,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -52310,7 +52310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -52362,7 +52362,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -52379,7 +52379,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -52431,7 +52431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties", "GenericTypeArguments": [], @@ -52446,7 +52446,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -52498,7 +52498,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties", "GenericTypeArguments": [], @@ -52513,7 +52513,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BatchFrequencyInSeconds": "System.Nullable`1[System.Int32]", "MaxChunkSizeInBytes": "System.Nullable`1[System.Int32]", @@ -52570,7 +52570,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties", "GenericTypeArguments": [], @@ -52585,7 +52585,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint", "GenericTypeArguments": [], @@ -52604,7 +52604,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -52718,7 +52718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52878,7 +52878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -52944,7 +52944,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53169,7 +53169,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53370,7 +53370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53547,7 +53547,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53750,7 +53750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -53939,7 +53939,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -54449,7 +54449,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -54638,7 +54638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -55170,7 +55170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -55302,7 +55302,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55462,7 +55462,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -55552,7 +55552,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55801,7 +55801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56026,7 +56026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56227,7 +56227,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56411,7 +56411,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointNames": "System.Collections.Generic.IList`1[System.String]", "Value": "System.String", @@ -56466,7 +56466,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -56673,7 +56673,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -57212,7 +57212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -57269,7 +57269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -57401,7 +57401,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -57514,7 +57514,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -57604,7 +57604,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -57818,7 +57818,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -58008,7 +58008,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -58150,7 +58150,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -58299,7 +58299,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResult, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResultDetails", "Result": "System.String" @@ -58349,7 +58349,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Location": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange", "Severity": "System.String", @@ -58400,7 +58400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties[], Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties", "GenericTypeArguments": [], @@ -58419,7 +58419,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -58551,7 +58551,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58765,7 +58765,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -58995,7 +58995,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -59061,7 +59061,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59546,7 +59546,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59983,7 +59983,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60335,7 +60335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -60432,7 +60432,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60681,7 +60681,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Feedback": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties", "MaxDeliveryCount": "System.Nullable`1[System.Int32]", @@ -60735,7 +60735,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Endpoints": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints", "FallbackRoute": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", @@ -60790,7 +60790,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -60810,7 +60810,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.IotHub.Models", "Name": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -60997,7 +60997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61576,7 +61576,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Feedback": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties", "MaxDeliveryCount": "System.Nullable`1[System.Int32]", @@ -61728,7 +61728,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Endpoints": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints", "FallbackRoute": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", @@ -61881,7 +61881,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -61999,7 +61999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.IotHub.Models", "Name": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -62160,7 +62160,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -62219,7 +62219,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -62424,7 +62424,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", "ResourceGroupName": "System.String", @@ -62889,7 +62889,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHub, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", "Sku": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", @@ -63407,7 +63407,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificateProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsVerified": "System.Nullable`1[System.Boolean]", "Expiry": "System.Nullable`1[System.DateTime]", @@ -63691,7 +63691,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63796,7 +63796,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeviceContent": "System.Collections.Hashtable", "ModulesContent": "System.Collections.Hashtable" @@ -63851,7 +63851,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Results": "System.Collections.Hashtable", "Queries": "System.Collections.Hashtable" @@ -63896,7 +63896,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Features": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities", "CloudToDevice": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", @@ -63951,7 +63951,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCapabilities, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64046,7 +64046,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCloudToDeviceProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Feedback": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties", "MaxDeliveryCount": "System.Nullable`1[System.Int32]", @@ -64092,7 +64092,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSFeedbackProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxDeliveryCount": "System.Nullable`1[System.Int32]", "TtlAsIso8601": "System.Nullable`1[System.TimeSpan]", @@ -64172,7 +64172,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Endpoints": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints", "FallbackRoute": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", @@ -64219,7 +64219,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEndpoints, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EventHubs": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties]", "ServiceBusQueues": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties]", @@ -64266,7 +64266,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64278,7 +64278,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -64325,7 +64325,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64337,7 +64337,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusQueueEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -64384,7 +64384,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64396,7 +64396,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingServiceBusTopicEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectionString": "System.String", "Name": "System.String", @@ -64443,7 +64443,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64455,7 +64455,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingStorageContainerProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BatchFrequencyInSeconds": "System.Nullable`1[System.Int32]", "MaxChunkSizeInBytes": "System.Nullable`1[System.Int32]", @@ -64507,7 +64507,7 @@ "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata": { "Namespace": "Microsoft.Azure.Management.IotHub.Models", "Name": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.IotHub.Models.PSFallbackRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -64555,7 +64555,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64567,7 +64567,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointNames": "System.Collections.Generic.IList`1[System.String]", "Value": "System.String", @@ -64613,7 +64613,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64625,7 +64625,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteMetadata, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -64673,7 +64673,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64686,7 +64686,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionIds": "System.Collections.Generic.IList`1[System.String]", "PartitionCount": "System.Nullable`1[System.Int32]", @@ -64746,7 +64746,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64759,7 +64759,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSMessagingEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxDeliveryCount": "System.Nullable`1[System.Int32]", "TtlAsIso8601": "System.Nullable`1[System.TimeSpan]", @@ -64805,7 +64805,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64818,7 +64818,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSStorageEndpointProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SasTtlAsIso8601": "System.Nullable`1[System.TimeSpan]", "ConnectionString": "System.String", @@ -64864,7 +64864,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64876,7 +64876,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubLocationDescription, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Location": "System.String", "Role": "System.String" @@ -64921,7 +64921,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -64933,7 +64933,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSharedAccessSignatureAuthorizationRule, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rights": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAccessRights", "KeyName": "System.String", @@ -64980,7 +64980,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuInfo, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", "Tier": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuTier", @@ -65026,7 +65026,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSku, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65121,7 +65121,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuTier": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuTier, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubSkuTier, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65216,7 +65216,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurations, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -65271,7 +65271,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeployments, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationContent", "SystemMetrics": "Microsoft.Azure.Commands.Management.IotHub.Models.PSConfigurationMetrics", @@ -65326,7 +65326,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", "SymmetricKey": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSymmetricKey", @@ -65372,7 +65372,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65467,7 +65467,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSSymmetricKey": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSymmetricKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSymmetricKey, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSSymmetricKey, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrimaryKey": "System.String", "SecondaryKey": "System.String" @@ -65512,7 +65512,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSX509Thumbprint": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSX509Thumbprint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSX509Thumbprint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSX509Thumbprint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrimaryThumbprint": "System.String", "SecondaryThumbprint": "System.String" @@ -65557,7 +65557,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IotEdge": "System.Boolean" }, @@ -65601,7 +65601,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65696,7 +65696,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65791,7 +65791,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevices, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "Capabilities": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceCapabilities", @@ -65847,7 +65847,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDevicesChildren, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChildrenDeviceId": "System.Collections.Generic.IList`1[System.String]", "DeviceId": "System.String" @@ -66184,7 +66184,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracing, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SamplingMode": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", "SamplingRate": "System.Int32" @@ -66229,7 +66229,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDistributedTracingSamplingMode, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66324,7 +66324,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSModules, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Authentication": "Microsoft.Azure.Commands.Management.IotHub.Models.PSAuthenticationMechanism", "ConnectionState": "Microsoft.Azure.Commands.Management.IotHub.Models.PSDeviceConnectionState", @@ -66377,7 +66377,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificatePropertiesWithNonce": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificatePropertiesWithNonce", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificatePropertiesWithNonce, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSCertificatePropertiesWithNonce, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsVerified": "System.Nullable`1[System.Boolean]", "Expiry": "System.Nullable`1[System.DateTime]", @@ -66427,7 +66427,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -66439,7 +66439,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubJobStatus, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66534,7 +66534,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubCapacity": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubCapacity", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubCapacity, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubCapacity, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScaleType": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType]", "Minimum": "System.Nullable`1[System.Int64]", @@ -66581,7 +66581,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -66593,7 +66593,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSIotHubScaleType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66688,7 +66688,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -66701,7 +66701,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEventHubInputProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionCount": "System.Nullable`1[System.Int32]", "RetentionTimeInDays": "System.Nullable`1[System.Int64]" @@ -66746,7 +66746,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEnrichmentProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointNames": "System.Collections.Generic.IList`1[System.String]", "Value": "System.String", @@ -66792,7 +66792,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteProperties, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "EndpointNames": "System.Collections.Generic.IList`1[System.String]", @@ -66840,7 +66840,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingCustomEndpoint, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndpointType": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", "Name": "System.String", @@ -66888,7 +66888,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSEndpointType, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66983,7 +66983,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRoutingSource, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67078,7 +67078,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResultDetails": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResultDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResultDetails, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSTestRouteResultDetails, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CompilationErrors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError]" }, @@ -67122,7 +67122,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -67134,7 +67134,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteCompilationError, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Location": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange", "Severity": "System.String", @@ -67180,7 +67180,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorRange, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Start": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition", "End": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition" @@ -67225,7 +67225,7 @@ "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition": { "Namespace": "Microsoft.Azure.Commands.Management.IotHub.Models", "Name": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.IotHub.Models.PSRouteErrorPosition, Microsoft.Azure.PowerShell.Cmdlets.IotHub, Version=2.7.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Line": "System.Nullable`1[System.Int32]", "Column": "System.Nullable`1[System.Int32]" diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll.json index 6fe0bccdbcca..9a9143e6a21b 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.KeyVault.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CancellationRequested": "System.Nullable`1[System.Boolean]", "Id": "System.String", @@ -116,7 +116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DnsNames": "System.Collections.Generic.List`1[System.String]", "KeyUsage": "System.Collections.Generic.List`1[System.String]", @@ -384,7 +384,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DnsNames": "System.Collections.Generic.List`1[System.String]", "KeyUsage": "System.Collections.Generic.List`1[System.String]", @@ -626,7 +626,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Email": "System.String", "VaultName": "System.String" @@ -698,7 +698,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -994,7 +994,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -1394,10 +1394,11 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", @@ -1472,13 +1473,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -1559,6 +1578,89 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "ResourceId", "AliasList": [], @@ -1577,6 +1679,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Name", "AliasList": [ @@ -1770,6 +1890,42 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "KeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "CurveName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -2374,90 +2530,21 @@ ] }, { - "Name": "InputObjectCreate", + "Name": "HsmInteractiveCreate", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -2465,13 +2552,39 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Destination", + "Name": "Size", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeyType", "AliasList": [], "Type": { "Namespace": "System", @@ -2483,10 +2596,7 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "HSM", - "Software" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -2498,17 +2608,15 @@ }, { "ParameterMetadata": { - "Name": "Size", + "Name": "CurveName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -2716,90 +2824,21 @@ ] }, { - "Name": "InputObjectImport", + "Name": "HsmInteractiveImport", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -2807,8 +2846,8 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { @@ -2859,33 +2898,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Destination", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "HSM", - "Software" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "Name", @@ -3080,21 +3092,90 @@ ] }, { - "Name": "ResourceIdCreate", + "Name": "InputObjectCreate", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -3103,8 +3184,8 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -3353,21 +3434,90 @@ ] }, { - "Name": "ResourceIdImport", + "Name": "InputObjectImport", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -3376,8 +3526,8 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -3648,23 +3798,86 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "HsmInputObjectCreate", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "HsmObject", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -3672,45 +3885,23 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyOps", + "Name": "Size", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -3726,17 +3917,15 @@ }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "KeyType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -3745,24 +3934,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "CurveName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -3778,14 +3965,14 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "Name", "AliasList": [ - "Tags" + "KeyName" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3795,40 +3982,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Disable", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -3840,224 +4012,17 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Backup", - "NounName": "AzKeyVaultCertificate", - "Name": "Backup-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultCertificate", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByCertificateName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SecretName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "Certificate" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByCertificateName", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -4065,71 +4030,75 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SecretName" - ], + "Name": "Expires", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4188,29 +4157,35 @@ ] }, { - "Name": "ByCertificate", + "Name": "HsmInputObjectImport", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "Certificate" - ], + "Name": "HsmObject", + "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", + "ResourceId": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" }, "ElementType": null, "GenericTypeArguments": [], @@ -4246,6 +4221,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -4261,7 +4250,7 @@ }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "KeyFilePath", "AliasList": [], "Type": { "Namespace": "System", @@ -4278,19 +4267,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "KeyFilePassword", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4300,7 +4289,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -4309,52 +4298,10 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "Name", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "KeyName" ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "OutputFile", - "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -4370,14 +4317,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Disable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -4401,262 +4348,14 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Backup", - "NounName": "AzKeyVaultKey", - "Name": "Backup-AzKeyVaultKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultKey", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByKeyName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "Key" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByKeyName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -4664,71 +4363,75 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "Expires", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4787,82 +4490,11 @@ ] }, { - "Name": "ByKey", + "Name": "ResourceIdCreate", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "Key" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutputFile", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -4879,62 +4511,52 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Destination", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "HSM", + "Software" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Size", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -4946,16 +4568,13 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "OutputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "KeyName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -4971,14 +4590,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Disable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -5002,262 +4621,14 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Backup", - "NounName": "AzKeyVaultSecret", - "Name": "Backup-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultSecret", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "BySecretName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SecretName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "Secret" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "BySecretName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -5265,71 +4636,75 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SecretName" - ], + "Name": "Expires", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5388,68 +4763,21 @@ ] }, { - "Name": "BySecret", + "Name": "ResourceIdImport", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "Secret" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -5458,12 +4786,12 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "KeyFilePath", "AliasList": [], "Type": { "Namespace": "System", @@ -5480,19 +4808,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "KeyFilePassword", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5502,7 +4830,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -5511,34 +4839,22 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Destination", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "HSM", + "Software" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -5547,16 +4863,13 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "OutputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "KeyName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -5572,14 +4885,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Disable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -5603,31 +4916,42 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyOps", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Expires", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -5639,219 +4963,106 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Backup", - "NounName": "AzManagedHsmKey", - "Name": "Backup-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureManagedHsmKey", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByKeyName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "HsmName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "Key" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByKeyName", + "Name": "HsmResourceIdCreate", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "HsmResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -5869,16 +5080,40 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Size", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "KeyType", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -5892,16 +5127,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "CurveName", "AliasList": [], "Type": { "Namespace": "System", @@ -5916,16 +5151,42 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Disable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -5949,31 +5210,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyOps", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -5985,115 +5231,69 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByKey", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "Key" - ], + "Name": "Expires", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.DateTime" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6152,11 +5352,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "HsmResourceIdImport", "Parameters": [ { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "HsmResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -6173,19 +5373,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Force", + "Name": "KeyFilePath", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6195,419 +5395,42 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyFilePassword", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzKeyVault", - "Name": "Get-AzKeyVault", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVault", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "GetVaultByName", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletionDate": "System.Nullable`1[System.DateTime]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "ResourceGroupName": "System.String", - "Location": "System.String", - "ResourceId": "System.String", - "VaultName": "System.String", - "Id": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "VaultUri": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [ - "Name" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "GetVaultByName", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "Name", "AliasList": [ - "Name" + "KeyName" ], "Type": { "Namespace": "System", @@ -6624,19 +5447,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 0, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Disable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6646,23 +5469,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "KeyOps", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -6675,35 +5498,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Expires", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.DateTime" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -6715,70 +5525,43 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByDeletedVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [ - "Name" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Location", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6790,7 +5573,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -6837,13 +5620,39 @@ ] }, { - "Name": "ListAllDeletedVaultsInSubscription", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Disable", + "AliasList": [], + "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", @@ -6858,38 +5667,101 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "KeyOps", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Expires", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "Tags" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -6901,12 +5773,7 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -6952,254 +5819,55 @@ "AliasList": [] }, { - "VerbName": "Get", + "VerbName": "Backup", "NounName": "AzKeyVaultCertificate", - "Name": "Get-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificate", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "Name": "Backup-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultCertificate", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByName", + "DefaultParameterSetName": "ByCertificateName", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "KeyId": "System.String", - "SecretId": "System.String", - "Thumbprint": "System.String", - "RecoveryLevel": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], + "Methods": [], "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" ] - }, + } + ], + "Parameters": [ { + "Name": "VaultName", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "RecoveryLevel": "System.String", - "Thumbprint": "System.String", - "SecretId": "System.String", - "KeyId": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], + "Methods": [], "Constructors": [] }, - "ParameterSets": [ - "__AllParameterSets" - ] + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -7217,34 +5885,24 @@ }, { "Name": "InputObject", - "AliasList": [], + "AliasList": [ + "Certificate" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -7280,20 +5938,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -7303,7 +5947,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "OutputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -7321,14 +5965,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7338,119 +5980,45 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "Version", + "Name": "DefaultProfile", "AliasList": [ - "CertificateVersion" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false - }, + } + ], + "ParameterSets": [ { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IncludePending", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByName", + "Name": "ByCertificateName", "Parameters": [ { "ParameterMetadata": { @@ -7480,7 +6048,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -7497,19 +6065,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7519,16 +6087,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludePending", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -7592,11 +6160,80 @@ ] }, { - "Name": "ByCertificateNameAndVersion", + "Name": "ByCertificate", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", + "AliasList": [ + "Certificate" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -7613,17 +6250,83 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", "AliasList": [ - "CertificateName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "OutputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -7639,21 +6342,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7665,8 +6366,8 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -7710,9 +6411,232 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Backup", + "NounName": "AzKeyVaultKey", + "Name": "Backup-AzKeyVaultKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultKey", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByKeyName", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ByCertificateAllVersions", + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [ + "Key" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "IsHsm": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "OutputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByKeyName", "Parameters": [ { "ParameterMetadata": { @@ -7742,7 +6666,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "KeyName" ], "Type": { "Namespace": "System", @@ -7766,7 +6690,31 @@ }, { "ParameterMetadata": { - "Name": "IncludeVersions", + "Name": "OutputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -7783,7 +6731,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -7830,90 +6778,21 @@ ] }, { - "Name": "ByNameInputObject", + "Name": "HsmByKeyName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -7921,15 +6800,15 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "KeyName" ], "Type": { "Namespace": "System", @@ -7946,19 +6825,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7968,16 +6847,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludePending", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -8041,39 +6920,32 @@ ] }, { - "Name": "ByCertificateNameAndVersionInputObject", + "Name": "ByKey", "Parameters": [ { "ParameterMetadata": { "Name": "InputObject", - "AliasList": [], + "AliasList": [ + "Key" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -8109,20 +6981,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -8138,10 +6996,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "OutputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -8157,21 +7013,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8183,8 +7037,8 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -8230,107 +7084,12 @@ ] }, { - "Name": "ByCertificateAllVersionsInputObject", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "OutputFile", "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], "Type": { "Namespace": "System", "Name": "System.String", @@ -8346,14 +7105,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludeVersions", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -8370,7 +7129,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -8415,13 +7174,217 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Backup", + "NounName": "AzKeyVaultSecret", + "Name": "Backup-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultSecret", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "BySecretName", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ByNameResourceId", + "Name": "Name", + "AliasList": [ + "SecretName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [ + "Secret" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "OutputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "BySecretName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -8441,13 +7404,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -8464,19 +7427,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8486,16 +7449,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludePending", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -8559,21 +7522,68 @@ ] }, { - "Name": "ByCertificateNameAndVersionResourceId", + "Name": "BySecret", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "InputObject", + "AliasList": [ + "Secret" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -8582,15 +7592,13 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "OutputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -8606,21 +7614,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8632,8 +7638,8 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -8679,11 +7685,11 @@ ] }, { - "Name": "ByCertificateAllVersionsResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "OutputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -8700,40 +7706,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludeVersions", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -8750,55 +7730,11 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -8845,22 +7781,42 @@ }, { "VerbName": "Get", - "NounName": "AzKeyVaultCertificateContact", - "Name": "Get-AzKeyVaultCertificateContact", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateContact", + "NounName": "AzKeyVault", + "Name": "Get-AzKeyVault", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVault", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "VaultName", + "DefaultParameterSetName": "GetVaultByName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Email": "System.String", - "VaultName": "System.String" + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -8896,40 +7852,96 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, "ParameterSets": [ "__AllParameterSets" ] - } - ], - "Parameters": [ + }, { - "Name": "VaultName", - "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ParameterSets": [ + "__AllParameterSets" + ] }, { - "Name": "InputObject", - "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -8937,20 +7949,23 @@ "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletionDate": "System.Nullable`1[System.DateTime]", "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", "ResourceGroupName": "System.String", - "VaultName": "System.String", + "Location": "System.String", "ResourceId": "System.String", - "VaultUri": "System.String", + "VaultName": "System.String", + "Id": "System.String", "AccessPoliciesText": "System.String", "Sku": "System.String", "TenantName": "System.String", + "VaultUri": "System.String", "NetworkAclsText": "System.String", "TagsTable": "System.String" }, @@ -8983,27 +7998,28 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [ + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -9011,7 +8027,25 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Location", "AliasList": [], "Type": { "Namespace": "System", @@ -9028,6 +8062,42 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -9064,12 +8134,14 @@ ], "ParameterSets": [ { - "Name": "VaultName", + "Name": "GetVaultByName", "Parameters": [ { "ParameterMetadata": { "Name": "VaultName", - "AliasList": [], + "AliasList": [ + "Name" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -9085,10 +8157,58 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -9132,90 +8252,23 @@ ] }, { - "Name": "ByInputObject", + "Name": "ByDeletedVault", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], + "Name": "VaultName", + "AliasList": [ + "Name" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -9224,7 +8277,55 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Location", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { @@ -9269,16 +8370,16 @@ ] }, { - "Name": "ByResourceId", + "Name": "ListAllDeletedVaultsInSubscription", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9288,12 +8389,12 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -9385,9 +8486,9 @@ }, { "VerbName": "Get", - "NounName": "AzKeyVaultCertificateIssuer", - "Name": "Get-AzKeyVaultCertificateIssuer", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateIssuer", + "NounName": "AzKeyVaultCertificate", + "Name": "Get-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificate", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, @@ -9396,12 +8497,19 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -9447,15 +8555,137 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "OrganizationDetails": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "ApiKey": "System.Security.SecureString", - "AccountId": "System.String", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "KeyId": "System.String", + "SecretId": "System.String", + "Thumbprint": "System.String", + "RecoveryLevel": "System.String", + "VaultName": "System.String", "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "RecoveryLevel": "System.String", + "Thumbprint": "System.String", + "SecretId": "System.String", + "KeyId": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -9524,7 +8754,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -9626,7 +8856,7 @@ { "Name": "Name", "AliasList": [ - "IssuerName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -9643,6 +8873,80 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [ + "CertificateVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "IncludePending", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -9709,7 +9013,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "IssuerName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -9731,6 +9035,54 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IncludePending", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -9773,90 +9125,21 @@ ] }, { - "Name": "ByInputObject", + "Name": "ByCertificateNameAndVersion", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -9865,14 +9148,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "IssuerName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -9889,11 +9172,37 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "CertificateVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -9936,11 +9245,11 @@ ] }, { - "Name": "ByResourceId", + "Name": "ByCertificateAllVersions", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -9960,13 +9269,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "IssuerName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -9983,11 +9292,35 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -10030,295 +9363,135 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByNameInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IssuerName" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 1, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "Name", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "CertificateName" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzKeyVaultCertificateOperation", - "Name": "Get-AzKeyVaultCertificateOperation", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateOperation", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "ByName", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByName", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10328,23 +9501,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "IncludePending", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10354,10 +9525,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -10403,7 +9574,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "ByCertificateNameAndVersionInputObject", "Parameters": [ { "ParameterMetadata": { @@ -10411,19 +9582,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -10459,6 +9642,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -10474,31 +9671,44 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "Name", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "CertificateName" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "CertificateVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -10506,16 +9716,11 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -10556,528 +9761,342 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzKeyVaultKey", - "Name": "Get-AzKeyVaultKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultKey", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "Name": "ByCertificateAllVersionsInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "CertificateName" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } ] }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "Name": "ByNameResourceId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "CertificateName" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "IncludePending", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } ] }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByKeyName", + "Name": "ByCertificateNameAndVersionResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -11097,13 +10116,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "KeyName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -11129,7 +10148,7 @@ "ParameterMetadata": { "Name": "Version", "AliasList": [ - "KeyVersion" + "CertificateVersion" ], "Type": { "Namespace": "System", @@ -11151,30 +10170,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -11217,11 +10212,11 @@ ] }, { - "Name": "ByVaultName", + "Name": "ByCertificateAllVersionsResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -11241,13 +10236,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "KeyName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -11264,14 +10259,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "IncludeVersions", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -11288,31 +10283,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -11359,106 +10330,8 @@ ] }, { - "Name": "ByKeyVersions", + "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -11499,156 +10372,236 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzKeyVaultCertificateContact", + "Name": "Get-AzKeyVaultCertificateContact", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateContact", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "VaultName", + "OutputTypes": [ { - "Name": "ByInputObjectVaultName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Email": "System.String", + "VaultName": "System.String" }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ReturnType": "System.Boolean" }, - "Mandatory": false, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "VaultName", + "Parameters": [ { "ParameterMetadata": { - "Name": "OutFile", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -11665,8 +10618,8 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -11712,7 +10665,7 @@ ] }, { - "Name": "ByInputObjectKeyName", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { @@ -11721,7 +10674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -11809,44 +10762,31 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", + "Name": "DefaultProfile", "AliasList": [ - "KeyVersion" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -11854,14 +10794,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ { "ParameterMetadata": { - "Name": "OutFile", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -11878,10 +10823,10 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -11925,155 +10870,380 @@ ] }, { - "Name": "ByInputObjectKeyVersions", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", + "Name": "Clear", "Parameters": [], - "ReturnType": "System.Type" + "ReturnType": "System.Void" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzKeyVaultCertificateIssuer", + "Name": "Get-AzKeyVaultCertificateIssuer", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateIssuer", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "ByName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OrganizationDetails": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", + "ApiKey": "System.Security.SecureString", + "AccountId": "System.String", + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "IssuerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -12090,7 +11260,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -12136,21 +11306,90 @@ ] }, { - "Name": "ByResourceIdVaultName", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -12159,14 +11398,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "KeyName" + "IssuerName" ], "Type": { "Namespace": "System", @@ -12188,54 +11427,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -12278,7 +11469,7 @@ ] }, { - "Name": "ByResourceIdKeyName", + "Name": "ByResourceId", "Parameters": [ { "ParameterMetadata": { @@ -12308,7 +11499,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "KeyName" + "IssuerName" ], "Type": { "Namespace": "System", @@ -12325,25 +11516,38 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", + "Name": "DefaultProfile", "AliasList": [ - "KeyVersion" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -12351,15 +11555,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -12376,7 +11587,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -12420,13 +11631,222 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzKeyVaultCertificateOperation", + "Name": "Get-AzKeyVaultCertificateOperation", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultCertificateOperation", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "ByName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", + "Name": "System.String", + "VaultName": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ByResourceIdKeyVersions", + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -12446,13 +11866,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "KeyName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -12476,16 +11896,31 @@ }, { "ParameterMetadata": { - "Name": "IncludeVersions", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -12493,33 +11928,81 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ { "ParameterMetadata": { - "Name": "OutFile", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { @@ -12566,30 +12049,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -12636,9 +12095,9 @@ }, { "VerbName": "Get", - "NounName": "AzKeyVaultSecret", - "Name": "Get-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret", + "NounName": "AzKeyVaultKey", + "Name": "Get-AzKeyVaultKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultKey", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, @@ -12647,16 +12106,17 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -12707,18 +12167,19 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", + "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -12769,9 +12230,10 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", @@ -12780,7 +12242,7 @@ "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -12831,24 +12293,25 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", + "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", + "Expires": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Version": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", - "Version": "System.String", "Id": "System.String" }, "ElementType": null, @@ -12912,13 +12375,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -12999,6 +12480,89 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "ResourceId", "AliasList": [], @@ -13017,10 +12581,28 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13040,7 +12622,7 @@ { "Name": "Version", "AliasList": [ - "SecretVersion" + "KeyVersion" ], "Type": { "Namespace": "System", @@ -13094,15 +12676,33 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "OutFile", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", @@ -13129,7 +12729,7 @@ ], "ParameterSets": [ { - "Name": "BySecretName", + "Name": "ByKeyName", "Parameters": [ { "ParameterMetadata": { @@ -13159,7 +12759,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13185,7 +12785,7 @@ "ParameterMetadata": { "Name": "Version", "AliasList": [ - "SecretVersion" + "KeyVersion" ], "Type": { "Namespace": "System", @@ -13207,6 +12807,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -13279,7 +12903,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13325,6 +12949,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -13367,7 +13015,7 @@ ] }, { - "Name": "BySecretVersions", + "Name": "ByKeyVersions", "Parameters": [ { "ParameterMetadata": { @@ -13397,7 +13045,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13443,6 +13091,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -13485,90 +13157,21 @@ ] }, { - "Name": "ByInputObjectVaultName", + "Name": "HsmByKeyName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -13576,15 +13179,15 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13601,19 +13204,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13625,6 +13230,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -13672,90 +13301,21 @@ ] }, { - "Name": "ByInputObjectSecretName", + "Name": "HsmByVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -13763,15 +13323,15 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13788,17 +13348,39 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "SecretVersion" - ], + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -13812,10 +13394,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -13861,7 +13443,149 @@ ] }, { - "Name": "ByInputObjectSecretVersions", + "Name": "HsmByKeyVersions", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObjectVaultName", "Parameters": [ { "ParameterMetadata": { @@ -13870,7 +13594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -13960,7 +13684,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -13977,14 +13701,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludeVersions", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -14001,7 +13725,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -14048,12 +13796,107 @@ ] }, { - "Name": "ByResourceIdVaultName", + "Name": "ByInputObjectKeyName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -14070,15 +13913,15 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "Version", "AliasList": [ - "SecretName" + "KeyVersion" ], "Type": { "Namespace": "System", @@ -14093,21 +13936,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": 1, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14117,7 +13960,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -14166,21 +14009,90 @@ ] }, { - "Name": "ByResourceIdSecretName", + "Name": "ByInputObjectKeyVersions", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -14189,14 +14101,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -14220,10 +14132,32 @@ }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "SecretVersion" - ], + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -14237,10 +14171,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -14286,21 +14220,86 @@ ] }, { - "Name": "ByResourceIdSecretVersions", + "Name": "HsmByInputObjectVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "HsmObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -14309,14 +14308,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -14333,14 +14332,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IncludeVersions", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -14357,7 +14356,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -14404,8 +14427,173 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "HsmByInputObjectKeyName", "Parameters": [ + { + "ParameterMetadata": { + "Name": "HsmObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -14446,524 +14634,220 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzManagedHsmKey", - "Name": "Get-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureManagedHsmKey", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "SpecifyHsmByHsmNameGetKeyWithoutConstraint", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "Name": "HsmByInputObjectKeyVersions", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "HsmObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IncludeVersions", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "OutFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } ] }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "HsmName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "SpecifyHsmByHsmNameGetKeyWithoutConstraint", + "Name": "ByResourceIdVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -14983,7 +14867,7 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -15101,11 +14985,11 @@ ] }, { - "Name": "SpecifyHsmByHsmNameGetKeyWithSpecifiedVersion", + "Name": "ByResourceIdKeyName", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -15125,7 +15009,7 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -15245,11 +15129,11 @@ ] }, { - "Name": "SpecifyHsmByHsmNameGetKeyIncludeAllVersions", + "Name": "ByResourceIdKeyVersions", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -15269,7 +15153,7 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -15387,86 +15271,21 @@ ] }, { - "Name": "SpecifyHsmByInputObjectGetKeyWithoutConstraint", + "Name": "HsmByResourceIdVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -15474,9 +15293,9 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -15594,86 +15413,21 @@ ] }, { - "Name": "SpecifyHsmByInputObjectGetKeyWithSpecifiedVersion", + "Name": "HsmByResourceIdKeyName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -15681,9 +15435,9 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -15803,86 +15557,21 @@ ] }, { - "Name": "SpecifyHsmByInputObjectGetKeyIncludeAllVersions", + "Name": "HsmByResourceIdKeyVersions", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -15890,9 +15579,9 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -16010,82 +15699,8 @@ ] }, { - "Name": "SpecifyHsmByResourceIdGetKeyWithoutConstraint", + "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "OutFile", @@ -16150,391 +15765,222 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzKeyVaultSecret", + "Name": "Get-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ { - "Name": "SpecifyHsmByResourceIdGetKeyWithSpecifiedVersion", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ReturnType": "System.Boolean" }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ReturnType": "System.Boolean" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" ] }, { - "Name": "SpecifyHsmByResourceIdGetKeyIncludeAllVersions", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "IncludeVersions", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ReturnType": "System.Boolean" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" ] }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "OutFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Import", - "NounName": "AzKeyVaultCertificate", - "Name": "Import-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.ImportAzureKeyVaultCertificate", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ImportCertificateFromFile", - "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "KeyId": "System.String", - "SecretId": "System.String", - "Thumbprint": "System.String", - "RecoveryLevel": "System.String", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -16569,7 +16015,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -16596,19 +16048,86 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -16616,7 +16135,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "FilePath", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -16631,11 +16150,13 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "CertificateString", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -16649,15 +16170,17 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "Password", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16670,12 +16193,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "CertificateCollection", + "Name": "IncludeVersions", "AliasList": [], "Type": { - "Namespace": "System.Security.Cryptography.X509Certificates", - "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection", - "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16688,12 +16211,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Tag", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16741,7 +16264,7 @@ ], "ParameterSets": [ { - "Name": "__AllParameterSets", + "Name": "BySecretName", "Parameters": [ { "ParameterMetadata": { @@ -16765,13 +16288,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -16791,16 +16314,18 @@ "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16812,10 +16337,10 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -16859,56 +16384,8 @@ ] }, { - "Name": "ImportCertificateFromFile", + "Name": "ByVaultName", "Parameters": [ - { - "ParameterMetadata": { - "Name": "FilePath", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Password", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "VaultName", @@ -16931,13 +16408,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -16954,19 +16431,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16981,7 +16458,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -17025,56 +16502,8 @@ ] }, { - "Name": "ImportWithPrivateKeyFromString", + "Name": "BySecretVersions", "Parameters": [ - { - "ParameterMetadata": { - "Name": "CertificateString", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Password", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "VaultName", @@ -17097,13 +16526,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -17123,16 +16552,16 @@ "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "IncludeVersions", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17144,10 +16573,10 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -17191,45 +16620,90 @@ ] }, { - "Name": "ImportWithPrivateKeyFromCollection", + "Name": "ByInputObjectVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "CertificateCollection", - "AliasList": [], - "Type": { - "Namespace": "System.Security.Cryptography.X509Certificates", - "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection", - "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -17238,14 +16712,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -17262,19 +16736,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17289,7 +16763,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -17331,287 +16805,92 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Add", - "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Add-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultManagedStorageAccount", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "__AllParameterSets", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName", - "Name" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "AccountResourceId", - "AliasList": [ - "StorageAccountResourceId" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ActiveKeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DisableAutoRegenerateKey", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "RegenerationPeriod", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Disable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "__AllParameterSets", + "Name": "ByInputObjectSecretName", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -17620,15 +16899,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "SecretName" ], "Type": { "Namespace": "System", @@ -17648,13 +16926,13 @@ "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AccountResourceId", + "Name": "Version", "AliasList": [ - "StorageAccountResourceId" + "SecretVersion" ], "Type": { "Namespace": "System", @@ -17669,49 +16947,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ActiveKeyName", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 3, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "DisableAutoRegenerateKey", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -17723,41 +16992,115 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByInputObjectSecretVersions", + "Parameters": [ { "ParameterMetadata": { - "Name": "RegenerationPeriod", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disable", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17767,23 +17110,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "IncludeVersions", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17795,10 +17136,10 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -17840,215 +17181,13 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Backup", - "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Backup-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultManagedStorageAccount", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByStorageAccountName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "StorageAccountName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "StorageAccount" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByStorageAccountName", + "Name": "ByResourceIdVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -18068,13 +17207,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { "Name": "Name", "AliasList": [ - "StorageAccountName" + "SecretName" ], "Type": { "Namespace": "System", @@ -18091,38 +17230,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "OutputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, "Mandatory": false, - "Position": 2, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -18186,66 +17301,21 @@ ] }, { - "Name": "ByStorageAccount", + "Name": "ByResourceIdSecretName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "StorageAccount" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -18254,13 +17324,15 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "OutputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -18276,19 +17348,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18300,8 +17374,8 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -18347,11 +17421,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByResourceIdSecretVersions", "Parameters": [ { "ParameterMetadata": { - "Name": "OutputFile", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -18368,14 +17442,40 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Force", + "Name": "Name", + "AliasList": [ + "SecretName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IncludeVersions", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -18392,7 +17492,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -18437,32 +17537,81 @@ "ValueFromPipelineByPropertyName": false } ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] } ], "AliasList": [] }, { - "VerbName": "Get", - "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Get-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultManagedStorageAccount", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Import", + "NounName": "AzKeyVaultCertificate", + "Name": "Import-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.ImportAzureKeyVaultCertificate", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByAccountName", + "DefaultParameterSetName": "ImportCertificateFromFile", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "KeyId": "System.String", + "SecretId": "System.String", + "Thumbprint": "System.String", + "RecoveryLevel": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -18497,206 +17646,54 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" ] - }, + } + ], + "Parameters": [ { + "Name": "VaultName", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, - "ParameterSets": [ - "__AllParameterSets" - ] + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, - "ParameterSets": [ - "__AllParameterSets" - ] + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", + "Name": "FilePath", "AliasList": [], "Type": { "Namespace": "System", @@ -18711,102 +17708,33 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", + "Name": "CertificateString", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceId", + "Name": "Password", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18816,18 +17744,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName", - "Name" - ], + "Name": "CertificateCollection", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Security.Cryptography.X509Certificates", + "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection", + "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18837,15 +17762,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InRemovedState", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18893,7 +17818,7 @@ ], "ParameterSets": [ { - "Name": "ByAccountName", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { @@ -18917,14 +17842,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "CertificateName" ], "Type": { "Namespace": "System", @@ -18941,19 +17865,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18968,7 +17892,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -19012,109 +17936,40 @@ ] }, { - "Name": "ByInputObject", + "Name": "ImportCertificateFromFile", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "FilePath", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "Password", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19131,6 +17986,80 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -19173,11 +18102,59 @@ ] }, { - "Name": "ByResourceId", + "Name": "ImportWithPrivateKeyFromString", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "CertificateString", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Password", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -19201,12 +18178,38 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19221,7 +18224,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -19265,16 +18268,90 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ImportWithPrivateKeyFromCollection", "Parameters": [ { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "CertificateCollection", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Security.Cryptography.X509Certificates", + "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection", + "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2Collection, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19289,7 +18366,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -19336,198 +18413,29 @@ "AliasList": [] }, { - "VerbName": "Get", - "NounName": "AzKeyVaultManagedStorageSasDefinition", - "Name": "Get-AzKeyVaultManagedStorageSasDefinition", - "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultManagedStorageSasDefinition", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Add", + "NounName": "AzKeyVaultManagedStorageAccount", + "Name": "Add-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultManagedStorageAccount", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByDefinitionName", + "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "TemplateUri": "System.String", - "SasType": "System.String", - "ValidityPeriod": "System.String", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "TemplateUri": "System.String", - "SasType": "System.String", - "ValidityPeriod": "System.String", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - }, - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Sid": "System.String", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", "AccountName": "System.String", + "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -19598,7 +18506,8 @@ { "Name": "AccountName", "AliasList": [ - "StorageAccountName" + "StorageAccountName", + "Name" ], "Type": { "Namespace": "System", @@ -19616,60 +18525,19 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputObject", - "AliasList": [], + "Name": "AccountResourceId", + "AliasList": [ + "StorageAccountResourceId" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -19677,10 +18545,8 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], + "Name": "ActiveKeyName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -19697,7 +18563,45 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InRemovedState", + "Name": "DisableAutoRegenerateKey", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RegenerationPeriod", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Disable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -19714,6 +18618,26 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -19750,7 +18674,7 @@ ], "ParameterSets": [ { - "Name": "ByDefinitionName", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { @@ -19774,13 +18698,14 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { "Name": "AccountName", "AliasList": [ - "StorageAccountName" + "StorageAccountName", + "Name" ], "Type": { "Namespace": "System", @@ -19800,13 +18725,13 @@ "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AccountResourceId", "AliasList": [ - "SasDefinitionName" + "StorageAccountResourceId" ], "Type": { "Namespace": "System", @@ -19823,152 +18748,15 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByInputObject", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", + "Name": "ActiveKeyName", "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], "Type": { "Namespace": "System", "Name": "System.String", @@ -19984,14 +18772,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 2, + "Mandatory": true, + "Position": 3, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "DisableAutoRegenerateKey", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -20015,31 +18803,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RegenerationPeriod", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.TimeSpan" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -20050,23 +18825,16 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], + "Name": "Disable", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20076,21 +18844,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 2, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20105,7 +18875,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -20152,73 +18922,25 @@ "AliasList": [] }, { - "VerbName": "Remove", + "VerbName": "Backup", "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Remove-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultManagedStorageAccount", + "Name": "Backup-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.BackupAzureKeyVaultManagedStorageAccount", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByDefinitionName", + "DefaultParameterSetName": "ByStorageAccountName", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", - "AccountName": "System.String", - "AccountResourceId": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -20245,10 +18967,9 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -20267,11 +18988,13 @@ }, { "Name": "InputObject", - "AliasList": [], + "AliasList": [ + "StorageAccount" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -20327,12 +19050,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20342,7 +19065,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { "Name": "Force", @@ -20362,24 +19085,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -20416,7 +19121,7 @@ ], "ParameterSets": [ { - "Name": "ByDefinitionName", + "Name": "ByStorageAccountName", "Parameters": [ { "ParameterMetadata": { @@ -20444,10 +19149,9 @@ }, { "ParameterMetadata": { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -20471,12 +19175,12 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20486,10 +19190,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -20517,30 +19221,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -20583,16 +19263,18 @@ ] }, { - "Name": "ByInputObject", + "Name": "ByStorageAccount", "Parameters": [ { "ParameterMetadata": { "Name": "InputObject", - "AliasList": [], + "AliasList": [ + "StorageAccount" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -20654,12 +19336,12 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20669,10 +19351,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -20702,36 +19384,12 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", @@ -20770,12 +19428,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "OutputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20785,10 +19443,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -20816,30 +19474,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -20885,31 +19519,26 @@ "AliasList": [] }, { - "VerbName": "Remove", - "NounName": "AzKeyVaultManagedStorageSasDefinition", - "Name": "Remove-AzKeyVaultManagedStorageSasDefinition", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultSasDefinition", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "Get", + "NounName": "AzKeyVaultManagedStorageAccount", + "Name": "Get-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultManagedStorageAccount", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "ByDefinitionName", + "DefaultParameterSetName": "ByAccountName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "TemplateUri": "System.String", - "SasType": "System.String", - "ValidityPeriod": "System.String", - "Sid": "System.String", "AccountName": "System.String", + "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -20956,52 +19585,196 @@ "ParameterSets": [ "__AllParameterSets" ] - } - ], - "Parameters": [ + }, { - "Name": "VaultName", - "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ParameterSets": [ + "__AllParameterSets" + ] }, { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName" - ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ParameterSets": [ + "__AllParameterSets" + ] }, { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -21022,19 +19795,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -21065,7 +19850,27 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -21073,12 +19878,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Force", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21088,10 +19893,31 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "PassThru", + "Name": "AccountName", + "AliasList": [ + "StorageAccountName", + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -21144,7 +19970,7 @@ ], "ParameterSets": [ { - "Name": "ByDefinitionName", + "Name": "ByAccountName", "Parameters": [ { "ParameterMetadata": { @@ -21174,33 +20000,8 @@ "ParameterMetadata": { "Name": "AccountName", "AliasList": [ - "StorageAccountName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" + "StorageAccountName", + "Name" ], "Type": { "Namespace": "System", @@ -21217,38 +20018,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -21320,19 +20097,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -21363,7 +20152,27 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -21377,7 +20186,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -21401,17 +20210,85 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -21469,31 +20346,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -21560,29 +20413,198 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Restore-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultManagedStorageAccount", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "Get", + "NounName": "AzKeyVaultManagedStorageSasDefinition", + "Name": "Get-AzKeyVaultManagedStorageSasDefinition", + "ClassName": "Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultManagedStorageSasDefinition", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "ByDefinitionName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "TemplateUri": "System.String", + "SasType": "System.String", + "ValidityPeriod": "System.String", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "TemplateUri": "System.String", + "SasType": "System.String", + "ValidityPeriod": "System.String", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Sid": "System.String", "AccountName": "System.String", - "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -21650,36 +20672,44 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -21715,20 +20745,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -21738,8 +20754,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -21756,12 +20774,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputFile", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21771,7 +20789,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -21809,7 +20827,7 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "ByDefinitionName", "Parameters": [ { "ParameterMetadata": { @@ -21837,8 +20855,10 @@ }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -21859,6 +20879,56 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -21909,31 +20979,19 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -21969,20 +21027,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -21998,8 +21042,10 @@ }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -22015,8 +21061,32 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -22062,12 +21132,14 @@ ] }, { - "Name": "ByResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -22083,19 +21155,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22105,80 +21177,12 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -22225,29 +21229,31 @@ "AliasList": [] }, { - "VerbName": "Set", - "NounName": "AzKeyVaultManagedStorageSasDefinition", - "Name": "Set-AzKeyVaultManagedStorageSasDefinition", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultManagedStorageSasDefinition", + "VerbName": "Remove", + "NounName": "AzKeyVaultManagedStorageAccount", + "Name": "Remove-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultManagedStorageAccount", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "ByDefinitionName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "TemplateUri": "System.String", - "SasType": "System.String", - "ValidityPeriod": "System.String", - "Sid": "System.String", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", "AccountName": "System.String", + "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -22283,7 +21289,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -22312,7 +21324,8 @@ { "Name": "AccountName", "AliasList": [ - "StorageAccountName" + "StorageAccountName", + "Name" ], "Type": { "Namespace": "System", @@ -22335,7 +21348,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -22391,63 +21404,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "TemplateUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "SasType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Disable", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -22465,14 +21422,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22485,17 +21440,15 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "ValidityPeriod", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -22540,7 +21493,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "ByDefinitionName", "Parameters": [ { "ParameterMetadata": { @@ -22570,7 +21523,8 @@ "ParameterMetadata": { "Name": "AccountName", "AliasList": [ - "StorageAccountName" + "StorageAccountName", + "Name" ], "Type": { "Namespace": "System", @@ -22594,81 +21548,7 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "TemplateUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 3, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SasType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 4, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -22692,14 +21572,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22718,17 +21596,15 @@ }, { "ParameterMetadata": { - "Name": "ValidityPeriod", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -22737,7 +21613,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -22793,7 +21669,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -22855,81 +21731,7 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "TemplateUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 3, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SasType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 4, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -22953,14 +21755,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22979,17 +21779,15 @@ }, { "ParameterMetadata": { - "Name": "ValidityPeriod", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -22998,7 +21796,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -23049,81 +21847,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "TemplateUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 3, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SasType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 4, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -23147,14 +21871,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23173,17 +21895,15 @@ }, { "ParameterMetadata": { - "Name": "ValidityPeriod", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -23192,7 +21912,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -23242,29 +21962,31 @@ "AliasList": [] }, { - "VerbName": "Undo", - "NounName": "AzKeyVaultManagedStorageAccountRemoval", - "Name": "Undo-AzKeyVaultManagedStorageAccountRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultManagedStorageAccountRemoval", + "VerbName": "Remove", + "NounName": "AzKeyVaultManagedStorageSasDefinition", + "Name": "Remove-AzKeyVaultManagedStorageSasDefinition", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultSasDefinition", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "ByDefinitionName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "TemplateUri": "System.String", + "SasType": "System.String", + "ValidityPeriod": "System.String", + "Sid": "System.String", "AccountName": "System.String", - "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -23333,7 +22055,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", + "Name": "AccountName", "AliasList": [ "StorageAccountName" ], @@ -23352,21 +22074,39 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", + "Sid": "System.String", "AccountName": "System.String", - "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -23402,19 +22142,49 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -23451,7 +22221,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "ByDefinitionName", "Parameters": [ { "ParameterMetadata": { @@ -23479,7 +22249,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AccountName", "AliasList": [ "StorageAccountName" ], @@ -23503,6 +22273,80 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -23545,7 +22389,7 @@ ] }, { - "Name": "InputObject", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { @@ -23553,16 +22397,14 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", + "Sid": "System.String", "AccountName": "System.String", - "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -23598,13 +22440,7 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -23616,6 +22452,54 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -23660,6 +22544,54 @@ { "Name": "__AllParameterSets", "Parameters": [ + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -23705,29 +22637,29 @@ "AliasList": [] }, { - "VerbName": "Undo", - "NounName": "AzKeyVaultManagedStorageSasDefinitionRemoval", - "Name": "Undo-AzKeyVaultManagedStorageSasDefinitionRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultManagedStorageSasDefinitionRemoval", + "VerbName": "Restore", + "NounName": "AzKeyVaultManagedStorageAccount", + "Name": "Restore-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultManagedStorageAccount", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "ByVaultName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "TemplateUri": "System.String", - "SasType": "System.String", - "ValidityPeriod": "System.String", - "Sid": "System.String", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", "AccountName": "System.String", + "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -23763,7 +22695,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -23789,66 +22727,36 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -23884,6 +22792,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -23892,6 +22814,42 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "DefaultProfile", "AliasList": [ @@ -23928,7 +22886,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { @@ -23956,36 +22914,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SasDefinitionName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName" - ], + "Name": "InputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -24048,30 +22978,121 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -24118,83 +23139,104 @@ ] }, { - "Name": "InputObject", + "Name": "ByResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Sid": "System.String", - "AccountName": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", + "Name": "Clear", "Parameters": [], - "ReturnType": "System.Type" + "ReturnType": "System.Void" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "AccountName", - "AliasList": [ - "StorageAccountName" - ], + "Name": "InputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -24260,29 +23302,29 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzKeyVaultManagedStorageAccount", - "Name": "Update-AzKeyVaultManagedStorageAccount", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultManagedStorageAccount", + "VerbName": "Set", + "NounName": "AzKeyVaultManagedStorageSasDefinition", + "Name": "Set-AzKeyVaultManagedStorageSasDefinition", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultManagedStorageSasDefinition", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByDefinitionName", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", - "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", - "ActiveKeyName": "System.String", + "TemplateUri": "System.String", + "SasType": "System.String", + "ValidityPeriod": "System.String", + "Sid": "System.String", "AccountName": "System.String", - "AccountResourceId": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -24318,13 +23360,7 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -24353,8 +23389,7 @@ { "Name": "AccountName", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -24377,7 +23412,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -24433,8 +23468,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ActiveKeyName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -24451,57 +23488,51 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "AutoRegenerateKey", + "Name": "TemplateUri", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "RegenerationPeriod", + "Name": "SasType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "Enable", + "Name": "Disable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -24531,15 +23562,17 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "ValidityPeriod", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.TimeSpan" + ], "Methods": [], "Constructors": [] }, @@ -24584,7 +23617,7 @@ ], "ParameterSets": [ { - "Name": "ByDefinitionName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -24614,8 +23647,7 @@ "ParameterMetadata": { "Name": "AccountName", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -24639,8 +23671,10 @@ }, { "ParameterMetadata": { - "Name": "ActiveKeyName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -24656,76 +23690,70 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AutoRegenerateKey", + "Name": "TemplateUri", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 3, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RegenerationPeriod", + "Name": "SasType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 4, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "Disable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -24767,15 +23795,17 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ValidityPeriod", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.TimeSpan" + ], "Methods": [], "Constructors": [] }, @@ -24784,7 +23814,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -24840,7 +23870,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -24902,8 +23932,10 @@ }, { "ParameterMetadata": { - "Name": "ActiveKeyName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -24919,76 +23951,70 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AutoRegenerateKey", + "Name": "TemplateUri", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 3, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RegenerationPeriod", + "Name": "SasType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 4, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "Disable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -25030,15 +24056,17 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ValidityPeriod", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.TimeSpan" + ], "Methods": [], "Constructors": [] }, @@ -25047,7 +24075,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -25098,8 +24126,10 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "ActiveKeyName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -25115,76 +24145,70 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AutoRegenerateKey", + "Name": "TemplateUri", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 3, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RegenerationPeriod", + "Name": "SasType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 4, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "Disable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -25226,15 +24250,17 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ValidityPeriod", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.TimeSpan" + ], "Methods": [], "Constructors": [] }, @@ -25243,7 +24269,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -25293,20 +24319,20 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzKeyVaultManagedStorageAccountKey", - "Name": "Update-AzKeyVaultManagedStorageAccountKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultManagedStorageAccountKey", + "VerbName": "Undo", + "NounName": "AzKeyVaultManagedStorageAccountRemoval", + "Name": "Undo-AzKeyVaultManagedStorageAccountRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultManagedStorageAccountRemoval", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByDefinitionName", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -25384,10 +24410,9 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -25409,12 +24434,14 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "AccountName": "System.String", "AccountResourceId": "System.String", "TagsTable": "System.String", @@ -25465,60 +24492,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -25555,7 +24528,7 @@ ], "ParameterSets": [ { - "Name": "ByDefinitionName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -25583,10 +24556,9 @@ }, { "ParameterMetadata": { - "Name": "AccountName", + "Name": "Name", "AliasList": [ - "StorageAccountName", - "Name" + "StorageAccountName" ], "Type": { "Namespace": "System", @@ -25608,78 +24580,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -25722,7 +24622,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -25730,12 +24630,14 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "AccountName": "System.String", "AccountResourceId": "System.String", "TagsTable": "System.String", @@ -25791,78 +24693,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -25907,78 +24737,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -26024,43 +24782,34 @@ "AliasList": [] }, { - "VerbName": "New", - "NounName": "AzKeyVault", - "Name": "New-AzKeyVault", - "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault", + "VerbName": "Undo", + "NounName": "AzKeyVaultManagedStorageSasDefinitionRemoval", + "Name": "Undo-AzKeyVaultManagedStorageSasDefinitionRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultManagedStorageSasDefinitionRemoval", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "__AllParameterSets", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "TemplateUri": "System.String", + "SasType": "System.String", + "ValidityPeriod": "System.String", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -26091,27 +24840,7 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -26120,27 +24849,7 @@ ], "Parameters": [ { - "Name": "Name", - "AliasList": [ - "VaultName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceGroupName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -26158,8 +24867,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Location", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -26176,116 +24887,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "EnabledForDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnabledForDiskEncryption", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnablePurgeProtection", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnableRbacAuthorization", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "SoftDeleteRetentionInDays", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 7, - "ValidateRangeMax": 90, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Sku", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -26299,42 +24904,28 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "NetworkRuleSet", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", - "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", - "IpAddressRangesText": "System.String", - "VirtualNetworkResourceIdsText": "System.String" + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -26370,35 +24961,13 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "defaultAction", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "bypass", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ipAddressRanges", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "virtualNetworkResourceId", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { "Name": "DefaultProfile", @@ -26436,14 +25005,12 @@ ], "ParameterSets": [ { - "Name": "__AllParameterSets", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "VaultName" - ], + "Name": "VaultName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -26462,12 +25029,14 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SasDefinitionName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -26484,14 +25053,16 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Location", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -26508,22 +25079,37 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 2, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnabledForDeployment", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -26534,16 +25120,23 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -26553,147 +25146,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EnablePurgeProtection", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableRbacAuthorization", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SoftDeleteRetentionInDays", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 7, - "ValidateRangeMax": 90, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Sku", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Tag", + "Name": "DefaultProfile", "AliasList": [ - "Tags" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -26704,23 +25190,34 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "InputObject", + "Parameters": [ { "ParameterMetadata": { - "Name": "NetworkRuleSet", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultManagedStorageSasDefinitionIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", - "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", - "IpAddressRangesText": "System.String", - "VirtualNetworkResourceIdsText": "System.String" + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Sid": "System.String", + "AccountName": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -26756,38 +25253,42 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "defaultAction", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "bypass", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ipAddressRanges", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "virtualNetworkResourceId", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AccountName", + "AliasList": [ + "StorageAccountName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -26836,51 +25337,38 @@ "AliasList": [] }, { - "VerbName": "New", - "NounName": "AzKeyVaultCertificatePolicy", - "Name": "New-AzKeyVaultCertificatePolicy", - "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVaultCertificatePolicy", + "VerbName": "Update", + "NounName": "AzKeyVaultManagedStorageAccount", + "Name": "Update-AzKeyVaultManagedStorageAccount", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultManagedStorageAccount", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "SubjectName", + "DefaultParameterSetName": "ByDefinitionName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DnsNames": "System.Collections.Generic.List`1[System.String]", - "KeyUsage": "System.Collections.Generic.List`1[System.String]", - "Ekus": "System.Collections.Generic.List`1[System.String]", - "Enabled": "System.Nullable`1[System.Boolean]", - "CertificateTransparency": "System.Nullable`1[System.Boolean]", - "Exportable": "System.Nullable`1[System.Boolean]", - "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "ValidityInMonths": "System.Nullable`1[System.Int32]", - "KeySize": "System.Nullable`1[System.Int32]", - "IssuerName": "System.String", - "SubjectName": "System.String", - "Curve": "System.String", - "Kty": "System.String", - "CertificateType": "System.String", - "SecretContentType": "System.String" + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" - }, { "Name": "ToString", "Parameters": [], @@ -26912,88 +25400,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "dnsNames", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyUsages", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ekus", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "issuerName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "reuseKeyOnRenewal", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "secretContentType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "subjectName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "validityInMonths", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keySize", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "curve", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "exportable", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateTransparency", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -27004,7 +25410,7 @@ ], "Parameters": [ { - "Name": "IssuerName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -27019,11 +25425,14 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "SubjectName", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName", + "Name" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -27037,98 +25446,156 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "DnsName", - "AliasList": [ - "DnsNames" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.String" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ActiveKeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "RenewAtNumberOfDaysBeforeExpiry", + "Name": "AutoRegenerateKey", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.Boolean" ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "RenewAtPercentageLifetime", + "Name": "RegenerationPeriod", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.TimeSpan" ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "SecretContentType", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "ReuseKeyOnRenewal", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27141,7 +25608,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Disabled", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -27158,234 +25625,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "KeyUsage", - "AliasList": [], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Ekus", - "AliasList": [], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ValidityInMonths", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CertificateType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EmailAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeySize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyNotExportable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -27422,11 +25661,11 @@ ], "ParameterSets": [ { - "Name": "__AllParameterSets", + "Name": "ByDefinitionName", "Parameters": [ { "ParameterMetadata": { - "Name": "IssuerName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -27441,83 +25680,81 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RenewAtNumberOfDaysBeforeExpiry", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName", + "Name" + ], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RenewAtPercentageLifetime", + "Name": "ActiveKeyName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SecretContentType", + "Name": "AutoRegenerateKey", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -27525,19 +25762,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ReuseKeyOnRenewal", + "Name": "RegenerationPeriod", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.TimeSpan" + ], "Methods": [], "Constructors": [] }, @@ -27549,19 +25788,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disabled", + "Name": "Enable", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -27573,21 +25814,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyUsage", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -27599,21 +25840,19 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Ekus", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -27625,22 +25864,35 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ValidityInMonths", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -27651,11 +25903,83 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CertificateType", + "Name": "ActiveKeyName", "AliasList": [], "Type": { "Namespace": "System", @@ -27670,25 +25994,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", + "Name": "AutoRegenerateKey", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.Boolean" ], "Methods": [], "Constructors": [] @@ -27701,20 +26025,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", + "Name": "RegenerationPeriod", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.TimeSpan" ], "Methods": [], "Constructors": [] @@ -27727,28 +26051,25 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -27756,30 +26077,25 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeySize", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -27787,11 +26103,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyNotExportable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -27811,63 +26127,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -27911,11 +26171,11 @@ ] }, { - "Name": "SubjectName", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "SubjectName", + "Name": "ActiveKeyName", "AliasList": [], "Type": { "Namespace": "System", @@ -27930,24 +26190,26 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IssuerName", + "Name": "AutoRegenerateKey", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -27956,81 +26218,80 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RenewAtNumberOfDaysBeforeExpiry", + "Name": "RegenerationPeriod", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.TimeSpan" ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RenewAtPercentageLifetime", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "System.Boolean" ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SecretContentType", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -28038,11 +26299,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ReuseKeyOnRenewal", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -28062,20 +26323,35 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disabled", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -28086,225 +26362,356 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzKeyVaultManagedStorageAccountKey", + "Name": "Update-AzKeyVaultManagedStorageAccountKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultManagedStorageAccountKey", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByDefinitionName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AutoRegenerateKey": "System.Nullable`1[System.Boolean]", + "RegenerationPeriod": "System.Nullable`1[System.TimeSpan]", + "ActiveKeyName": "System.String", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AccountName", + "AliasList": [ + "StorageAccountName", + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByDefinitionName", + "Parameters": [ { "ParameterMetadata": { - "Name": "KeyUsage", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Ekus", - "AliasList": [], + "Name": "AccountName", + "AliasList": [ + "StorageAccountName", + "Name" + ], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ValidityInMonths", + "Name": "KeyName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "CertificateType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "KeyType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "KeySize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyNotExportable", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -28324,55 +26731,23 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Curve", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -28380,7 +26755,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -28424,63 +26799,78 @@ ] }, { - "Name": "DNSNames", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "SubjectName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", + "TagsDictionary": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "AccountName": "System.String", + "AccountResourceId": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "DnsName", - "AliasList": [ - "DnsNames" - ], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IssuerName", + "Name": "KeyName", "AliasList": [], "Type": { "Namespace": "System", @@ -28495,95 +26885,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "RenewAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "RenewAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "SecretContentType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ReuseKeyOnRenewal", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -28603,11 +26914,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disabled", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -28627,22 +26938,35 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyUsage", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -28653,47 +26977,48 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Ekus", + "Name": "KeyName", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ValidityInMonths", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -28705,16 +27030,16 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CertificateType", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28729,226 +27054,34 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "KeyType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "KeySize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "KeyNotExportable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], "Constructors": [] }, @@ -28968,59 +27101,20 @@ "AliasList": [] }, { - "VerbName": "Remove", + "VerbName": "New", "NounName": "AzKeyVault", - "Name": "Remove-AzKeyVault", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVault", + "Name": "New-AzKeyVault", + "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByAvailableVault", + "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [ - "Name" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -29096,14 +27190,17 @@ } ] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ { - "Name": "ResourceId", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "VaultName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -29156,7 +27253,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InRemovedState", + "Name": "EnabledForDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29174,7 +27271,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Force", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29192,7 +27289,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "AsJob", + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29210,7 +27307,25 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "EnablePurgeProtection", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29227,6 +27342,141 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "SoftDeleteRetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 7, + "ValidateRangeMax": 90, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Sku", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "NetworkRuleSet", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", + "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", + "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", + "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", + "IpAddressRangesText": "System.String", + "VirtualNetworkResourceIdsText": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "defaultAction", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "bypass", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ipAddressRanges", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "virtualNetworkResourceId", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -29263,13 +27513,13 @@ ], "ParameterSets": [ { - "Name": "ByAvailableVault", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "Name", "AliasList": [ - "Name" + "VaultName" ], "Type": { "Namespace": "System", @@ -29289,7 +27539,7 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -29310,10 +27560,10 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -29334,14 +27584,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EnabledForDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29361,11 +27611,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29385,11 +27635,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -29409,35 +27659,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "EnablePurgeProtection", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -29449,22 +27684,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByDeletedVault", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [ - "Name" - ], + "Name": "EnableRbacAuthorization", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29474,21 +27702,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Location", + "Name": "SoftDeleteRetentionInDays", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29496,23 +27724,23 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, + "ValidateRangeMin": 7, + "ValidateRangeMax": 90, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "Sku", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29524,67 +27752,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29599,83 +27781,23 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectByAvailableVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", + "Name": "NetworkRuleSet", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", + "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", + "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", + "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", + "IpAddressRangesText": "System.String", + "VirtualNetworkResourceIdsText": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -29717,220 +27839,19 @@ "ReturnType": null, "Parameters": [ { - "Name": "vault", + "Name": "defaultAction", "Type": "System.Reflection.RuntimeParameterInfo" }, { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectByDeletedVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", + "Name": "bypass", "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ + }, { - "Name": "vault", + "Name": "ipAddressRanges", "Type": "System.Reflection.RuntimeParameterInfo" }, { - "Name": "adClient", + "Name": "virtualNetworkResourceId", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -29940,102 +27861,6 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -30083,520 +27908,56 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzKeyVaultCertificatePolicy", + "Name": "New-AzKeyVaultCertificatePolicy", + "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVaultCertificatePolicy", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "SubjectName", + "OutputTypes": [ { - "Name": "ResourceIdByAvailableVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResourceIdByDeletedVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultAccessPolicy", - "Name": "Remove-AzKeyVaultAccessPolicy", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultAccessPolicy", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByUserPrincipalName", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DnsNames": "System.Collections.Generic.List`1[System.String]", + "KeyUsage": "System.Collections.Generic.List`1[System.String]", + "Ekus": "System.Collections.Generic.List`1[System.String]", + "Enabled": "System.Nullable`1[System.Boolean]", + "CertificateTransparency": "System.Nullable`1[System.Boolean]", + "Exportable": "System.Nullable`1[System.Boolean]", + "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", + "Updated": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "ValidityInMonths": "System.Nullable`1[System.Int32]", + "KeySize": "System.Nullable`1[System.Int32]", + "IssuerName": "System.String", + "SubjectName": "System.String", + "Curve": "System.String", + "Kty": "System.String", + "CertificateType": "System.String", + "SecretContentType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, { "Name": "ToString", "Parameters": [], @@ -30634,43 +27995,111 @@ "ReturnType": null, "Parameters": [ { - "Name": "vault", + "Name": "dnsNames", "Type": "System.Reflection.RuntimeParameterInfo" }, { - "Name": "adClient", + "Name": "keyUsages", "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], + }, + { + "Name": "ekus", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "issuerName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "reuseKeyOnRenewal", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "secretContentType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "subjectName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "validityInMonths", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keySize", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "curve", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "exportable", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateTransparency", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "IssuerName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceGroupName", + "Name": "SubjectName", "AliasList": [], "Type": { "Namespace": "System", @@ -30685,97 +28114,72 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", - "AliasList": [], + "Name": "DnsName", + "AliasList": [ + "DnsNames" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.String" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceId", + "Name": "RenewAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RenewAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SecretContentType", "AliasList": [], "Type": { "Namespace": "System", @@ -30787,20 +28191,39 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ReuseKeyOnRenewal", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], + "Name": "Disabled", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -30810,30 +28233,70 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], + "Name": "KeyUsage", + "AliasList": [], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Ekus", + "AliasList": [], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.String" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ValidityInMonths", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ObjectId", + "Name": "CertificateType", "AliasList": [], "Type": { "Namespace": "System", @@ -30848,37 +28311,39 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "EmailAddress", + "Name": "EmailAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ApplicationId", + "Name": "EmailAtPercentageLifetime", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Guid" + "System.Int32" ], "Methods": [], "Constructors": [] @@ -30889,43 +28354,55 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "EnabledForDeployment", + "Name": "KeyType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "EnabledForTemplateDeployment", + "Name": "KeySize", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "EnabledForDiskEncryption", + "Name": "KeyNotExportable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -30943,15 +28420,17 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "CertificateTransparency", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -30960,6 +28439,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Curve", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -30996,11 +28499,11 @@ ], "ParameterSets": [ { - "Name": "ByObjectId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "IssuerName", "AliasList": [], "Type": { "Namespace": "System", @@ -31015,40 +28518,68 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "RenewAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "RenewAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "SecretContentType", "AliasList": [], "Type": { "Namespace": "System", @@ -31060,29 +28591,30 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ApplicationId", + "Name": "ReuseKeyOnRenewal", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -31094,11 +28626,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Disabled", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -31118,35 +28650,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyUsage", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -31157,67 +28676,64 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByServicePrincipalName", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "VaultName", + "Name": "Ekus", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.String" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "ValidityInMonths", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], + "Name": "CertificateType", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -31231,24 +28747,26 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EmailAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -31260,35 +28778,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "EmailAtPercentageLifetime", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -31299,16 +28804,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByUserPrincipalName", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyType", "AliasList": [], "Type": { "Namespace": "System", @@ -31320,24 +28820,60 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "KeySize", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "KeyNotExportable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31347,54 +28883,60 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], + "Name": "CertificateTransparency", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Curve", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -31402,7 +28944,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -31446,11 +28988,11 @@ ] }, { - "Name": "ByEmail", + "Name": "SubjectName", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "SubjectName", "AliasList": [], "Type": { "Namespace": "System", @@ -31465,16 +29007,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 0, + "Position": 1, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "IssuerName", "AliasList": [], "Type": { "Namespace": "System", @@ -31489,16 +29031,68 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "RenewAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EmailAddress", + "Name": "RenewAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "SecretContentType", "AliasList": [], "Type": { "Namespace": "System", @@ -31510,19 +29104,22 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ReuseKeyOnRenewal", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -31542,35 +29139,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Disabled", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -31581,72 +29163,73 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ForVault", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyUsage", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Ekus", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.String" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForDeployment", + "Name": "ValidityInMonths", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -31658,16 +29241,16 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", + "Name": "CertificateType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31682,19 +29265,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", + "Name": "EmailAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -31706,19 +29291,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EmailAtPercentageLifetime", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -31730,38 +29317,28 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyType", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -31769,114 +29346,47 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectByObjectId", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "KeySize", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "KeyNotExportable", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -31886,25 +29396,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ApplicationId", + "Name": "CertificateTransparency", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Guid" + "System.Boolean" ], "Methods": [], "Constructors": [] @@ -31917,23 +29427,29 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Curve", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -31941,7 +29457,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -31985,107 +29501,64 @@ ] }, { - "Name": "InputObjectByServicePrincipalName", + "Name": "DNSNames", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "SubjectName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ServicePrincipalName", + "Name": "DnsName", "AliasList": [ - "SPN" + "DnsNames" ], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.String" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "IssuerName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -32099,184 +29572,100 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "RenewAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RenewAtPercentageLifetime", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectByUserPrincipalName", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "SecretContentType", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], + "Name": "ReuseKeyOnRenewal", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32286,16 +29675,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Disabled", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -32315,35 +29704,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyUsage", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -32354,141 +29730,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectByEmail", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "Ekus", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.String" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -32500,156 +29756,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectForVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForDeployment", + "Name": "ValidityInMonths", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -32661,16 +29782,16 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", + "Name": "CertificateType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -32685,19 +29806,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", + "Name": "EmailAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -32709,59 +29832,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EmailAtPercentageLifetime", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -32772,40 +29858,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResourceIdByObjectId", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "KeyType", "AliasList": [], "Type": { "Namespace": "System", @@ -32817,33 +29874,43 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ApplicationId", + "Name": "KeySize", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -32851,11 +29918,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "KeyNotExportable", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -32875,82 +29942,38 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResourceIdByServicePrincipalName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", + "Name": "CertificateTransparency", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], + "Name": "Curve", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -32961,31 +29984,13 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -32993,7 +29998,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -33035,39 +30040,313 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Remove", + "NounName": "AzKeyVault", + "Name": "Remove-AzKeyVault", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVault", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByAvailableVault", + "OutputTypes": [ { - "Name": "ResourceIdByUserPrincipalName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [ + "Name" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Location", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByAvailableVault", + "Parameters": [ { "ParameterMetadata": { - "Name": "UserPrincipalName", + "Name": "VaultName", "AliasList": [ - "UPN" + "Name" ], "Type": { "Namespace": "System", @@ -33085,18 +30364,18 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33106,65 +30385,45 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Location", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResourceIdByEmail", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33174,21 +30433,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAddress", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33198,9 +30457,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -33271,12 +30530,14 @@ ] }, { - "Name": "ResourceIdForVault", + "Name": "ByDeletedVault", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "VaultName", + "AliasList": [ + "Name" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -33295,16 +30556,16 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnabledForDeployment", + "Name": "Location", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33314,16 +30575,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -33340,14 +30601,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -33371,7 +30632,7 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -33393,50 +30654,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ { "ParameterMetadata": { "Name": "PassThru", @@ -33501,283 +30718,92 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultCertificate", - "Name": "Remove-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificate", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultNameAndName", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "RecoveryLevel": "System.String", - "Thumbprint": "System.String", - "SecretId": "System.String", - "KeyId": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByVaultNameAndName", + "Name": "InputObjectByAvailableVault", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -33786,36 +30812,12 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -33839,7 +30841,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -33927,7 +30929,7 @@ ] }, { - "Name": "ByObject", + "Name": "InputObjectByDeletedVault", "Parameters": [ { "ParameterMetadata": { @@ -33935,19 +30937,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -33983,6 +30997,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -34015,7 +31043,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -34044,6 +31072,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "PassThru", @@ -34110,11 +31162,59 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ResourceIdByAvailableVault", "Parameters": [ { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Location", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -34138,7 +31238,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -34224,272 +31324,37 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultCertificateContact", - "Name": "Remove-AzKeyVaultCertificateContact", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateContact", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByName", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Email": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Name": "ResourceIdByDeletedVault", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByName", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "Location", "AliasList": [], "Type": { "Namespace": "System", @@ -34507,20 +31372,20 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAddress", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -34528,16 +31393,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -34561,31 +31426,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -34597,128 +31447,6 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByObject", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -34786,59 +31514,11 @@ ] }, { - "Name": "ByResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -34862,31 +31542,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -34898,35 +31563,6 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -34998,28 +31634,44 @@ }, { "VerbName": "Remove", - "NounName": "AzKeyVaultCertificateIssuer", - "Name": "Remove-AzKeyVaultCertificateIssuer", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateIssuer", + "NounName": "AzKeyVaultAccessPolicy", + "Name": "Remove-AzKeyVaultAccessPolicy", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultAccessPolicy", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "ByUserPrincipalName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "OrganizationDetails": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "ApiKey": "System.Security.SecureString", - "AccountId": "System.String", - "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, "GenericTypeArguments": [], "Methods": [ { @@ -35053,6 +31705,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -35081,10 +31747,8 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "IssuerName" - ], + "Name": "ResourceGroupName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -35105,12 +31769,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -35146,6 +31829,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -35155,7 +31852,157 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Force", + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ServicePrincipalName", + "AliasList": [ + "SPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ObjectId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "EmailAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ApplicationId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Guid" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForTemplateDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -35226,7 +32073,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "ByObjectId", "Parameters": [ { "ParameterMetadata": { @@ -35254,10 +32101,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IssuerName" - ], + "Name": "ResourceGroupName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -35273,19 +32118,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35295,6 +32140,32 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ApplicationId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Guid" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -35368,57 +32239,21 @@ ] }, { - "Name": "InputObject", + "Name": "ByServicePrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -35427,17 +32262,17 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35447,9 +32282,35 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ServicePrincipalName", + "AliasList": [ + "SPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -35520,16 +32381,16 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByUserPrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35539,9 +32400,59 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -35610,275 +32521,28 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultCertificateOperation", - "Name": "Remove-AzKeyVaultCertificateOperation", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateOperation", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "__AllParameterSets", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "Name": "ByEmail", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": 0, @@ -35887,10 +32551,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "ResourceGroupName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -35906,19 +32568,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EmailAddress", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35928,9 +32590,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -36001,66 +32663,21 @@ ] }, { - "Name": "InputObject", + "Name": "ForVault", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -36069,12 +32686,84 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForTemplateDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -36162,16 +32851,109 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "InputObjectByObjectId", "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ObjectId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36181,6 +32963,32 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ApplicationId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Guid" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -36252,292 +33060,92 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultKey", - "Name": "Remove-AzKeyVaultKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultKey", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByVaultName", + "Name": "InputObjectByServicePrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -36546,14 +33154,14 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "ServicePrincipalName", "AliasList": [ - "KeyName" + "SPN" ], "Type": { "Namespace": "System", @@ -36571,30 +33179,6 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -36623,30 +33207,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -36689,7 +33249,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObjectByUserPrincipalName", "Parameters": [ { "ParameterMetadata": { @@ -36697,21 +33257,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -36747,6 +33317,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -36762,12 +33346,14 @@ }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36777,9 +33363,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -36808,30 +33394,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -36874,40 +33436,109 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "InputObjectByEmail", "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EmailAddress", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36917,16 +33548,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -36988,292 +33619,92 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzKeyVaultSecret", - "Name": "Remove-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultSecret", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SecretName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ByVaultName", + "Name": "InputObjectForVault", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -37282,19 +33713,17 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SecretName" - ], + "Name": "EnabledForDeployment", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37304,16 +33733,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -37337,7 +33766,7 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -37361,7 +33790,7 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -37425,66 +33854,21 @@ ] }, { - "Name": "ByInputObject", + "Name": "ResourceIdByObjectId", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -37493,17 +33877,17 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "Force", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37513,24 +33897,26 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ApplicationId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Guid" + ], "Methods": [], "Constructors": [] }, @@ -37546,7 +33932,7 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -37610,16 +33996,16 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ResourceIdByServicePrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37629,21 +34015,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "ServicePrincipalName", + "AliasList": [ + "SPN" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37653,16 +34041,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -37724,274 +34112,14 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzManagedHsm", - "Name": "Remove-AzManagedHsm", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureManagedHsm", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "RemoveManagedHsmByName", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "Name", - "AliasList": [ - "HsmName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "RemoveManagedHsmByName", + "Name": "ResourceIdByUserPrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -38010,12 +34138,14 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -38031,55 +34161,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -38150,105 +34232,16 @@ ] }, { - "Name": "RemoveManagedHsmByInputObject", + "Name": "ResourceIdByEmail", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38258,21 +34251,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "EmailAddress", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38282,9 +34275,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -38355,7 +34348,7 @@ ] }, { - "Name": "RemoveManagedHsmByResourceId", + "Name": "ResourceIdForVault", "Parameters": [ { "ParameterMetadata": { @@ -38383,7 +34376,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EnabledForDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38407,7 +34400,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38431,7 +34424,31 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "EnabledForDiskEncryption", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38497,54 +34514,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -38615,32 +34584,33 @@ }, { "VerbName": "Remove", - "NounName": "AzManagedHsmKey", - "Name": "Remove-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureManagedHsmKey", + "NounName": "AzKeyVaultCertificate", + "Name": "Remove-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificate", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "RemoveByKeyNameParameterSet", + "DefaultParameterSetName": "ByVaultNameAndName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", "RecoveryLevel": "System.String", - "TagsTable": "System.String", + "Thumbprint": "System.String", + "SecretId": "System.String", + "KeyId": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -38675,13 +34645,7 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -38690,7 +34654,7 @@ ], "Parameters": [ { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -38709,9 +34673,7 @@ }, { "Name": "Name", - "AliasList": [ - "KeyName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -38732,8 +34694,8 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", @@ -38741,8 +34703,6 @@ "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -38791,7 +34751,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Force", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38809,7 +34769,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38827,7 +34787,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -38880,11 +34840,11 @@ ], "ParameterSets": [ { - "Name": "RemoveByKeyNameParameterSet", + "Name": "ByVaultNameAndName", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -38909,9 +34869,7 @@ { "ParameterMetadata": { "Name": "Name", - "AliasList": [ - "KeyName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -38932,6 +34890,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -38980,6 +34962,117 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "InRemovedState", @@ -39004,119 +35097,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RemoveByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "Force", @@ -39165,30 +35145,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "InRemovedState", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -39235,7 +35191,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -39259,7 +35215,7 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -39283,7 +35239,7 @@ }, { "ParameterMetadata": { - "Name": "InRemovedState", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -39350,36 +35306,23 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzKeyVaultCertificate", - "Name": "Restore-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultCertificate", + "VerbName": "Remove", + "NounName": "AzKeyVaultCertificateContact", + "Name": "Remove-AzKeyVaultCertificateContact", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateContact", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "ByName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "KeyId": "System.String", - "SecretId": "System.String", - "Thumbprint": "System.String", - "RecoveryLevel": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "Email": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -39410,7 +35353,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -39442,7 +35391,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -39542,14 +35491,14 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputFile", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -39559,6 +35508,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -39595,7 +35562,7 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "ByName", "Parameters": [ { "ParameterMetadata": { @@ -39623,14 +35590,14 @@ }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -39645,6 +35612,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -39687,7 +35678,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "ByObject", "Parameters": [ { "ParameterMetadata": { @@ -39696,7 +35687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -39784,14 +35775,14 @@ }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -39806,6 +35797,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -39876,14 +35891,14 @@ }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -39898,6 +35913,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -39944,14 +35983,14 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "InputFile", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -39966,6 +36005,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -40011,35 +36074,27 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzKeyVaultKey", - "Name": "Restore-AzKeyVaultKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultKey", + "VerbName": "Remove", + "NounName": "AzKeyVaultCertificateIssuer", + "Name": "Remove-AzKeyVaultCertificateIssuer", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateIssuer", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuer, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", + "OrganizationDetails": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", + "ApiKey": "System.Security.SecureString", + "AccountId": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "IssuerProvider": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -40102,36 +36157,37 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [ + "IssuerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -40167,20 +36223,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -40190,12 +36232,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40205,15 +36247,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputFile", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40223,7 +36265,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -40261,7 +36303,7 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -40289,8 +36331,10 @@ }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -40311,6 +36355,54 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -40353,7 +36445,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -40361,31 +36453,12 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -40421,20 +36494,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -40450,12 +36509,12 @@ }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40465,89 +36524,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByResourceId", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40557,10 +36548,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -40610,12 +36601,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "InputFile", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40625,10 +36616,34 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -40677,35 +36692,33 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzKeyVaultSecret", - "Name": "Restore-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultSecret", + "VerbName": "Remove", + "NounName": "AzKeyVaultCertificateOperation", + "Name": "Remove-AzKeyVaultCertificateOperation", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultCertificateOperation", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -40768,36 +36781,46 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", + "Name": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -40833,20 +36856,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -40856,12 +36865,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40871,15 +36880,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputFile", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40889,7 +36898,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -40927,7 +36936,7 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -40955,8 +36964,10 @@ }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "CertificateName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -40977,6 +36988,54 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -41019,7 +37078,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -41027,31 +37086,21 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", + "Name": "System.String", + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -41087,20 +37136,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -41116,12 +37151,12 @@ }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41131,89 +37166,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByResourceId", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41223,10 +37190,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -41276,12 +37243,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "InputFile", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41291,10 +37258,34 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -41343,34 +37334,37 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzManagedHsmKey", - "Name": "Restore-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureManagedHsmKey", + "VerbName": "Remove", + "NounName": "AzKeyVaultKey", + "Name": "Remove-AzKeyVaultKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultKey", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByHsmName", + "DefaultParameterSetName": "ByVaultName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Version": "System.String", "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", - "Version": "System.String", "Id": "System.String" }, "ElementType": null, @@ -41416,6 +37410,24 @@ } ], "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "HsmName", "AliasList": [], @@ -41434,32 +37446,47 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -41495,20 +37522,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -41518,12 +37531,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41533,15 +37546,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputFile", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41551,7 +37564,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -41589,11 +37620,11 @@ ], "ParameterSets": [ { - "Name": "ByHsmName", + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -41617,8 +37648,10 @@ }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "KeyName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -41641,31 +37674,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Force", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -41677,109 +37695,39 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByInputObject", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InputFile", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41789,10 +37737,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -41838,11 +37786,11 @@ ] }, { - "Name": "ByResourceId", + "Name": "HsmByVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "HsmName", "AliasList": [], "Type": { "Namespace": "System", @@ -41860,14 +37808,16 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "InputFile", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "KeyName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -41888,6 +37838,78 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -41930,16 +37952,86 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "InputFile", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "IsHsm": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41949,10 +38041,58 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -41996,48 +38136,158 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Set", - "NounName": "AzKeyVaultAccessPolicy", - "Name": "Set-AzKeyVaultAccessPolicy", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultAccessPolicy", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ByUserPrincipalName", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "InRemovedState", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Remove", + "NounName": "AzKeyVaultSecret", + "Name": "Remove-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultSecret", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -42073,20 +38323,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -42115,8 +38351,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -42137,15 +38375,21 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -42181,16 +38425,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -42200,287 +38434,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ObjectId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ApplicationId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnabledForDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnabledForDiskEncryption", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -42498,7 +38452,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "BypassObjectIdValidation", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -42516,7 +38470,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -42569,7 +38523,7 @@ ], "ParameterSets": [ { - "Name": "ByObjectId", + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { @@ -42597,8 +38551,10 @@ }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -42614,19 +38570,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42636,186 +38592,6 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ApplicationId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -42825,7 +38601,7 @@ }, { "ParameterMetadata": { - "Name": "BypassObjectIdValidation", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -42849,7 +38625,7 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -42913,21 +38689,66 @@ ] }, { - "Name": "ByServicePrincipalName", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -42936,17 +38757,17 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42956,23 +38777,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42982,45 +38801,28 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToKeys", + "Name": "InRemovedState", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43032,28 +38834,34 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43062,39 +38870,27 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToCertificates", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43106,34 +38902,19 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToStorage", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43145,7 +38926,7 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InRemovedState", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -43207,39 +38988,275 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Remove", + "NounName": "AzKeyVaultManagedHsm", + "Name": "Remove-AzKeyVaultManagedHsm", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureManagedHsm", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "RemoveManagedHsmByName", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "Name", + "AliasList": [ + "HsmName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ByUserPrincipalName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" }, - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "RemoveManagedHsmByName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "HsmName" + ], + "Type": { "Namespace": "System", "Name": "System.String", "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", @@ -43254,17 +39271,15 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 1, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], + "Name": "ResourceGroupName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -43280,43 +39295,50 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToKeys", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43328,28 +39350,58 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToSecrets", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43358,39 +39410,116 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RemoveManagedHsmByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToCertificates", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43402,34 +39531,19 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToStorage", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43505,11 +39619,11 @@ ] }, { - "Name": "ByEmailAddress", + "Name": "RemoveManagedHsmByResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -43529,16 +39643,16 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43548,21 +39662,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAddress", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43572,45 +39686,28 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToKeys", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43622,28 +39719,34 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43652,39 +39755,27 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToCertificates", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43696,34 +39787,19 @@ }, { "ParameterMetadata": { - "Name": "PermissionsToStorage", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -43797,9 +39873,257 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Restore", + "NounName": "AzKeyVaultCertificate", + "Name": "Restore-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultCertificate", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "KeyId": "System.String", + "SecretId": "System.String", + "Thumbprint": "System.String", + "RecoveryLevel": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ForVault", + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { @@ -43827,7 +40151,7 @@ }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -43844,107 +40168,11 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "EnabledForDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -43987,7 +40215,7 @@ ] }, { - "Name": "InputObjectByObjectId", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { @@ -43995,14 +40223,30 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", "TagsTable": "System.String" }, "ElementType": null, @@ -44045,7 +40289,11 @@ "ReturnType": null, "Parameters": [ { - "Name": "resource", + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -44064,7 +40312,7 @@ }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -44082,24 +40330,37 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ApplicationId", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -44111,169 +40372,20 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToStorage", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "BypassObjectIdValidation", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44283,21 +40395,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44307,10 +40419,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -44356,87 +40468,12 @@ ] }, { - "Name": "InputObjectByServicePrincipalName", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "InputFile", "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], "Type": { "Namespace": "System", "Name": "System.String", @@ -44453,185 +40490,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -44675,72 +40534,396 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Restore", + "NounName": "AzKeyVaultKey", + "Name": "Restore-AzKeyVaultKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultKey", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ { - "Name": "InputObjectByUserPrincipalName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", + "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "HsmObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "HsmResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByVaultName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -44749,15 +40932,13 @@ }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], + "Name": "InputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -44774,42 +40955,40 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -44818,130 +40997,46 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "HsmByVaultName", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToSecrets", + "Name": "HsmName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToCertificates", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -44949,10 +41044,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -44998,7 +41093,7 @@ ] }, { - "Name": "InputObjectByEmailAddress", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { @@ -45006,14 +41101,30 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", "TagsTable": "System.String" }, "ElementType": null, @@ -45056,7 +41167,11 @@ "ReturnType": null, "Parameters": [ { - "Name": "resource", + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -45075,7 +41190,7 @@ }, { "ParameterMetadata": { - "Name": "EmailAddress", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -45093,185 +41208,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -45317,23 +41254,35 @@ ] }, { - "Name": "InputObjectForVault", + "Name": "HsmByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "HsmObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", "Location": "System.String", - "TagsTable": "System.String" + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "Name": "System.String", + "StatusMessage": "System.String", + "HsmUri": "System.String", + "TenantName": "System.String", + "Sku": "System.String", + "ProvisioningState": "System.String", + "TagsTable": "System.String", + "InitialAdminObjectIds": "System.String[]" }, "ElementType": null, "GenericTypeArguments": [], @@ -45375,7 +41324,11 @@ "ReturnType": null, "Parameters": [ { - "Name": "resource", + "Name": "managedHsm", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -45394,12 +41347,12 @@ }, { "ParameterMetadata": { - "Name": "EnabledForDeployment", + "Name": "InputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45409,25 +41362,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -45439,15 +41407,20 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ { "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45457,21 +41430,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45481,10 +41454,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -45530,11 +41503,11 @@ ] }, { - "Name": "ResourceIdByObjectId", + "Name": "HsmByResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "HsmResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -45552,13 +41525,13 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "ObjectId", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -45576,24 +41549,37 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ApplicationId", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Guid]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Guid" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -45605,72 +41591,66 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToKeys", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -45679,99 +41659,340 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Restore", + "NounName": "AzKeyVaultSecret", + "Name": "Restore-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RestoreAzureKeyVaultSecret", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputFile", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByVaultName", + "Parameters": [ { "ParameterMetadata": { - "Name": "PermissionsToCertificates", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToStorage", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "BypassObjectIdValidation", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -45783,15 +42004,113 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "InputFile", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45801,10 +42120,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -45850,7 +42169,7 @@ ] }, { - "Name": "ResourceIdByServicePrincipalName", + "Name": "ByResourceId", "Parameters": [ { "ParameterMetadata": { @@ -45878,10 +42197,8 @@ }, { "ParameterMetadata": { - "Name": "ServicePrincipalName", - "AliasList": [ - "SPN" - ], + "Name": "InputFile", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -45898,215 +42215,37 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -46122,11 +42261,11 @@ ] }, { - "Name": "ResourceIdByUserPrincipalName", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputFile", "AliasList": [], "Type": { "Namespace": "System", @@ -46144,211 +42283,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "UserPrincipalName", - "AliasList": [ - "UPN" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -46392,562 +42327,56 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Set", + "NounName": "AzKeyVaultAccessPolicy", + "Name": "Set-AzKeyVaultAccessPolicy", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultAccessPolicy", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByUserPrincipalName", + "OutputTypes": [ { - "Name": "ResourceIdByEmailAddress", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, - { - "ParameterMetadata": { - "Name": "EmailAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToKeys", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "decrypt", - "encrypt", - "unwrapKey", - "wrapKey", - "verify", - "sign", - "get", - "list", - "update", - "create", - "import", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToSecrets", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "set", - "delete", - "backup", - "restore", - "recover", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToCertificates", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "create", - "import", - "update", - "managecontacts", - "getissuers", - "listissuers", - "setissuers", - "deleteissuers", - "manageissuers", - "recover", - "purge", - "backup", - "restore" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PermissionsToStorage", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "get", - "list", - "delete", - "set", - "update", - "regeneratekey", - "getsas", - "listsas", - "deletesas", - "setsas", - "recover", - "backup", - "restore", - "purge" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResourceIdForVault", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "EnabledForDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnabledForTemplateDeployment", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnabledForDiskEncryption", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Set", - "NounName": "AzKeyVaultCertificateIssuer", - "Name": "Set-AzKeyVaultCertificateIssuer", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultCertificateIssuer", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Expanded", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DnsNames": "System.Collections.Generic.List`1[System.String]", - "KeyUsage": "System.Collections.Generic.List`1[System.String]", - "Ekus": "System.Collections.Generic.List`1[System.String]", - "Enabled": "System.Nullable`1[System.Boolean]", - "CertificateTransparency": "System.Nullable`1[System.Boolean]", - "Exportable": "System.Nullable`1[System.Boolean]", - "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "ValidityInMonths": "System.Nullable`1[System.Int32]", - "KeySize": "System.Nullable`1[System.Int32]", - "IssuerName": "System.String", - "SubjectName": "System.String", - "Curve": "System.String", - "Kty": "System.String", - "CertificateType": "System.String", - "SecretContentType": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" - }, - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, { "Name": "Equals", @@ -46981,79 +42410,11 @@ "ReturnType": null, "Parameters": [ { - "Name": "dnsNames", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyUsages", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ekus", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "issuerName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateType", + "Name": "vault", "Type": "System.Reflection.RuntimeParameterInfo" }, { - "Name": "renewAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "reuseKeyOnRenewal", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "secretContentType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "subjectName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "validityInMonths", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keySize", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "curve", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "exportable", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateTransparency", + "Name": "adClient", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -47085,9 +42446,112 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ServicePrincipalName", "AliasList": [ - "IssuerName" + "SPN" ], "Type": { "Namespace": "System", @@ -47105,8 +42569,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IssuerProvider", - "AliasList": [], + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -47123,7 +42589,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "AccountId", + "Name": "ObjectId", "AliasList": [], "Type": { "Namespace": "System", @@ -47141,12 +42607,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ApiKey", + "Name": "EmailAddress", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47159,113 +42625,230 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "OrganizationDetails", + "Name": "ApplicationId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.Guid" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", - "AliasList": [ - "Issuer" + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PermissionsToCertificates", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" - }, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForTemplateDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnabledForDiskEncryption", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "BypassObjectIdValidation", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, { "Name": "PassThru", @@ -47321,7 +42904,7 @@ ], "ParameterSets": [ { - "Name": "__AllParameterSets", + "Name": "ByObjectId", "Parameters": [ { "ParameterMetadata": { @@ -47349,10 +42932,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IssuerName" - ], + "Name": "ResourceGroupName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -47368,19 +42949,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47390,40 +42971,27 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "ApplicationId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Guid" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -47435,54 +43003,77 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "Expanded", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "IssuerProvider", + "Name": "PermissionsToKeys", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AccountId", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -47491,22 +43082,40 @@ }, { "ParameterMetadata": { - "Name": "ApiKey", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -47515,97 +43124,52 @@ }, { "ParameterMetadata": { - "Name": "OrganizationDetails", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "VaultName", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IssuerName" - ], + "Name": "BypassObjectIdValidation", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47615,10 +43179,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -47688,59 +43252,21 @@ ] }, { - "Name": "ByValue", + "Name": "ByServicePrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [ - "Issuer" - ], + "Name": "VaultName", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "IssuerProvider": "System.String", - "VaultName": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -47748,13 +43274,13 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, + "Position": 0, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -47771,16 +43297,16 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "ServicePrincipalName", "AliasList": [ - "IssuerName" + "SPN" ], "Type": { "Namespace": "System", @@ -47798,7 +43324,165 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -47866,852 +43550,1759 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Set", - "NounName": "AzKeyVaultCertificatePolicy", - "Name": "Set-AzKeyVaultCertificatePolicy", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultCertificatePolicy", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ExpandedRenewPercentage", - "OutputTypes": [ + }, { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DnsNames": "System.Collections.Generic.List`1[System.String]", - "KeyUsage": "System.Collections.Generic.List`1[System.String]", - "Ekus": "System.Collections.Generic.List`1[System.String]", - "Enabled": "System.Nullable`1[System.Boolean]", - "CertificateTransparency": "System.Nullable`1[System.Boolean]", - "Exportable": "System.Nullable`1[System.Boolean]", - "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "ValidityInMonths": "System.Nullable`1[System.Int32]", - "KeySize": "System.Nullable`1[System.Int32]", - "IssuerName": "System.String", - "SubjectName": "System.String", - "Curve": "System.String", - "Kty": "System.String", - "CertificateType": "System.String", - "SecretContentType": "System.String" + "Name": "ByUserPrincipalName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" ], - "ReturnType": "System.Boolean" + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "dnsNames", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyUsages", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ekus", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "issuerName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "reuseKeyOnRenewal", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "secretContentType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "subjectName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "validityInMonths", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keySize", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "curve", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "exportable", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateTransparency", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [ - "CertificatePolicy" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DnsNames": "System.Collections.Generic.List`1[System.String]", - "KeyUsage": "System.Collections.Generic.List`1[System.String]", - "Ekus": "System.Collections.Generic.List`1[System.String]", - "Enabled": "System.Nullable`1[System.Boolean]", - "CertificateTransparency": "System.Nullable`1[System.Boolean]", - "Exportable": "System.Nullable`1[System.Boolean]", - "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "ValidityInMonths": "System.Nullable`1[System.Int32]", - "KeySize": "System.Nullable`1[System.Int32]", - "IssuerName": "System.String", - "SubjectName": "System.String", - "Curve": "System.String", - "Kty": "System.String", - "CertificateType": "System.String", - "SecretContentType": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByEmailAddress", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "dnsNames", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyUsages", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ekus", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "issuerName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "reuseKeyOnRenewal", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "secretContentType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "subjectName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "validityInMonths", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keySize", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "curve", - "Type": "System.Reflection.RuntimeParameterInfo" + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - { - "Name": "exportable", - "Type": "System.Reflection.RuntimeParameterInfo" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ForVault", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForTemplateDeployment", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnabledForDiskEncryption", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - { - "Name": "certificateTransparency", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] }, { - "Name": "RenewAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "RenewAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "SecretContentType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ReuseKeyOnRenewal", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Disabled", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "SubjectName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DnsName", - "AliasList": [ - "DnsNames" - ], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyUsage", - "AliasList": [], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Ekus", - "AliasList": [], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ValidityInMonths", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IssuerName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CertificateType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EmailAtPercentageLifetime", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeySize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyNotExportable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "Name": "InputObjectByObjectId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ObjectId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ApplicationId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Guid" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BypassObjectIdValidation", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Name": "InputObjectByServicePrincipalName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ + { + "ParameterMetadata": { + "Name": "ServicePrincipalName", + "AliasList": [ + "SPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, { - "Name": "__AllParameterSets", + "Name": "InputObjectByUserPrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToSecrets", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToCertificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToStorage", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48721,27 +45312,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -48753,52 +45357,141 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "InputObjectByEmailAddress", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", + "Name": "EmailAddress", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "PermissionsToKeys", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" ], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -48811,25 +45504,28 @@ }, { "ParameterMetadata": { - "Name": "KeySize", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" ], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -48838,25 +45534,41 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CertificateTransparency", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -48868,19 +45580,35 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -48892,25 +45620,19 @@ }, { "ParameterMetadata": { - "Name": "Curve", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -48918,7 +45640,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -48962,49 +45684,27 @@ ] }, { - "Name": "ByValue", + "Name": "InputObjectForVault", "Parameters": [ { "ParameterMetadata": { "Name": "InputObject", - "AliasList": [ - "CertificatePolicy" - ], + "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DnsNames": "System.Collections.Generic.List`1[System.String]", - "KeyUsage": "System.Collections.Generic.List`1[System.String]", - "Ekus": "System.Collections.Generic.List`1[System.String]", - "Enabled": "System.Nullable`1[System.Boolean]", - "CertificateTransparency": "System.Nullable`1[System.Boolean]", - "Exportable": "System.Nullable`1[System.Boolean]", - "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", - "Updated": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", - "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", - "ValidityInMonths": "System.Nullable`1[System.Int32]", - "KeySize": "System.Nullable`1[System.Int32]", - "IssuerName": "System.String", - "SubjectName": "System.String", - "Curve": "System.String", - "Kty": "System.String", - "CertificateType": "System.String", - "SecretContentType": "System.String" + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" - }, { "Name": "ToString", "Parameters": [], @@ -49042,184 +45742,34 @@ "ReturnType": null, "Parameters": [ { - "Name": "dnsNames", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyUsages", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ekus", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "issuerName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "renewAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtNumberOfDaysBeforeExpiry", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "emailAtPercentageLifetime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "reuseKeyOnRenewal", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "secretContentType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "subjectName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "validityInMonths", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keyType", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "keySize", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "curve", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "exportable", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "certificateTransparency", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", + "Name": "EnabledForDeployment", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -49235,24 +45785,19 @@ }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49264,51 +45809,18 @@ }, { "ParameterMetadata": { - "Name": "KeySize", + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "CertificateTransparency", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -49343,36 +45855,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -49415,37 +45897,35 @@ ] }, { - "Name": "ExpandedRenewNumber", + "Name": "ResourceIdByObjectId", "Parameters": [ { "ParameterMetadata": { - "Name": "RenewAtNumberOfDaysBeforeExpiry", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 1, - "ValidateRangeMax": 2147483647, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "SecretContentType", + "Name": "ObjectId", "AliasList": [], "Type": { "Namespace": "System", @@ -49457,31 +45937,28 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ReuseKeyOnRenewal", + "Name": "ApplicationId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Guid]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.Guid" ], "Methods": [], "Constructors": [] @@ -49498,19 +45975,37 @@ }, { "ParameterMetadata": { - "Name": "Disabled", + "Name": "PermissionsToKeys", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49522,73 +46017,29 @@ }, { "ParameterMetadata": { - "Name": "SubjectName", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DnsName", - "AliasList": [ - "DnsNames" + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" ], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyUsage", - "AliasList": [], - "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49600,21 +46051,37 @@ }, { "ParameterMetadata": { - "Name": "Ekus", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49626,21 +46093,35 @@ }, { "ParameterMetadata": { - "Name": "ValidityInMonths", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49652,12 +46133,12 @@ }, { "ParameterMetadata": { - "Name": "IssuerName", + "Name": "BypassObjectIdValidation", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49676,12 +46157,12 @@ }, { "ParameterMetadata": { - "Name": "CertificateType", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49700,16 +46181,31 @@ }, { "ParameterMetadata": { - "Name": "KeyNotExportable", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -49721,10 +46217,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ResourceIdByServicePrincipalName", + "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -49744,13 +46245,13 @@ "Mandatory": true, "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Name", + "Name": "ServicePrincipalName", "AliasList": [ - "CertificateName" + "SPN" ], "Type": { "Namespace": "System", @@ -49768,53 +46269,43 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", + "Name": "PermissionsToKeys", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49826,23 +46317,28 @@ }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" ], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -49855,25 +46351,36 @@ }, { "ParameterMetadata": { - "Name": "KeySize", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" ], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -49882,25 +46389,39 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CertificateTransparency", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -49934,36 +46455,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -50006,27 +46497,93 @@ ] }, { - "Name": "ExpandedRenewPercentage", + "Name": "ResourceIdByUserPrincipalName", "Parameters": [ { "ParameterMetadata": { - "Name": "RenewAtPercentageLifetime", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 0, - "ValidateRangeMax": 99, + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "UserPrincipalName", + "AliasList": [ + "UPN" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PermissionsToKeys", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -50036,21 +46593,28 @@ }, { "ParameterMetadata": { - "Name": "SecretContentType", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [ - "application/x-pkcs12", - "application/x-pem-file" + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" ], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -50063,21 +46627,37 @@ }, { "ParameterMetadata": { - "Name": "ReuseKeyOnRenewal", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50089,19 +46669,35 @@ }, { "ParameterMetadata": { - "Name": "Disabled", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50113,12 +46709,12 @@ }, { "ParameterMetadata": { - "Name": "SubjectName", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50137,20 +46733,31 @@ }, { "ParameterMetadata": { - "Name": "DnsName", + "Name": "DefaultProfile", "AliasList": [ - "DnsNames" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.String" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -50162,50 +46769,93 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ResourceIdByEmailAddress", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "KeyUsage", + "Name": "EmailAddress", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Ekus", + "Name": "PermissionsToKeys", "AliasList": [], "Type": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[System.String]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.String" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "decrypt", + "encrypt", + "unwrapKey", + "wrapKey", + "verify", + "sign", + "get", + "list", + "update", + "create", + "import", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50217,21 +46867,29 @@ }, { "ParameterMetadata": { - "Name": "ValidityInMonths", + "Name": "PermissionsToSecrets", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "set", + "delete", + "backup", + "restore", + "recover", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50243,19 +46901,37 @@ }, { "ParameterMetadata": { - "Name": "IssuerName", + "Name": "PermissionsToCertificates", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "create", + "import", + "update", + "managecontacts", + "getissuers", + "listissuers", + "setissuers", + "deleteissuers", + "manageissuers", + "recover", + "purge", + "backup", + "restore" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50267,19 +46943,35 @@ }, { "ParameterMetadata": { - "Name": "CertificateType", + "Name": "PermissionsToStorage", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "all", + "get", + "list", + "delete", + "set", + "update", + "regeneratekey", + "getsas", + "listsas", + "deletesas", + "setsas", + "recover", + "backup", + "restore", + "purge" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50291,7 +46983,7 @@ }, { "ParameterMetadata": { - "Name": "KeyNotExportable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -50315,34 +47007,52 @@ }, { "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ResourceIdForVault", + "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -50359,23 +47069,21 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "EmailAtNumberOfDaysBeforeExpiry", + "Name": "EnabledForDeployment", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -50391,17 +47099,15 @@ }, { "ParameterMetadata": { - "Name": "EmailAtPercentageLifetime", + "Name": "EnabledForTemplateDeployment", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -50417,24 +47123,19 @@ }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "EnabledForDiskEncryption", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "RSA", - "RSA-HSM", - "EC", - "EC-HSM" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50446,26 +47147,19 @@ }, { "ParameterMetadata": { - "Name": "KeySize", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "2048", - "3072", - "4096", - "256", - "384", - "521" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -50473,22 +47167,35 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CertificateTransparency", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -50500,7 +47207,12 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { "Name": "PassThru", @@ -50525,36 +47237,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Curve", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "P-256", - "P-384", - "P-521", - "P-256K", - "SECP256K1" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -50601,38 +47283,50 @@ }, { "VerbName": "Set", - "NounName": "AzKeyVaultSecret", - "Name": "Set-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultSecret", + "NounName": "AzKeyVaultCertificateIssuer", + "Name": "Set-AzKeyVaultCertificateIssuer", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultCertificateIssuer", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "Expanded", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", - "Tags": "System.Collections.Hashtable", + "DnsNames": "System.Collections.Generic.List`1[System.String]", + "KeyUsage": "System.Collections.Generic.List`1[System.String]", + "Ekus": "System.Collections.Generic.List`1[System.String]", "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", + "CertificateTransparency": "System.Nullable`1[System.Boolean]", + "Exportable": "System.Nullable`1[System.Boolean]", + "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "Created": "System.Nullable`1[System.DateTime]", + "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "ValidityInMonths": "System.Nullable`1[System.Int32]", + "KeySize": "System.Nullable`1[System.Int32]", + "IssuerName": "System.String", + "SubjectName": "System.String", + "Curve": "System.String", + "Kty": "System.String", + "CertificateType": "System.String", + "SecretContentType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, { "Name": "ToString", "Parameters": [], @@ -50664,6 +47358,88 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "dnsNames", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyUsages", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ekus", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "issuerName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "reuseKeyOnRenewal", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "secretContentType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "subjectName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "validityInMonths", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keySize", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "curve", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "exportable", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateTransparency", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -50694,7 +47470,7 @@ { "Name": "Name", "AliasList": [ - "SecretName" + "IssuerName" ], "Type": { "Namespace": "System", @@ -50712,24 +47488,68 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputObject", + "Name": "IssuerProvider", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AccountId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ApiKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "OrganizationDetails", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", + "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", "Id": "System.String" }, "ElementType": null, @@ -50775,25 +47595,63 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "SecretValue", - "AliasList": [], + "Name": "InputObject", + "AliasList": [ + "Issuer" + ], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "Disable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -50810,84 +47668,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ContentType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -50924,7 +47704,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { @@ -50952,134 +47732,10 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SecretName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SecretValue", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ContentType", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -51093,23 +47749,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51168,66 +47822,21 @@ ] }, { - "Name": "InputObject", + "Name": "Expanded", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "IssuerProvider", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -51235,18 +47844,18 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SecretValue", + "Name": "AccountId", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51256,21 +47865,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "ApiKey", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51280,7 +47889,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -51289,60 +47898,93 @@ }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "OrganizationDetails", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", + "Id": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ContentType", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -51356,23 +47998,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51431,112 +48071,100 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByValue", "Parameters": [ { "ParameterMetadata": { - "Name": "SecretValue", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", - "AliasList": [], + "Name": "InputObject", + "AliasList": [ + "Issuer" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIssuerIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "IssuerProvider": "System.String", + "VaultName": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ContentType", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IssuerName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -51550,23 +48178,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51628,37 +48254,251 @@ "AliasList": [] }, { - "VerbName": "Stop", - "NounName": "AzKeyVaultCertificateOperation", - "Name": "Stop-AzKeyVaultCertificateOperation", - "ClassName": "Microsoft.Azure.Commands.KeyVault.StopAzureKeyVaultCertificateOperation", + "VerbName": "Set", + "NounName": "AzKeyVaultCertificatePolicy", + "Name": "Set-AzKeyVaultCertificatePolicy", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultCertificatePolicy", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "Default", + "DefaultParameterSetName": "ExpandedRenewPercentage", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DnsNames": "System.Collections.Generic.List`1[System.String]", + "KeyUsage": "System.Collections.Generic.List`1[System.String]", + "Ekus": "System.Collections.Generic.List`1[System.String]", + "Enabled": "System.Nullable`1[System.Boolean]", + "CertificateTransparency": "System.Nullable`1[System.Boolean]", + "Exportable": "System.Nullable`1[System.Boolean]", + "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", + "Updated": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "ValidityInMonths": "System.Nullable`1[System.Int32]", + "KeySize": "System.Nullable`1[System.Int32]", + "IssuerName": "System.String", + "SubjectName": "System.String", + "Curve": "System.String", + "Kty": "System.String", + "CertificateType": "System.String", + "SecretContentType": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "dnsNames", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyUsages", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ekus", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "issuerName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "reuseKeyOnRenewal", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "secretContentType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "subjectName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "validityInMonths", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keySize", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "curve", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "exportable", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateTransparency", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [ + "CertificatePolicy" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" + "DnsNames": "System.Collections.Generic.List`1[System.String]", + "KeyUsage": "System.Collections.Generic.List`1[System.String]", + "Ekus": "System.Collections.Generic.List`1[System.String]", + "Enabled": "System.Nullable`1[System.Boolean]", + "CertificateTransparency": "System.Nullable`1[System.Boolean]", + "Exportable": "System.Nullable`1[System.Boolean]", + "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", + "Updated": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "ValidityInMonths": "System.Nullable`1[System.Int32]", + "KeySize": "System.Nullable`1[System.Int32]", + "IssuerName": "System.String", + "SubjectName": "System.String", + "Curve": "System.String", + "Kty": "System.String", + "CertificateType": "System.String", + "SecretContentType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, { "Name": "ToString", "Parameters": [], @@ -51690,17 +48530,138 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "dnsNames", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyUsages", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ekus", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "issuerName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "reuseKeyOnRenewal", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "secretContentType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "subjectName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "validityInMonths", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keySize", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "curve", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "exportable", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateTransparency", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { - "Name": "VaultName", + "Name": "RenewAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RenewAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SecretContentType", "AliasList": [], "Type": { "Namespace": "System", @@ -51712,16 +48673,155 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ReuseKeyOnRenewal", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "Name", + "Name": "Disabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SubjectName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DnsName", "AliasList": [ - "CertificateName" + "DnsNames" ], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.String" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "KeyUsage", + "AliasList": [], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Ekus", + "AliasList": [], + "Type": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.String" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ValidityInMonths", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "IssuerName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -51735,73 +48835,154 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", + "Name": "CertificateType", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EmailAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EmailAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "KeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "KeySize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "KeyNotExportable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "CertificateTransparency", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.Boolean" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "Force", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -51818,6 +48999,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Curve", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -51854,7 +49059,7 @@ ], "ParameterSets": [ { - "Name": "Default", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { @@ -51908,15 +49113,17 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EmailAtNumberOfDaysBeforeExpiry", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -51932,31 +49139,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "EmailAtPercentageLifetime", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -51968,135 +49162,27 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObject", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "CancellationRequested": "System.Nullable`1[System.Boolean]", - "Id": "System.String", - "Status": "System.String", - "StatusDetails": "System.String", - "RequestId": "System.String", - "Target": "System.String", - "Issuer": "System.String", - "CertificateSigningRequest": "System.String", - "ErrorCode": "System.String", - "ErrorMessage": "System.String", - "Name": "System.String", - "VaultName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "KeyType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -52105,27 +49191,29 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Force", + "Name": "KeySize", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -52133,35 +49221,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CertificateTransparency", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Boolean" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -52172,229 +49247,16 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Undo", - "NounName": "AzKeyVaultCertificateRemoval", - "Name": "Undo-AzKeyVaultCertificateRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultCertificateRemoval", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Default", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "KeyId": "System.String", - "SecretId": "System.String", - "Thumbprint": "System.String", - "RecoveryLevel": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { - "Name": "VaultName", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -52404,19 +49266,17 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "CertificateName" - ], + "Name": "Curve", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -52427,15 +49287,21 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -52479,33 +49345,49 @@ ] }, { - "Name": "InputObject", + "Name": "ByValue", "Parameters": [ { "ParameterMetadata": { "Name": "InputObject", - "AliasList": [], + "AliasList": [ + "CertificatePolicy" + ], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Tags": "System.Collections.Hashtable", + "DnsNames": "System.Collections.Generic.List`1[System.String]", + "KeyUsage": "System.Collections.Generic.List`1[System.String]", + "Ekus": "System.Collections.Generic.List`1[System.String]", "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", + "CertificateTransparency": "System.Nullable`1[System.Boolean]", + "Exportable": "System.Nullable`1[System.Boolean]", + "ReuseKeyOnRenewal": "System.Nullable`1[System.Boolean]", "Updated": "System.Nullable`1[System.DateTime]", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "Created": "System.Nullable`1[System.DateTime]", + "EmailAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "EmailAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "RenewAtPercentageLifetime": "System.Nullable`1[System.Int32]", + "RenewAtNumberOfDaysBeforeExpiry": "System.Nullable`1[System.Int32]", + "ValidityInMonths": "System.Nullable`1[System.Int32]", + "KeySize": "System.Nullable`1[System.Int32]", + "IssuerName": "System.String", + "SubjectName": "System.String", + "Curve": "System.String", + "Kty": "System.String", + "CertificateType": "System.String", + "SecretContentType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "Validate", + "Parameters": [], + "ReturnType": "System.Void" + }, { "Name": "ToString", "Parameters": [], @@ -52537,46 +49419,165 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "dnsNames", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyUsages", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ekus", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "issuerName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "renewAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtNumberOfDaysBeforeExpiry", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "emailAtPercentageLifetime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "reuseKeyOnRenewal", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "secretContentType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "subjectName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "validityInMonths", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keyType", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "keySize", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "curve", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "exportable", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "certificateTransparency", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": 0, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "Name", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "CertificateName" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -52588,39 +49589,21 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "EmailAtPercentageLifetime", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -52632,304 +49615,105 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Undo", - "NounName": "AzKeyVaultKeyRemoval", - "Name": "Undo-AzKeyVaultKeyRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultKeyRemoval", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Default", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "KeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeySize", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "CertificateTransparency", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -52941,82 +49725,36 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObject", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "Curve", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -53060,360 +49798,95 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ExpandedRenewNumber", "Parameters": [ { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RenewAtNumberOfDaysBeforeExpiry", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, + "ValidateRangeMin": 1, + "ValidateRangeMax": 2147483647, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Undo", - "NounName": "AzKeyVaultRemoval", - "Name": "Undo-AzKeyVaultRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultRemoval", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Default", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletionDate": "System.Nullable`1[System.DateTime]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "ResourceGroupName": "System.String", - "Location": "System.String", - "ResourceId": "System.String", - "VaultName": "System.String", - "Id": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "VaultUri": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + { + "ParameterMetadata": { + "Name": "SecretContentType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ReuseKeyOnRenewal", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Disabled", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53423,16 +49896,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Location", + "Name": "SubjectName", "AliasList": [], "Type": { "Namespace": "System", @@ -53447,24 +49920,28 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 2, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], + "Name": "DnsName", + "AliasList": [ + "DnsNames" + ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.String" + ], "Methods": [], "Constructors": [] }, @@ -53480,31 +49957,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyUsage", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -53516,99 +49980,46 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObject", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "Ekus", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletionDate": "System.Nullable`1[System.DateTime]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "ResourceGroupName": "System.String", - "Location": "System.String", - "ResourceId": "System.String", - "VaultName": "System.String", - "Id": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "VaultUri": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.String" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "ValidityInMonths", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -53624,31 +50035,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "IssuerName", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -53660,20 +50056,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "CertificateType", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53692,31 +50083,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeyNotExportable", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -53728,227 +50104,7 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Undo", - "NounName": "AzKeyVaultSecretRemoval", - "Name": "Undo-AzKeyVaultSecretRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultSecretRemoval", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Default", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SecretName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ { "ParameterMetadata": { "Name": "VaultName", @@ -53977,7 +50133,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -54001,31 +50157,44 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "EmailAtNumberOfDaysBeforeExpiry", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -54037,113 +50206,58 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObject", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "KeyType", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] + "Methods": [], + "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "KeySize", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -54151,40 +50265,22 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + "ValueFromPipelineByPropertyName": true + }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CertificateTransparency", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Boolean" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -54194,357 +50290,17 @@ }, "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Update", - "NounName": "AzKeyVault", - "Name": "Update-AzKeyVault", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateTopLevelResourceCommand", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "VaultName", - "AliasList": [ - "Name" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "EnablePurgeProtection", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnableRbacAuthorization", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "UpdateByNameParameterSet", - "Parameters": [ + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54554,19 +50310,17 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [ - "Name" - ], + "Name": "Curve", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -54577,31 +50331,110 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ExpandedRenewPercentage", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "RenewAtPercentageLifetime", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 0, + "ValidateRangeMax": 99, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnablePurgeProtection", + "Name": "SecretContentType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "application/x-pkcs12", + "application/x-pem-file" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -54613,7 +50446,7 @@ }, { "ParameterMetadata": { - "Name": "EnableRbacAuthorization", + "Name": "ReuseKeyOnRenewal", "AliasList": [], "Type": { "Namespace": "System", @@ -54639,14 +50472,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "Disabled", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54661,35 +50492,48 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "SubjectName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DnsName", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "DnsNames" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.String" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -54701,116 +50545,46 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "UpdateByInputObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "KeyUsage", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.Security.Cryptography.X509Certificates.X509KeyUsageFlags, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnablePurgeProtection", + "Name": "Ekus", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[System.String]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.String" + ], "Methods": [], "Constructors": [] }, @@ -54826,16 +50600,16 @@ }, { "ParameterMetadata": { - "Name": "EnableRbacAuthorization", + "Name": "ValidityInMonths", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.Int32" ], "Methods": [], "Constructors": [] @@ -54852,14 +50626,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "IssuerName", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54874,35 +50646,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CertificateType", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -54914,15 +50671,34 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "UpdateByResourceIdParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "KeyNotExportable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -54940,18 +50716,20 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnablePurgeProtection", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "CertificateName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54961,6 +50739,32 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAtNumberOfDaysBeforeExpiry", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -54970,16 +50774,16 @@ }, { "ParameterMetadata": { - "Name": "EnableRbacAuthorization", + "Name": "EmailAtPercentageLifetime", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.Int32" ], "Methods": [], "Constructors": [] @@ -54996,21 +50800,55 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" + "Name": "KeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "RSA", + "RSA-HSM", + "EC", + "EC-HSM" ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeySize", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "2048", + "3072", + "4096", + "256", + "384", + "521" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -55022,31 +50860,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CertificateTransparency", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Boolean" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -55058,15 +50883,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "EnablePurgeProtection", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -55090,47 +50910,25 @@ }, { "ParameterMetadata": { - "Name": "EnableRbacAuthorization", + "Name": "Curve", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "P-256", + "P-384", + "P-521", + "P-256K", + "SECP256K1" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -55185,32 +50983,31 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzKeyVaultCertificate", - "Name": "Update-AzKeyVaultCertificate", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultCertificate", + "VerbName": "Set", + "NounName": "AzKeyVaultSecret", + "Name": "Set-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultSecret", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByName", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "KeyId": "System.String", - "SecretId": "System.String", - "Thumbprint": "System.String", - "RecoveryLevel": "System.String", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -55245,7 +51042,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -55274,7 +51077,7 @@ { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -55296,8 +51099,8 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", @@ -55305,6 +51108,8 @@ "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -55353,14 +51158,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "SecretValue", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55373,16 +51176,34 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Enable", + "Name": "Disable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -55393,15 +51214,17 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Tag", + "Name": "NotBefore", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -55411,12 +51234,32 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "ContentType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55464,7 +51307,7 @@ ], "ParameterSets": [ { - "Name": "ByName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -55494,7 +51337,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "CertificateName" + "SecretName" ], "Type": { "Namespace": "System", @@ -55518,14 +51361,12 @@ }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "SecretValue", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55537,23 +51378,47 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "Disable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -55570,15 +51435,17 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NotBefore", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -55594,12 +51461,38 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ContentType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55658,7 +51551,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -55666,8 +51559,8 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", @@ -55675,6 +51568,8 @@ "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", "Version": "System.String", @@ -55720,26 +51615,74 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SecretValue", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Disable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "CertificateVersion" - ], + "Name": "Expires", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -55749,22 +51692,22 @@ "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -55781,12 +51724,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "ContentType", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55805,12 +51748,14 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55873,16 +51818,64 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Enable", + "Name": "SecretValue", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Disable", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -55899,15 +51892,17 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NotBefore", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -55923,12 +51918,38 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ContentType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55987,15 +52008,13 @@ ] } ], - "AliasList": [ - "Set-AzKeyVaultCertificateAttribute" - ] + "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzKeyVaultKey", - "Name": "Update-AzKeyVaultKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultKey", + "VerbName": "Stop", + "NounName": "AzKeyVaultCertificateOperation", + "Name": "Stop-AzKeyVaultCertificateOperation", + "ClassName": "Microsoft.Azure.Commands.KeyVault.StopAzureKeyVaultCertificateOperation", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, @@ -56004,23 +52023,21 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -56086,7 +52103,7 @@ { "Name": "Name", "AliasList": [ - "KeyName" + "CertificateName" ], "Type": { "Namespace": "System", @@ -56108,21 +52125,21 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -56167,125 +52184,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -56309,201 +52208,47 @@ "AzureRmContext", "AzureCredential" ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "Default", + "Parameters": [ { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -56511,23 +52256,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "Name", "AliasList": [ - "Tags" + "CertificateName" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56537,16 +52282,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -56618,21 +52363,21 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOperation, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", + "CancellationRequested": "System.Nullable`1[System.Boolean]", + "Id": "System.String", + "Status": "System.String", + "StatusDetails": "System.String", + "RequestId": "System.String", + "Target": "System.String", + "Issuer": "System.String", + "CertificateSigningRequest": "System.String", + "ErrorCode": "System.String", + "ErrorMessage": "System.String", "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "VaultName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -56683,118 +52428,14 @@ }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -56811,18 +52452,31 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "DefaultProfile", "AliasList": [ - "Tags" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -56834,10 +52488,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -56899,126 +52558,295 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Undo", + "NounName": "AzKeyVaultCertificateRemoval", + "Name": "Undo-AzKeyVaultCertificateRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultCertificateRemoval", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "Default", + "OutputTypes": [ { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "KeyId": "System.String", + "SecretId": "System.String", + "Thumbprint": "System.String", + "RecoveryLevel": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ReturnType": "System.Boolean" }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "Default", + "Parameters": [ { "ParameterMetadata": { - "Name": "Expires", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "CertificateName" + ], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -57030,45 +52858,108 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "InputObject", + "Parameters": [ { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -57080,7 +52971,12 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { "Name": "DefaultProfile", @@ -57123,16 +53019,13 @@ ] } ], - "AliasList": [ - "Set-AzKeyVaultKey", - "Set-AzKeyVaultKeyAttribute" - ] + "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzKeyVaultSecret", - "Name": "Update-AzKeyVaultSecret", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultSecret", + "VerbName": "Undo", + "NounName": "AzKeyVaultKeyRemoval", + "Name": "Undo-AzKeyVaultKeyRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultKeyRemoval", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, @@ -57141,18 +53034,19 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", + "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "SecretValue": "System.Security.SecureString", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -57220,10 +53114,28 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -57245,16 +53157,19 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -57303,142 +53218,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "Version", - "AliasList": [ - "SecretVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ContentType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -57505,7 +53284,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SecretName" + "KeyName" ], "Type": { "Namespace": "System", @@ -57529,96 +53308,31 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "DefaultProfile", "AliasList": [ - "SecretVersion" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -57630,10 +53344,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "HsmInteractive", + "Parameters": [ { "ParameterMetadata": { - "Name": "ContentType", + "Name": "HsmName", "AliasList": [], "Type": { "Namespace": "System", @@ -57648,47 +53367,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "Name", "AliasList": [ - "Tags" + "KeyName" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57698,10 +53393,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -57755,16 +53450,19 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", + "RecoveryLevel": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -57820,44 +53518,31 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "DefaultProfile", "AliasList": [ - "SecretVersion" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -57869,21 +53554,39 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -57895,36 +53598,291 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Undo", + "NounName": "AzKeyVaultRemoval", + "Name": "Undo-AzKeyVaultRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultRemoval", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "Default", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletionDate": "System.Nullable`1[System.DateTime]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", + "Location": "System.String", + "ResourceId": "System.String", + "VaultName": "System.String", + "Id": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "VaultUri": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Location", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "Default", + "Parameters": [ { "ParameterMetadata": { - "Name": "ContentType", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -57939,47 +53897,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -57989,63 +53921,17 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "SecretVersion" - ], + "Name": "Location", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -58059,26 +53945,24 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Enable", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -58094,18 +53978,31 @@ }, { "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -58117,41 +54014,96 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "InputObject", + "Parameters": [ { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletionDate": "System.Nullable`1[System.DateTime]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", + "Location": "System.String", + "ResourceId": "System.String", + "VaultName": "System.String", + "Id": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "VaultUri": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ContentType", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58170,18 +54122,31 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "DefaultProfile", "AliasList": [ - "Tags" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -58193,15 +54158,20 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58260,15 +54230,13 @@ ] } ], - "AliasList": [ - "Set-AzKeyVaultSecretAttribute" - ] + "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzManagedHsmKey", - "Name": "Update-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureManagedHsmKey", + "VerbName": "Undo", + "NounName": "AzKeyVaultSecretRemoval", + "Name": "Undo-AzKeyVaultSecretRemoval", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UndoAzureKeyVaultSecretRemoval", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, @@ -58277,18 +54245,18 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -58339,7 +54307,7 @@ ], "Parameters": [ { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -58359,7 +54327,7 @@ { "Name": "Name", "AliasList": [ - "KeyName" + "SecretName" ], "Type": { "Namespace": "System", @@ -58381,16 +54349,18 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", + "ContentType": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -58439,142 +54409,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -58615,192 +54449,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "VaultName", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58810,21 +54464,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -58834,10 +54490,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -58891,16 +54547,18 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", + "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", + "DeletedDate": "System.Nullable`1[System.DateTime]", "Expires": "System.Nullable`1[System.DateTime]", "NotBefore": "System.Nullable`1[System.DateTime]", "Created": "System.Nullable`1[System.DateTime]", "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", + "ContentType": "System.String", "TagsTable": "System.String", "VaultName": "System.String", "Name": "System.String", @@ -58954,184 +54612,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -59176,184 +54656,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [ - "KeyVersion" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": 2, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Enable", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NotBefore", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -59396,132 +54698,23 @@ ] } ], - "AliasList": [ - "Set-AzManagedHsmKey", - "Set-AzManagedHsmKeyAttribute" - ] + "AliasList": [] }, { - "VerbName": "Add", - "NounName": "AzKeyVaultNetworkRule", - "Name": "Add-AzKeyVaultNetworkRule", - "ClassName": "Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultNetworkRule", + "VerbName": "Update", + "NounName": "AzKeyVault", + "Name": "Update-AzKeyVault", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateTopLevelResourceCommand", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "UpdateByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "VaultName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -59597,14 +54790,35 @@ } ] }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "VaultName", + "AliasList": [ + "Name" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -59621,7 +54835,94 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceGroupName", + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -59639,14 +54940,14 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IpAddressRange", + "Name": "EnablePurgeProtection", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -59657,15 +54958,17 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "VirtualNetworkResourceId", + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -59675,12 +54978,14 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59728,11 +55033,11 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "UpdateByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -59750,14 +55055,16 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "VaultName", + "AliasList": [ + "Name" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -59773,21 +55080,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": 1, + "Mandatory": true, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "EnablePurgeProtection", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -59804,15 +55111,17 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -59828,12 +55137,14 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -59848,7 +55159,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -59892,7 +55203,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "UpdateByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -59901,7 +55212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", @@ -59980,23 +55291,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "EnablePurgeProtection", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -60013,15 +55324,17 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -60037,12 +55350,14 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60057,7 +55372,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -60101,7 +55416,7 @@ ] }, { - "Name": "ByResourceId", + "Name": "UpdateByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -60123,20 +55438,20 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "EnablePurgeProtection", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -60153,15 +55468,17 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -60177,12 +55494,14 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60197,7 +55516,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -60245,14 +55564,14 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "EnablePurgeProtection", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -60269,15 +55588,17 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "EnableRbacAuthorization", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -60293,12 +55614,14 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60313,7 +55636,7 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { @@ -60360,27 +55683,36 @@ "AliasList": [] }, { - "VerbName": "New", - "NounName": "AzKeyVaultNetworkRuleSetObject", - "Name": "New-AzKeyVaultNetworkRuleSetObject", - "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVaultNetworkRuleSetObject", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Update", + "NounName": "AzKeyVaultCertificate", + "Name": "Update-AzKeyVaultCertificate", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultCertificate", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "__AllParameterSets", + "DefaultParameterSetName": "ByName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificate, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", - "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", - "IpAddressRangesText": "System.String", - "VirtualNetworkResourceIdsText": "System.String" + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "KeyId": "System.String", + "SecretId": "System.String", + "Thumbprint": "System.String", + "RecoveryLevel": "System.String", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -60411,35 +55743,7 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "defaultAction", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "bypass", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ipAddressRanges", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "virtualNetworkResourceId", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -60448,94 +55752,84 @@ ], "Parameters": [ { - "Name": "DefaultAction", + "Name": "VaultName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "CertificateName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], "Methods": [ - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, { "Name": "ToString", "Parameters": [], "ReturnType": "System.String" }, { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "CompareTo", - "Parameters": [ - { - "Name": "target", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Int32" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "HasFlag", + "Name": "Equals", "Parameters": [ { - "Name": "flag", + "Name": "obj", "Type": "System.Reflection.RuntimeParameterInfo" } ], "ReturnType": "System.Boolean" }, { - "Name": "GetTypeCode", + "Name": "GetHashCode", "Parameters": [], - "ReturnType": "System.TypeCode" + "ReturnType": "System.Int32" }, { "Name": "GetType", @@ -60543,6 +55837,52 @@ "ReturnType": "System.Type" } ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Version", + "AliasList": [ + "CertificateVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Enable", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -60551,272 +55891,315 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Bypass", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], "Methods": [ { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "ToString", + "Name": "Clear", "Parameters": [], - "ReturnType": "System.String" + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "CertificateName" ], - "ReturnType": "System.String" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "CompareTo", - "Parameters": [ - { - "Name": "target", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "CertificateVersion" ], - "ReturnType": "System.Int32" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "HasFlag", - "Parameters": [ - { - "Name": "flag", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetTypeCode", - "Parameters": [], - "ReturnType": "System.TypeCode" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "IpAddressRange", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "VirtualNetworkResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "__AllParameterSets", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "DefaultAction", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "VaultName": "System.String", + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, { "Name": "ToString", "Parameters": [], "ReturnType": "System.String" }, { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "CompareTo", - "Parameters": [ - { - "Name": "target", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Int32" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "HasFlag", + "Name": "Equals", "Parameters": [ { - "Name": "flag", + "Name": "obj", "Type": "System.Reflection.RuntimeParameterInfo" } ], "ReturnType": "System.Boolean" }, { - "Name": "GetTypeCode", + "Name": "GetHashCode", "Parameters": [], - "ReturnType": "System.TypeCode" + "ReturnType": "System.Int32" }, { "Name": "GetType", @@ -60824,6 +56207,64 @@ "ReturnType": "System.Type" } ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "CertificateVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -60838,99 +56279,77 @@ }, { "ParameterMetadata": { - "Name": "Bypass", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], "Methods": [ { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "CompareTo", - "Parameters": [ - { - "Name": "target", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Int32" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "format", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "ToString", - "Parameters": [ - { - "Name": "provider", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.String" - }, - { - "Name": "HasFlag", - "Parameters": [ - { - "Name": "flag", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetTypeCode", - "Parameters": [], - "ReturnType": "System.TypeCode" - }, - { - "Name": "GetType", + "Name": "Clear", "Parameters": [], - "ReturnType": "System.Type" + "ReturnType": "System.Void" } ], "Constructors": [] @@ -60944,17 +56363,48 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -60971,14 +56421,14 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -61035,46 +56485,41 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Set-AzKeyVaultCertificateAttribute" + ] }, { - "VerbName": "Remove", - "NounName": "AzKeyVaultNetworkRule", - "Name": "Remove-AzKeyVaultNetworkRule", - "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureRmKeyVaultNetworkRule", + "VerbName": "Update", + "NounName": "AzKeyVaultKey", + "Name": "Update-AzKeyVaultKey", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultKey", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "Default", "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", + "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "IsHsm": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -61110,20 +56555,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -61151,36 +56582,65 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -61216,20 +56676,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -61239,8 +56685,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -61254,36 +56702,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceGroupName", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "IpAddressRange", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -61293,7 +56745,27 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "VirtualNetworkResourceId", + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", @@ -61310,6 +56782,26 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "PassThru", "AliasList": [], @@ -61364,12 +56856,336 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "Default", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Expires", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeyOps", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "HsmInteractive", "Parameters": [ { "ParameterMetadata": { - "Name": "VaultName", - "AliasList": [], + "Name": "HsmName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "KeyName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -61383,48 +57199,52 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -61440,7 +57260,33 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", @@ -61462,6 +57308,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "PassThru", @@ -61528,7 +57400,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -61536,31 +57408,22 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "IsHsm": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "RecoveryLevel": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -61596,20 +57459,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -61625,14 +57474,16 @@ }, { "ParameterMetadata": { - "Name": "IpAddressRange", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -61643,13 +57494,91 @@ "ValidateNotNullOrEmpty": false }, "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "Expires", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NotBefore", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", @@ -61671,6 +57600,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "PassThru", @@ -61737,12 +57692,14 @@ ] }, { - "Name": "ByResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "KeyVersion" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -61756,48 +57713,26 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "IpAddressRange", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -61813,15 +57748,17 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Expires", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -61837,31 +57774,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "NotBefore", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.DateTime" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -61873,15 +57797,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "KeyOps", "AliasList": [], "Type": { "Namespace": "System", @@ -61905,14 +57824,16 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -61993,46 +57914,41 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Set-AzKeyVaultKey", + "Set-AzKeyVaultKeyAttribute" + ] }, { "VerbName": "Update", - "NounName": "AzKeyVaultNetworkRuleSet", - "Name": "Update-AzKeyVaultNetworkRuleSet", - "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultNetworkRuleSet", + "NounName": "AzKeyVaultSecret", + "Name": "Update-AzKeyVaultSecret", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultSecret", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByVaultName", + "DefaultParameterSetName": "Default", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", + "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "SecretValue": "System.Security.SecureString", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -62068,20 +57984,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -62109,36 +58011,46 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [ + "SecretName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -62168,27 +58080,13 @@ "Parameters": [], "ReturnType": "System.Type" } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } ] }, "ValidateSet": [], @@ -62197,8 +58095,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -62212,37 +58112,39 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceGroupName", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultAction", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -62253,16 +58155,16 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Bypass", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -62273,14 +58175,14 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "IpAddressRange", + "Name": "ContentType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -62291,14 +58193,16 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "VirtualNetworkResourceId", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -62362,7 +58266,7 @@ ], "ParameterSets": [ { - "Name": "ByVaultName", + "Name": "Default", "Parameters": [ { "ParameterMetadata": { @@ -62390,8 +58294,10 @@ }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "SecretName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -62407,23 +58313,49 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultAction", + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + "System.Boolean" ], "Methods": [], "Constructors": [] @@ -62436,20 +58368,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Bypass", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -62462,19 +58394,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -62490,14 +58424,40 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "ContentType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -62578,7 +58538,7 @@ ] }, { - "Name": "ByInputObject", + "Name": "InputObject", "Parameters": [ { "ParameterMetadata": { @@ -62586,31 +58546,21 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", - "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", - "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "TagsTable": "System.String", "VaultName": "System.String", - "ResourceId": "System.String", - "VaultUri": "System.String", - "AccessPoliciesText": "System.String", - "Sku": "System.String", - "TenantName": "System.String", - "NetworkAclsText": "System.String", - "TagsTable": "System.String" + "Name": "System.String", + "Version": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -62646,20 +58596,6 @@ "Name": "", "ReturnType": null, "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "vault", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] } ] }, @@ -62675,16 +58611,42 @@ }, { "ParameterMetadata": { - "Name": "DefaultAction", + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": 2, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + "System.Boolean" ], "Methods": [], "Constructors": [] @@ -62697,20 +58659,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Bypass", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -62723,19 +58685,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], "Methods": [], "Constructors": [] }, @@ -62751,14 +58715,40 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", + "Name": "ContentType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -62839,12 +58829,14 @@ ] }, { - "Name": "ByResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "Version", + "AliasList": [ + "SecretVersion" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -62858,51 +58850,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "DefaultAction", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": -2147483648, + "Position": 2, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Bypass", + "Name": "Enable", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + "System.Boolean" ], "Methods": [], "Constructors": [] @@ -62915,136 +58881,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "IpAddressRange", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "DefaultAction", + "Name": "Expires", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -63057,20 +58907,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Bypass", + "Name": "NotBefore", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -63083,18 +58933,18 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddressRange", + "Name": "ContentType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63111,14 +58961,16 @@ }, { "ParameterMetadata": { - "Name": "VirtualNetworkResourceId", - "AliasList": [], + "Name": "Tag", + "AliasList": [ + "Tags" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63199,28 +59051,99 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Set-AzKeyVaultSecretAttribute" + ] }, { - "VerbName": "Backup", - "NounName": "AzManagedHsmSecurityDomain", - "Name": "Backup-AzManagedHsmSecurityDomain", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Cmdlets.BackupSecurityDomain", + "VerbName": "Add", + "NounName": "AzKeyVaultNetworkRule", + "Name": "Add-AzKeyVaultNetworkRule", + "ClassName": "Microsoft.Azure.Commands.KeyVault.AddAzureKeyVaultNetworkRule", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "ByName", + "DefaultParameterSetName": "ByVaultName", "OutputTypes": [ { "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -63229,14 +59152,14 @@ ], "Parameters": [ { - "Name": "Certificates", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63247,17 +59170,86 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "OutputPath", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -63265,12 +59257,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Force", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63280,15 +59272,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "PassThru", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63298,37 +59290,35 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "Quorum", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 2, - "ValidateRangeMax": 10, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "VirtualNetworkResourceId", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63336,69 +59326,20 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -63441,18 +59382,18 @@ ], "ParameterSets": [ { - "Name": "__AllParameterSets", + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "Certificates", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": "System.String", + "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63463,13 +59404,13 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputPath", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -63486,21 +59427,45 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IpAddressRange", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63524,7 +59489,192 @@ "Name": "System.Management.Automation.SwitchParameter", "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": null, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IpAddressRange", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "VirtualNetworkResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63541,12 +59691,12 @@ }, { "ParameterMetadata": { - "Name": "Quorum", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63554,11 +59704,11 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 2, - "ValidateRangeMax": 10, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -63605,14 +59755,12 @@ ] }, { - "Name": "ByName", + "Name": "ByResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -63629,13 +59777,13 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": -2147483648, + "Position": 0, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Certificates", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", @@ -63650,47 +59798,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputPath", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63729,30 +59853,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Quorum", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 2, - "ValidateRangeMax": 10, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -63795,84 +59895,11 @@ ] }, { - "Name": "ByInputObject", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Certificates", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", @@ -63887,47 +59914,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "OutputPath", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -63966,30 +59969,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Quorum", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 2, - "ValidateRangeMax": 10, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -64035,25 +60014,86 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzManagedHsmSecurityDomain", - "Name": "Restore-AzManagedHsmSecurityDomain", - "ClassName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Cmdlets.RestoreSecurityDomain", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "New", + "NounName": "AzKeyVaultNetworkRuleSetObject", + "Name": "New-AzKeyVaultNetworkRuleSetObject", + "ClassName": "Microsoft.Azure.Commands.KeyVault.NewAzureKeyVaultNetworkRuleSetObject", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "ByName", + "DefaultParameterSetName": "__AllParameterSets", "OutputTypes": [ { "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", + "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", + "IpAddressRanges": "System.Collections.Generic.IList`1[System.String]", + "VirtualNetworkResourceIds": "System.Collections.Generic.IList`1[System.String]", + "IpAddressRangesText": "System.String", + "VirtualNetworkResourceIdsText": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "defaultAction", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "bypass", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ipAddressRanges", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "virtualNetworkResourceId", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -64062,54 +60102,204 @@ ], "Parameters": [ { - "Name": "Keys", + "Name": "DefaultAction", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "SecurityDomainPath", - "AliasList": [ - "Path" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "PassThru", + "Name": "Bypass", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -64118,16 +60308,14 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "IpAddressRange", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -64135,69 +60323,20 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "InputObject", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resource", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -64244,247 +60383,99 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Keys", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SecurityDomainPath", - "AliasList": [ - "Path" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", + "Name": "DefaultAction", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], "Methods": [ { - "Name": "Clear", + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Keys", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SecurityDomainPath", - "AliasList": [ - "Path" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ + "ReturnType": "System.Int32" + }, { - "Name": "Clear", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Void" + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } ], "Constructors": [] @@ -64498,36 +60489,19 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ByInputObject", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "Bypass", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "ResourceId": "System.String", - "VaultName": "System.String", - "ResourceGroupName": "System.String", - "Location": "System.String", - "TagsTable": "System.String" - }, + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, { "Name": "Equals", "Parameters": [ @@ -64544,75 +60518,97 @@ "ReturnType": "System.Int32" }, { - "Name": "GetType", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ + "ReturnType": "System.String" + }, { - "Name": "", - "ReturnType": null, - "Parameters": [] + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" }, { - "Name": "", - "ReturnType": null, + "Name": "CompareTo", "Parameters": [ { - "Name": "resource", + "Name": "target", "Type": "System.Reflection.RuntimeParameterInfo" } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Keys", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", - "GenericTypeArguments": [], - "Methods": [], + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SecurityDomainPath", - "AliasList": [ - "Path" - ], + "Name": "IpAddressRange", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -64620,23 +60616,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -64696,35 +60692,43 @@ "AliasList": [] }, { - "VerbName": "Add", - "NounName": "AzManagedHsmKey", - "Name": "Add-AzManagedHsmKey", - "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.AddAzureManagedHsmKey", + "VerbName": "Remove", + "NounName": "AzKeyVaultNetworkRule", + "Name": "Remove-AzKeyVaultNetworkRule", + "ClassName": "Microsoft.Azure.Commands.KeyVault.RemoveAzureRmKeyVaultNetworkRule", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "InteractiveCreate", + "DefaultParameterSetName": "ByVaultName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -64760,6 +60764,20 @@ "Name": "", "ReturnType": null, "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] } ] }, @@ -64770,7 +60788,7 @@ ], "Parameters": [ { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -64792,27 +60810,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", "Location": "System.String", "ResourceGroupName": "System.String", "VaultName": "System.String", "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -64854,7 +60876,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "managedHsm", + "Name": "vault", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -64889,27 +60911,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "KeyFilePath", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -64927,68 +60929,14 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "KeyFilePassword", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "KeyType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CurveName", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Disable", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -64999,7 +60947,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "KeyOps", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -65017,54 +60965,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Expires", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NotBefore", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65076,26 +60982,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "Size", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -65113,37 +60999,294 @@ "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "InteractiveCreate", - "Parameters": [ + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByVaultName", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": 1, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IpAddressRange", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "VirtualNetworkResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { - "Name": "HsmName", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -65151,23 +61294,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -65177,24 +61320,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Size", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -65210,10 +61351,52 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "DefaultProfile", "AliasList": [ - "KeyName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -65230,20 +61413,44 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "IpAddressRange", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CurveName", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -65260,7 +61467,7 @@ }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -65284,16 +61491,31 @@ }, { "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -65305,20 +61527,23 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Expires", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -65334,17 +61559,15 @@ }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -65360,14 +61583,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65424,13 +61645,382 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzKeyVaultNetworkRuleSet", + "Name": "Update-AzKeyVaultNetworkRuleSet", + "ClassName": "Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultNetworkRuleSet", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByVaultName", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "VaultName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", + "Tags": "System.Collections.Hashtable", + "TenantId": "System.Guid", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", + "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", + "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", + "Location": "System.String", + "ResourceGroupName": "System.String", + "VaultName": "System.String", + "ResourceId": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", + "Sku": "System.String", + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "vault", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "adClient", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultAction", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Bypass", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, { - "Name": "InteractiveImport", + "Name": "IpAddressRange", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "VirtualNetworkResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ByVaultName", "Parameters": [ { "ParameterMetadata": { - "Name": "HsmName", + "Name": "VaultName", "AliasList": [], "Type": { "Namespace": "System", @@ -65454,7 +62044,7 @@ }, { "ParameterMetadata": { - "Name": "KeyFilePath", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -65471,72 +62061,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyFilePassword", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CurveName", + "Name": "DefaultAction", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + ], "Methods": [], "Constructors": [] }, @@ -65548,19 +62090,21 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "Bypass", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + ], "Methods": [], "Constructors": [] }, @@ -65572,11 +62116,11 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "KeyOps", + "Name": "IpAddressRange", "AliasList": [], "Type": { "Namespace": "System", @@ -65600,17 +62144,15 @@ }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "ElementType": "System.String", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -65626,40 +62168,12 @@ }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65718,7 +62232,7 @@ ] }, { - "Name": "InputObjectCreate", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { @@ -65726,27 +62240,31 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", + "AccessPolicies": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", + "NetworkAcls": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", + "OriginalVault": "Microsoft.Azure.Management.KeyVault.Models.Vault", + "EnabledForDeployment": "System.Boolean", "Tags": "System.Collections.Hashtable", "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnabledForTemplateDeployment": "System.Nullable`1[System.Boolean]", + "EnabledForDiskEncryption": "System.Nullable`1[System.Boolean]", "EnableSoftDelete": "System.Nullable`1[System.Boolean]", + "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", + "EnableRbacAuthorization": "System.Nullable`1[System.Boolean]", "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", "Location": "System.String", "ResourceGroupName": "System.String", "VaultName": "System.String", "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", + "VaultUri": "System.String", + "AccessPoliciesText": "System.String", "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" + "TenantName": "System.String", + "NetworkAclsText": "System.String", + "TagsTable": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -65788,7 +62306,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "managedHsm", + "Name": "vault", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -65811,15 +62329,17 @@ }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "DefaultAction", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + ], "Methods": [], "Constructors": [] }, @@ -65828,23 +62348,23 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Size", + "Name": "Bypass", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int32" + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" ], "Methods": [], "Constructors": [] @@ -65857,20 +62377,18 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "IpAddressRange", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -65878,23 +62396,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CurveName", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -65911,7 +62429,7 @@ }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -65935,16 +62453,31 @@ }, { "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -65956,19 +62489,48 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ByResourceId", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "DefaultAction", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.DateTime" + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" ], "Methods": [], "Constructors": [] @@ -65981,20 +62543,20 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "Bypass", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.DateTime" + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" ], "Methods": [], "Constructors": [] @@ -66007,20 +62569,18 @@ "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "IpAddressRange", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -66037,31 +62597,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "VirtualNetworkResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -66073,161 +62618,137 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObjectImport", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", - "Tags": "System.Collections.Hashtable", - "TenantId": "System.Guid", - "EnablePurgeProtection": "System.Nullable`1[System.Boolean]", - "EnableSoftDelete": "System.Nullable`1[System.Boolean]", - "SoftDeleteRetentionInDays": "System.Nullable`1[System.Int32]", - "Location": "System.String", - "ResourceGroupName": "System.String", - "VaultName": "System.String", - "ResourceId": "System.String", - "Name": "System.String", - "StatusMessage": "System.String", - "HsmUri": "System.String", - "TenantName": "System.String", - "Sku": "System.String", - "ProvisioningState": "System.String", - "TagsTable": "System.String", - "InitialAdminObjectIds": "System.String[]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ { - "Name": "GetType", + "Name": "Clear", "Parameters": [], - "ReturnType": "System.Type" + "ReturnType": "System.Void" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "managedHsm", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "adClient", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "KeyFilePath", + "Name": "DefaultAction", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "KeyFilePassword", + "Name": "Bypass", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "IpAddressRange", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -66235,23 +62756,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 1, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CurveName", + "Name": "VirtualNetworkResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -66268,7 +62789,7 @@ }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -66292,7 +62813,293 @@ }, { "ParameterMetadata": { - "Name": "KeyOps", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Export", + "NounName": "AzKeyVaultSecurityDomain", + "Name": "Export-AzKeyVaultSecurityDomain", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Cmdlets.BackupSecurityDomain", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByName", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "Certificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "OutputPath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Quorum", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 2, + "ValidateRangeMax": 10, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [ + "HsmName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Certificates", "AliasList": [], "Type": { "Namespace": "System", @@ -66307,52 +63114,48 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "OutputPath", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -66368,14 +63171,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66392,6 +63193,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Quorum", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 2, + "ValidateRangeMax": 10, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -66434,11 +63259,61 @@ ] }, { - "Name": "ResourceIdCreate", + "Name": "ByName", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Name", + "AliasList": [ + "HsmName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Certificates", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "OutputPath", "AliasList": [], "Type": { "Namespace": "System", @@ -66456,18 +63331,18 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyType", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66479,24 +63354,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Size", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -66512,14 +63385,12 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], + "Name": "Quorum", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66527,27 +63398,42 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateRangeMin": 2, + "ValidateRangeMax": 10, + "ValidateNotNullOrEmpty": false }, "Mandatory": true, - "Position": 1, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CurveName", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -66559,34 +63445,88 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByInputObject", + "Parameters": [ { "ParameterMetadata": { - "Name": "Disable", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyOps", + "Name": "Certificates", "AliasList": [], "Type": { "Namespace": "System", @@ -66601,52 +63541,48 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Expires", + "Name": "OutputPath", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -66662,14 +63598,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66686,6 +63620,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Quorum", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 2, + "ValidateRangeMax": 10, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -66726,68 +63684,228 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Import", + "NounName": "AzKeyVaultSecurityDomain", + "Name": "Import-AzKeyVaultSecurityDomain", + "ClassName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Cmdlets.RestoreSecurityDomain", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ByName", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "Keys", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceIdImport", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true + "Name": "SecurityDomainPath", + "AliasList": [ + "Path" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [ + "HsmName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" }, - { - "ParameterMetadata": { - "Name": "KeyFilePath", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "KeyFilePassword", + "Name": "Keys", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": null, + "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -66797,16 +63915,16 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "SecurityDomainPath", "AliasList": [ - "KeyName" + "Path" ], "Type": { "Namespace": "System", @@ -66824,37 +63942,13 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "CurveName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Disable", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -66878,16 +63972,31 @@ }, { "ParameterMetadata": { - "Name": "KeyOps", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -66899,69 +64008,96 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ByName", + "Parameters": [ { "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "HsmName" + ], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "Keys", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "SecurityDomainPath", "AliasList": [ - "Tags" + "Path" ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67020,92 +64156,91 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ByInputObject", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "CurveName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Disable", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Hashtable", + "ResourceId": "System.String", + "VaultName": "System.String", + "ResourceGroupName": "System.String", + "Location": "System.String", + "TagsTable": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resource", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyOps", + "Name": "Keys", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": "System.String", + "ElementType": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -67113,75 +64248,47 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Expires", - "AliasList": [], + "Name": "SecurityDomainPath", + "AliasList": [ + "Path" + ], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NotBefore", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [ - "Tags" - ], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67244,8 +64351,8 @@ }, { "VerbName": "Backup", - "NounName": "AzManagedHsm", - "Name": "Backup-AzManagedHsm", + "NounName": "AzKeyVault", + "Name": "Backup-AzKeyVault", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.BackupAzureManagedHsm", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -67270,10 +64377,8 @@ ], "Parameters": [ { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -67367,7 +64472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -67484,10 +64589,8 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -67602,10 +64705,8 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -67773,7 +64874,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -67978,7 +65079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -68198,8 +65299,8 @@ }, { "VerbName": "Restore", - "NounName": "AzManagedHsm", - "Name": "Restore-AzManagedHsm", + "NounName": "AzKeyVault", + "Name": "Restore-AzKeyVault", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.RestoreAzureManagedHsm", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -68260,10 +65361,8 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -68357,7 +65456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -68590,10 +65689,8 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -68756,10 +65853,8 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "HsmName" - ], + "Name": "HsmName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -68975,7 +66070,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -69228,7 +66323,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -69440,7 +66535,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificatePolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DnsNames": "System.Collections.Generic.List`1[System.String]", "KeyUsage": "System.Collections.Generic.List`1[System.String]", @@ -69638,7 +66733,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", @@ -69832,7 +66927,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "Enabled": "System.Nullable`1[System.Boolean]", @@ -69982,8 +67077,8 @@ }, { "VerbName": "Get", - "NounName": "AzManagedHsm", - "Name": "Get-AzManagedHsm", + "NounName": "AzKeyVaultManagedHsm", + "Name": "Get-AzKeyVaultManagedHsm", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.GetAzureManagedHsm", "SupportsShouldProcess": false, "ConfirmImpact": 0, @@ -69994,7 +67089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -70074,7 +67169,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceId": "System.String", @@ -70362,7 +67457,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FirstName": "System.String", "LastName": "System.String", @@ -70676,7 +67771,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", "Id": "System.String" @@ -70748,7 +67843,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -70831,7 +67926,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -70896,8 +67991,8 @@ }, { "VerbName": "New", - "NounName": "AzManagedHsm", - "Name": "New-AzManagedHsm", + "NounName": "AzKeyVaultManagedHsm", + "Name": "New-AzKeyVaultManagedHsm", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.NewAzureManagedHsm", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -70908,7 +68003,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -71372,8 +68467,8 @@ }, { "VerbName": "Get", - "NounName": "AzManagedHsmRoleAssignment", - "Name": "Get-AzManagedHsmRoleAssignment", + "NounName": "AzKeyVaultRoleAssignment", + "Name": "Get-AzKeyVaultRoleAssignment", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.GetAzureManagedHsmRoleAssignment", "SupportsShouldProcess": false, "ConfirmImpact": 0, @@ -71384,7 +68479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -72079,8 +69174,8 @@ }, { "VerbName": "Get", - "NounName": "AzManagedHsmRoleDefinition", - "Name": "Get-AzManagedHsmRoleDefinition", + "NounName": "AzKeyVaultRoleDefinition", + "Name": "Get-AzKeyVaultRoleDefinition", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.GetAzureManagedHsmRoleDefinition", "SupportsShouldProcess": false, "ConfirmImpact": 0, @@ -72091,7 +69186,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Permissions": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission[]", "Id": "System.String", @@ -72460,8 +69555,8 @@ }, { "VerbName": "New", - "NounName": "AzManagedHsmRoleAssignment", - "Name": "New-AzManagedHsmRoleAssignment", + "NounName": "AzKeyVaultRoleAssignment", + "Name": "New-AzKeyVaultRoleAssignment", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.NewAzureManagedHsmRoleAssignment", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -72472,7 +69567,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -73678,8 +70773,8 @@ }, { "VerbName": "Remove", - "NounName": "AzManagedHsmRoleAssignment", - "Name": "Remove-AzManagedHsmRoleAssignment", + "NounName": "AzKeyVaultRoleAssignment", + "Name": "Remove-AzKeyVaultRoleAssignment", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.RemoveAzureManagedHsmRoleAssignment", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -73690,7 +70785,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -73918,7 +71013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -75291,7 +72386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -75452,478 +72547,10 @@ ], "AliasList": [] }, - { - "VerbName": "Undo", - "NounName": "AzManagedHsmKeyRemoval", - "Name": "Undo-AzManagedHsmKeyRemoval", - "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.UndoAzureManagedHsmKeyRemoval", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "Default", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKey, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Attributes": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "Key": "Microsoft.Azure.KeyVault.WebKey.JsonWebKey", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "HsmName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "Default", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "HsmName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "KeyName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 1, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InputObject", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSDeletedKeyVaultKeyIdentityItem, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "ScheduledPurgeDate": "System.Nullable`1[System.DateTime]", - "DeletedDate": "System.Nullable`1[System.DateTime]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "RecoveryLevel": "System.String", - "TagsTable": "System.String", - "VaultName": "System.String", - "Name": "System.String", - "Version": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": 0, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, { "VerbName": "Update", - "NounName": "AzManagedHsm", - "Name": "Update-AzManagedHsm", + "NounName": "AzKeyVaultManagedHsm", + "Name": "Update-AzKeyVaultManagedHsm", "ClassName": "Microsoft.Azure.Commands.KeyVault.Commands.UpdateAzureManagedHsm", "SupportsShouldProcess": true, "ConfirmImpact": 2, @@ -75934,7 +72561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -76056,7 +72683,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -76336,7 +72963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSManagedHsm, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OriginalManagedHsm": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", "Tags": "System.Collections.Hashtable", @@ -77056,7 +73683,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy", "GenericTypeArguments": [], @@ -77066,7 +73693,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultAccessPolicy, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PermissionsToKeys": "System.Collections.Generic.List`1[System.String]", "PermissionsToSecrets": "System.Collections.Generic.List`1[System.String]", @@ -77188,7 +73815,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Bypass": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", "DefaultAction": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", @@ -77259,7 +73886,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77364,7 +73991,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultNetworkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78499,7 +75126,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultKeyAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TagsDirectionary": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "Tags": "System.Collections.Hashtable", @@ -78862,183 +75489,6 @@ } ] }, - "System.Security.Cryptography.X509Certificates.X509Certificate2": { - "Namespace": "System.Security.Cryptography.X509Certificates", - "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2", - "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails" - ], - "Methods": [], - "Constructors": [] - }, - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "FirstName": "System.String", - "LastName": "System.String", - "EmailAddress": "System.String", - "PhoneNumber": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, - "System.Security.SecureString": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes": { - "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", - "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "TagsDictionary": "System.Collections.Generic.Dictionary`2[System.String,System.String]", - "Tags": "System.Collections.Hashtable", - "Enabled": "System.Nullable`1[System.Boolean]", - "Expires": "System.Nullable`1[System.DateTime]", - "NotBefore": "System.Nullable`1[System.DateTime]", - "Created": "System.Nullable`1[System.DateTime]", - "Updated": "System.Nullable`1[System.DateTime]", - "ContentType": "System.String", - "RecoveryLevel": "System.String", - "TagsTable": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - } - ] - }, "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm": { "Namespace": "Microsoft.Azure.Management.KeyVault.Models", "Name": "Microsoft.Azure.Management.KeyVault.Models.ManagedHsm", @@ -79377,10 +75827,187 @@ ], "Constructors": [] }, + "System.Security.Cryptography.X509Certificates.X509Certificate2": { + "Namespace": "System.Security.Cryptography.X509Certificates", + "Name": "System.Security.Cryptography.X509Certificates.X509Certificate2", + "AssemblyQualifiedName": "System.Security.Cryptography.X509Certificates.X509Certificate2, System.Security.Cryptography.X509Certificates, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AdministratorDetails": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]": { + "Namespace": "System.Collections.Generic", + "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails]", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails" + ], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateAdministratorDetails, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "FirstName": "System.String", + "LastName": "System.String", + "EmailAddress": "System.String", + "PhoneNumber": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, + "System.Security.SecureString": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes": { + "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", + "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecretAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "TagsDictionary": "System.Collections.Generic.Dictionary`2[System.String,System.String]", + "Tags": "System.Collections.Hashtable", + "Enabled": "System.Nullable`1[System.Boolean]", + "Expires": "System.Nullable`1[System.DateTime]", + "NotBefore": "System.Nullable`1[System.DateTime]", + "Created": "System.Nullable`1[System.DateTime]", + "Updated": "System.Nullable`1[System.DateTime]", + "ContentType": "System.String", + "RecoveryLevel": "System.String", + "TagsTable": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] + }, "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageAccountAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "Created": "System.Nullable`1[System.DateTime]", @@ -79454,7 +76081,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultManagedStorageSasDefinitionAttributes, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "Created": "System.Nullable`1[System.DateTime]", @@ -79516,7 +76143,7 @@ "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath": { "Namespace": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models", "Name": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.SecurityDomain.Models.KeyPath, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "PrivateKey": "System.String", @@ -79562,7 +76189,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission[]": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission[], Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission", "GenericTypeArguments": [], @@ -79572,7 +76199,7 @@ "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission": { "Namespace": "Microsoft.Azure.Commands.KeyVault.Models", "Name": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultPermission, Microsoft.Azure.PowerShell.Cmdlets.KeyVault, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowedActions": "System.String[]", "DeniedActions": "System.String[]", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll.json index f9f5c13af90e..328e989d1442 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Monitor.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -460,7 +460,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -526,7 +526,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActionGroup": "System.Collections.Generic.IList`1[System.String]", "EmailSubject": "System.String", @@ -621,7 +621,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MetricTrigger": "Microsoft.Azure.Management.Monitor.Models.LogMetricTrigger", "Threshold": "System.Double", @@ -724,7 +724,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActionGroup": "System.Collections.Generic.IList`1[System.String]", "EmailSubject": "System.String", @@ -837,7 +837,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MetricTrigger": "Microsoft.Azure.Management.Monitor.Models.LogMetricTrigger", "Threshold": "System.Double", @@ -958,7 +958,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAznsAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActionGroup": "System.Collections.Generic.IList`1[System.String]", "EmailSubject": "System.String", @@ -1234,7 +1234,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -1308,7 +1308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -1373,7 +1373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -1436,7 +1436,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -1666,7 +1666,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -1737,7 +1737,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -1806,7 +1806,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -2096,7 +2096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Threshold": "System.Nullable`1[System.Double]", "ThresholdOperator": "System.String", @@ -2415,7 +2415,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -2653,7 +2653,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -2977,7 +2977,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleTriggerCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MetricTrigger": "Microsoft.Azure.Management.Monitor.Models.LogMetricTrigger", "Threshold": "System.Double", @@ -3078,7 +3078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Threshold": "System.Nullable`1[System.Double]", "ThresholdOperator": "System.String", @@ -3225,7 +3225,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleLogMetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Threshold": "System.Nullable`1[System.Double]", "ThresholdOperator": "System.String", @@ -3361,7 +3361,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -3545,7 +3545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -3975,7 +3975,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -4049,7 +4049,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -4140,7 +4140,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -4205,7 +4205,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -4268,7 +4268,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -4498,7 +4498,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -4577,7 +4577,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -4648,7 +4648,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -4717,7 +4717,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -4976,7 +4976,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -5047,7 +5047,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -5116,7 +5116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -5351,7 +5351,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthorizedResources": "System.Collections.Generic.IList`1[System.String]", "Query": "System.String", @@ -5422,7 +5422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FrequencyInMinutes": "System.Int32", "TimeWindowInMinutes": "System.Int32" @@ -5491,7 +5491,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleAlertingAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AznsAction": "Microsoft.Azure.Management.Monitor.Models.AzNsActionGroup", "Trigger": "Microsoft.Azure.Management.Monitor.Models.TriggerCondition", @@ -5849,7 +5849,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -5923,7 +5923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -6107,7 +6107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Action": "Microsoft.Azure.Management.Monitor.Models.Action", "Schedule": "Microsoft.Azure.Management.Monitor.Models.Schedule", @@ -6513,7 +6513,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -6977,7 +6977,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -7127,7 +7127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -7397,7 +7397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -7657,7 +7657,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -8099,7 +8099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScopedResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -8249,7 +8249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -8611,7 +8611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -8856,7 +8856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -9146,7 +9146,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -9429,7 +9429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -9699,7 +9699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -9959,7 +9959,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -10069,7 +10069,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -10345,7 +10345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMonitorPrivateLinkScope, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Id": "System.String", @@ -10701,7 +10701,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetric, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetric, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "Microsoft.Azure.Management.Monitor.Models.LocalizableString", "Unit": "Microsoft.Azure.Management.Monitor.Models.Unit", @@ -11632,7 +11632,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDefinition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDefinition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "Microsoft.Azure.Management.Monitor.Models.LocalizableString", "Dimensions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LocalizableString]", @@ -12197,7 +12197,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Models.RetentionPolicy", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -12623,7 +12623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfileCollection", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfileCollection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfileCollection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Item": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile", "Count": "System.Int32", @@ -13559,9 +13559,1230 @@ }, { "VerbName": "Get", + "NounName": "AzDiagnosticSettingCategory", + "Name": "Get-AzDiagnosticSettingCategory", + "ClassName": "Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCategoryCommand", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "__AllParameterSets", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategory", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategory, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "CategoryType": "System.Nullable`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType]", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "category", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "TargetResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "TargetResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzDiagnosticSetting", + "Name": "Get-AzDiagnosticSetting", + "ClassName": "Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "__AllParameterSets", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", + "Location": "System.String", + "StorageAccountId": "System.String", + "ServiceBusRuleId": "System.String", + "EventHubAuthorizationRuleId": "System.String", + "EventHubName": "System.String", + "WorkspaceId": "System.String", + "LogAnalyticsDestinationType": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "serviceDiagnosticSettings", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": 0, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzDiagnosticDetailSetting", + "Name": "New-AzDiagnosticDetailSetting", + "ClassName": "Microsoft.Azure.Commands.Insights.Diagnostics.NewAzureRmDiagnosticDetailSettingCommand", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "MetricSettingParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "CategoryType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType", + "RetentionPolicy": "Microsoft.Azure.Commands.Insights.OutputClasses.PSRetentionPolicy", + "Enabled": "System.Boolean", + "Category": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "Log", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Metric", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RetentionEnabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Category", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Enabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "TimeGrain", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "LogSettingParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Log", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionEnabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Category", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "MetricSettingParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Metric", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "TimeGrain", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionEnabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Category", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionEnabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Category", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Enabled", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", "NounName": "AzDiagnosticSetting", - "Name": "Get-AzDiagnosticSetting", - "ClassName": "Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand", + "Name": "New-AzDiagnosticSetting", + "ClassName": "Microsoft.Azure.Commands.Insights.Diagnostics.NewAzureRmDiagnosticSettingCommand", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, @@ -13571,11 +14792,11 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]", - "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]", + "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", "Location": "System.String", "StorageAccountId": "System.String", "ServiceBusRuleId": "System.String", @@ -13617,6 +14838,25 @@ } ], "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + }, { "Name": "", "ReturnType": null, @@ -13636,7 +14876,7 @@ ], "Parameters": [ { - "Name": "ResourceId", + "Name": "TargetResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -13671,6 +14911,132 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "StorageAccountId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ServiceBusRuleId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EventHubName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EventHubAuthorizationRuleId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "WorkspaceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DedicatedLogAnalyticsDestinationType", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Setting", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -13711,7 +15077,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "TargetResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -13729,7 +15095,7 @@ "ValidateNotNullOrEmpty": true }, "Mandatory": true, - "Position": 0, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, @@ -13752,6 +15118,174 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "StorageAccountId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "ServiceBusRuleId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "EventHubName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "EventHubAuthorizationRuleId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "WorkspaceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "DedicatedLogAnalyticsDestinationType", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Setting", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -14043,11 +15577,11 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]", - "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]", + "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", "Location": "System.String", "StorageAccountId": "System.String", "ServiceBusRuleId": "System.String", @@ -14089,6 +15623,25 @@ } ], "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + }, { "Name": "", "ReturnType": null, @@ -14113,11 +15666,11 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]", - "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]", + "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", "Location": "System.String", "StorageAccountId": "System.String", "ServiceBusRuleId": "System.String", @@ -14159,6 +15712,25 @@ } ], "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + }, { "Name": "", "ReturnType": null, @@ -14519,11 +16091,11 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]", - "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]", + "Logs": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "Metrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", "Location": "System.String", "StorageAccountId": "System.String", "ServiceBusRuleId": "System.String", @@ -14565,6 +16137,25 @@ } ], "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "id", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + }, { "Name": "", "ReturnType": null, @@ -15127,7 +16718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAutoscaleSettingOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAutoscaleSettingOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAutoscaleSettingOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SettingSpec": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleSettingResource", "StatusCode": "System.Net.HttpStatusCode", @@ -15184,7 +16775,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Notifications": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", @@ -15328,7 +16919,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15366,7 +16957,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15427,7 +17018,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Notifications": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", @@ -15553,7 +17144,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15579,7 +17170,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15747,7 +17338,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15797,7 +17388,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15918,7 +17509,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Claims": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", "Properties": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", @@ -16354,7 +17945,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutoscaleSetting, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Notifications": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", @@ -16689,7 +18280,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Email": "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification", "Webhooks": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification]", @@ -16754,7 +18345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[]", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification", "GenericTypeArguments": [], @@ -16865,7 +18456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[]", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification", "GenericTypeArguments": [], @@ -17012,7 +18603,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Recurrence": "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence", "Capacity": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity", @@ -17210,7 +18801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17391,7 +18982,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -17403,7 +18994,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -17546,7 +19137,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -17558,7 +19149,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, @@ -17784,7 +19375,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -17796,7 +19387,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, @@ -17950,7 +19541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18161,7 +19752,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18173,7 +19764,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, @@ -18282,7 +19873,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MetricTrigger": "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger", "ScaleAction": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction" @@ -18401,7 +19992,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18504,7 +20095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18625,7 +20216,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18782,7 +20373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18885,7 +20476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19093,7 +20684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19202,7 +20793,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19335,7 +20926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19516,7 +21107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19625,7 +21216,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -19809,7 +21400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ServiceUri": "System.String" @@ -20323,7 +21914,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AlertRule": "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource", "StatusCode": "System.Net.HttpStatusCode", @@ -20396,7 +21987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20553,7 +22144,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -20665,7 +22256,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -20748,7 +22339,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ConditionOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -20929,7 +22520,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21077,7 +22668,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21154,7 +22745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionGroup[]", "Criteria": "Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria", @@ -21386,7 +22977,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21639,7 +23230,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -21957,7 +23548,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -22325,7 +23916,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -22524,7 +24115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAddAlertRuleOperationResponse, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AlertRule": "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource", "StatusCode": "System.Net.HttpStatusCode", @@ -22761,7 +24352,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -23062,7 +24653,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -23139,7 +24730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Claims": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", "Properties": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", @@ -23575,7 +25166,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAlertRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAlertRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAlertRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition", "IsEnabled": "System.Boolean", @@ -24142,7 +25733,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionGroup[]", "Criteria": "Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria", @@ -24600,7 +26191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RuleEmailAction", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleEmailAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleEmailAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomEmails": "System.Collections.Generic.IList`1[System.String]", "SendToServiceOwners": "System.Nullable`1[System.Boolean]" @@ -24838,7 +26429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RuleWebhookAction", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleWebhookAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleWebhookAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ServiceUri": "System.String" @@ -25076,7 +26667,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricCriteria", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CriterionType": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType", "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", @@ -25144,7 +26735,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDynamicMetricCriteria", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDynamicMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDynamicMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CriterionType": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType", "FailingPeriods": "Microsoft.Azure.Management.Monitor.Models.DynamicThresholdFailingPeriods", @@ -25308,7 +26899,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension", "GenericTypeArguments": [], @@ -25653,7 +27244,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension", "GenericTypeArguments": [], @@ -26089,7 +27680,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension", "GenericTypeArguments": [], @@ -26280,7 +27871,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IncludeValues": "System.Collections.Generic.IList`1[System.String]", "ExcludeValues": "System.Collections.Generic.IList`1[System.String]", @@ -26917,7 +28508,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionGroup[]", "Criteria": "Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria", @@ -27331,7 +28922,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricAlertRuleV2, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionGroup[]", "Criteria": "Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria", @@ -27607,7 +29198,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventData, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Claims": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", "Properties": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", @@ -29151,7 +30742,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -29259,7 +30850,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -29479,7 +31070,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -29719,7 +31310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -29827,7 +31418,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -30047,7 +31638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -30287,7 +31878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -30645,7 +32236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WebhookProperties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ActionGroupId": "System.String" @@ -30894,7 +32485,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Field": "System.String", "Equals": "System.String" @@ -31227,7 +32818,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -31447,7 +33038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -31687,7 +33278,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -31833,7 +33424,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -31853,7 +33444,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -31930,7 +33521,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -32156,7 +33747,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32182,7 +33773,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32377,7 +33968,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32403,7 +33994,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32598,7 +34189,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32624,7 +34215,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -32701,7 +34292,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", @@ -32873,7 +34464,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -33239,7 +34830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String" }, @@ -36000,7 +37591,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36278,7 +37869,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36458,7 +38049,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36592,7 +38183,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -36669,7 +38260,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -36859,7 +38450,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -37004,7 +38595,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -37224,7 +38815,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -37818,6 +39409,8 @@ "Properties": { "OnPremise": "System.Boolean", "VersionProfiles": "System.Collections.Generic.IList`1[System.String]", + "Name": "System.String", + "AdTenant": "System.String", "AzureDataLakeStoreFileSystemEndpointSuffix": "System.String", "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "System.String", "BatchEndpointResourceId": "System.String", @@ -37827,7 +39420,6 @@ "AzureKeyVaultDnsSuffix": "System.String", "TrafficManagerDnsSuffix": "System.String", "SqlDatabaseDnsSuffix": "System.String", - "StorageEndpointSuffix": "System.String", "ActiveDirectoryServiceEndpointResourceId": "System.String", "GraphUrl": "System.String", "GalleryUrl": "System.String", @@ -37836,8 +39428,8 @@ "ManagementPortalUrl": "System.String", "ResourceManagerUrl": "System.String", "ServiceManagementUrl": "System.String", - "AdTenant": "System.String", - "Name": "System.String" + "StorageEndpointSuffix": "System.String", + "ContainerRegistryEndpointSuffix": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -38982,7 +40574,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Models.RetentionPolicy", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -39045,7 +40637,7 @@ "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]": { "Namespace": "System.Collections.ObjectModel", "Name": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]", - "AssemblyQualifiedName": "System.Collections.ObjectModel.ReadOnlyCollection`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.ObjectModel.ReadOnlyCollection`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39079,7 +40671,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39091,7 +40683,7 @@ "System.Collections.Generic.List`1+Enumerator[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1+Enumerator[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1+Enumerator[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1+Enumerator[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39103,7 +40695,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile[]": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile[], Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile", "GenericTypeArguments": [], @@ -39120,40 +40712,26 @@ "Methods": [], "Constructors": [] }, - "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.LogSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "System.Nullable`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType]": { + "Namespace": "System", + "Name": "System.Nullable`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Management.Monitor.Management.Models.LogSettings" + "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType" ], "Methods": [], "Constructors": [] }, - "Microsoft.Azure.Management.Monitor.Management.Models.LogSettings": { - "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", - "Name": "Microsoft.Azure.Management.Monitor.Management.Models.LogSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.LogSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy", - "Enabled": "System.Boolean", - "Category": "System.String" - }, + "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" - }, - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, { "Name": "Equals", "Parameters": [ @@ -39170,59 +40748,68 @@ "ReturnType": "System.Int32" }, { - "Name": "GetType", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ + "ReturnType": "System.String" + }, { - "Name": "", - "ReturnType": null, + "Name": "ToString", "Parameters": [ { - "Name": "logSettings", + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", "Type": "System.Reflection.RuntimeParameterInfo" } - ] - } - ] - }, - "Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy": { - "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", - "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Enabled": "System.Boolean", - "Days": "System.Int32" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, { "Name": "ToString", - "Parameters": [], + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], "ReturnType": "System.String" }, { - "Name": "Validate", - "Parameters": [], - "ReturnType": "System.Void" + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" }, { - "Name": "Equals", + "Name": "HasFlag", "Parameters": [ { - "Name": "obj", + "Name": "flag", "Type": "System.Reflection.RuntimeParameterInfo" } ], "ReturnType": "System.Boolean" }, { - "Name": "GetHashCode", + "Name": "GetTypeCode", "Parameters": [], - "ReturnType": "System.Int32" + "ReturnType": "System.TypeCode" }, { "Name": "GetType", @@ -39230,39 +40817,27 @@ "ReturnType": "System.Type" } ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "retentionPolicy", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Constructors": [] }, - "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]": { + "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]": { "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Models.LogSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings" + "Microsoft.Azure.Management.Monitor.Models.LogSettings" ], "Methods": [], "Constructors": [] }, - "Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings": { - "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", - "Name": "Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Microsoft.Azure.Management.Monitor.Models.LogSettings": { + "Namespace": "Microsoft.Azure.Management.Monitor.Models", + "Name": "Microsoft.Azure.Management.Monitor.Models.LogSettings", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Models.LogSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy", + "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Models.RetentionPolicy", "Enabled": "System.Boolean", - "TimeGrain": "System.Nullable`1[System.TimeSpan]", "Category": "System.String" }, "ElementType": null, @@ -39300,37 +40875,51 @@ } ], "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, { "Name": "", "ReturnType": null, "Parameters": [ { - "Name": "metricSettings", + "Name": "enabled", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "category", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "retentionPolicy", "Type": "System.Reflection.RuntimeParameterInfo" } ] } ] }, - "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]": { + "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]": { "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.LogSettings]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Models.LogSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Models.MetricSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "Microsoft.Azure.Management.Monitor.Models.LogSettings" + "Microsoft.Azure.Management.Monitor.Models.MetricSettings" ], "Methods": [], "Constructors": [] }, - "Microsoft.Azure.Management.Monitor.Models.LogSettings": { + "Microsoft.Azure.Management.Monitor.Models.MetricSettings": { "Namespace": "Microsoft.Azure.Management.Monitor.Models", - "Name": "Microsoft.Azure.Management.Monitor.Models.LogSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Models.LogSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Management.Monitor.Models.MetricSettings", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Models.MetricSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Models.RetentionPolicy", "Enabled": "System.Boolean", + "TimeGrain": "System.Nullable`1[System.TimeSpan]", "Category": "System.String" }, "ElementType": null, @@ -39381,6 +40970,10 @@ "Name": "enabled", "Type": "System.Reflection.RuntimeParameterInfo" }, + { + "Name": "timeGrain", + "Type": "System.Reflection.RuntimeParameterInfo" + }, { "Name": "category", "Type": "System.Reflection.RuntimeParameterInfo" @@ -39393,40 +40986,26 @@ } ] }, - "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]": { - "Namespace": "System.Collections.Generic", - "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Models.MetricSettings]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Models.MetricSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "Microsoft.Azure.Management.Monitor.Models.MetricSettings" - ], - "Methods": [], - "Constructors": [] - }, - "Microsoft.Azure.Management.Monitor.Models.MetricSettings": { - "Namespace": "Microsoft.Azure.Management.Monitor.Models", - "Name": "Microsoft.Azure.Management.Monitor.Models.MetricSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Models.MetricSettings, Microsoft.Azure.Management.Monitor, Version=0.25.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Microsoft.Azure.Commands.Insights.OutputClasses.PSRetentionPolicy": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSRetentionPolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "RetentionPolicy": "Microsoft.Azure.Management.Monitor.Models.RetentionPolicy", "Enabled": "System.Boolean", - "TimeGrain": "System.Nullable`1[System.TimeSpan]", - "Category": "System.String" + "Days": "System.Int32" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "Validate", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Void" + "ReturnType": "System.String" }, { - "Name": "ToString", + "Name": "Validate", "Parameters": [], - "ReturnType": "System.String" + "ReturnType": "System.Void" }, { "Name": "Equals", @@ -39459,18 +41038,6 @@ "Name": "", "ReturnType": null, "Parameters": [ - { - "Name": "enabled", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "timeGrain", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "category", - "Type": "System.Reflection.RuntimeParameterInfo" - }, { "Name": "retentionPolicy", "Type": "System.Reflection.RuntimeParameterInfo" @@ -39479,10 +41046,51 @@ } ] }, + "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings": { + "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", + "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticDetailSettings, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "CategoryType": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDiagnosticSettingCategoryType", + "RetentionPolicy": "Microsoft.Azure.Commands.Insights.OutputClasses.PSRetentionPolicy", + "Enabled": "System.Boolean", + "Category": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleSettingResource": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleSettingResource", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleSettingResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleSettingResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Notifications": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", @@ -39545,7 +41153,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39557,7 +41165,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Email": "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification", "Webhooks": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification]", @@ -39613,7 +41221,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.EmailNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomEmails": "System.Collections.Generic.IList`1[System.String]", "SendToSubscriptionCoAdministrators": "System.Nullable`1[System.Boolean]", @@ -39733,7 +41341,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39745,7 +41353,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.WebhookNotification, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ServiceUri": "System.String" @@ -39871,7 +41479,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -39883,7 +41491,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AutoscaleProfile, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Recurrence": "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence", "Capacity": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity", @@ -39946,7 +41554,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.Recurrence, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Frequency": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency", "Schedule": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrentSchedule" @@ -40006,7 +41614,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrenceFrequency, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40101,7 +41709,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.RecurrentSchedule": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrentSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrentSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RecurrentSchedule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Hours": "System.Collections.Generic.IList`1[System.Nullable`1[System.Int32]]", "Minutes": "System.Collections.Generic.IList`1[System.Nullable`1[System.Int32]]", @@ -40344,7 +41952,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleCapacity, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Minimum": "System.String", "Maximum": "System.String", @@ -40405,7 +42013,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.TimeWindow": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.TimeWindow", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeWindow, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeWindow, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Start": "System.DateTime", "End": "System.DateTime", @@ -40668,7 +42276,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -40680,7 +42288,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleRule, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MetricTrigger": "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger", "ScaleAction": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction" @@ -40754,7 +42362,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricTrigger, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperatorProperty": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType", "Statistic": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType", @@ -40822,7 +42430,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ComparisonOperationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40917,7 +42525,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.MetricStatisticType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41012,7 +42620,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41473,7 +43081,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Direction": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection", "Type": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType", @@ -41535,7 +43143,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleDirection, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -41630,7 +43238,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ScaleType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -42332,7 +43940,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSDictionaryElement, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Content": "System.Collections.Generic.IDictionary`2[System.String,System.String]" }, @@ -42391,7 +43999,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataAuthorization": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataAuthorization", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataAuthorization, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataAuthorization, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Scope": "System.String", "Action": "System.String", @@ -42438,7 +44046,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataHttpRequest": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataHttpRequest", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataHttpRequest, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEventDataHttpRequest, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ClientId": "System.String", "Method": "System.String", @@ -42725,7 +44333,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.AlertRuleResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Condition": "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition", "IsEnabled": "System.Boolean", @@ -42794,7 +44402,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataSource": "Microsoft.Azure.Management.Monitor.Management.Models.RuleDataSource" }, @@ -42848,7 +44456,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.RuleDataSource": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RuleDataSource", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleDataSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleDataSource, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceUri": "System.String" }, @@ -43010,7 +44618,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -43022,7 +44630,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.RuleAction": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.RuleAction", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.RuleAction, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43118,7 +44726,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.TimeAggregationOperator, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43364,7 +44972,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -43376,7 +44984,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.IPSMultiMetricCriteria, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CriterionType": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType" }, @@ -43388,7 +44996,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.CriterionType, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -43699,7 +45307,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSMetricDimension, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IncludeValues": "System.Collections.Generic.IList`1[System.String]", "ExcludeValues": "System.Collections.Generic.IList`1[System.String]", @@ -43758,7 +45366,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionList, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActionGroups": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]" }, @@ -43812,7 +45420,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -43824,7 +45432,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WebhookProperties": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ActionGroupId": "System.String" @@ -43896,7 +45504,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertAllOfCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllOf": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]" }, @@ -43950,7 +45558,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -43962,7 +45570,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Field": "System.String", "Equals": "System.String" @@ -44211,7 +45819,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44223,7 +45831,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSArmRoleReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseCommonAlertSchema": "System.Boolean", "RoleId": "System.String", @@ -44279,7 +45887,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44291,7 +45899,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAutomationRunbookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsGlobalRunbook": "System.Boolean", "UseCommonAlertSchema": "System.Boolean", @@ -44351,7 +45959,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44363,7 +45971,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureAppPushReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EmailAddress": "System.String", "Name": "System.String" @@ -44418,7 +46026,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44430,7 +46038,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSAzureFunctionReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseCommonAlertSchema": "System.Boolean", "FunctionAppResourceId": "System.String", @@ -44488,7 +46096,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44500,7 +46108,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSEmailReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseCommonAlertSchema": "System.Boolean", "Status": "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus]", @@ -44557,7 +46165,7 @@ "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44569,7 +46177,7 @@ "Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus": { "Namespace": "Microsoft.Azure.Management.Monitor.Management.Models", "Name": "Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44664,7 +46272,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44676,7 +46284,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSItsmReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WorkspaceId": "System.String", "ConnectionId": "System.String", @@ -44734,7 +46342,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44746,7 +46354,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSLogicAppReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseCommonAlertSchema": "System.Boolean", "ResourceId": "System.String", @@ -44803,7 +46411,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44815,7 +46423,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSSmsReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Microsoft.Azure.Management.Monitor.Management.Models.ReceiverStatus]", "CountryCode": "System.String", @@ -44872,7 +46480,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44884,7 +46492,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSVoiceReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CountryCode": "System.String", "PhoneNumber": "System.String", @@ -44940,7 +46548,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -44952,7 +46560,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSWebhookReceiver, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseCommonAlertSchema": "System.Boolean", "UseAadAuth": "System.Boolean", @@ -45012,7 +46620,7 @@ "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase": { "Namespace": "Microsoft.Azure.Commands.Insights.OutputClasses", "Name": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Insights.OutputClasses.PSActionGroupReceiverBase, Microsoft.Azure.PowerShell.Cmdlets.Monitor, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String" }, diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.dll.json index a1c3d2a3a32f..610d114e43e9 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -183,7 +183,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -496,7 +496,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -663,7 +663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -940,7 +940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -992,7 +992,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationId": "System.String", "EndpointType": "System.String", @@ -1048,7 +1048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotPolicyId": "System.String" }, @@ -1100,7 +1100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -1285,7 +1285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -1678,7 +1678,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -1736,7 +1736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationId": "System.String", "EndpointType": "System.String", @@ -1798,7 +1798,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotPolicyId": "System.String" }, @@ -1856,7 +1856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -2207,7 +2207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -2265,7 +2265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationId": "System.String", "EndpointType": "System.String", @@ -2327,7 +2327,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotPolicyId": "System.String" }, @@ -2385,7 +2385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -2662,7 +2662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -2830,7 +2830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -2888,7 +2888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationId": "System.String", "EndpointType": "System.String", @@ -2950,7 +2950,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotPolicyId": "System.String" }, @@ -3008,7 +3008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -3381,7 +3381,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -3445,7 +3445,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -3770,7 +3770,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -4000,7 +4000,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -4356,7 +4356,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -4420,7 +4420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -4769,7 +4769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -4999,7 +4999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -5355,7 +5355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -5419,7 +5419,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -5726,7 +5726,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -5908,7 +5908,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -6087,7 +6087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -6294,7 +6294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -6346,7 +6346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -6459,7 +6459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -6523,7 +6523,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -6810,7 +6810,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -6868,7 +6868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -7051,7 +7051,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -7171,7 +7171,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -7229,7 +7229,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -7436,7 +7436,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -7494,7 +7494,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -7725,7 +7725,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -7783,7 +7783,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -7940,7 +7940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -8072,7 +8072,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -8130,7 +8130,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -8296,7 +8296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -8399,7 +8399,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -8607,7 +8607,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -8837,7 +8837,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Created": "System.Nullable`1[System.DateTime]", "ResourceGroupName": "System.String", @@ -9007,7 +9007,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -9452,7 +9452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -9613,7 +9613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Created": "System.Nullable`1[System.DateTime]", "ResourceGroupName": "System.String", @@ -9821,7 +9821,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -10272,7 +10272,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -10588,7 +10588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -10664,7 +10664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Created": "System.Nullable`1[System.DateTime]", "ResourceGroupName": "System.String", @@ -11062,7 +11062,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -11212,7 +11212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Created": "System.Nullable`1[System.DateTime]", "ResourceGroupName": "System.String", @@ -11422,7 +11422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -11561,7 +11561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -11845,7 +11845,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -12007,7 +12007,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -12164,7 +12164,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -12218,7 +12218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12273,7 +12273,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12329,7 +12329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12405,7 +12405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -12625,7 +12625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -12685,7 +12685,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12746,7 +12746,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12808,7 +12808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -12990,7 +12990,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -13050,7 +13050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13111,7 +13111,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13173,7 +13173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13305,7 +13305,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -13420,7 +13420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -13480,7 +13480,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13541,7 +13541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13603,7 +13603,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -13744,7 +13744,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -13883,7 +13883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -13942,7 +13942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -14231,7 +14231,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -14456,7 +14456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -14671,7 +14671,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -14830,7 +14830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -14884,7 +14884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -14939,7 +14939,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -14995,7 +14995,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15089,7 +15089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -15148,7 +15148,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -15375,7 +15375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -15435,7 +15435,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15496,7 +15496,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15558,7 +15558,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15716,7 +15716,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -15807,7 +15807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -15867,7 +15867,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15928,7 +15928,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -15990,7 +15990,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16148,7 +16148,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -16208,7 +16208,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16269,7 +16269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16331,7 +16331,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16513,7 +16513,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -16573,7 +16573,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16634,7 +16634,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16696,7 +16696,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -16828,7 +16828,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesSnapshotPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DailySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", "HourlySchedule": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", @@ -16924,7 +16924,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -16984,7 +16984,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -17045,7 +17045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -17107,7 +17107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -17377,7 +17377,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -17792,7 +17792,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -18148,7 +18148,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -18563,7 +18563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -18790,7 +18790,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationStatus, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationStatus, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Healthy": "System.Nullable`1[System.Boolean]", "RelationshipStatus": "System.String", @@ -18939,7 +18939,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -19264,7 +19264,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -19554,7 +19554,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -19945,7 +19945,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -20283,7 +20283,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -20674,7 +20674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -21012,7 +21012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -21403,7 +21403,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -21630,7 +21630,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -21769,7 +21769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -22053,7 +22053,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -22215,7 +22215,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -22428,7 +22428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -22934,7 +22934,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -23269,7 +23269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -23328,7 +23328,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -23617,7 +23617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -23842,7 +23842,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -24057,7 +24057,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -24272,7 +24272,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -24331,7 +24331,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -24678,7 +24678,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -25127,7 +25127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TotalThroughputMibps": "System.Nullable`1[System.Double]", "UtilizedThroughputMibps": "System.Nullable`1[System.Double]", @@ -25326,7 +25326,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -25499,7 +25499,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -25944,7 +25944,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -26105,7 +26105,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -26296,7 +26296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -26719,7 +26719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -26904,7 +26904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -27081,7 +27081,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -27157,7 +27157,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -27492,7 +27492,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -27734,7 +27734,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -27947,7 +27947,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -28180,7 +28180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -28256,7 +28256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -28623,7 +28623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataProtection": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", "ExportPolicy": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", @@ -29011,7 +29011,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "Size": "System.Nullable`1[System.Int64]", @@ -29182,24 +29182,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -29484,7 +29486,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -30246,7 +30248,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -30628,7 +30630,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -30769,7 +30771,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -31149,7 +31151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -31293,7 +31295,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -31552,7 +31554,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -32170,7 +32172,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -32468,7 +32470,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -32591,7 +32593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -32668,7 +32670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -32959,7 +32961,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -33184,7 +33186,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -33401,7 +33403,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -33660,7 +33662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -33719,7 +33721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -34122,7 +34124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -34733,7 +34735,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesBackupPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VolumeBackups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -34988,24 +34990,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -35112,7 +35116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -35398,7 +35402,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -35542,24 +35546,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -35664,7 +35670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -35723,24 +35729,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -36011,7 +36019,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -36144,24 +36152,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -36362,24 +36372,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -36682,7 +36694,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -36741,24 +36753,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -37251,7 +37265,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -37932,24 +37946,26 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -38322,7 +38338,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -38692,7 +38708,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -38808,7 +38824,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -38959,7 +38975,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -39103,7 +39119,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -39281,7 +39297,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -39607,7 +39623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -39817,7 +39833,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -39933,7 +39949,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -40274,7 +40290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -40427,7 +40443,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -40561,7 +40577,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -40579,7 +40595,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -40771,7 +40787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -40963,7 +40979,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -41057,7 +41073,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesAccount, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectories": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", "Tags": "System.Object", @@ -41196,7 +41212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", "GenericTypeArguments": [], @@ -41434,7 +41450,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeDataProtection, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Replication": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", "Backup": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", @@ -41480,7 +41496,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesReplicationObject, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationId": "System.String", "EndpointType": "System.String", @@ -41538,7 +41554,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnforced": "System.Nullable`1[System.Boolean]", "BackupEnabled": "System.Nullable`1[System.Boolean]", @@ -41597,7 +41613,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeSnapshot, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotPolicyId": "System.String" }, @@ -41641,7 +41657,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeExportPolicy, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]" }, @@ -41685,7 +41701,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule", "GenericTypeArguments": [], @@ -41695,7 +41711,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesExportPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UnixReadOnly": "System.Nullable`1[System.Boolean]", "UnixReadWrite": "System.Nullable`1[System.Boolean]", @@ -41989,7 +42005,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -42001,7 +42017,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolumeBackup, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyEnabled": "System.Nullable`1[System.Boolean]", "BackupsCount": "System.Nullable`1[System.Int32]", @@ -42047,7 +42063,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -42059,24 +42075,26 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesActiveDirectory, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupOperators": "System.Collections.Generic.IList`1[System.String]", - "ResourceGroupName": "System.String", - "AccountName": "System.String", - "ActiveDirectoryId": "System.String", - "Username": "System.String", - "Password": "System.String", - "Domain": "System.String", + "LdapSigning": "System.Nullable`1[System.Boolean]", + "AesEncryption": "System.Nullable`1[System.Boolean]", + "ServerRootCACertificate": "System.String", + "AdName": "System.String", + "KdcIP": "System.String", + "Site": "System.String", + "OrganizationalUnit": "System.String", + "SmbServerName": "System.String", + "StatusDetails": "System.String", "Dns": "System.String", + "Domain": "System.String", + "Password": "System.String", + "Username": "System.String", + "ActiveDirectoryId": "System.String", + "AccountName": "System.String", "Status": "System.String", - "StatusDetails": "System.String", - "SmbServerName": "System.String", - "OrganizationalUnit": "System.String", - "Site": "System.String", - "KdcIP": "System.String", - "AdName": "System.String", - "ServerRootCACertificate": "System.String" + "ResourceGroupName": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -42140,7 +42158,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesDailySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -42187,7 +42205,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesHourlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Minute": "System.Nullable`1[System.Int32]", @@ -42233,7 +42251,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesMonthlySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", @@ -42281,7 +42299,7 @@ "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule": { "Namespace": "Microsoft.Azure.Commands.NetAppFiles.Models", "Name": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesWeeklySchedule, Microsoft.Azure.PowerShell.Cmdlets.NetAppFiles, Version=0.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotsToKeep": "System.Nullable`1[System.Int32]", "Hour": "System.Nullable`1[System.Int32]", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.dll.json index d4b74fc8afb9..70facfe90b2d 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -80,7 +80,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -177,7 +177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -355,7 +355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -464,7 +464,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -672,7 +672,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ResourceBackupStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ResourceBackupStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ResourceBackupStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackedUp": "System.Boolean", "VaultId": "System.String" @@ -1224,7 +1224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -1289,7 +1289,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1451,7 +1451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1611,7 +1611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1797,7 +1797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerRegistrationStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1981,7 +1981,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "BackupEngineType": "System.String", @@ -2220,7 +2220,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -2303,7 +2303,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -2367,7 +2367,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2472,7 +2472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2674,7 +2674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2785,7 +2785,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2986,7 +2986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -3056,7 +3056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3167,7 +3167,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3368,7 +3368,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3479,7 +3479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3687,7 +3687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -3752,7 +3752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -3891,7 +3891,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -4079,7 +4079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -4154,7 +4154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4257,7 +4257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4435,7 +4435,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -4516,7 +4516,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4625,7 +4625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4833,7 +4833,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -4899,7 +4899,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -5069,7 +5069,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -5294,7 +5294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -5369,7 +5369,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5472,7 +5472,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5575,7 +5575,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -5710,7 +5710,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -5791,7 +5791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5900,7 +5900,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6009,7 +6009,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -6174,7 +6174,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -6240,7 +6240,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -6318,7 +6318,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -6447,7 +6447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -6653,7 +6653,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -6907,7 +6907,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -7161,7 +7161,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -7343,7 +7343,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -7477,7 +7477,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -7558,7 +7558,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -7692,7 +7692,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -7871,7 +7871,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -8012,7 +8012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -8090,7 +8090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -8154,7 +8154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8257,7 +8257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -8335,7 +8335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8438,7 +8438,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8541,7 +8541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8644,7 +8644,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8822,7 +8822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -8892,7 +8892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9025,7 +9025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9134,7 +9134,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9243,7 +9243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9444,7 +9444,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9553,7 +9553,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9686,7 +9686,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9795,7 +9795,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9904,7 +9904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10105,7 +10105,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -10195,7 +10195,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10304,7 +10304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10413,7 +10413,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10638,7 +10638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10747,7 +10747,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemProtectionState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10856,7 +10856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemDeleteState, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11064,7 +11064,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -11140,7 +11140,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -11222,7 +11222,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11325,7 +11325,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11521,7 +11521,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -11591,7 +11591,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11768,7 +11768,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -11838,7 +11838,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11947,7 +11947,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12196,7 +12196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12496,7 +12496,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -12561,7 +12561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -12625,7 +12625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12803,7 +12803,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -12873,7 +12873,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13081,7 +13081,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -13147,7 +13147,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -13299,7 +13299,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -13481,7 +13481,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -13547,7 +13547,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -13567,7 +13567,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -13645,7 +13645,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -13710,7 +13710,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -13787,7 +13787,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -13813,7 +13813,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -13915,7 +13915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -13986,7 +13986,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -14087,7 +14087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -14153,7 +14153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -14293,7 +14293,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -14601,7 +14601,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -14667,7 +14667,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -14807,7 +14807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -15113,7 +15113,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -15399,7 +15399,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -15478,7 +15478,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15498,7 +15498,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15667,7 +15667,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15761,7 +15761,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15787,7 +15787,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -15960,7 +15960,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16016,7 +16016,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16119,7 +16119,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -16178,7 +16178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16287,7 +16287,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -16364,7 +16364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16420,7 +16420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16523,7 +16523,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -16582,7 +16582,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16691,7 +16691,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -16768,7 +16768,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -16847,7 +16847,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16950,7 +16950,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -16970,7 +16970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17025,7 +17025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17161,7 +17161,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17270,7 +17270,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -17296,7 +17296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17357,7 +17357,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17493,7 +17493,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -17572,7 +17572,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -17865,7 +17865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -18170,7 +18170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -18236,7 +18236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -18296,7 +18296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18351,7 +18351,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18481,7 +18481,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -18615,7 +18615,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RetentionPolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18676,7 +18676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SchedulePolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18737,7 +18737,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -18895,7 +18895,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "WorkloadType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", @@ -19036,7 +19036,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -19100,7 +19100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -19238,7 +19238,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -19406,7 +19406,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PointInTimeBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PointInTimeBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PointInTimeBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartTime": "System.Nullable`1[System.DateTime]", "EndTime": "System.Nullable`1[System.DateTime]", @@ -19501,7 +19501,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -19687,7 +19687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -19838,7 +19838,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20064,7 +20064,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20168,7 +20168,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20390,7 +20390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20541,7 +20541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20740,7 +20740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -20966,7 +20966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RPMountScriptDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RPMountScriptDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RPMountScriptDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -21022,7 +21022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21160,7 +21160,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21328,7 +21328,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPoint": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", "PointInTime": "System.DateTime", @@ -21399,7 +21399,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21480,7 +21480,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21555,7 +21555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21668,7 +21668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21750,7 +21750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21888,7 +21888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -21957,7 +21957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22038,7 +22038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22169,7 +22169,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22263,7 +22263,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22448,7 +22448,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22529,7 +22529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22660,7 +22660,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22754,7 +22754,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22915,7 +22915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ProtectableItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -22996,7 +22996,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ItemBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -23127,7 +23127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -23221,7 +23221,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -23389,7 +23389,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "StartTime": "System.DateTime", @@ -23473,7 +23473,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -23536,7 +23536,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPoint": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", "PointInTime": "System.DateTime", @@ -23660,7 +23660,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23781,7 +23781,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -24094,7 +24094,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -24342,7 +24342,7 @@ ] }, { - "Name": "AzureFileParameterSet", + "Name": "AzureFileShareParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -24351,7 +24351,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -24420,7 +24420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RestoreFSResolveConflictOption, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24553,7 +24553,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -24758,7 +24758,7 @@ ] }, { - "Name": "AzureVMRestoreAsUnmanaged", + "Name": "AzureVMRestoreManagedAsUnmanaged", "Parameters": [ { "ParameterMetadata": { @@ -24767,7 +24767,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -25039,7 +25039,7 @@ ] }, { - "Name": "AzureVMTargetRGParameterSet", + "Name": "AzureVMManagedDiskParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -25048,7 +25048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -25320,7 +25320,7 @@ ] }, { - "Name": "AzureVMUseOSAParameterSet", + "Name": "AzureVMUnManagedDiskParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -25329,7 +25329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -25610,7 +25610,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryConfigBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPoint": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", "PointInTime": "System.DateTime", @@ -25855,7 +25855,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -25923,7 +25923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -26078,7 +26078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -26152,7 +26152,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -26750,7 +26750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "BackupEngineType": "System.String", @@ -26815,7 +26815,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "BackupEngineType": "System.String", @@ -26954,7 +26954,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupEngineBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "BackupEngineType": "System.String", @@ -27254,7 +27254,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27411,7 +27411,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27506,7 +27506,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.WorkloadType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27782,7 +27782,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobStatus, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27877,7 +27877,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.JobOperation, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27972,7 +27972,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupManagementType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.BackupManagementType", "ContainerType": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.ContainerType", @@ -28027,7 +28027,7 @@ "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models", "Name": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.SourceFileType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.Backup.Models, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28122,7 +28122,7 @@ "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProvisioningState": "System.String", "PrivateEndpointStateForBackup": "System.String", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery.dll.json index 4d90e2023537..d2b5f4078d14 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomEmailAddress": "System.Collections.Generic.IList`1[System.String]", "EmailSubscriptionOwner": "System.String", @@ -173,7 +173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomEmailAddress": "System.Collections.Generic.IList`1[System.String]", "EmailSubscriptionOwner": "System.String", @@ -814,7 +814,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsManagedDisk": "System.Boolean", "VhdUri": "System.String", @@ -1730,7 +1730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DiskId": "System.String", "LogStorageAccountId": "System.String", @@ -2090,7 +2090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREvent", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREvent, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREvent, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificEventDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventProviderSpecificDetails", "EventSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventSpecificDetails", @@ -2236,7 +2236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -2781,7 +2781,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -3057,7 +3057,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -3394,7 +3394,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -3872,7 +3872,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -3952,7 +3952,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -4079,7 +4079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -4274,7 +4274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -4354,7 +4354,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -4422,7 +4422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -4508,7 +4508,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -4596,7 +4596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -4655,7 +4655,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -4729,7 +4729,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -4821,7 +4821,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -4915,7 +4915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -5036,7 +5036,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -5132,7 +5132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -5400,7 +5400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -5732,7 +5732,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -5830,7 +5830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6016,7 +6016,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6196,7 +6196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6294,7 +6294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6526,7 +6526,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6758,7 +6758,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -6856,7 +6856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -7042,7 +7042,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -7222,7 +7222,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EnableAcceleratedNetworkingOnRecovery": "System.Boolean", "TfoReuseExistingNic": "System.Boolean", @@ -7309,7 +7309,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -7830,7 +7830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -8511,7 +8511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -8579,7 +8579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -8722,7 +8722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -8840,7 +8840,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -8982,7 +8982,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -9177,7 +9177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -9268,7 +9268,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -9335,7 +9335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -9466,7 +9466,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -9607,7 +9607,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -9778,7 +9778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -9892,7 +9892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -9959,7 +9959,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -10026,7 +10026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -10112,7 +10112,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -10261,7 +10261,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -10359,7 +10359,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -10593,7 +10593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -10666,7 +10666,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -10807,7 +10807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -10981,7 +10981,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -11061,7 +11061,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -11174,7 +11174,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -11305,7 +11305,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -11385,7 +11385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -11457,7 +11457,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -11583,7 +11583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -11731,7 +11731,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificNetworkMappingDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", "ID": "System.String", @@ -11809,7 +11809,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -11977,7 +11977,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -12313,7 +12313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -14071,7 +14071,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -14151,7 +14151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -14259,7 +14259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -14385,7 +14385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -14555,7 +14555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -15019,7 +15019,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -15237,7 +15237,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -15479,7 +15479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -15750,7 +15750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -16129,7 +16129,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -16272,7 +16272,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -16651,7 +16651,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -16801,7 +16801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -16913,7 +16913,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -17054,7 +17054,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -17206,7 +17206,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -17334,7 +17334,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -17515,7 +17515,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -17593,7 +17593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -17767,7 +17767,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18023,7 +18023,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -18116,7 +18116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18257,7 +18257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18385,7 +18385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18566,7 +18566,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -18662,7 +18662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -18729,7 +18729,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18807,7 +18807,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -18948,7 +18948,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -19021,7 +19021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -19105,7 +19105,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -19257,7 +19257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -19330,7 +19330,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -19511,7 +19511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -19591,7 +19591,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -19724,7 +19724,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -19949,7 +19949,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -20029,7 +20029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -20216,7 +20216,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -20414,7 +20414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -20639,7 +20639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -20754,7 +20754,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -20885,7 +20885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -21027,7 +21027,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -21145,7 +21145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -21316,7 +21316,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -21414,7 +21414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -21547,7 +21547,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -21718,7 +21718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -21798,7 +21798,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -21917,7 +21917,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -22098,7 +22098,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -22180,7 +22180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -22277,7 +22277,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -22365,7 +22365,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -22455,7 +22455,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -22475,7 +22475,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -22534,7 +22534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -22689,7 +22689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -22818,7 +22818,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -22914,7 +22914,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -23043,7 +23043,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -23139,7 +23139,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -23165,7 +23165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -23294,7 +23294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -23390,7 +23390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -23416,7 +23416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -23555,7 +23555,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -23970,7 +23970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -24066,7 +24066,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24134,7 +24134,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24295,7 +24295,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -24394,7 +24394,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24468,7 +24468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24542,7 +24542,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -24634,7 +24634,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24759,7 +24759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -24851,7 +24851,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -24997,7 +24997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", "GenericTypeArguments": [], @@ -25187,7 +25187,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -25285,7 +25285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -25473,7 +25473,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -25656,7 +25656,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -25736,7 +25736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -25874,7 +25874,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -26124,7 +26124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -26209,7 +26209,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -26370,7 +26370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -26518,7 +26518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -26719,7 +26719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -26826,7 +26826,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -26957,7 +26957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -27099,7 +27099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -27217,7 +27217,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -27388,7 +27388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -27468,7 +27468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -27579,7 +27579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -27752,7 +27752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -27832,7 +27832,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -27961,7 +27961,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -28182,7 +28182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -28262,7 +28262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -28360,7 +28360,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -28437,7 +28437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -28541,7 +28541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -28646,7 +28646,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -28781,7 +28781,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -28859,7 +28859,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -28997,7 +28997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -29149,7 +29149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -29277,7 +29277,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailablePolicies": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", "ProtectionContainerMappings": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", @@ -29405,7 +29405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -29583,7 +29583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -29733,7 +29733,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -29808,7 +29808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -29880,7 +29880,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -30011,7 +30011,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -30105,7 +30105,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput", "GenericTypeArguments": [], @@ -30123,7 +30123,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -30560,7 +30560,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -30665,7 +30665,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -30753,7 +30753,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -31013,7 +31013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -31185,7 +31185,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -31290,7 +31290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -31378,7 +31378,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput", "GenericTypeArguments": [], @@ -31402,7 +31402,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -31638,7 +31638,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -31810,7 +31810,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -31987,7 +31987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -32159,7 +32159,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -32483,7 +32483,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -32655,7 +32655,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificVMDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", "ProtectionReadinessErrors": "System.Collections.Generic.IList`1[System.String]", @@ -32760,7 +32760,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -32932,7 +32932,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -33340,7 +33340,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -33920,7 +33920,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -34092,7 +34092,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -34249,7 +34249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -34329,7 +34329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -34504,7 +34504,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -34801,7 +34801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -34881,7 +34881,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -35056,7 +35056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -35230,7 +35230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -35404,7 +35404,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -35561,7 +35561,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -35641,7 +35641,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -36015,7 +36015,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -36219,7 +36219,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig", "GenericTypeArguments": [], @@ -36278,7 +36278,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -36748,7 +36748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -37018,7 +37018,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig", "GenericTypeArguments": [], @@ -37099,7 +37099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -37177,7 +37177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -37243,7 +37243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -37416,7 +37416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -37488,7 +37488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -37785,7 +37785,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -37863,7 +37863,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -37942,7 +37942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -38079,7 +38079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -38208,7 +38208,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -38410,7 +38410,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -38488,7 +38488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -38567,7 +38567,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -38728,7 +38728,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -38873,7 +38873,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -39131,7 +39131,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -39235,7 +39235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryServicesProvider, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Connected": "System.Boolean", "LastHeartbeat": "System.DateTime", @@ -39667,7 +39667,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -39763,7 +39763,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -39968,7 +39968,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -40170,7 +40170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -40266,7 +40266,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -40345,7 +40345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -40592,7 +40592,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -40745,7 +40745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -40970,7 +40970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -41048,7 +41048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -41127,7 +41127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -41246,7 +41246,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -41388,7 +41388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -41515,7 +41515,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -41774,7 +41774,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -41859,7 +41859,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -42079,7 +42079,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -42362,7 +42362,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -42493,7 +42493,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -42684,7 +42684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -42788,7 +42788,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VmNetworkSubnetList": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.Subnet]", "FriendlyName": "System.String", @@ -42861,7 +42861,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -43052,7 +43052,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -43207,7 +43207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -43527,7 +43527,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -43605,7 +43605,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -43684,7 +43684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -43859,7 +43859,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -43987,7 +43987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -44246,7 +44246,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -44350,7 +44350,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPoint, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecoveryPointTime": "System.Nullable`1[System.DateTime]", "ID": "System.String", @@ -44567,7 +44567,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -45000,7 +45000,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -45078,7 +45078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -45136,7 +45136,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -45273,7 +45273,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -45337,7 +45337,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -45538,7 +45538,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -45706,7 +45706,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -45764,7 +45764,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capacity": "System.String", "FreeSpace": "System.String", @@ -45824,7 +45824,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataStores": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore]", "RetentionVolumes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume]", @@ -45889,7 +45889,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -45975,7 +45975,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -46085,7 +46085,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -46103,7 +46103,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -46182,7 +46182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -46391,7 +46391,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThresholdPercentage": "System.Nullable`1[System.Int32]", "CapacityInBytes": "System.Nullable`1[System.Int64]", @@ -46586,7 +46586,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -46650,7 +46650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capacity": "System.String", "FreeSpace": "System.String", @@ -46716,7 +46716,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataStores": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore]", "RetentionVolumes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume]", @@ -46787,7 +46787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -46879,7 +46879,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -46959,7 +46959,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -47090,7 +47090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThresholdPercentage": "System.Nullable`1[System.Int32]", "CapacityInBytes": "System.Nullable`1[System.Int64]", @@ -47224,7 +47224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -47288,7 +47288,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMasterTargetServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataStores": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore]", "RetentionVolumes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume]", @@ -47359,7 +47359,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProcessServer, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Updates": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", "PSStatsRefreshTime": "System.Nullable`1[System.DateTime]", @@ -47451,7 +47451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -47579,7 +47579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -47826,7 +47826,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -48025,7 +48025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -48224,7 +48224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -48352,7 +48352,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -48740,7 +48740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -48820,7 +48820,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig[], Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", "GenericTypeArguments": [], @@ -48844,7 +48844,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -49208,7 +49208,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -49364,7 +49364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -49663,7 +49663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -49754,7 +49754,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -49885,7 +49885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -50027,7 +50027,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -50145,7 +50145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -50316,7 +50316,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -50390,7 +50390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -50507,7 +50507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -50611,7 +50611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -50768,7 +50768,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -50864,7 +50864,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -50918,7 +50918,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -51035,7 +51035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -51095,7 +51095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassification, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FriendlyName": "System.String", "Id": "System.String", @@ -51252,7 +51252,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -51332,7 +51332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -51428,7 +51428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRStorageClassificationMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Name": "System.String", @@ -51586,7 +51586,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceName": "System.String", "ResourceGroupName": "System.String", @@ -51746,7 +51746,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceName": "System.String", "ResourceGroupName": "System.String", @@ -51946,7 +51946,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceName": "System.String", "ResourceGroupName": "System.String", @@ -52012,7 +52012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -52119,7 +52119,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -52292,7 +52292,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastHeartbeat": "System.Nullable`1[System.DateTime]", "FriendlyName": "System.String", @@ -52382,7 +52382,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -52575,7 +52575,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -52717,7 +52717,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -52888,7 +52888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -52966,7 +52966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -53052,7 +53052,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -53185,7 +53185,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -53283,7 +53283,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -53452,7 +53452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -53550,7 +53550,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastHeartbeat": "System.Nullable`1[System.DateTime]", "FriendlyName": "System.String", @@ -53621,7 +53621,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -53816,7 +53816,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastHeartbeat": "System.Nullable`1[System.DateTime]", "FriendlyName": "System.String", @@ -53937,7 +53937,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FabricSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", "Name": "System.String", @@ -54132,7 +54132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Errors": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", "Tasks": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", @@ -54230,7 +54230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastHeartbeat": "System.Nullable`1[System.DateTime]", "FriendlyName": "System.String", @@ -54301,7 +54301,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -54488,7 +54488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRvCenter, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastHeartbeat": "System.Nullable`1[System.DateTime]", "FriendlyName": "System.String", @@ -54565,7 +54565,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRunAsAccount, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountId": "System.String", "AccountName": "System.String" @@ -55084,7 +55084,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventProviderSpecificDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventProviderSpecificDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventProviderSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventProviderSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderType": "System.String" }, @@ -55122,7 +55122,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventSpecificDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventSpecificDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASREventSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55169,7 +55169,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -55181,7 +55181,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationTimeUtc": "System.String", "EntityId": "System.String", @@ -55247,7 +55247,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55289,7 +55289,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -55301,7 +55301,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRErrorDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderErrorDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderError", "ServiceErrorDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRServiceError", @@ -55347,7 +55347,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderError": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationTimeUtc": "System.DateTime", "ErrorCode": "System.Int32", @@ -55404,7 +55404,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRServiceError": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRServiceError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRServiceError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRServiceError, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Code": "System.String", "Message": "System.String", @@ -55462,7 +55462,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -55474,7 +55474,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRTask, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "GroupTaskDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRGroupTaskDetails", "EndTime": "System.DateTime", @@ -55534,7 +55534,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRGroupTaskDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRGroupTaskDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRGroupTaskDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRGroupTaskDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "System.String" }, @@ -55612,7 +55612,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -55624,7 +55624,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRMobilityServiceUpdate, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OsType": "System.String", "RebootStatus": "System.String", @@ -55687,7 +55687,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", "CurrentScenario": "Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.CurrentScenarioDetails", @@ -55777,7 +55777,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProviderSpecificRPIDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -55883,7 +55883,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -55895,7 +55895,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TfoIPConfigs": "System.Collections.Generic.List`1[Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfig]", "RecoveryLBBackendAddressPoolId": "System.Collections.Generic.List`1[System.String]", @@ -56139,7 +56139,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificNetworkMappingDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56185,7 +56185,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56237,7 +56237,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabricSpecificVMDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56279,7 +56279,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56291,7 +56291,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVirtualHardDisk, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Volumes": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume]", "Capacity": "System.Int64", @@ -56338,7 +56338,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56350,7 +56350,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Label": "System.String", "Name": "System.String" @@ -56395,7 +56395,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56407,7 +56407,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ReplicationProviderSettings": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicyProviderSettingsDetails", "FriendlyName": "System.String", @@ -56466,7 +56466,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56478,7 +56478,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProviderSpecificDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", "HealthErrorDetails": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRHealthError]", @@ -56544,7 +56544,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMappingProviderSpecificDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56586,7 +56586,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56598,7 +56598,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EndGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", "StartGroupActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", @@ -56678,7 +56678,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56690,7 +56690,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanAction, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CustomDetails": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanActionDetails", "FailoverTypes": "System.Collections.Generic.IList`1[System.String]", @@ -56752,7 +56752,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanActionDetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanActionDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanActionDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanActionDetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56910,7 +56910,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56922,7 +56922,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -56934,7 +56934,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanA2ADetails, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrimaryZone": "System.String", "RecoveryZone": "System.String" @@ -56988,7 +56988,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Groups": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlanGroup]", "ReplicationProvider": "System.Collections.Generic.IList`1[System.String]", @@ -57059,7 +57059,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRAzuretoAzureDiskReplicationConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsManagedDisk": "System.Boolean", "VhdUri": "System.String", @@ -57112,7 +57112,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AsrInMageAzureV2DiskInput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DiskId": "System.String", "LogStorageAccountId": "System.String", @@ -57159,7 +57159,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMNicConfig, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EnableAcceleratedNetworkingOnRecovery": "System.Boolean", "TfoReuseExistingNic": "System.Boolean", @@ -57219,7 +57219,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -57231,7 +57231,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRDataStore, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Capacity": "System.String", "FreeSpace": "System.String", @@ -57283,7 +57283,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -57295,7 +57295,7 @@ "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery", "Name": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRetentionVolume, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.SiteRecovery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThresholdPercentage": "System.Nullable`1[System.Int32]", "CapacityInBytes": "System.Nullable`1[System.Int64]", @@ -57359,7 +57359,7 @@ "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=2.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProvisioningState": "System.String", "PrivateEndpointStateForBackup": "System.String", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.dll.json index 2be12fb25765..38ae9403416b 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ASRVaultBackupProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ASRVaultBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ASRVaultBackupProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupStorageRedundancy": "System.String" }, @@ -67,7 +67,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -174,7 +174,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -301,7 +301,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -854,7 +854,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.VaultSettingsFilePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.VaultSettingsFilePath, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.VaultSettingsFilePath, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FilePath": "System.String" }, @@ -907,7 +907,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -1122,7 +1122,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -1360,7 +1360,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -1550,7 +1550,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -1740,7 +1740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -1889,7 +1889,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2216,7 +2216,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.VaultOperationOutput", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.VaultOperationOutput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.VaultOperationOutput, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Response": "System.String" }, @@ -2269,7 +2269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2376,7 +2376,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2520,7 +2520,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2588,7 +2588,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -2647,7 +2647,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2721,7 +2721,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -2819,7 +2819,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -2926,7 +2926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVault, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", "Name": "System.String", @@ -3192,7 +3192,7 @@ "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.ARSVaultProperties, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProvisioningState": "System.String", "PrivateEndpointStateForBackup": "System.String", @@ -3428,7 +3428,7 @@ "Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType": { "Namespace": "Microsoft.Azure.Commands.RecoveryServices", "Name": "Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType, Microsoft.Azure.PowerShell.Cmdlets.RecoveryServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll.json index 294f84f7e4f7..4a94545e9300 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll.json @@ -665,7 +665,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -1115,7 +1115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLog", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLog, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLog, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Log": "System.String", "DeploymentScriptName": "System.String", @@ -1228,7 +1228,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -1568,7 +1568,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -1766,7 +1766,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLogPath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLogPath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScriptLogPath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Path": "System.String" }, @@ -1875,7 +1875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -2347,7 +2347,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -2617,7 +2617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -3091,7 +3091,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusMessage": "System.Object", "Id": "System.String", @@ -3203,7 +3203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -3469,7 +3469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -3687,7 +3687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.ResourceManager.Models.ErrorResponse", "Changes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]", @@ -9540,7 +9540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -9974,7 +9974,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusMessage": "System.Object", "Id": "System.String", @@ -10068,7 +10068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -10310,7 +10310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -10530,7 +10530,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.ResourceManager.Models.ErrorResponse", "Changes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]", @@ -15983,7 +15983,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -16415,7 +16415,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusMessage": "System.Object", "Id": "System.String", @@ -16509,7 +16509,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -16751,7 +16751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -16969,7 +16969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.ResourceManager.Models.ErrorResponse", "Changes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]", @@ -22420,7 +22420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -29489,7 +29489,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -36158,7 +36158,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -42903,7 +42903,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -43374,7 +43374,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -43748,7 +43748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -44195,7 +44195,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -44571,7 +44571,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -45018,7 +45018,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -45332,7 +45332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Path": "System.String" }, @@ -45423,7 +45423,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -45751,7 +45751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -46065,7 +46065,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Path": "System.String" }, @@ -46138,7 +46138,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -46442,7 +46442,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -46758,7 +46758,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplatePath, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Path": "System.String" }, @@ -46831,7 +46831,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -47135,7 +47135,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -47527,7 +47527,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -47932,7 +47932,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -48258,7 +48258,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -48639,7 +48639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -48967,7 +48967,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -49348,7 +49348,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -49614,7 +49614,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", "Code": "System.String", @@ -52778,7 +52778,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", "Code": "System.String", @@ -55542,7 +55542,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", "Code": "System.String", @@ -58304,7 +58304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FeatureName": "System.String", "ProviderName": "System.String", @@ -58687,7 +58687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FeatureName": "System.String", "ProviderName": "System.String", @@ -58916,7 +58916,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSProviderFeature, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FeatureName": "System.String", "ProviderName": "System.String", @@ -59145,7 +59145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderLocation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderLocation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderLocation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Providers": "System.Collections.Generic.List`1[System.String]", "DisplayName": "System.String", @@ -60791,7 +60791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61153,7 +61153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61505,7 +61505,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61809,7 +61809,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62089,7 +62089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62417,7 +62417,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62670,7 +62670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62950,7 +62950,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64625,7 +64625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64987,7 +64987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65339,7 +65339,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65643,7 +65643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65923,7 +65923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66251,7 +66251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66504,7 +66504,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66784,7 +66784,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Locks.LockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68191,7 +68191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68553,7 +68553,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationKind, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68924,7 +68924,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69316,7 +69316,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Application.ApplicationLockLevel, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72868,7 +72868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.PsResourceProviderAlias", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.PsResourceProviderAlias, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.PsResourceProviderAlias, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Aliases": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.ResourceManager.Models.Alias]", "Locations": "System.Collections.Generic.IList`1[System.String]", @@ -73421,7 +73421,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -74205,7 +74205,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -75403,7 +75403,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -76601,7 +76601,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -76759,7 +76759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -76822,7 +76822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -76939,7 +76939,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -77190,7 +77190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -77259,7 +77259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -77352,7 +77352,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -77518,7 +77518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -77587,7 +77587,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -77800,7 +77800,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -77966,7 +77966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -78179,7 +78179,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -78272,7 +78272,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -78438,7 +78438,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -78651,7 +78651,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -78744,7 +78744,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -78910,7 +78910,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -79123,7 +79123,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -79216,7 +79216,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -79382,7 +79382,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -79595,7 +79595,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -79688,7 +79688,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -79861,7 +79861,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -81005,7 +81005,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -82224,7 +82224,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -82624,7 +82624,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -83001,7 +83001,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -83867,7 +83867,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -84172,7 +84172,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -85038,7 +85038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -85230,7 +85230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -85498,7 +85498,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -85518,7 +85518,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -85852,7 +85852,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -86186,7 +86186,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -86520,7 +86520,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -86782,7 +86782,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -87070,7 +87070,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -87382,7 +87382,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -87694,7 +87694,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -87812,7 +87812,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", "Identity": "System.Management.Automation.PSObject", @@ -88029,7 +88029,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -88154,7 +88154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -88402,7 +88402,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -89868,7 +89868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", "Name": "System.String", @@ -90180,7 +90180,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -90410,7 +90410,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -91894,7 +91894,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", "Name": "System.String", @@ -92206,7 +92206,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceTypes": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[]", "ZoneMappings": "System.Collections.Hashtable", @@ -92795,7 +92795,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceTypes": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[]", "ZoneMappings": "System.Collections.Hashtable", @@ -93068,7 +93068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProvider, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceTypes": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[]", "ZoneMappings": "System.Collections.Hashtable", @@ -93341,7 +93341,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -93812,7 +93812,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StatusMessage": "System.Object", "Id": "System.String", @@ -94090,7 +94090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfOperationResult, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.ResourceManager.Models.ErrorResponse", "Changes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]", @@ -101388,7 +101388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroupDeployment, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Mode": "Microsoft.Azure.Management.ResourceManager.Models.DeploymentMode", "OnErrorDeployment": "Microsoft.Azure.Management.ResourceManager.Models.OnErrorDeploymentExtended", @@ -112363,7 +112363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", "Code": "System.String", @@ -118309,7 +118309,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceGroupName": "System.String", @@ -118952,7 +118952,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceGroupName": "System.String", @@ -119361,7 +119361,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceGroup, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Hashtable", "ResourceGroupName": "System.String", @@ -119970,7 +119970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.ResourceManager.Models.Identity", "Plan": "Microsoft.Azure.Management.ResourceManager.Models.Plan", @@ -126099,7 +126099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.ResourceManager.Models.Identity", "Plan": "Microsoft.Azure.Management.ResourceManager.Models.Plan", @@ -126573,7 +126573,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.ResourceManager.Models.Identity", "Plan": "Microsoft.Azure.Management.ResourceManager.Models.Plan", @@ -129042,7 +129042,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Versions": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -129548,7 +129548,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Versions": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -129714,6 +129714,26 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "TemplateJson", "AliasList": [], @@ -129994,6 +130014,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "VersionDescription", @@ -130256,6 +130302,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "VersionDescription", @@ -130444,6 +130516,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "VersionDescription", @@ -131057,7 +131155,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpec, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Versions": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -131243,6 +131341,26 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "TemplateJson", "AliasList": [], @@ -131435,6 +131553,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -131651,6 +131795,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -131865,6 +132035,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -132029,6 +132225,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -132267,6 +132489,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -132503,6 +132751,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -132571,6 +132845,32 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": true }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [ + "Tags" + ], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -132633,7 +132933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -132763,7 +133063,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -133103,7 +133403,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", "Identity": "Microsoft.Azure.Management.ResourceManager.Models.ManagedServiceIdentity", @@ -133647,7 +133947,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Error": "Microsoft.Azure.Management.ResourceManager.Models.ErrorResponse", "StartTime": "System.Nullable`1[System.DateTime]", @@ -134470,7 +134770,7 @@ "System.Collections.Generic.Dictionary`2[System.String,Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.Dictionary`2[System.String,Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable]", - "AssemblyQualifiedName": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -134483,7 +134783,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.DeploymentVariable, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Value": "System.Object", "Type": "System.String" @@ -134528,7 +134828,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -134540,7 +134840,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChangeType": "Microsoft.Azure.Management.ResourceManager.Models.ChangeType", "Before": "Newtonsoft.Json.Linq.JToken", @@ -138545,7 +138845,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -138557,7 +138857,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.Deployments.PSWhatIfPropertyChange, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PropertyChangeType": "Microsoft.Azure.Management.ResourceManager.Models.PropertyChangeType", "Before": "Newtonsoft.Json.Linq.JToken", @@ -138705,7 +139005,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -138717,7 +139017,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Details": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError]", "Code": "System.String", @@ -139285,7 +139585,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Management.Automation.PSObject", "Parameters": "System.Management.Automation.PSObject", @@ -139356,7 +139656,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -139368,7 +139668,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -139473,7 +139773,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyDefinitionProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyType": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType", "Metadata": "System.Management.Automation.PSObject", @@ -139543,7 +139843,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -139648,7 +139948,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicySetDefinitionProperties, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PolicyType": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Policy.PsPolicyType", "Metadata": "System.Management.Automation.PSObject", @@ -139708,7 +140008,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Policy.PolicyAssignmentEnforcementMode, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -139803,7 +140103,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[]": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[], Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType[], Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType", "GenericTypeArguments": [], @@ -139813,7 +140113,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceProviderResourceType, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ZoneMappings": "System.Collections.Hashtable", "ResourceTypeName": "System.String", @@ -140271,7 +140571,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[]": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[], Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion[], Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion", "GenericTypeArguments": [], @@ -140281,7 +140581,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecVersion, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Artifacts": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact]", @@ -140332,7 +140632,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -140344,7 +140644,7 @@ "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact": { "Namespace": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels", "Name": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSTemplateSpecArtifact, Microsoft.Azure.PowerShell.Cmdlets.ResourceManager, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Path": "System.String" }, diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Resources.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Resources.dll.json index 58248b3a1683..7e1a0b28d38a 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Resources.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Resources.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSDenyAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSDenyAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSDenyAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DoNotApplyToChildScopes": "System.Boolean", "IsSystemProtected": "System.Boolean", @@ -2235,7 +2235,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models", "Name": "Microsoft.Azure.Commands.Resources.Models.PSResourceProviderOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.PSResourceProviderOperation, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.PSResourceProviderOperation, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsDataAction": "System.Boolean", "Operation": "System.String", @@ -2431,7 +2431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -5344,7 +5344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -8259,7 +8259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -8529,7 +8529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -10485,7 +10485,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -10629,7 +10629,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -10711,7 +10711,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -10923,7 +10923,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanDelegate": "System.Boolean", "RoleAssignmentId": "System.String", @@ -11135,7 +11135,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -11634,7 +11634,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -11713,7 +11713,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -11880,7 +11880,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -12096,7 +12096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -12529,7 +12529,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -12786,7 +12786,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -12865,7 +12865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -13032,7 +13032,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsCustom": "System.Boolean", "Actions": "System.Collections.Generic.List`1[System.String]", @@ -13193,7 +13193,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Type": "System.String", @@ -13256,7 +13256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -13597,7 +13597,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -13759,7 +13759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -14005,7 +14005,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -14480,7 +14480,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -14629,7 +14629,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15203,7 +15203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15276,7 +15276,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15437,7 +15437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15515,7 +15515,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15617,7 +15617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15739,7 +15739,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -15959,7 +15959,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "UpdatedTime": "System.Nullable`1[System.DateTime]", @@ -16323,7 +16323,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -16596,7 +16596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -16984,7 +16984,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -17307,7 +17307,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.String", "EndDate": "System.String", @@ -17417,7 +17417,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -17721,7 +17721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -17883,7 +17883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -18469,7 +18469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -18948,7 +18948,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADObject, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADObject, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DisplayName": "System.String", "Id": "System.String", @@ -19042,7 +19042,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -19278,7 +19278,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -19437,7 +19437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -19569,7 +19569,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -19963,7 +19963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -20199,7 +20199,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.String", "EndDate": "System.String", @@ -20311,7 +20311,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -20613,7 +20613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -20773,7 +20773,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -21434,7 +21434,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.String", "EndDate": "System.String", @@ -21544,7 +21544,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -22556,7 +22556,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -22739,7 +22739,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -23021,7 +23021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -23173,7 +23173,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -23191,7 +23191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -23840,7 +23840,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -24264,7 +24264,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -24383,7 +24383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -24658,7 +24658,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -24712,7 +24712,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADServicePrincipalWrapper", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADServicePrincipalWrapper, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADServicePrincipalWrapper, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "Secret": "System.Security.SecureString", @@ -24812,7 +24812,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -24875,7 +24875,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -24895,7 +24895,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -25270,7 +25270,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -25504,7 +25504,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -25994,7 +25994,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -26228,7 +26228,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -26296,7 +26296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -26455,7 +26455,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -26524,7 +26524,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", "GenericTypeArguments": [], @@ -26592,7 +26592,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -26775,7 +26775,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -26844,7 +26844,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential[], Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", "GenericTypeArguments": [], @@ -26963,7 +26963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.String", "EndDate": "System.String", @@ -27015,7 +27015,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADCredentialWrapper", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADCredentialWrapper, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSADCredentialWrapper, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Secret": "System.Security.SecureString", "StartDate": "System.String", @@ -27117,7 +27117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -27787,7 +27787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -27966,7 +27966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -28222,7 +28222,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -28718,7 +28718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -29274,7 +29274,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -29605,7 +29605,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -30089,7 +30089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -30402,7 +30402,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -30767,7 +30767,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -31113,7 +31113,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -31368,7 +31368,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -31756,7 +31756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADGroup, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SecurityEnabled": "System.Nullable`1[System.Boolean]", "MailNickname": "System.String", @@ -32083,7 +32083,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -32218,7 +32218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -32275,7 +32275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -32880,7 +32880,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -33035,7 +33035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -33366,7 +33366,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -33912,7 +33912,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -34285,7 +34285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -34888,7 +34888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -35147,7 +35147,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -35245,7 +35245,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -35823,7 +35823,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADApplication, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AvailableToOtherTenants": "System.Boolean", "IdentifierUris": "System.Collections.Generic.IList`1[System.String]", @@ -36111,7 +36111,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -36227,7 +36227,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -36957,7 +36957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADServicePrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationId": "System.Guid", "ObjectType": "System.String", @@ -37333,7 +37333,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -37452,7 +37452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -38127,7 +38127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADUser, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AccountEnabled": "System.Nullable`1[System.Boolean]", "UserPrincipalName": "System.String", @@ -38521,7 +38521,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -38533,7 +38533,7 @@ "Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.Authorization", "Name": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.Authorization.PSPrincipal, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "ObjectType": "System.String", @@ -38801,7 +38801,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -38813,7 +38813,7 @@ "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo": { "Namespace": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups", "Name": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Children": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroupChildInfo]", "Type": "System.String", @@ -38915,7 +38915,7 @@ "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADPasswordCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.DateTime", "EndDate": "System.DateTime", @@ -38962,7 +38962,7 @@ "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential": { "Namespace": "Microsoft.Azure.Commands.ActiveDirectory", "Name": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ActiveDirectory.PSADKeyCredential, Microsoft.Azure.PowerShell.Cmdlets.Resources, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartDate": "System.DateTime", "EndDate": "System.DateTime", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.dll.json index 24a4d8d91fae..0db65dc7d021 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -201,7 +201,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName", "GenericTypeArguments": [], @@ -676,7 +676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName", "GenericTypeArguments": [], @@ -937,7 +937,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -2016,7 +2016,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -2375,7 +2375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -2596,7 +2596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2926,7 +2926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3110,7 +3110,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -3631,7 +3631,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ProvisioningState": "System.String", @@ -4137,7 +4137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultParameterList": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -4722,7 +4722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionDescription": "Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -5303,7 +5303,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -5690,7 +5690,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -5816,7 +5816,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -6388,7 +6388,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -6597,7 +6597,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -6905,7 +6905,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -7040,7 +7040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -7699,7 +7699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -8364,7 +8364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -8501,7 +8501,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -8906,7 +8906,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -9279,7 +9279,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -9661,7 +9661,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -10098,7 +10098,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -10242,7 +10242,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10545,7 +10545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10797,7 +10797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11124,7 +11124,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11399,7 +11399,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11750,7 +11750,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ManagedClusterSku, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12026,7 +12026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -13048,7 +13048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -13468,7 +13468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -13752,7 +13752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -13878,7 +13878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -14408,7 +14408,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -14617,7 +14617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -15000,7 +15000,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -15589,7 +15589,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -15767,7 +15767,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -16372,7 +16372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -16507,7 +16507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -16872,7 +16872,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -17608,7 +17608,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -17752,7 +17752,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -17839,7 +17839,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18062,7 +18062,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18306,7 +18306,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18526,7 +18526,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", "ClusterUpgradeDescription": "Microsoft.Azure.Management.ServiceFabric.Models.ClusterUpgradePolicy", @@ -18777,7 +18777,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -18932,7 +18932,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -20115,7 +20115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -20269,7 +20269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSManagedNodeType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EphemeralPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", "ApplicationPorts": "Microsoft.Azure.Management.ServiceFabric.Models.EndpointRangeDescription", @@ -20594,7 +20594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -21565,7 +21565,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ProvisioningState": "System.String", @@ -21849,7 +21849,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultParameterList": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -22312,7 +22312,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionDescription": "Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -22623,7 +22623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -22991,7 +22991,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23340,7 +23340,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -23689,7 +23689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24134,7 +24134,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -24579,7 +24579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25024,7 +25024,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.MoveCostEnum, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25252,7 +25252,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentResult", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentResult, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentResult, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Cluster": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", "Deployment": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentExtended", @@ -25679,7 +25679,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27007,7 +27007,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.OperatingSystem, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27330,7 +27330,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -27765,7 +27765,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -28085,7 +28085,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ProvisioningState": "System.String", @@ -28505,7 +28505,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "ProvisioningState": "System.String", @@ -28830,7 +28830,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultParameterList": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -29283,7 +29283,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplicationTypeVersion, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultParameterList": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -29613,7 +29613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionDescription": "Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -30066,7 +30066,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSService, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PartitionDescription": "Microsoft.Azure.Management.ServiceFabric.Models.PartitionSchemeDescription", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -30287,7 +30287,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -30456,7 +30456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName", "GenericTypeArguments": [], @@ -30883,7 +30883,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName", "GenericTypeArguments": [], @@ -31144,7 +31144,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -31457,7 +31457,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -31816,7 +31816,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -32129,7 +32129,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -32296,7 +32296,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription", "GenericTypeArguments": [], @@ -32545,7 +32545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription", "GenericTypeArguments": [], @@ -32664,7 +32664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -32849,7 +32849,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription", "GenericTypeArguments": [], @@ -33122,7 +33122,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription[], Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription", "GenericTypeArguments": [], @@ -33241,7 +33241,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -33372,7 +33372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33584,7 +33584,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -33787,7 +33787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -34017,7 +34017,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -34260,7 +34260,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -34579,7 +34579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -34914,7 +34914,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35475,7 +35475,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.FailureAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -35916,7 +35916,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSApplication, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpgradePolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationUpgradePolicy", "Identity": "Microsoft.Azure.Management.ServiceFabric.Models.ManagedIdentity", @@ -36095,7 +36095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -36246,7 +36246,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36482,7 +36482,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.DurabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36666,7 +36666,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -36799,7 +36799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37013,7 +37013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ReliabilityLevel, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -38920,7 +38920,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSClientCertificateCommonName, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsAdmin": "System.Boolean", "CertificateCommonName": "System.String", @@ -40698,7 +40698,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.ClusterUpgradeMode, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -40793,7 +40793,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSCluster, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationTypeVersionsCleanupPolicy": "Microsoft.Azure.Management.ServiceFabric.Models.ApplicationTypeVersionsCleanupPolicy", "AzureActiveDirectory": "Microsoft.Azure.Management.ServiceFabric.Models.AzureActiveDirectory", @@ -40877,7 +40877,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentExtended": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentExtended", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentExtended, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSDeploymentExtended, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.Internal.Resources.Models.DeploymentPropertiesExtended", "Name": "System.String", @@ -41824,7 +41824,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -41836,7 +41836,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSKeyVault, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Certificate": "System.Security.Cryptography.X509Certificates.X509Certificate2", "KeyVaultId": "System.String", @@ -41897,7 +41897,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsSectionDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription]", "Name": "System.String" @@ -41947,7 +41947,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -41959,7 +41959,7 @@ "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription": { "Namespace": "Microsoft.Azure.Commands.ServiceFabric.Models", "Name": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.ServiceFabric.Models.PSSettingsParameterDescription, Microsoft.Azure.PowerShell.Cmdlets.ServiceFabric, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Value": "System.String" diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Sql.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Sql.dll.json index f78320d8e313..fcadf32d07ff 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Sql.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Sql.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -128,27 +128,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -158,8 +160,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -418,27 +420,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -448,8 +452,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -664,7 +668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -778,27 +782,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -808,8 +814,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -1068,27 +1074,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -1098,8 +1106,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -1314,7 +1322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -1428,7 +1436,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -1544,7 +1552,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1788,7 +1796,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2013,7 +2021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -2129,7 +2137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2450,7 +2458,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2747,7 +2755,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2979,7 +2987,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -3093,7 +3101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -3358,7 +3366,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -3599,7 +3607,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -3713,7 +3721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -3978,7 +3986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -4219,7 +4227,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -4333,7 +4341,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -4449,7 +4457,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4693,7 +4701,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4918,7 +4926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -5034,7 +5042,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5355,7 +5363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5652,7 +5660,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5884,7 +5892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -5993,7 +6001,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -6199,7 +6207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -6375,7 +6383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -6484,7 +6492,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -6690,7 +6698,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -6866,7 +6874,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedInstanceVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -6975,7 +6983,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -7091,7 +7099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7365,7 +7373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7638,7 +7646,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7839,7 +7847,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -7907,7 +7915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8108,7 +8116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8316,7 +8324,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -8425,7 +8433,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -8619,7 +8627,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -8783,7 +8791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ServerVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -8892,7 +8900,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -9086,7 +9094,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -9250,7 +9258,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -9364,7 +9372,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -9480,7 +9488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9754,7 +9762,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10027,7 +10035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10228,7 +10236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecurringScansInterval": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", "EmailAdmins": "System.Boolean", @@ -10296,7 +10304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10497,7 +10505,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10705,7 +10713,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanExportModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanExportModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanExportModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerName": "System.String", "DatabaseName": "System.String", @@ -10811,7 +10819,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -11086,7 +11094,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -11299,7 +11307,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -11411,27 +11419,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -11441,8 +11451,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -11743,27 +11753,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -11773,8 +11785,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -12013,7 +12025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -12125,27 +12137,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -12155,8 +12169,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -12499,27 +12513,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -12529,8 +12545,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -12793,7 +12809,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanExportModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanExportModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanExportModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InstanceName": "System.String", "DatabaseName": "System.String", @@ -12899,7 +12915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -13174,7 +13190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -13431,7 +13447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -13543,7 +13559,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -13850,7 +13866,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -14139,7 +14155,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentScanRecordModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TriggerType": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", @@ -14251,7 +14267,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -14600,7 +14616,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -14937,7 +14953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -15044,27 +15060,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -15074,8 +15092,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -15418,27 +15436,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -15448,8 +15468,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -15712,7 +15732,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -15819,27 +15839,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -15849,8 +15871,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -16193,27 +16215,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -16223,8 +16247,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -16487,7 +16511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.DatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -16594,7 +16618,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -16948,7 +16972,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -17204,7 +17228,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -17311,7 +17335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -17660,7 +17684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -17997,7 +18021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -18104,7 +18128,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -18453,7 +18477,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -18790,7 +18814,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.ManagedDatabaseVulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -18897,7 +18921,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -19251,7 +19275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RuleAppliesToMaster": "System.Boolean", "BaselineResult": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", @@ -19599,7 +19623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IgnoreMissingVnetServiceEndpoint": "System.Nullable`1[System.Boolean]", "ResourceGroupName": "System.String", @@ -19873,7 +19897,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IgnoreMissingVnetServiceEndpoint": "System.Nullable`1[System.Boolean]", "ResourceGroupName": "System.String", @@ -20273,7 +20297,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IgnoreMissingVnetServiceEndpoint": "System.Nullable`1[System.Boolean]", "ResourceGroupName": "System.String", @@ -20589,7 +20613,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IgnoreMissingVnetServiceEndpoint": "System.Nullable`1[System.Boolean]", "ResourceGroupName": "System.String", @@ -20989,7 +21013,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "Location": "System.String", @@ -21423,7 +21447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "Location": "System.String", @@ -21521,7 +21545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "Location": "System.String", @@ -21773,7 +21797,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model", "Name": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VirtualCluster.Model.AzureSqlVirtualClusterModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "Location": "System.String", @@ -22071,7 +22095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Usages.Models", "Name": "Microsoft.Azure.Commands.Sql.Usages.Models.AzureSqlUsageModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Usages.Models.AzureSqlUsageModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Usages.Models.AzureSqlUsageModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CurrentValue": "System.Nullable`1[System.Int32]", "Limit": "System.Nullable`1[System.Int32]", @@ -22130,7 +22154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -22308,7 +22332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -22732,7 +22756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -22824,7 +22848,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -23014,7 +23038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -23848,7 +23872,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -24108,7 +24132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -24604,7 +24628,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -24714,7 +24738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -24910,7 +24934,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -25296,7 +25320,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", "ResourceGroupName": "System.String", @@ -25404,7 +25428,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -25576,7 +25600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -25916,7 +25940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType", "ResourceGroupName": "System.String", @@ -26188,7 +26212,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionActivityStatusType", "PercentComplete": "System.Single", @@ -26461,7 +26485,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", "ResourceGroupName": "System.String", @@ -26692,7 +26716,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -26784,7 +26808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -26974,7 +26998,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -27384,7 +27408,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", "ResourceGroupName": "System.String", @@ -27490,7 +27514,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27631,7 +27655,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -27801,7 +27825,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -27936,7 +27960,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -28085,7 +28109,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28312,7 +28336,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28638,7 +28662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlDatabaseTransparentDataEncryptionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType", "ResourceGroupName": "System.String", @@ -28694,7 +28718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -28890,7 +28914,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29122,7 +29146,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureSqlServerTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", "ResourceGroupName": "System.String", @@ -29179,7 +29203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29411,7 +29435,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -29691,7 +29715,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -29970,7 +29994,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -30206,7 +30230,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -30527,7 +30551,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -30805,7 +30829,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.DatabaseThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -31344,7 +31368,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ServerThreatDetectionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ThreatDetectionState": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", "EmailAdmins": "System.Boolean", @@ -31840,7 +31864,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "TargetEdition": "System.String", @@ -32153,7 +32177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServiceTierAdvisor.Model", "Name": "Microsoft.Azure.Commands.Sql.ServiceTierAdvisor.Model.UpgradeServerHint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServiceTierAdvisor.Model.UpgradeServerHint, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServiceTierAdvisor.Model.UpgradeServerHint, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties]", "ElasticPools": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties]" @@ -32423,7 +32447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServiceObjective.Model", "Name": "Microsoft.Azure.Commands.Sql.ServiceObjective.Model.AzureSqlServerServiceObjectiveModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServiceObjective.Model.AzureSqlServerServiceObjectiveModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServiceObjective.Model.AzureSqlServerServiceObjectiveModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "IsDefault": "System.Boolean", @@ -32857,7 +32881,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -33099,7 +33123,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -33689,7 +33713,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -33973,7 +33997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -34521,7 +34545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -34838,7 +34862,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -35113,7 +35137,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -35430,7 +35454,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -35706,7 +35730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -36024,7 +36048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -36136,7 +36160,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -36450,7 +36474,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -36818,7 +36842,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDnsAlias.Model.AzureSqlServerDnsAliasModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -37266,7 +37290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -37561,7 +37585,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel+ServerDisasterRecoveryConfigurationState", "OperationId": "System.Guid", @@ -37887,7 +37911,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -38350,7 +38374,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -38687,7 +38711,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -39248,7 +39272,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -39522,7 +39546,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -39880,7 +39904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerCommunicationLink.Model.AzureSqlServerCommunicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -40196,7 +40220,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "ServerName": "System.String", @@ -40251,7 +40275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -40407,7 +40431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -40731,7 +40755,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "ServerName": "System.String", @@ -40786,7 +40810,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -40942,7 +40966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -41266,7 +41290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryOnlyAuthentication.Model.AzureSqlServerActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "ServerName": "System.String", @@ -41321,7 +41345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -41477,7 +41501,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -41801,7 +41825,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "IsAzureADOnlyAuthentication": "System.Nullable`1[System.Boolean]", @@ -42032,7 +42056,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "IsAzureADOnlyAuthentication": "System.Nullable`1[System.Boolean]", @@ -42305,7 +42329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerActiveDirectoryAdministrator.Model.AzureSqlServerActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "IsAzureADOnlyAuthentication": "System.Nullable`1[System.Boolean]", @@ -42620,7 +42644,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowConnections": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -42629,13 +42653,14 @@ "DatabaseName": "System.String", "ServerName": "System.String", "ResourceGroupName": "System.String", + "SecondaryType": "System.String", "BackupStorageRedundancy": "System.String", "LicenseType": "System.String", "Family": "System.String", "Edition": "System.String", "SkuName": "System.String", + "PartnerLocation": "System.String", "StartTime": "System.String", - "Location": "System.String", "Role": "System.String", "PartnerRole": "System.String", "PercentComplete": "System.String", @@ -42644,7 +42669,7 @@ "SecondaryServiceObjectiveName": "System.String", "PartnerDatabaseName": "System.String", "PartnerServerName": "System.String", - "PartnerLocation": "System.String", + "Location": "System.String", "PartnerResourceGroupName": "System.String" }, "ElementType": null, @@ -42996,7 +43021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureSqlDatabaseCopyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureSqlDatabaseCopyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureSqlDatabaseCopyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", @@ -44344,7 +44369,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowConnections": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -44353,13 +44378,14 @@ "DatabaseName": "System.String", "ServerName": "System.String", "ResourceGroupName": "System.String", + "SecondaryType": "System.String", "BackupStorageRedundancy": "System.String", "LicenseType": "System.String", "Family": "System.String", "Edition": "System.String", "SkuName": "System.String", + "PartnerLocation": "System.String", "StartTime": "System.String", - "Location": "System.String", "Role": "System.String", "PartnerRole": "System.String", "PercentComplete": "System.String", @@ -44368,7 +44394,7 @@ "SecondaryServiceObjectiveName": "System.String", "PartnerDatabaseName": "System.String", "PartnerServerName": "System.String", - "PartnerLocation": "System.String", + "Location": "System.String", "PartnerResourceGroupName": "System.String" }, "ElementType": null, @@ -44548,7 +44574,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44743,6 +44769,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "ServerName", "AliasList": [], @@ -44946,7 +44993,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45124,6 +45171,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -45393,7 +45467,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45571,6 +45645,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -45844,7 +45945,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46022,6 +46123,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -46128,7 +46256,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowConnections": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -46137,13 +46265,14 @@ "DatabaseName": "System.String", "ServerName": "System.String", "ResourceGroupName": "System.String", + "SecondaryType": "System.String", "BackupStorageRedundancy": "System.String", "LicenseType": "System.String", "Family": "System.String", "Edition": "System.String", "SkuName": "System.String", + "PartnerLocation": "System.String", "StartTime": "System.String", - "Location": "System.String", "Role": "System.String", "PartnerRole": "System.String", "PercentComplete": "System.String", @@ -46152,7 +46281,7 @@ "SecondaryServiceObjectiveName": "System.String", "PartnerDatabaseName": "System.String", "PartnerServerName": "System.String", - "PartnerLocation": "System.String", + "Location": "System.String", "PartnerResourceGroupName": "System.String" }, "ElementType": null, @@ -46504,7 +46633,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AzureReplicationLinkModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowConnections": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -46513,13 +46642,14 @@ "DatabaseName": "System.String", "ServerName": "System.String", "ResourceGroupName": "System.String", + "SecondaryType": "System.String", "BackupStorageRedundancy": "System.String", "LicenseType": "System.String", "Family": "System.String", "Edition": "System.String", "SkuName": "System.String", + "PartnerLocation": "System.String", "StartTime": "System.String", - "Location": "System.String", "Role": "System.String", "PartnerRole": "System.String", "PercentComplete": "System.String", @@ -46528,7 +46658,7 @@ "SecondaryServiceObjectiveName": "System.String", "PartnerDatabaseName": "System.String", "PartnerServerName": "System.String", - "PartnerLocation": "System.String", + "Location": "System.String", "PartnerResourceGroupName": "System.String" }, "ElementType": null, @@ -47132,7 +47262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DatabaseCollection": "System.Collections.Generic.IList`1[System.String]", "DatabaseDtuMax": "System.Int32", @@ -47366,7 +47496,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -47772,7 +47902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -48178,7 +48308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -48537,7 +48667,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlDatabaseRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -48661,7 +48791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48899,7 +49029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49155,7 +49285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlElasticPoolRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -49279,7 +49409,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49517,7 +49647,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49773,7 +49903,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Model.AzureSqlServerRecommendedActionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", @@ -49892,7 +50022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50112,7 +50242,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.RecommendedAction.Cmdlet.RecommendedActionState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50344,7 +50474,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -50422,7 +50552,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -50618,7 +50748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -51469,7 +51599,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -51547,7 +51677,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -52116,7 +52246,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -54709,7 +54839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -54825,7 +54955,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -55095,7 +55225,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -55411,7 +55541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -55489,7 +55619,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -55944,7 +56074,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -57774,7 +57904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationParameters": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationParametersPair", "OperationSteps": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationSteps", @@ -58292,7 +58422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationParameters": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationParametersPair", "OperationSteps": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationSteps", @@ -58438,7 +58568,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationParameters": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationParametersPair", "OperationSteps": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationSteps", @@ -58800,7 +58930,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstanceOperation.Model.AzureSqlManagedInstanceOperationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationParameters": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationParametersPair", "OperationSteps": "Microsoft.Azure.Management.Sql.Models.ManagedInstanceOperationSteps", @@ -59133,7 +59263,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -59526,7 +59656,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -59723,7 +59853,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ManagedInstanceName": "System.String", @@ -60063,7 +60193,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseRestoreDetailsResultModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseRestoreDetailsResultModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseRestoreDetailsResultModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PercentCompleted": "System.Double", "NumberOfFilesDetected": "System.Int64", @@ -60365,7 +60495,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -60536,7 +60666,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -60892,7 +61022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -61068,7 +61198,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -61257,7 +61387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -61747,7 +61877,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -62149,7 +62279,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -62300,7 +62430,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -62611,7 +62741,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -62944,7 +63074,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -63192,7 +63322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -63245,7 +63375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ManagedInstanceName": "System.String", @@ -63738,7 +63868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -64394,7 +64524,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -65439,7 +65569,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlRecoverableManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ManagedInstanceName": "System.String", @@ -66404,7 +66534,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -66669,7 +66799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -67262,7 +67392,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -67559,7 +67689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -67748,7 +67878,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -68141,7 +68271,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -68338,7 +68468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlDeletedManagedDatabaseBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlDeletedManagedDatabaseBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlDeletedManagedDatabaseBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeletionDate": "System.DateTime", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -68867,7 +68997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WeekOfYear": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -69145,7 +69275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionDays": "System.Int32", "DeletionDate": "System.Nullable`1[System.DateTime]", @@ -69226,7 +69356,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -69411,7 +69541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -69773,7 +69903,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -69853,7 +69983,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -70846,7 +70976,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -71012,7 +71142,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -71257,7 +71387,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -71373,7 +71503,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -71733,7 +71863,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -72035,7 +72165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WeekOfYear": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -73059,7 +73189,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.LocationCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.LocationCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.LocationCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SupportedServerVersions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel]", "LocationName": "System.String", @@ -73551,7 +73681,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "InstanceName": "System.String", @@ -73606,7 +73736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -73774,7 +73904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -74110,7 +74240,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "InstanceName": "System.String", @@ -74165,7 +74295,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -74333,7 +74463,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -74669,7 +74799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryOnlyAuthentication.Model.AzureSqlInstanceActiveDirectoryOnlyAuthenticationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureADOnlyAuthentication": "System.Boolean", "InstanceName": "System.String", @@ -74724,7 +74854,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -74892,7 +75022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -75228,7 +75358,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "ResourceGroupName": "System.String", @@ -75284,7 +75414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -75452,7 +75582,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -75788,7 +75918,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "ResourceGroupName": "System.String", @@ -75880,7 +76010,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -76140,7 +76270,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -76576,7 +76706,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceActiveDirectoryAdministrator.Model.AzureSqlInstanceActiveDirectoryAdministratorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ObjectId": "System.Guid", "ResourceGroupName": "System.String", @@ -76668,7 +76798,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -76928,7 +77058,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -77364,7 +77494,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -77804,7 +77934,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -78390,7 +78520,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -78454,7 +78584,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -78612,7 +78742,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -78938,7 +79068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -79002,7 +79132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -79216,7 +79346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model", "Name": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Instance_Pools.Model.AzureSqlInstancePoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Sql.Models.Sku", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -79838,7 +79968,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -80120,7 +80250,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -80738,7 +80868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -80858,7 +80988,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -81320,7 +81450,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -81582,7 +81712,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -81702,7 +81832,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -82230,7 +82360,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -82540,7 +82670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -82660,7 +82790,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -83056,7 +83186,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.InstanceFailoverGroup.Model.AzureSqlInstanceFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodHours": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -83270,7 +83400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Model", "Name": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EstimatedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", "ReportedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", @@ -83641,7 +83771,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Model", "Name": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EstimatedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", "ReportedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", @@ -83970,7 +84100,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Model", "Name": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Model.IndexRecommendation, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "EstimatedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", "ReportedImpact": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", @@ -84299,7 +84429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportStatusModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportStatusModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportStatusModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointRequestStatus": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus[]", "OperationStatusLink": "System.String", @@ -84491,7 +84621,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", "NetworkIsolationSettings": "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings", @@ -84592,7 +84722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84767,7 +84897,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85029,7 +85159,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85234,7 +85364,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85490,7 +85620,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AzureSqlDatabaseImportExportBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuthenticationType": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", "NetworkIsolationSettings": "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings", @@ -85573,7 +85703,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85730,7 +85860,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85905,7 +86035,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -86143,7 +86273,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseEdition, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -86324,7 +86454,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -86529,7 +86659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -86785,7 +86915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FirewallRule.Model", "Name": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -87062,7 +87192,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FirewallRule.Model", "Name": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -87649,7 +87779,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FirewallRule.Model", "Name": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -87968,7 +88098,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FirewallRule.Model", "Name": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FirewallRule.Model.AzureSqlServerFirewallRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceGroupName": "System.String", "ServerName": "System.String", @@ -88329,7 +88459,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -88459,7 +88589,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -88584,7 +88714,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -88685,7 +88815,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -88995,7 +89125,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -89161,7 +89291,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -89282,7 +89412,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -89538,7 +89668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -89671,7 +89801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -89855,7 +89985,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -89985,7 +90115,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -90128,7 +90258,7 @@ "Type": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -90253,7 +90383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -90605,7 +90735,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -90735,7 +90865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -90856,7 +90986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -91064,7 +91194,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.FailoverPolicy, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -91197,7 +91327,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AllowReadOnlyFailoverToPrimary, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -91381,7 +91511,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model", "Name": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.FailoverGroup.Model.AzureSqlFailoverGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverGroupReadOnlyEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", "FailoverGroupReadWriteEndpoint": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", @@ -91775,7 +91905,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", @@ -92068,7 +92198,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationId": "System.Guid", "IsCancellable": "System.Nullable`1[System.Boolean]", @@ -92402,27 +92532,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -92432,8 +92564,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -93143,7 +93275,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", @@ -94490,7 +94622,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", @@ -94825,7 +94957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", @@ -96176,7 +96308,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticPool.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticPool.Model.AzureSqlElasticPoolActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OperationId": "System.Guid", "IsCancellable": "System.Nullable`1[System.Boolean]", @@ -96552,7 +96684,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -96633,7 +96765,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -96909,7 +97041,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -97193,7 +97325,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -97274,27 +97406,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -97304,8 +97438,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -97692,27 +97826,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -97722,8 +97858,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -98082,7 +98218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -98163,7 +98299,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -98480,7 +98616,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -98783,7 +98919,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -98864,7 +99000,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -99185,7 +99321,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -99468,7 +99604,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -99546,7 +99682,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -99863,7 +99999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -100146,7 +100282,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -100224,7 +100360,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -100583,7 +100719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -100914,7 +101050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -100992,7 +101128,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -101306,7 +101442,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -101534,7 +101670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -101612,7 +101748,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -101968,7 +102104,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobCredentialModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Password": "System.Security.SecureString", "CredentialName": "System.String", @@ -102244,7 +102380,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -102330,7 +102466,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -102729,7 +102865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -103082,7 +103218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -103168,7 +103304,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -103528,7 +103664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -103764,7 +103900,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -103850,7 +103986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -104040,27 +104176,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -104070,8 +104208,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -104970,27 +105108,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -105000,8 +105140,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -105881,7 +106021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -106249,7 +106389,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -106391,27 +106531,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -106421,8 +106563,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -106812,7 +106954,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -107694,27 +107836,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -107724,8 +107868,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -108740,7 +108884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -108826,7 +108970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -109003,27 +109147,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -109033,8 +109179,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -109527,27 +109673,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -109557,8 +109705,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -110902,7 +111050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -110975,27 +111123,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -111005,8 +111155,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -111442,7 +111592,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -111811,7 +111961,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -112276,27 +112426,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -112306,8 +112458,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -113734,7 +113886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -113817,7 +113969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -114846,7 +114998,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -115032,7 +115184,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -115268,7 +115420,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -116233,7 +116385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -116316,7 +116468,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -117425,7 +117577,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -117639,7 +117791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -117877,7 +118029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -118870,7 +119022,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -118947,7 +119099,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -119264,7 +119416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -119547,7 +119699,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -119624,7 +119776,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -119941,7 +120093,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -120224,7 +120376,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -120301,7 +120453,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -120656,7 +120808,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -120955,7 +121107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MembershipType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobTargetGroupMembershipType]", "TargetGroupName": "System.String", @@ -121056,7 +121208,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -122091,7 +122243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -122271,7 +122423,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -122475,7 +122627,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -123202,7 +123354,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MembershipType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobTargetGroupMembershipType]", "TargetGroupName": "System.String", @@ -123285,7 +123437,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -124180,7 +124332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -124336,7 +124488,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -124516,7 +124668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Targets": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", "TargetGroupName": "System.String", @@ -125191,7 +125343,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -125277,7 +125429,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -125850,7 +126002,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -125990,7 +126142,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -126421,7 +126573,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -126507,7 +126659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -126871,7 +127023,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobStepModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", "RetryIntervalBackoffMultiplier": "System.Nullable`1[System.Double]", @@ -127107,7 +127259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -127190,7 +127342,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -127507,7 +127659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -127790,7 +127942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -127873,7 +128025,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -128234,7 +128386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScheduleType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobScheduleType]", "Enabled": "System.Nullable`1[System.Boolean]", @@ -128539,7 +128691,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -128625,7 +128777,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -129392,7 +129544,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -129682,7 +129834,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "WorkerCount": "System.Nullable`1[System.Int32]", @@ -130255,7 +130407,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -130341,7 +130493,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -131133,7 +131285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -131378,7 +131530,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -131858,7 +132010,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -131944,7 +132096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -132618,7 +132770,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreateTime": "System.Nullable`1[System.DateTime]", "StartTime": "System.Nullable`1[System.DateTime]", @@ -133231,7 +133383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -133340,27 +133492,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -133370,8 +133524,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -133588,7 +133742,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -133977,27 +134131,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -134007,8 +134163,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -134384,7 +134540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -134493,7 +134649,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -134716,7 +134872,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -135105,7 +135261,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -135487,7 +135643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -135596,27 +135752,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -135626,8 +135784,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -135844,7 +136002,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -136233,27 +136391,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -136263,8 +136423,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -136640,7 +136800,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -136749,7 +136909,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -136972,7 +137132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -137361,7 +137521,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -137722,7 +137882,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -137832,27 +137992,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -137862,8 +138024,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -138412,27 +138574,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -138442,8 +138606,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -138603,27 +138767,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -138633,8 +138799,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -138941,7 +139107,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -139051,27 +139217,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -139081,8 +139249,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -139365,27 +139533,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -139395,8 +139565,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -139631,7 +139801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -139741,7 +139911,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -140296,7 +140466,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -140462,7 +140632,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -140775,7 +140945,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -140885,7 +141055,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -141174,7 +141344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -141434,7 +141604,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -141543,27 +141713,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -141573,8 +141745,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -141789,7 +141961,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -142178,27 +142350,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -142208,8 +142382,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -142583,7 +142757,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -142692,7 +142866,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -142913,7 +143087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -143302,7 +143476,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -143718,7 +143892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -143827,27 +144001,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -143857,8 +144033,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -144405,27 +144581,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -144435,8 +144613,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -144692,7 +144870,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "ServerName": "System.String", @@ -144999,7 +145177,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -145108,7 +145286,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -145661,7 +145839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "AutoCompleteRestore": "System.Nullable`1[System.Boolean]", @@ -145923,7 +146101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SensitivityLabels": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", "InstanceName": "System.String", @@ -146175,27 +146353,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -146205,8 +146385,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -146513,7 +146693,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState", "OperationId": "System.Guid", @@ -146884,7 +147064,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModelExpanded, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServiceTierAdvisor": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ServiceTierAdvisorProperties", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -146897,26 +147077,28 @@ "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", + "Capacity": "System.Nullable`1[System.Int32]", "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "Capacity": "System.Nullable`1[System.Int32]", - "CatalogCollation": "System.String", - "ResourceGroupName": "System.String", - "LicenseType": "System.String", - "SkuName": "System.String", "Family": "System.String", - "ServerName": "System.String", - "DatabaseName": "System.String", + "SkuName": "System.String", + "LicenseType": "System.String", "CreateMode": "System.String", - "ResourceId": "System.String", - "Location": "System.String", - "Edition": "System.String", "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", - "CollationName": "System.String", "Status": "System.String", - "BackupStorageRedundancy": "System.String" + "CatalogCollation": "System.String", + "CollationName": "System.String", + "Edition": "System.String", + "Location": "System.String", + "DatabaseName": "System.String", + "ServerName": "System.String", + "ResourceGroupName": "System.String", + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -147603,27 +147785,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -147633,8 +147817,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -147849,7 +148033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -148158,8 +148342,10 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -148197,6 +148383,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "ServerName", "AliasList": [], @@ -148376,7 +148583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -148679,8 +148886,10 @@ }, { "ParameterMetadata": { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -148729,6 +148938,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -148998,7 +149234,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -149301,8 +149537,10 @@ }, { "ParameterMetadata": { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -149351,6 +149589,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -149650,7 +149915,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -149953,8 +150218,10 @@ }, { "ParameterMetadata": { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -150003,6 +150270,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -150109,27 +150403,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -150139,8 +150435,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -150489,27 +150785,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -150519,8 +150817,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -150699,7 +150997,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -150988,8 +151286,10 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -151027,6 +151327,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "ServerName", "AliasList": [], @@ -151179,6 +151500,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -151374,7 +151722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -151627,8 +151975,10 @@ }, { "ParameterMetadata": { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -151727,6 +152077,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -151874,7 +152251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -152181,8 +152558,10 @@ }, { "ParameterMetadata": { - "Name": "ReadReplicaCount", - "AliasList": [], + "Name": "HighAvailabilityReplicaCount", + "AliasList": [ + "ReadReplicaCount" + ], "Type": { "Namespace": "System", "Name": "System.Int32", @@ -152281,6 +152660,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -152475,6 +152881,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "SecondaryType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Named", + "Geo" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ServerName", @@ -152581,7 +153014,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState", "OperationId": "System.Guid", @@ -152952,7 +153385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -153032,27 +153465,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -153062,8 +153497,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -154078,27 +154513,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -154108,8 +154545,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -154269,27 +154706,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -154299,8 +154738,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -154539,7 +154978,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -154655,7 +155094,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -155015,7 +155454,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseLongTermRetentionBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupExpirationTime": "System.Nullable`1[System.DateTime]", "BackupTime": "System.Nullable`1[System.DateTime]", @@ -155317,7 +155756,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionDays": "System.Int32", "ResourceGroupName": "System.String", @@ -155392,27 +155831,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -155422,8 +155863,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -155622,27 +156063,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -155652,8 +156095,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -156024,7 +156467,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastAvailableBackupDate": "System.DateTime", "ResourceGroupName": "System.String", @@ -156299,7 +156742,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDeletedDatabaseBackupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDeletedDatabaseBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDeletedDatabaseBackupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.DateTime", "DeletionDate": "System.DateTime", @@ -156625,7 +157068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WeekOfYear": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -156903,7 +157346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState", "Location": "System.String", @@ -157176,7 +157619,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", @@ -157452,7 +157895,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", @@ -157770,7 +158213,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseRestorePointModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", @@ -158130,27 +158573,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -158160,8 +158605,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -161518,7 +161963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionDays": "System.Int32", "ResourceGroupName": "System.String", @@ -161611,27 +162056,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -161641,8 +162088,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -161909,27 +162356,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -161939,8 +162388,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -162339,7 +162788,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseBackupLongTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "WeekOfYear": "System.Nullable`1[System.Int32]", "ResourceGroupName": "System.String", @@ -163363,7 +163812,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "State": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState", "Location": "System.String", @@ -163420,7 +163869,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -163616,7 +164065,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -163848,7 +164297,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupShortTermRetentionPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RetentionDays": "System.Int32", "DeletionDate": "System.Nullable`1[System.DateTime]", @@ -163929,7 +164378,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -164132,7 +164581,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseBaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreationDate": "System.Nullable`1[System.DateTime]", "EarliestRestorePoint": "System.Nullable`1[System.DateTime]", @@ -164590,27 +165039,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -164620,8 +165071,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -164966,27 +165417,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -164996,8 +165449,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -165342,7 +165795,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsUpToDate": "System.Nullable`1[System.Boolean]", "LastAliveTime": "System.Nullable`1[System.DateTime]", @@ -165642,7 +166095,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentLinkedDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentLinkedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentLinkedDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SeverName": "System.String", "DatabaseId": "System.String", @@ -165930,7 +166383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -166280,7 +166733,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupLogModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupLogModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupLogModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TimeStamp": "System.Nullable`1[System.DateTime]", "LogLevel": "System.String", @@ -166744,7 +167197,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", "MemberDatabasePassword": "System.Security.SecureString", @@ -167143,7 +167596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tables": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel]", "LastUpdateTime": "System.Nullable`1[System.DateTime]" @@ -167507,7 +167960,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsUpToDate": "System.Nullable`1[System.Boolean]", "LastAliveTime": "System.Nullable`1[System.DateTime]", @@ -168211,7 +168664,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncAgentKey": "System.String" }, @@ -168480,7 +168933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -169172,7 +169625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", "MemberDatabasePassword": "System.Security.SecureString", @@ -170920,7 +171373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncAgentModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsUpToDate": "System.Nullable`1[System.Boolean]", "LastAliveTime": "System.Nullable`1[System.DateTime]", @@ -171304,7 +171757,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -171738,7 +172191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", "MemberDatabasePassword": "System.Security.SecureString", @@ -172221,7 +172674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -172613,7 +173066,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -173005,7 +173458,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -173523,7 +173976,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncMemberModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", "MemberDatabasePassword": "System.Security.SecureString", @@ -174052,7 +174505,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Schema": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", "UsePrivateLinkConnection": "System.Nullable`1[System.Boolean]", @@ -174482,7 +174935,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataMaskingState": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType", "DatabaseName": "System.String", @@ -174755,7 +175208,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaskingFunction": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction", "NumberFrom": "System.Nullable`1[System.Double]", @@ -175161,7 +175614,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaskingFunction": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction", "NumberFrom": "System.Nullable`1[System.Double]", @@ -175893,7 +176346,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaskingFunction": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction", "NumberFrom": "System.Nullable`1[System.Double]", @@ -176383,7 +176836,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DataMaskingState": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType", "DatabaseName": "System.String", @@ -176788,7 +177241,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DatabaseDataMaskingRuleModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaskingFunction": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction", "NumberFrom": "System.Nullable`1[System.Double]", @@ -177520,7 +177973,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.DatabaseAuditModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.DatabaseAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.DatabaseAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuditActionGroup": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", "BlobStorageTargetState": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType", @@ -177641,27 +178094,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -177671,8 +178126,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -177913,27 +178368,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -177943,8 +178400,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -178131,7 +178588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.ServerAuditModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.ServerAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.ServerAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AuditActionGroup": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", "BlobStorageTargetState": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType", @@ -178232,7 +178689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -178468,7 +178925,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -178753,27 +179210,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -178783,8 +179242,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -179025,27 +179484,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -179055,8 +179516,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -179298,7 +179759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -179534,7 +179995,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -179765,7 +180226,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -180067,27 +180528,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -180097,8 +180560,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -180223,7 +180686,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -180665,7 +181128,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -181035,27 +181498,29 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -181065,8 +181530,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -181158,7 +181623,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -181554,7 +182019,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -181820,7 +182285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -181940,7 +182405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -182358,7 +182823,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -182728,7 +183193,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -182797,7 +183262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -183174,7 +183639,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -183558,7 +184023,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -183942,7 +184407,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -184279,7 +184744,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlDatabaseAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -184381,7 +184846,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -184601,7 +185066,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -184833,7 +185298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlElasticPoolAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -184935,7 +185400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -185155,7 +185620,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -185387,7 +185852,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Model", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Model.AzureSqlServerAdvisorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RecommendedActions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", "LastChecked": "System.Nullable`1[System.DateTime]", @@ -185484,7 +185949,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -185686,7 +186151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet", "Name": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Advisor.Cmdlet.AdvisorAutoExecuteStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -185894,7 +186359,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ManagedInstanceName": "System.String", @@ -185949,7 +186414,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -186099,7 +186564,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -186371,7 +186836,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ServerName": "System.String", @@ -186426,7 +186891,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -186564,7 +187029,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -186826,7 +187291,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ManagedInstanceName": "System.String", @@ -186935,7 +187400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -187249,7 +187714,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -187501,7 +187966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ServerName": "System.String", @@ -187610,7 +188075,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -187912,7 +188377,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -188154,7 +188619,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ManagedInstanceAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ManagedInstanceName": "System.String", @@ -188209,7 +188674,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -188359,7 +188824,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model", "Name": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ManagedInstance.Model.AzureSqlManagedInstanceModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Management.Internal.Resources.Models.Sku", "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", @@ -188631,7 +189096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model", "Name": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model.ServerAdvancedDataSecurityPolicyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsEnabled": "System.Boolean", "ServerName": "System.String", @@ -188686,7 +189151,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -188824,7 +189289,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Sql.Server.Model", "Name": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Server.Model.AzureSqlServerModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.Management.Sql.Models.ResourceIdentity", "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", @@ -189217,7 +189682,7 @@ "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -189385,7 +189850,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -189397,7 +189862,7 @@ "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -189886,7 +190351,7 @@ "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.TriggerType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -189981,7 +190446,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -189993,7 +190458,7 @@ "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentScanErrorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Code": "System.String", "Message": "System.String" @@ -190038,7 +190503,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -190050,7 +190515,7 @@ "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel": { "Namespace": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model", "Name": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model.VulnerabilityAssessmentRuleBaselineRowModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Result": "System.Collections.Generic.IList`1[System.String]" }, @@ -190173,7 +190638,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -190268,7 +190733,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceKeyVaultKeyModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.ServerKeyType", "CreationDate": "System.Nullable`1[System.DateTime]", @@ -190349,7 +190814,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -190444,7 +190909,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.EncryptionProtectorType", "ResourceGroupName": "System.String", @@ -190541,7 +191006,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -190636,7 +191101,7 @@ "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionActivityStatusType": { "Namespace": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model", "Name": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionActivityStatusType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionActivityStatusType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Model.TransparentDataEncryptionActivityStatusType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -190731,7 +191196,7 @@ "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType": { "Namespace": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model", "Name": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ThreatDetection.Model.ThreatDetectionStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -190838,7 +191303,7 @@ "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -190850,7 +191315,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedDatabaseProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "TargetEdition": "System.String", @@ -190896,7 +191361,7 @@ "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties]", - "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -190908,7 +191373,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.UpgradeRecommendedElasticPoolProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DatabaseCollection": "System.Collections.Generic.IList`1[System.String]", "DatabaseDtuMax": "System.Int32", @@ -190959,7 +191424,7 @@ "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerKeyVaultKey.Model.AzureSqlServerKeyVaultKeyModel+ServerKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -191054,7 +191519,7 @@ "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel+ServerDisasterRecoveryConfigurationState": { "Namespace": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model", "Name": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel+ServerDisasterRecoveryConfigurationState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel+ServerDisasterRecoveryConfigurationState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationActivityModel+ServerDisasterRecoveryConfigurationState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Current": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Requested": "System.Collections.Generic.IDictionary`2[System.String,System.String]" @@ -191099,7 +191564,7 @@ "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections": { "Namespace": "Microsoft.Azure.Commands.Sql.Replication.Model", "Name": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Replication.Model.AllowConnections, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -191194,7 +191659,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorCode": "System.String", "IsRetryable": "System.String" @@ -191239,7 +191704,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Method": "System.String", "Script": "System.String" @@ -191284,7 +191749,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionStateInfo": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionStateInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionStateInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionStateInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastModified": "System.DateTime", "CurrentValue": "System.String", @@ -191353,7 +191818,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191365,7 +191830,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImpactInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AbsoluteValue": "System.Nullable`1[System.Double]", "ChangeValueAbsolute": "System.Nullable`1[System.Double]", @@ -191413,7 +191878,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191425,7 +191890,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionMetricInfo, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartTime": "System.Nullable`1[System.DateTime]", "Value": "System.Nullable`1[System.Double]", @@ -191741,7 +192206,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191753,7 +192218,7 @@ "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServerVersionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SupportedEditions": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel]", "Status": "System.String", @@ -191799,7 +192264,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191811,7 +192276,7 @@ "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.EditionCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SupportedServiceObjectives": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel]", "Status": "System.String", @@ -191857,7 +192322,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191869,7 +192334,7 @@ "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.ServiceObjectiveCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SupportedMaxSizes": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel]", "Id": "System.Nullable`1[System.Guid]", @@ -191916,7 +192381,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -191928,7 +192393,7 @@ "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeRangeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MinValue": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel", "MaxValue": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel", @@ -191976,7 +192441,7 @@ "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model", "Name": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Location_Capabilities.Model.MaxSizeCapabilityModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Limit": "System.Nullable`1[System.Int32]", "Unit": "System.String", @@ -192188,7 +192653,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -192200,7 +192665,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.OperationImpact, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChangeValueAbsolute": "System.Nullable`1[System.Double]", "ChangeValueRelative": "System.Nullable`1[System.Double]", @@ -192247,7 +192712,7 @@ "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus[]": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus", "GenericTypeArguments": [], @@ -192257,7 +192722,7 @@ "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.PrivateEndpointRequestStatus, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateLinkServiceId": "System.String", "PrivateEndpointConnectionName": "System.String", @@ -192303,7 +192768,7 @@ "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.AuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -192398,7 +192863,7 @@ "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.NetworkIsolationSettings, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SqlServerResourceId": "System.String", "StorageAccountResourceId": "System.String" @@ -192443,7 +192908,7 @@ "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType": { "Namespace": "Microsoft.Azure.Commands.Sql.ImportExport.Model", "Name": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ImportExport.Model.StorageKeyType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -192548,7 +193013,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadOnlyEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverPolicy": "System.String" }, @@ -192592,7 +193057,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ReadWriteEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FailoverWithDataLossGracePeriodMinutes": "System.Nullable`1[System.Int32]", "FailoverPolicy": "System.String" @@ -192637,7 +193102,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -192649,7 +193114,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.FailoverGroupPartnerServer, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String", "Location": "System.String", @@ -192695,27 +193160,29 @@ "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.Dictionary`2[System.String,System.String]", "CreationDate": "System.DateTime", - "CurrentServiceObjectiveId": "System.Guid", "DatabaseId": "System.Guid", + "CurrentServiceObjectiveId": "System.Guid", "MaxSizeBytes": "System.Int64", "ReadScale": "System.Nullable`1[Microsoft.Azure.Commands.Sql.Database.Model.DatabaseReadScale]", "ZoneRedundant": "System.Nullable`1[System.Boolean]", "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", "MinimumCapacity": "System.Nullable`1[System.Double]", "RequestedServiceObjectiveId": "System.Nullable`1[System.Guid]", - "Capacity": "System.Nullable`1[System.Int32]", - "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "HighAvailabilityReplicaCount": "System.Nullable`1[System.Int32]", "ReadReplicaCount": "System.Nullable`1[System.Int32]", - "SkuName": "System.String", + "AutoPauseDelayInMinutes": "System.Nullable`1[System.Int32]", + "Capacity": "System.Nullable`1[System.Int32]", + "ResourceGroupName": "System.String", "Family": "System.String", - "CreateMode": "System.String", - "ResourceId": "System.String", "LicenseType": "System.String", - "ResourceGroupName": "System.String", + "SkuName": "System.String", + "CreateMode": "System.String", + "ElasticPoolName": "System.String", + "BackupStorageRedundancy": "System.String", "RequestedServiceObjectiveName": "System.String", "CurrentServiceObjectiveName": "System.String", "Status": "System.String", @@ -192725,8 +193192,8 @@ "Location": "System.String", "DatabaseName": "System.String", "ServerName": "System.String", - "ElasticPoolName": "System.String", - "BackupStorageRedundancy": "System.String" + "ResourceId": "System.String", + "SecondaryType": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -192923,7 +193390,7 @@ "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel": { "Namespace": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model", "Name": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Elastic_Jobs.Model.AzureSqlElasticJobStepOutputModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SubscriptionId": "System.Nullable`1[System.Guid]", "Credential": "System.String", @@ -192974,7 +193441,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -192986,7 +193453,7 @@ "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel": { "Namespace": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model", "Name": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobTargetModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MembershipType": "System.Nullable`1[Microsoft.Azure.Management.Sql.Models.JobTargetGroupMembershipType]", "TargetGroupName": "System.String", @@ -193149,7 +193616,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -193161,7 +193628,7 @@ "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityLabelModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rank": "System.Nullable`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank]", "SchemaName": "System.String", @@ -193212,7 +193679,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -193224,7 +193691,7 @@ "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank": { "Namespace": "Microsoft.Azure.Commands.Sql.DataClassification.Model", "Name": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataClassification.Model.SensitivityRank, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -193319,7 +193786,7 @@ "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState": { "Namespace": "Microsoft.Azure.Commands.Sql.Database.Model", "Name": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseActivityModel+DatabaseState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Current": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Requested": "System.Collections.Generic.IDictionary`2[System.String,System.String]" @@ -193364,7 +193831,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.ServiceTierAdvisorProperties": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ServiceTierAdvisorProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ServiceTierAdvisorProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.ServiceTierAdvisorProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServiceLevelObjectiveUsageMetrics": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric]", "Confidence": "System.Double", @@ -193426,7 +193893,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -193438,7 +193905,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.SloUsageMetric, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "InRangeTimeRatio": "System.Double", @@ -193489,7 +193956,7 @@ "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState": { "Namespace": "Microsoft.Azure.Commands.Sql.Backup.Model", "Name": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Backup.Model.AzureSqlDatabaseGeoBackupPolicyModel+GeoBackupPolicyState, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -193584,7 +194051,7 @@ "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tables": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel]", "MasterSyncMemberName": "System.String" @@ -193644,7 +194111,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -193656,7 +194123,7 @@ "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Columns": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel]", "QuotedName": "System.String" @@ -193716,7 +194183,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -193728,7 +194195,7 @@ "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncGroupSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QuotedName": "System.String", "DataSize": "System.String", @@ -193995,7 +194462,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -194007,7 +194474,7 @@ "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaTableModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HasError": "System.Boolean", "Columns": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel]", @@ -194065,7 +194532,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -194077,7 +194544,7 @@ "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel": { "Namespace": "Microsoft.Azure.Commands.Sql.DataSync.Model", "Name": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataSync.Model.AzureSqlSyncFullSchemaColumnModel, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HasError": "System.Boolean", "IsPrimaryKey": "System.Boolean", @@ -194137,7 +194604,7 @@ "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.DataMaskingStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -194232,7 +194699,7 @@ "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction": { "Namespace": "Microsoft.Azure.Commands.Sql.DataMasking.Model", "Name": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.DataMasking.Model.MaskingFunction, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -194327,7 +194794,7 @@ "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups[], Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", "GenericTypeArguments": [], @@ -194337,7 +194804,7 @@ "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditActionGroups, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -194432,7 +194899,7 @@ "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.AuditStateType, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -194527,7 +194994,7 @@ "Microsoft.Azure.Commands.Sql.Auditing.Model.StorageKeyKind": { "Namespace": "Microsoft.Azure.Commands.Sql.Auditing.Model", "Name": "Microsoft.Azure.Commands.Sql.Auditing.Model.StorageKeyKind", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.StorageKeyKind, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Sql.Auditing.Model.StorageKeyKind, Microsoft.Azure.PowerShell.Cmdlets.Sql, Version=2.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -194622,7 +195089,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -194634,7 +195101,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedAction, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionProperties", "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", @@ -194683,7 +195150,7 @@ "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionProperties": { "Namespace": "Microsoft.Azure.Management.Sql.LegacySdk.Models", "Name": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionProperties, Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk, Version=2.12.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ErrorDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionErrorInfo", "ImplementationDetails": "Microsoft.Azure.Management.Sql.LegacySdk.Models.RecommendedActionImplementationInfo", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll.json index 3817f5ad8884..f9669284336a 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HasLegalHold": "System.Nullable`1[System.Boolean]", "Tags": "System.String[]" @@ -132,7 +132,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -234,7 +234,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -575,7 +575,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -751,7 +751,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -1012,7 +1012,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "Days": "System.Nullable`1[System.Int32]" @@ -1120,7 +1120,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -1416,7 +1416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -1759,7 +1759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "MinRestoreTime": "System.Nullable`1[System.DateTime]", @@ -1868,7 +1868,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -2164,7 +2164,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -2507,7 +2507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChangeFeed": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed", "Cors": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", @@ -2634,7 +2634,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -2976,7 +2976,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -3397,7 +3397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "MinRestoreTime": "System.Nullable`1[System.DateTime]", @@ -3506,7 +3506,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -3848,7 +3848,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -4269,7 +4269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChangeFeed": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed", "Cors": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", @@ -4396,7 +4396,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -4650,7 +4650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -4921,7 +4921,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -5072,7 +5072,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -5397,7 +5397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -5702,7 +5702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -5824,7 +5824,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -5926,7 +5926,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -6269,7 +6269,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -6447,7 +6447,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -6712,7 +6712,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -6834,7 +6834,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -6936,7 +6936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -7070,7 +7070,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -7386,7 +7386,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -7588,7 +7588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -7802,7 +7802,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -8014,7 +8014,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -8165,7 +8165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -8288,7 +8288,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8525,7 +8525,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8702,7 +8702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -8837,7 +8837,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9041,7 +9041,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9303,7 +9303,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -9407,7 +9407,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -9790,7 +9790,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -9992,7 +9992,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -10301,7 +10301,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -10423,7 +10423,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -10525,7 +10525,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -10659,7 +10659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -10933,7 +10933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -11111,7 +11111,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -11301,7 +11301,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -11465,7 +11465,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHold, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HasLegalHold": "System.Nullable`1[System.Boolean]", "Tags": "System.String[]" @@ -11583,7 +11583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -11685,7 +11685,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -12026,7 +12026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -12202,7 +12202,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -12463,7 +12463,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -12585,7 +12585,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -12687,7 +12687,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -12801,7 +12801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -13397,7 +13397,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -13651,7 +13651,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -13879,7 +13879,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -14117,7 +14117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -14357,7 +14357,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -14522,7 +14522,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -14736,7 +14736,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ChangeFeed": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed", "Cors": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", @@ -14863,7 +14863,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -15243,7 +15243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -15730,7 +15730,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -15902,7 +15902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -16006,7 +16006,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -16118,7 +16118,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16355,7 +16355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16559,7 +16559,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -16667,7 +16667,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16846,7 +16846,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImmutabilityPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", "LegalHold": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", @@ -16964,7 +16964,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17141,7 +17141,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17325,7 +17325,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Cors": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", "ShareDeleteRetentionPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy", @@ -17438,7 +17438,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -17692,7 +17692,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -17963,7 +17963,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -18117,7 +18117,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -18596,7 +18596,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -18799,7 +18799,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -19145,7 +19145,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -19299,7 +19299,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -19722,7 +19722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -20215,7 +20215,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -20337,7 +20337,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -20723,7 +20723,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -21041,7 +21041,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -21353,7 +21353,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -21507,7 +21507,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -21611,7 +21611,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -21949,7 +21949,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -22154,7 +22154,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -22370,7 +22370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSFileServiceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Cors": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", "ShareDeleteRetentionPolicy": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy", @@ -22483,7 +22483,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -22827,7 +22827,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -23251,7 +23251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -23426,7 +23426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -23548,7 +23548,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -23990,7 +23990,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -24370,7 +24370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSShare, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Metadata": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "Deleted": "System.Nullable`1[System.Boolean]", @@ -24744,7 +24744,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -24891,7 +24891,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -25050,7 +25050,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -25218,7 +25218,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -25336,7 +25336,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -25461,7 +25461,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25503,7 +25503,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -25588,7 +25588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -25606,7 +25606,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -25839,7 +25839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -25982,7 +25982,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -26421,7 +26421,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -26562,7 +26562,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -26839,7 +26839,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -27090,7 +27090,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -28073,7 +28073,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -28206,7 +28206,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -28509,7 +28509,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -28712,7 +28712,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -29068,7 +29068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -29210,7 +29210,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -29530,7 +29530,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -29829,7 +29829,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartRange": "System.String", "EndRange": "System.String" @@ -30101,7 +30101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Filters": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter", "RuleId": "System.String", @@ -30492,7 +30492,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -30822,7 +30822,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -31627,7 +31627,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -32371,7 +32371,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -33259,7 +33259,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -33998,7 +33998,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrefixMatch": "System.String[]", "BlobTypes": "System.String[]" @@ -34219,7 +34219,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Definition": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition", "Enabled": "System.Nullable`1[System.Boolean]", @@ -34345,7 +34345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -34413,7 +34413,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrefixMatch": "System.String[]", "BlobTypes": "System.String[]" @@ -34588,7 +34588,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -34662,7 +34662,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrefixMatch": "System.String[]", "BlobTypes": "System.String[]" @@ -34864,7 +34864,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -34984,7 +34984,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -35285,7 +35285,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -35485,7 +35485,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -36076,7 +36076,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -36198,7 +36198,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -36449,7 +36449,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -36719,7 +36719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -36944,7 +36944,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -36986,7 +36986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -37071,7 +37071,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -37089,7 +37089,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -37322,7 +37322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -37465,7 +37465,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -37904,7 +37904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters", "Status": "System.String", @@ -38026,7 +38026,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -38146,7 +38146,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -38313,7 +38313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -38477,7 +38477,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -38593,7 +38593,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -38725,7 +38725,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -38865,7 +38865,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -39048,7 +39048,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -39348,7 +39348,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -39693,7 +39693,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -39834,7 +39834,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -39936,7 +39936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -40092,7 +40092,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", "GenericTypeArguments": [], @@ -40271,7 +40271,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", "GenericTypeArguments": [], @@ -40389,7 +40389,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -40541,7 +40541,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -40721,7 +40721,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", "GenericTypeArguments": [], @@ -41189,7 +41189,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -41584,7 +41584,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -42298,7 +42298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -42957,7 +42957,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -43688,7 +43688,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -44467,7 +44467,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -44823,7 +44823,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -44938,7 +44938,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -45058,7 +45058,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", "GenericTypeArguments": [], @@ -45078,7 +45078,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -45243,7 +45243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", "GenericTypeArguments": [], @@ -45363,7 +45363,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -45489,7 +45489,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -45597,7 +45597,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", "GenericTypeArguments": [], @@ -45665,7 +45665,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -45775,7 +45775,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -45925,7 +45925,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", "GenericTypeArguments": [], @@ -46019,7 +46019,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", "LastModifiedTime": "System.Nullable`1[System.DateTime]", @@ -46196,7 +46196,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -46411,7 +46411,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46514,7 +46514,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46617,7 +46617,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -46635,7 +46635,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -46761,7 +46761,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46870,7 +46870,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -46979,7 +46979,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -47003,7 +47003,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -47313,7 +47313,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSUsage", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUsage, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUsage, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Unit": "System.Nullable`1[Microsoft.Azure.Management.Storage.Models.UsageUnit]", "CurrentValue": "System.Nullable`1[System.Int32]", @@ -47685,7 +47685,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ActiveDirectoryProperties": "Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties", "DirectoryServiceOptions": "System.String" @@ -47735,7 +47735,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DomainName": "System.String", "NetBiosDomainName": "System.String", @@ -47789,7 +47789,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreStatus, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters", "Status": "System.String", @@ -47846,7 +47846,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreParameters, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobRanges": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", "TimeToRestore": "System.DateTime" @@ -47901,7 +47901,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", "GenericTypeArguments": [], @@ -47911,7 +47911,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSBlobRestoreRange, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "StartRange": "System.String", "EndRange": "System.String" @@ -48096,7 +48096,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSCustomDomain": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSCustomDomain", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCustomDomain, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCustomDomain, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UseSubDomain": "System.Nullable`1[System.Boolean]", "Name": "System.String" @@ -48215,7 +48215,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSGeoReplicationStats": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSGeoReplicationStats", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSGeoReplicationStats, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSGeoReplicationStats, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CanFailover": "System.Nullable`1[System.Boolean]", "LastSyncTime": "System.Nullable`1[System.DateTime]", @@ -48283,7 +48283,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IpRules": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", "DefaultAction": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", @@ -48450,7 +48450,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", "GenericTypeArguments": [], @@ -48460,7 +48460,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSIpRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48496,7 +48496,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleDefaultActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48601,7 +48601,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", "GenericTypeArguments": [], @@ -48611,7 +48611,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSVirtualNetworkRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48647,7 +48647,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -48659,7 +48659,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetWorkRuleBypassEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48754,7 +48754,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -48766,7 +48766,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleActionEnum, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49401,7 +49401,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSSku": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSSku, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSSku, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Restrictions": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Storage.Models.Restriction]", "Capabilities": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Storage.Models.SKUCapability]", @@ -50703,7 +50703,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "AzureFilesIdentityBasedAuth": "Microsoft.Azure.Commands.Management.Storage.Models.PSAzureFilesIdentityBasedAuthentication", @@ -50797,7 +50797,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSImmutabilityPolicyProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UpdateHistory": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty[]", "AllowProtectedAppendWrites": "System.Nullable`1[System.Boolean]", @@ -50850,7 +50850,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty", "GenericTypeArguments": [], @@ -50860,7 +50860,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSUpdateHistoryProperty, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Timestamp": "System.Nullable`1[System.DateTime]", "ImmutabilityPeriodSinceCreationInDays": "System.Nullable`1[System.Int32]", @@ -50926,7 +50926,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSLegalHoldProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty[]", "HasLegalHold": "System.Nullable`1[System.Boolean]" @@ -50976,7 +50976,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty", "GenericTypeArguments": [], @@ -50986,7 +50986,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSTagProperty, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Timestamp": "System.Nullable`1[System.DateTime]", "Tag": "System.String", @@ -51039,7 +51039,7 @@ "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -51051,7 +51051,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSPublicAccess, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51440,7 +51440,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSChangeFeed, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]" }, @@ -51553,7 +51553,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRules, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CorsRulesProperty": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[]" }, @@ -51612,7 +51612,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule", "GenericTypeArguments": [], @@ -51622,7 +51622,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxAgeInSeconds": "System.Int32", "AllowedOrigins": "System.String[]", @@ -51830,7 +51830,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "Days": "System.Nullable`1[System.Int32]" @@ -51890,7 +51890,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSRestorePolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "MinRestoreTime": "System.Nullable`1[System.DateTime]", @@ -52161,7 +52161,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TierToCool": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification", "TierToArchive": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification", @@ -52222,7 +52222,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterModification, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysAfterModificationGreaterThan": "System.Nullable`1[System.Int32]" }, @@ -52419,7 +52419,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Delete": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterCreation" }, @@ -52478,7 +52478,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterCreation": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterCreation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterCreation, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSDateAfterCreation, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysAfterCreationGreaterThan": "System.Int32" }, @@ -52729,7 +52729,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", "GenericTypeArguments": [], @@ -52739,7 +52739,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Filters": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter", "RuleId": "System.String", @@ -52821,7 +52821,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrefixMatch": "System.String[]" }, @@ -53131,7 +53131,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", "GenericTypeArguments": [], @@ -53141,7 +53141,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Rules": "Microsoft.Azure.Commands.Management.Storage.Models.PSObjectReplicationPolicyRule[]", "EnabledTime": "System.Nullable`1[System.DateTime]", @@ -53342,7 +53342,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", "GenericTypeArguments": [], @@ -53352,7 +53352,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Definition": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition", "Enabled": "System.Nullable`1[System.Boolean]", @@ -53433,7 +53433,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyDefinition, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Actions": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", "Filters": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter" @@ -53503,7 +53503,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BaseBlob": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyBaseBlob", "Snapshot": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicySnapShot" @@ -53563,7 +53563,7 @@ "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter": { "Namespace": "Microsoft.Azure.Commands.Management.Storage.Models", "Name": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRuleFilter, Microsoft.Azure.PowerShell.Cmdlets.Storage.Management, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrefixMatch": "System.String[]", "BlobTypes": "System.String[]" diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll.json index bcded78148e1..e12c321fa0a9 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Storage.dll.json @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -507,7 +507,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -674,7 +674,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -878,7 +878,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -1345,7 +1345,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "CloudTable": "Microsoft.Azure.Cosmos.Table.CloudTable", @@ -3568,7 +3568,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageTable, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "CloudTable": "Microsoft.Azure.Cosmos.Table.CloudTable", @@ -4906,7 +4906,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueueProperties": "Azure.Storage.Queues.Models.QueueProperties", "QueueClient": "Azure.Storage.Queues.QueueClient", @@ -5365,7 +5365,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageQueue, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "QueueProperties": "Azure.Storage.Queues.Models.QueueProperties", "QueueClient": "Azure.Storage.Queues.QueueClient", @@ -17516,7 +17516,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenTime": "System.DateTimeOffset", "ClientPort": "System.Int32", @@ -18110,7 +18110,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenTime": "System.DateTimeOffset", "ClientPort": "System.Int32", @@ -22397,7 +22397,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenTime": "System.DateTimeOffset", "ClientPort": "System.Int32", @@ -30462,7 +30462,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FileProperties": "Azure.Storage.Files.Shares.Models.ShareFileProperties", "ShareFileClient": "Azure.Storage.Files.Shares.ShareFileClient", @@ -30475,6 +30475,20 @@ "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "GetTrack2FileClient", + "Parameters": [ + { + "Name": "cloudFile", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "context", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Storage.Files.Shares.ShareFileClient" + }, { "Name": "ToString", "Parameters": [], @@ -38425,7 +38439,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FileProperties": "Azure.Storage.Files.Shares.Models.ShareFileProperties", "ShareFileClient": "Azure.Storage.Files.Shares.ShareFileClient", @@ -38438,6 +38452,20 @@ "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "GetTrack2FileClient", + "Parameters": [ + { + "Name": "cloudFile", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "context", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Storage.Files.Shares.ShareFileClient" + }, { "Name": "ToString", "Parameters": [], @@ -70087,7 +70115,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSFileHandle, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "OpenTime": "System.DateTimeOffset", "ClientPort": "System.Int32", @@ -89363,7 +89391,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareProperties": "Azure.Storage.Files.Shares.Models.ShareProperties", "ShareClient": "Azure.Storage.Files.Shares.ShareClient", @@ -90753,7 +90781,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareDirectoryProperties": "Azure.Storage.Files.Shares.Models.ShareDirectoryProperties", "ShareDirectoryClient": "Azure.Storage.Files.Shares.ShareDirectoryClient", @@ -116697,7 +116725,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareProperties": "Azure.Storage.Files.Shares.Models.ShareProperties", "ShareClient": "Azure.Storage.Files.Shares.ShareClient", @@ -119001,7 +119029,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileDirectory, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareDirectoryProperties": "Azure.Storage.Files.Shares.Models.ShareDirectoryProperties", "ShareDirectoryClient": "Azure.Storage.Files.Shares.ShareDirectoryClient", @@ -127053,7 +127081,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FileProperties": "Azure.Storage.Files.Shares.Models.ShareFileProperties", "ShareFileClient": "Azure.Storage.Files.Shares.ShareFileClient", @@ -127066,6 +127094,20 @@ "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "GetTrack2FileClient", + "Parameters": [ + { + "Name": "cloudFile", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "context", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Storage.Files.Shares.ShareFileClient" + }, { "Name": "ToString", "Parameters": [], @@ -146331,7 +146373,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareProperties": "Azure.Storage.Files.Shares.Models.ShareProperties", "ShareClient": "Azure.Storage.Files.Shares.ShareClient", @@ -151637,7 +151679,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FileProperties": "Azure.Storage.Files.Shares.Models.ShareFileProperties", "ShareFileClient": "Azure.Storage.Files.Shares.ShareFileClient", @@ -151650,6 +151692,20 @@ "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "GetTrack2FileClient", + "Parameters": [ + { + "Name": "cloudFile", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "context", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Storage.Files.Shares.ShareFileClient" + }, { "Name": "ToString", "Parameters": [], @@ -160066,7 +160122,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFileShare, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ShareProperties": "Azure.Storage.Files.Shares.Models.ShareProperties", "ShareClient": "Azure.Storage.Files.Shares.ShareClient", @@ -165482,7 +165538,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageFile, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "FileProperties": "Azure.Storage.Files.Shares.Models.ShareFileProperties", "ShareFileClient": "Azure.Storage.Files.Shares.ShareFileClient", @@ -165495,6 +165551,20 @@ "ElementType": null, "GenericTypeArguments": [], "Methods": [ + { + "Name": "GetTrack2FileClient", + "Parameters": [ + { + "Name": "cloudFile", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "context", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Storage.Files.Shares.ShareFileClient" + }, { "Name": "ToString", "Parameters": [], @@ -240971,7 +241041,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "RetentionDays": "System.Nullable`1[System.Int32]" @@ -241229,7 +241299,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "IndexDocument": "System.String", @@ -241486,7 +241556,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "RetentionDays": "System.Nullable`1[System.Int32]" @@ -241790,7 +241860,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "IndexDocument": "System.String", @@ -242131,7 +242201,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxAgeInSeconds": "System.Int32", "AllowedOrigins": "System.String[]", @@ -242208,7 +242278,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -242441,7 +242511,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -242781,7 +242851,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -242950,7 +243020,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -243208,7 +243278,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -243311,7 +243381,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -243480,7 +243550,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -243589,7 +243659,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -243782,7 +243852,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Logging": "Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties", "HourMetrics": "Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties", @@ -243856,7 +243926,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -244025,7 +244095,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -245033,7 +245103,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage", "Name": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "TableStorageAccount": "Microsoft.Azure.Cosmos.Table.CloudStorageAccount", @@ -246209,7 +246279,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -246442,7 +246512,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -246717,7 +246787,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxAgeInSeconds": "System.Int32", "AllowedOrigins": "System.String[]", @@ -246794,7 +246864,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -246897,7 +246967,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", "GenericTypeArguments": [], @@ -247063,7 +247133,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -247172,7 +247242,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", "GenericTypeArguments": [], @@ -247451,7 +247521,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -247696,7 +247766,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -248054,7 +248124,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -248157,7 +248227,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -248404,7 +248474,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -248513,7 +248583,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.ServiceMetricsType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -248808,7 +248878,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSSeriviceProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Logging": "Microsoft.Azure.Storage.Shared.Protocol.LoggingProperties", "HourMetrics": "Microsoft.Azure.Storage.Shared.Protocol.MetricsProperties", @@ -248882,7 +248952,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -249087,7 +249157,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.StorageServiceType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -249328,7 +249398,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobContainerClient": "Azure.Storage.Blobs.BlobContainerClient", "AccessPolicy": "Azure.Storage.Blobs.Models.BlobContainerAccessPolicy", @@ -250034,7 +250104,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryOutput", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryOutput, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryOutput, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobQueryError": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError[]", "FailureCount": "System.Int32", @@ -250105,6 +250175,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -251039,6 +251110,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -251171,6 +251266,7 @@ "Name": "Azure.Storage.Blobs.BlobContainerClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.BlobContainerClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "Name": "System.String", "Uri": "System.Uri" @@ -251780,6 +251876,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Boolean]]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -252012,7 +252132,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -252064,7 +252184,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -252284,6 +252404,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -253218,6 +253339,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -253402,7 +253547,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -253460,7 +253605,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -253727,6 +253872,7 @@ "Name": "Azure.Storage.Blobs.BlobContainerClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.BlobContainerClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "Name": "System.String", "Uri": "System.Uri" @@ -254336,6 +254482,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Boolean]]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -254586,7 +254756,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -254644,7 +254814,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -255055,7 +255225,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -255113,7 +255283,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -255426,7 +255596,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -255484,7 +255654,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryTextConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", "RecordSeparator": "System.String" @@ -259838,6 +260008,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -260772,6 +260943,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -268230,6 +268425,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -269164,6 +269360,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -273410,7 +273630,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -289975,7 +290195,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -292247,7 +292467,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -296497,6 +296717,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -297431,6 +297652,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -304871,6 +305116,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -305805,6 +306051,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -325246,7 +325516,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobContainerClient": "Azure.Storage.Blobs.BlobContainerClient", "AccessPolicy": "Azure.Storage.Blobs.Models.BlobContainerAccessPolicy", @@ -330972,6 +331242,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -331906,6 +332177,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -336339,6 +336634,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -337273,6 +337569,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -341705,6 +342025,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -342639,6 +342960,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -343762,7 +344107,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageContainer, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobContainerClient": "Azure.Storage.Blobs.BlobContainerClient", "AccessPolicy": "Azure.Storage.Blobs.Models.BlobContainerAccessPolicy", @@ -347303,7 +347648,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -351557,6 +351902,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -352491,6 +352837,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -373376,6 +373746,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -374310,6 +374681,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -379042,6 +379437,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -379976,6 +380372,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -410373,7 +410793,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -456869,7 +457289,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureStorageBlob, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BlobClient": "Azure.Storage.Blobs.BlobClient", "BlobProperties": "Azure.Storage.Blobs.Models.BlobProperties", @@ -472303,7 +472723,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -472902,7 +473322,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -473039,7 +473459,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -473544,7 +473964,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -474055,7 +474475,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -474390,7 +474810,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -474527,7 +474947,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -474944,7 +475364,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -475355,7 +475775,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -476662,7 +477082,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -476788,7 +477208,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -477016,7 +477436,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -477275,7 +477695,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -477692,7 +478112,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -478103,7 +478523,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -478229,7 +478649,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -478457,7 +478877,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -478661,7 +479081,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSACLRecursiveChangeResult, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -478787,7 +479207,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -479015,7 +479435,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -479219,7 +479639,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -479356,7 +479776,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -479546,7 +479966,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -479798,7 +480218,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -479899,7 +480319,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.AzureDataLakeGen2Item, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Directory": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "File": "Azure.Storage.Files.DataLake.DataLakeFileClient", @@ -480125,7 +480545,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -480346,7 +480766,7 @@ "Type": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -480585,7 +481005,7 @@ "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.BlobQueryConfigType, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -481130,7 +481550,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", "GenericTypeArguments": [], @@ -481140,7 +481560,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSPathAccessControlEntry, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -488113,7 +488533,7 @@ "Azure.Response": { "Namespace": "Azure", "Name": "Azure.Response", - "AssemblyQualifiedName": "Azure.Response, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { "Headers": "Azure.Core.ResponseHeaders", "Status": "System.Int32", @@ -488174,7 +488594,7 @@ "Azure.Core.ResponseHeaders": { "Namespace": "Azure.Core", "Name": "Azure.Core.ResponseHeaders", - "AssemblyQualifiedName": "Azure.Core.ResponseHeaders, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Core.ResponseHeaders, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { "ETag": "System.Nullable`1[Azure.ETag]", "Date": "System.Nullable`1[System.DateTimeOffset]", @@ -488259,7 +488679,7 @@ "System.Nullable`1[Azure.ETag]": { "Namespace": "System", "Name": "System.Nullable`1[Azure.ETag]", - "AssemblyQualifiedName": "System.Nullable`1[[Azure.ETag, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Azure.ETag, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488271,7 +488691,7 @@ "Azure.ETag": { "Namespace": "Azure", "Name": "Azure.ETag", - "AssemblyQualifiedName": "Azure.ETag, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.ETag, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -488348,7 +488768,7 @@ "System.Collections.Generic.IEnumerator`1[Azure.Core.HttpHeader]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IEnumerator`1[Azure.Core.HttpHeader]", - "AssemblyQualifiedName": "System.Collections.Generic.IEnumerator`1[[Azure.Core.HttpHeader, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IEnumerator`1[[Azure.Core.HttpHeader, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488360,7 +488780,7 @@ "Azure.Core.HttpHeader": { "Namespace": "Azure.Core", "Name": "Azure.Core.HttpHeader", - "AssemblyQualifiedName": "Azure.Core.HttpHeader, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Core.HttpHeader, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { "Name": "System.String", "Value": "System.String" @@ -488482,7 +488902,7 @@ "System.Threading.Tasks.Task`1[Azure.Response]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488494,7 +488914,7 @@ "Azure.Response`1[System.Boolean]": { "Namespace": "Azure", "Name": "Azure.Response`1[System.Boolean]", - "AssemblyQualifiedName": "Azure.Response`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488506,7 +488926,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[System.Boolean]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Boolean]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488518,7 +488938,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.QueueProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.QueueProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueProperties, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueProperties, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488530,7 +488950,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueProperties, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueProperties, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488542,7 +488962,7 @@ "Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Queues.Models.QueueSignedIdentifier]]": { "Namespace": "Azure", "Name": "Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Queues.Models.QueueSignedIdentifier]]", - "AssemblyQualifiedName": "Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Queues.Models.QueueSignedIdentifier, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Queues.Models.QueueSignedIdentifier, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488657,7 +489077,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Queues.Models.QueueSignedIdentifier]]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Queues.Models.QueueSignedIdentifier]]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Queues.Models.QueueSignedIdentifier, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Queues.Models.QueueSignedIdentifier, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488669,7 +489089,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.SendReceipt]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.SendReceipt]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.SendReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.SendReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488723,7 +489143,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.SendReceipt]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.SendReceipt]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.SendReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.SendReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488735,7 +489155,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage[]]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage[]]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488811,7 +489231,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage[]]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage[]]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488823,7 +489243,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488835,7 +489255,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.QueueMessage]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.QueueMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488847,7 +489267,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488901,7 +489321,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488913,7 +489333,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage[]]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage[]]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488935,7 +489355,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage[]]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.PeekedMessage[]]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.PeekedMessage[], Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488947,7 +489367,7 @@ "Azure.Response`1[Azure.Storage.Queues.Models.UpdateReceipt]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Queues.Models.UpdateReceipt]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.UpdateReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Queues.Models.UpdateReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -488998,7 +489418,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.UpdateReceipt]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Queues.Models.UpdateReceipt]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.UpdateReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Queues.Models.UpdateReceipt, Azure.Storage.Queues, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -506925,7 +507345,13 @@ "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + } + ] }, "System.Nullable`1[Azure.Storage.Files.Shares.Models.NtfsFileAttributes]": { "Namespace": "System", @@ -507336,6 +507762,7 @@ "Name": "Azure.Storage.Files.Shares.ShareFileClient", "AssemblyQualifiedName": "Azure.Storage.Files.Shares.ShareFileClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "ShareName": "System.String", "Name": "System.String", @@ -508747,6 +509174,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[System.IO.Stream]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -508851,7 +509302,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -508904,7 +509355,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -508916,7 +509367,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -508969,7 +509420,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileCopyInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -508981,7 +509432,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509098,7 +509549,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileDownloadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509110,7 +509561,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509122,7 +509573,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509134,7 +509585,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509187,7 +509638,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileUploadInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509199,7 +509650,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509253,7 +509704,7 @@ "System.Collections.Generic.IEnumerable`1[Azure.HttpRange]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IEnumerable`1[Azure.HttpRange]", - "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Azure.HttpRange, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IEnumerable`1[[Azure.HttpRange, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509265,7 +509716,7 @@ "Azure.HttpRange": { "Namespace": "Azure", "Name": "Azure.HttpRange", - "AssemblyQualifiedName": "Azure.HttpRange, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.HttpRange, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { "Offset": "System.Int64", "Length": "System.Nullable`1[System.Int64]" @@ -509329,7 +509780,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareFileRangeInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509341,7 +509792,7 @@ "Azure.Pageable`1[Azure.Storage.Files.Shares.Models.ShareFileHandle]": { "Namespace": "Azure", "Name": "Azure.Pageable`1[Azure.Storage.Files.Shares.Models.ShareFileHandle]", - "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Files.Shares.Models.ShareFileHandle, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Files.Shares.Models.ShareFileHandle, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509398,7 +509849,7 @@ "Azure.AsyncPageable`1[Azure.Storage.Files.Shares.Models.ShareFileHandle]": { "Namespace": "Azure", "Name": "Azure.AsyncPageable`1[Azure.Storage.Files.Shares.Models.ShareFileHandle]", - "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Files.Shares.Models.ShareFileHandle, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Files.Shares.Models.ShareFileHandle, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509410,7 +509861,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.CloseHandlesResult]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.CloseHandlesResult]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.CloseHandlesResult, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.CloseHandlesResult, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509461,7 +509912,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.CloseHandlesResult]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.CloseHandlesResult]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.CloseHandlesResult, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.CloseHandlesResult, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -509576,6 +510027,7 @@ "Name": "Azure.Storage.Files.Shares.ShareClient", "AssemblyQualifiedName": "Azure.Storage.Files.Shares.ShareClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "Name": "System.String", "Uri": "System.Uri" @@ -509945,10 +510397,10 @@ "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareProperties]]" }, { - "Name": "SetAccessTier", + "Name": "SetProperties", "Parameters": [ { - "Name": "accessTier", + "Name": "options", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -509959,10 +510411,10 @@ "ReturnType": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareInfo]" }, { - "Name": "SetAccessTierAsync", + "Name": "SetPropertiesAsync", "Parameters": [ { - "Name": "accessTier", + "Name": "options", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -510396,6 +510848,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -510494,6 +510970,7 @@ "Name": "Azure.Storage.Files.Shares.ShareDirectoryClient", "AssemblyQualifiedName": "Azure.Storage.Files.Shares.ShareDirectoryClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "ShareName": "System.String", "Name": "System.String", @@ -511165,6 +511642,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -511269,7 +511770,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511321,7 +511822,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511333,7 +511834,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511387,7 +511888,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareDirectoryProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511399,7 +511900,7 @@ "Azure.Pageable`1[Azure.Storage.Files.Shares.Models.ShareFileItem]": { "Namespace": "Azure", "Name": "Azure.Pageable`1[Azure.Storage.Files.Shares.Models.ShareFileItem]", - "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Files.Shares.Models.ShareFileItem, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Files.Shares.Models.ShareFileItem, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511451,7 +511952,7 @@ "Azure.AsyncPageable`1[Azure.Storage.Files.Shares.Models.ShareFileItem]": { "Namespace": "Azure", "Name": "Azure.AsyncPageable`1[Azure.Storage.Files.Shares.Models.ShareFileItem]", - "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Files.Shares.Models.ShareFileItem, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Files.Shares.Models.ShareFileItem, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511463,7 +511964,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.ShareDirectoryClient]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.ShareDirectoryClient]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.ShareDirectoryClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.ShareDirectoryClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511475,7 +511976,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.ShareDirectoryClient]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.ShareDirectoryClient]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.ShareDirectoryClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.ShareDirectoryClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511487,7 +511988,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.ShareFileClient]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.ShareFileClient]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.ShareFileClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.ShareFileClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511499,7 +512000,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.ShareFileClient]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.ShareFileClient]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.ShareFileClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.ShareFileClient, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511511,7 +512012,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511562,7 +512063,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511574,7 +512075,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511626,7 +512127,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareSnapshotInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511638,7 +512139,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511650,7 +512151,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareProperties, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511662,7 +512163,7 @@ "Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier]]": { "Namespace": "Azure", "Name": "Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier]]", - "AssemblyQualifiedName": "Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511779,7 +512280,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier]]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Collections.Generic.IEnumerable`1[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier]]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.Collections.Generic.IEnumerable`1[[Azure.Storage.Files.Shares.Models.ShareSignedIdentifier, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511791,7 +512292,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareStatistics]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareStatistics]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareStatistics, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareStatistics, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511842,7 +512343,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareStatistics]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.ShareStatistics]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareStatistics, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.ShareStatistics, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511854,7 +512355,7 @@ "Azure.Response`1[System.String]": { "Namespace": "Azure", "Name": "Azure.Response`1[System.String]", - "AssemblyQualifiedName": "Azure.Response`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511866,7 +512367,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[System.String]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[System.String]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511878,7 +512379,7 @@ "Azure.Response`1[Azure.Storage.Files.Shares.Models.PermissionInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.Shares.Models.PermissionInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.PermissionInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.Shares.Models.PermissionInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -511928,7 +512429,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.PermissionInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.Shares.Models.PermissionInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.PermissionInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.Shares.Models.PermissionInfo, Azure.Storage.Files.Shares, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -549401,7 +549902,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSDeleteRetentionPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "RetentionDays": "System.Nullable`1[System.Int32]" @@ -549456,7 +549957,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSStaticWebsiteProperties, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Boolean", "IndexDocument": "System.String", @@ -549522,7 +550023,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[]": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", "GenericTypeArguments": [], @@ -549532,7 +550033,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.PSCorsRule, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "MaxAgeInSeconds": "System.Int32", "AllowedOrigins": "System.String[]", @@ -549967,7 +550468,7 @@ "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage", "Name": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Context": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext", "TableStorageAccount": "Microsoft.Azure.Cosmos.Table.CloudStorageAccount", @@ -550041,7 +550542,7 @@ "Microsoft.WindowsAzure.Commands.Storage.Common.AzureSessionCredential": { "Namespace": "Microsoft.WindowsAzure.Commands.Storage.Common", "Name": "Microsoft.WindowsAzure.Commands.Storage.Common.AzureSessionCredential", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.AzureSessionCredential, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Storage.Common.AzureSessionCredential, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -550120,7 +550621,7 @@ "Azure.Core.AccessToken": { "Namespace": "Azure.Core", "Name": "Azure.Core.AccessToken", - "AssemblyQualifiedName": "Azure.Core.AccessToken, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Core.AccessToken, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { "ExpiresOn": "System.DateTimeOffset", "Token": "System.String" @@ -550174,7 +550675,7 @@ "System.Threading.Tasks.ValueTask`1[Azure.Core.AccessToken]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.ValueTask`1[Azure.Core.AccessToken]", - "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Core.AccessToken, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Core.AccessToken, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -550188,6 +550689,7 @@ "Name": "Azure.Storage.Blobs.BlobContainerClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.BlobContainerClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "Name": "System.String", "Uri": "System.Uri" @@ -550797,6 +551299,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[System.Boolean]]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -550913,6 +551439,7 @@ "Name": "Azure.Storage.Blobs.BlobClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.BlobClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -552259,6 +552786,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -552381,7 +552932,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContentInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContentInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContentInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContentInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -552437,7 +552988,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContentInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContentInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContentInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContentInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -552451,6 +553002,7 @@ "Name": "Azure.Storage.Blobs.Specialized.BlobBaseClient", "AssemblyQualifiedName": "Azure.Storage.Blobs.Specialized.BlobBaseClient, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "BlobContainerName": "System.String", "Name": "System.String", @@ -553385,6 +553937,30 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -553507,7 +554083,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobDownloadInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobDownloadInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobDownloadInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobDownloadInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554312,7 +554888,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobDownloadInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobDownloadInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobDownloadInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobDownloadInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554429,7 +555005,7 @@ "System.Threading.Tasks.ValueTask`1[Azure.Response`1[System.Int64]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.ValueTask`1[Azure.Response`1[System.Int64]]", - "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Response`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Response`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554441,7 +555017,7 @@ "Azure.Response`1[System.Int64]": { "Namespace": "Azure", "Name": "Azure.Response`1[System.Int64]", - "AssemblyQualifiedName": "Azure.Response`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554453,7 +555029,7 @@ "System.Threading.Tasks.ValueTask`1[Azure.Response]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.ValueTask`1[Azure.Response]", - "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Response, Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.ValueTask`1[[Azure.Response, Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554477,7 +555053,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobCopyInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobCopyInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobCopyInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobCopyInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554531,7 +555107,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobCopyInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobCopyInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobCopyInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobCopyInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554543,7 +555119,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554640,7 +555216,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554652,7 +555228,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554705,7 +555281,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554717,7 +555293,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobSnapshotInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobSnapshotInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobSnapshotInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobSnapshotInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554771,7 +555347,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobSnapshotInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobSnapshotInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobSnapshotInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobSnapshotInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554783,7 +555359,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.GetBlobTagResult]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.GetBlobTagResult]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.GetBlobTagResult, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.GetBlobTagResult, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554839,7 +555415,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.GetBlobTagResult]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.GetBlobTagResult]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.GetBlobTagResult, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.GetBlobTagResult, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554851,7 +555427,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554902,7 +555478,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerInfo, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -554914,7 +555490,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555119,7 +555695,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerProperties, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555131,7 +555707,7 @@ "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555295,7 +555871,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Blobs.Models.BlobContainerAccessPolicy, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555307,7 +555883,7 @@ "Azure.Pageable`1[Azure.Storage.Blobs.Models.BlobItem]": { "Namespace": "Azure", "Name": "Azure.Pageable`1[Azure.Storage.Blobs.Models.BlobItem]", - "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Blobs.Models.BlobItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Blobs.Models.BlobItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555761,7 +556337,7 @@ "Azure.AsyncPageable`1[Azure.Storage.Blobs.Models.BlobItem]": { "Namespace": "Azure", "Name": "Azure.AsyncPageable`1[Azure.Storage.Blobs.Models.BlobItem]", - "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Blobs.Models.BlobItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Blobs.Models.BlobItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555773,7 +556349,7 @@ "Azure.Pageable`1[Azure.Storage.Blobs.Models.BlobHierarchyItem]": { "Namespace": "Azure", "Name": "Azure.Pageable`1[Azure.Storage.Blobs.Models.BlobHierarchyItem]", - "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Blobs.Models.BlobHierarchyItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Blobs.Models.BlobHierarchyItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555826,7 +556402,7 @@ "Azure.AsyncPageable`1[Azure.Storage.Blobs.Models.BlobHierarchyItem]": { "Namespace": "Azure", "Name": "Azure.AsyncPageable`1[Azure.Storage.Blobs.Models.BlobHierarchyItem]", - "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Blobs.Models.BlobHierarchyItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Blobs.Models.BlobHierarchyItem, Azure.Storage.Blobs, Version=12.7.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -555838,7 +556414,7 @@ "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError[]": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError[]", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError[], Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError", "GenericTypeArguments": [], @@ -555848,7 +556424,7 @@ "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError": { "Namespace": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel", "Name": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError", - "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel.PSBlobQueryError, Microsoft.Azure.PowerShell.Cmdlets.Storage, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsFatal": "System.Boolean", "Position": "System.Int64", @@ -555912,6 +556488,7 @@ "Name": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient", "AssemblyQualifiedName": "Azure.Storage.Files.DataLake.DataLakeDirectoryClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "FileSystemName": "System.String", "Path": "System.String", @@ -556617,6 +557194,66 @@ ], "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response]" }, + { + "Name": "GetPaths", + "Parameters": [ + { + "Name": "recursive", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "userPrincipalName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Pageable`1[Azure.Storage.Files.DataLake.Models.PathItem]" + }, + { + "Name": "GetPathsAsync", + "Parameters": [ + { + "Name": "recursive", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "userPrincipalName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.AsyncPageable`1[Azure.Storage.Files.DataLake.Models.PathItem]" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "Create", "Parameters": [ @@ -557157,6 +557794,7 @@ "Name": "Azure.Storage.Files.DataLake.DataLakeFileClient", "AssemblyQualifiedName": "Azure.Storage.Files.DataLake.DataLakeFileClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "MaxUploadBytes": "System.Int32", "MaxUploadLongBytes": "System.Int64", "AccountName": "System.String", @@ -558848,6 +559486,30 @@ ], "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]" }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "expiresOn", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, + { + "Name": "GenerateSasUri", + "Parameters": [ + { + "Name": "builder", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Uri" + }, { "Name": "ToString", "Parameters": [], @@ -558968,7 +559630,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559019,7 +559681,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559031,7 +559693,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeFileClient]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeFileClient]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeFileClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeFileClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559043,7 +559705,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeFileClient]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeFileClient]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeFileClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeFileClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559055,7 +559717,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathAccessControl]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathAccessControl]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathAccessControl, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathAccessControl, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559224,7 +559886,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathAccessControl]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathAccessControl]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathAccessControl, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathAccessControl, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559236,7 +559898,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathProperties, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathProperties, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559694,7 +560356,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathProperties, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.PathProperties, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559706,7 +560368,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.Models.FileDownloadInfo]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.FileDownloadInfo]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.FileDownloadInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.FileDownloadInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559817,7 +560479,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.FileDownloadInfo]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.FileDownloadInfo]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.FileDownloadInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.FileDownloadInfo, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559829,7 +560491,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakePathClient]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakePathClient]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakePathClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakePathClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -559843,6 +560505,7 @@ "Name": "Azure.Storage.Files.DataLake.DataLakePathClient", "AssemblyQualifiedName": "Azure.Storage.Files.DataLake.DataLakePathClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": { + "CanGenerateSasUri": "System.Boolean", "AccountName": "System.String", "FileSystemName": "System.String", "Path": "System.String", @@ -560187,10 +560850,194 @@ "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]" }, { - "Name": "SetAccessControlListAsync", + "Name": "SetAccessControlListAsync", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "owner", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "group", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "conditions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]" + }, + { + "Name": "SetAccessControlRecursive", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" + }, + { + "Name": "SetAccessControlRecursiveAsync", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" + }, + { + "Name": "UpdateAccessControlRecursive", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" + }, + { + "Name": "UpdateAccessControlRecursiveAsync", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" + }, + { + "Name": "RemoveAccessControlRecursive", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" + }, + { + "Name": "RemoveAccessControlRecursiveAsync", + "Parameters": [ + { + "Name": "accessControlList", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "continuationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "options", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" + }, + { + "Name": "SetPermissions", + "Parameters": [ + { + "Name": "permissions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "owner", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "group", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "conditions", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "cancellationToken", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]" + }, + { + "Name": "SetPermissionsAsync", "Parameters": [ { - "Name": "accessControlList", + "Name": "permissions", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560213,106 +561060,10 @@ "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]" }, { - "Name": "SetAccessControlRecursive", - "Parameters": [ - { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" - }, - { - "Name": "SetAccessControlRecursiveAsync", - "Parameters": [ - { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" - }, - { - "Name": "UpdateAccessControlRecursive", - "Parameters": [ - { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" - }, - { - "Name": "UpdateAccessControlRecursiveAsync", - "Parameters": [ - { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" - }, - { - "Name": "RemoveAccessControlRecursive", + "Name": "GetProperties", "Parameters": [ { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", + "Name": "conditions", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560320,21 +561071,13 @@ "Type": "System.Reflection.RuntimeParameterInfo" } ], - "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]" + "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]" }, { - "Name": "RemoveAccessControlRecursiveAsync", + "Name": "GetPropertiesAsync", "Parameters": [ { - "Name": "accessControlList", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "continuationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "options", + "Name": "conditions", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560342,21 +561085,13 @@ "Type": "System.Reflection.RuntimeParameterInfo" } ], - "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]" + "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]]" }, { - "Name": "SetPermissions", + "Name": "SetHttpHeaders", "Parameters": [ { - "Name": "permissions", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "owner", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "group", + "Name": "httpHeaders", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560371,18 +561106,10 @@ "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]" }, { - "Name": "SetPermissionsAsync", + "Name": "SetHttpHeadersAsync", "Parameters": [ { - "Name": "permissions", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "owner", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "group", + "Name": "httpHeaders", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560397,38 +561124,10 @@ "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]" }, { - "Name": "GetProperties", - "Parameters": [ - { - "Name": "conditions", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]" - }, - { - "Name": "GetPropertiesAsync", - "Parameters": [ - { - "Name": "conditions", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathProperties]]" - }, - { - "Name": "SetHttpHeaders", + "Name": "SetMetadata", "Parameters": [ { - "Name": "httpHeaders", + "Name": "metadata", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560443,10 +561142,10 @@ "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]" }, { - "Name": "SetHttpHeadersAsync", + "Name": "SetMetadataAsync", "Parameters": [ { - "Name": "httpHeaders", + "Name": "metadata", "Type": "System.Reflection.RuntimeParameterInfo" }, { @@ -560461,40 +561160,28 @@ "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]" }, { - "Name": "SetMetadata", + "Name": "GenerateSasUri", "Parameters": [ { - "Name": "metadata", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "conditions", + "Name": "permissions", "Type": "System.Reflection.RuntimeParameterInfo" }, { - "Name": "cancellationToken", + "Name": "expiresOn", "Type": "System.Reflection.RuntimeParameterInfo" } ], - "ReturnType": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]" + "ReturnType": "System.Uri" }, { - "Name": "SetMetadataAsync", + "Name": "GenerateSasUri", "Parameters": [ { - "Name": "metadata", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "conditions", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "cancellationToken", + "Name": "builder", "Type": "System.Reflection.RuntimeParameterInfo" } ], - "ReturnType": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.PathInfo]]" + "ReturnType": "System.Uri" }, { "Name": "ToString", @@ -560630,7 +561317,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakePathClient]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakePathClient]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakePathClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakePathClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -560642,7 +561329,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -560784,7 +561471,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.Models.AccessControlChangeResult, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -560796,7 +561483,7 @@ "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeDirectoryClient]": { "Namespace": "Azure", "Name": "Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeDirectoryClient]", - "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeDirectoryClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "AssemblyQualifiedName": "Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeDirectoryClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -560808,7 +561495,7 @@ "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeDirectoryClient]]": { "Namespace": "System.Threading.Tasks", "Name": "System.Threading.Tasks.Task`1[Azure.Response`1[Azure.Storage.Files.DataLake.DataLakeDirectoryClient]]", - "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeDirectoryClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Threading.Tasks.Task`1[[Azure.Response`1[[Azure.Storage.Files.DataLake.DataLakeDirectoryClient, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -560816,6 +561503,75 @@ ], "Methods": [], "Constructors": [] + }, + "Azure.Pageable`1[Azure.Storage.Files.DataLake.Models.PathItem]": { + "Namespace": "Azure", + "Name": "Azure.Pageable`1[Azure.Storage.Files.DataLake.Models.PathItem]", + "AssemblyQualifiedName": "Azure.Pageable`1[[Azure.Storage.Files.DataLake.Models.PathItem, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Azure.Storage.Files.DataLake.Models.PathItem" + ], + "Methods": [], + "Constructors": [] + }, + "Azure.Storage.Files.DataLake.Models.PathItem": { + "Namespace": "Azure.Storage.Files.DataLake.Models", + "Name": "Azure.Storage.Files.DataLake.Models.PathItem", + "AssemblyQualifiedName": "Azure.Storage.Files.DataLake.Models.PathItem, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "Properties": { + "ETag": "Azure.ETag", + "LastModified": "System.DateTimeOffset", + "IsDirectory": "System.Nullable`1[System.Boolean]", + "ContentLength": "System.Nullable`1[System.Int64]", + "Name": "System.String", + "Owner": "System.String", + "Group": "System.String", + "Permissions": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "Azure.AsyncPageable`1[Azure.Storage.Files.DataLake.Models.PathItem]": { + "Namespace": "Azure", + "Name": "Azure.AsyncPageable`1[Azure.Storage.Files.DataLake.Models.PathItem]", + "AssemblyQualifiedName": "Azure.AsyncPageable`1[[Azure.Storage.Files.DataLake.Models.PathItem, Azure.Storage.Files.DataLake, Version=12.5.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8]], Azure.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "Azure.Storage.Files.DataLake.Models.PathItem" + ], + "Methods": [], + "Constructors": [] } } } diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.StorageSync.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.StorageSync.dll.json index 94d3940f4c29..a21f399368b8 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.StorageSync.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.StorageSync.dll.json @@ -6,7 +6,7 @@ "Name": "Get-AzStorageSyncGroup", "ClassName": "Microsoft.Azure.Commands.StorageSync.SyncGroup.GetSyncGroupCommand", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "StringParameterSet", "OutputTypes": [ @@ -14,7 +14,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -113,7 +113,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -373,7 +373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -681,7 +681,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -780,7 +780,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -1040,7 +1040,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -1367,7 +1367,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -1501,7 +1501,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1519,7 +1519,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1537,7 +1537,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1594,7 +1594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -1658,7 +1658,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1682,7 +1682,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1706,7 +1706,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1798,7 +1798,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1822,7 +1822,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1846,7 +1846,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1990,7 +1990,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2014,7 +2014,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2038,7 +2038,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2106,7 +2106,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2130,7 +2130,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2154,7 +2154,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2221,7 +2221,7 @@ "Name": "Get-AzStorageSyncService", "ClassName": "Microsoft.Azure.Commands.StorageSync.StorageSyncService.GetStorageSyncServiceCommand", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "ParentStringParameterSet", "OutputTypes": [ @@ -2229,7 +2229,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -2579,7 +2579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -2736,7 +2736,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2920,7 +2920,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2988,7 +2988,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3082,7 +3082,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -3197,7 +3197,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3215,7 +3215,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3233,7 +3233,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3290,7 +3290,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -3355,7 +3355,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3379,7 +3379,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3403,7 +3403,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3495,7 +3495,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3519,7 +3519,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3543,7 +3543,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3661,7 +3661,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3685,7 +3685,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3709,7 +3709,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3777,7 +3777,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3801,7 +3801,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3825,7 +3825,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -3900,7 +3900,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -3998,7 +3998,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -4116,7 +4116,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4276,7 +4276,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4344,7 +4344,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -4409,7 +4409,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4501,7 +4501,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4569,7 +4569,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -4636,7 +4636,7 @@ "Name": "Get-AzStorageSyncServer", "ClassName": "Microsoft.Azure.Commands.StorageSync.Cmdlets.GetRegisteredServerCommand", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "StringParameterSet", "OutputTypes": [ @@ -4644,7 +4644,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerManagementErrorCode": "System.Nullable`1[System.Int32]", "StorageSyncServiceName": "System.String", @@ -4761,7 +4761,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -5021,7 +5021,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -5329,7 +5329,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerManagementErrorCode": "System.Nullable`1[System.Int32]", "StorageSyncServiceName": "System.String", @@ -5446,7 +5446,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -5525,7 +5525,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5632,7 +5632,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5702,7 +5702,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -5767,7 +5767,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5861,7 +5861,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -5929,7 +5929,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6023,7 +6023,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerManagementErrorCode": "System.Nullable`1[System.Int32]", "StorageSyncServiceName": "System.String", @@ -6175,7 +6175,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6193,7 +6193,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6211,7 +6211,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6268,7 +6268,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSRegisteredServer, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ServerManagementErrorCode": "System.Nullable`1[System.Int32]", "StorageSyncServiceName": "System.String", @@ -6350,7 +6350,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6374,7 +6374,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6398,7 +6398,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6490,7 +6490,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6514,7 +6514,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6538,7 +6538,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6682,7 +6682,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6706,7 +6706,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6730,7 +6730,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6798,7 +6798,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6822,7 +6822,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6846,7 +6846,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -6980,7 +6980,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -7059,7 +7059,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7166,7 +7166,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7236,7 +7236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSStorageSyncService, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tags": "System.Collections.Generic.IDictionary`2[System.String,System.String]", "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", @@ -7301,7 +7301,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7395,7 +7395,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7463,7 +7463,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -7530,7 +7530,7 @@ "Name": "Get-AzStorageSyncServerEndpoint", "ClassName": "Microsoft.Azure.Commands.StorageSync.Cmdlets.GetServerEndpointCommand", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "StringParameterSet", "OutputTypes": [ @@ -7538,18 +7538,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -7668,7 +7670,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -7951,7 +7953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -8374,18 +8376,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -8481,7 +8485,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8499,7 +8503,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8704,7 +8708,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8728,7 +8732,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8868,7 +8872,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8892,7 +8896,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -8963,18 +8967,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -9088,7 +9094,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9112,7 +9118,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9228,7 +9234,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9252,7 +9258,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9327,18 +9333,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -9457,7 +9465,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -9591,7 +9599,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9629,7 +9637,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9679,13 +9687,56 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "InitialDownloadPolicy", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AvoidTieredFiles", + "NamespaceOnly", + "NamespaceThenModifiedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9890,7 +9941,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -9940,7 +9991,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10007,6 +10058,61 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InitialDownloadPolicy", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AvoidTieredFiles", + "NamespaceOnly", + "NamespaceThenModifiedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -10014,7 +10120,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10084,7 +10190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -10222,7 +10328,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10272,7 +10378,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10339,6 +10445,61 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InitialDownloadPolicy", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AvoidTieredFiles", + "NamespaceOnly", + "NamespaceThenModifiedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -10346,7 +10507,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10514,7 +10675,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10564,7 +10725,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10631,6 +10792,61 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InitialDownloadPolicy", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AvoidTieredFiles", + "NamespaceOnly", + "NamespaceThenModifiedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -10638,7 +10854,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10780,7 +10996,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10830,7 +11046,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10897,6 +11113,61 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "InitialDownloadPolicy", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AvoidTieredFiles", + "NamespaceOnly", + "NamespaceThenModifiedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -10904,7 +11175,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -10998,18 +11269,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -11161,7 +11434,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11179,7 +11452,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11197,7 +11470,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11254,18 +11527,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -11331,7 +11606,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11355,7 +11630,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11379,7 +11654,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11471,7 +11746,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11495,7 +11770,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11519,7 +11794,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11685,7 +11960,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11709,7 +11984,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11733,7 +12008,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11801,7 +12076,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11825,7 +12100,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11849,7 +12124,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -11924,18 +12199,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -12093,18 +12370,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -12164,7 +12443,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12202,7 +12481,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12234,13 +12513,34 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12397,7 +12697,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12447,7 +12747,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12490,6 +12790,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -12497,7 +12824,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12589,7 +12916,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12639,7 +12966,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12682,6 +13009,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -12689,7 +13043,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12760,18 +13114,20 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncStatus": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", "TierFilesOlderThanDays": "System.Nullable`1[System.Int32]", "VolumeFreeSpacePercent": "System.Nullable`1[System.Int32]", + "SyncGroupName": "System.String", "ResourceId": "System.String", + "LocalCacheMode": "System.String", + "InitialDownloadPolicy": "System.String", "OfflineDataTransferStorageAccountTenantId": "System.String", "OfflineDataTransferStorageAccountResourceId": "System.String", "OfflineDataTransferShareName": "System.String", "OfflineDataTransfer": "System.String", "CloudTiering": "System.String", - "SyncGroupName": "System.String", "FriendlyName": "System.String", "LastOperationName": "System.String", "LastWorkflowId": "System.String", @@ -12837,7 +13193,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12887,7 +13243,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -12930,6 +13286,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -12937,7 +13320,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13005,7 +13388,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13055,7 +13438,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13098,6 +13481,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "LocalCacheMode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "DownloadNewAndModifiedFiles", + "UpdateLocallyCachedFiles" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -13105,7 +13515,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -13172,7 +13582,7 @@ "Name": "Get-AzStorageSyncCloudEndpoint", "ClassName": "Microsoft.Azure.Commands.StorageSync.CloudEndpoint.GetCloudEndpointCommand", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "StringParameterSet", "OutputTypes": [ @@ -13180,7 +13590,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -13305,7 +13715,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -13588,7 +13998,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -14012,7 +14422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -14096,7 +14506,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14132,7 +14542,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14150,7 +14560,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14331,7 +14741,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14355,7 +14765,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14379,7 +14789,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14571,7 +14981,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14595,7 +15005,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14713,7 +15123,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14737,7 +15147,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14761,7 +15171,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14879,7 +15289,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14903,7 +15313,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -14973,7 +15383,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -15069,7 +15479,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15093,7 +15503,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15117,7 +15527,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15187,7 +15597,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -15283,7 +15693,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15307,7 +15717,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15375,7 +15785,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15399,7 +15809,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15474,7 +15884,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -15599,7 +16009,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -15753,7 +16163,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -15984,7 +16394,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16054,7 +16464,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncGroup, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SyncGroupName": "System.String", "StorageSyncServiceName": "System.String", @@ -16218,7 +16628,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16412,7 +16822,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16580,7 +16990,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16674,7 +17084,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -16832,7 +17242,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16850,7 +17260,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16868,7 +17278,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -16925,7 +17335,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSCloudEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BackupEnabled": "System.Nullable`1[System.Boolean]", "SyncGroupName": "System.String", @@ -16997,7 +17407,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17021,7 +17431,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17045,7 +17455,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17137,7 +17547,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17161,7 +17571,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17185,7 +17595,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17351,7 +17761,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17375,7 +17785,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17399,7 +17809,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17467,7 +17877,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17491,7 +17901,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17515,7 +17925,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17582,7 +17992,7 @@ "Name": "Invoke-AzStorageSyncCompatibilityCheck", "ClassName": "Microsoft.Azure.Commands.StorageSync.Evaluation.Cmdlets.InvokeCompatibilityCheckCmdlet", "SupportsShouldProcess": false, - "ConfirmImpact": 2, + "ConfirmImpact": 0, "SupportsPaging": false, "DefaultParameterSetName": "PathBased", "OutputTypes": [ @@ -17590,7 +18000,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Evaluation.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Evaluation.Models.PSStorageSyncValidation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Evaluation.Models.PSStorageSyncValidation, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Evaluation.Models.PSStorageSyncValidation, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17659,7 +18069,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17695,7 +18105,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17713,7 +18123,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17761,7 +18171,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17785,7 +18195,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17809,7 +18219,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17838,7 +18248,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17862,7 +18272,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17915,7 +18325,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -17939,7 +18349,7 @@ "Type": { "Namespace": "System.Management.Automation", "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -18129,7 +18539,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -18141,7 +18551,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpoint": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpoint", "PrivateLinkServiceConnectionState": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateLinkServiceConnectionState", @@ -18190,7 +18600,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpoint": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ResourceId": "System.String" }, @@ -18234,7 +18644,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateLinkServiceConnectionState": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateLinkServiceConnectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSPrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.String", "Description": "System.String", @@ -18316,6 +18726,8 @@ "Properties": { "OnPremise": "System.Boolean", "VersionProfiles": "System.Collections.Generic.IList`1[System.String]", + "Name": "System.String", + "AdTenant": "System.String", "AzureDataLakeStoreFileSystemEndpointSuffix": "System.String", "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "System.String", "BatchEndpointResourceId": "System.String", @@ -18325,7 +18737,6 @@ "AzureKeyVaultDnsSuffix": "System.String", "TrafficManagerDnsSuffix": "System.String", "SqlDatabaseDnsSuffix": "System.String", - "StorageEndpointSuffix": "System.String", "ActiveDirectoryServiceEndpointResourceId": "System.String", "GraphUrl": "System.String", "GalleryUrl": "System.String", @@ -18334,8 +18745,8 @@ "ManagementPortalUrl": "System.String", "ResourceManagerUrl": "System.String", "ServiceManagementUrl": "System.String", - "AdTenant": "System.String", - "Name": "System.String" + "StorageEndpointSuffix": "System.String", + "ContainerRegistryEndpointSuffix": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -18469,7 +18880,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSServerEndpointHealth, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "UploadActivity": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus", "DownloadActivity": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus", @@ -18522,7 +18933,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncActivityStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Timestamp": "System.Nullable`1[System.DateTime]", "PerItemErrorCount": "System.Nullable`1[System.Int64]", @@ -18605,7 +19016,7 @@ "Microsoft.Azure.Commands.StorageSync.Models.PSSyncSessionStatus": { "Namespace": "Microsoft.Azure.Commands.StorageSync.Models", "Name": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncSessionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncSessionStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.StorageSync.Models.PSSyncSessionStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageSync, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LastSyncTimestamp": "System.Nullable`1[System.DateTime]", "LastSyncSuccessTimestamp": "System.Nullable`1[System.DateTime]", diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Synapse.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Synapse.dll.json index ab0cb36e2ea9..33394e26d3f6 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Synapse.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Synapse.dll.json @@ -89,7 +89,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -469,7 +469,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -785,7 +785,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -1390,7 +1390,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -1738,7 +1738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -2194,7 +2194,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RoleAssignmentId": "System.String", "RoleDefinitionId": "System.String", @@ -2272,7 +2272,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3061,7 +3061,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3233,7 +3233,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3405,7 +3405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3577,7 +3577,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3722,7 +3722,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -3942,7 +3942,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseRole", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseRole, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseRole, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IsBuiltIn": "System.Boolean", "Name": "System.String", @@ -4020,7 +4020,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -4350,7 +4350,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -4495,7 +4495,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -4691,7 +4691,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRoleAssignmentDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RoleAssignmentId": "System.String", "RoleDefinitionId": "System.String", @@ -4769,7 +4769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -5562,7 +5562,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -5758,7 +5758,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -5954,7 +5954,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -6150,7 +6150,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -6455,7 +6455,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -7520,7 +7520,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -7713,7 +7713,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -7933,7 +7933,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -8153,7 +8153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -8373,7 +8373,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -8689,7 +8689,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow", "WorkspaceName": "System.String", @@ -8779,7 +8779,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -9003,7 +9003,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -9264,7 +9264,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -9355,7 +9355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow", "WorkspaceName": "System.String", @@ -9685,7 +9685,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -9904,7 +9904,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow", "WorkspaceName": "System.String", @@ -10220,7 +10220,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow", "WorkspaceName": "System.String", @@ -10310,7 +10310,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -10622,7 +10622,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -10948,7 +10948,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataset", "WorkspaceName": "System.String", @@ -11038,7 +11038,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -11262,7 +11262,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -11523,7 +11523,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -11614,7 +11614,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataset", "WorkspaceName": "System.String", @@ -11944,7 +11944,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -12163,7 +12163,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataset", "WorkspaceName": "System.String", @@ -12479,7 +12479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSDataset", "WorkspaceName": "System.String", @@ -12569,7 +12569,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -12881,7 +12881,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -13207,7 +13207,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService", "WorkspaceName": "System.String", @@ -13297,7 +13297,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -13521,7 +13521,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -13782,7 +13782,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -13873,7 +13873,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService", "WorkspaceName": "System.String", @@ -14203,7 +14203,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -14422,7 +14422,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService", "WorkspaceName": "System.String", @@ -14738,7 +14738,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedServiceResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService", "WorkspaceName": "System.String", @@ -14828,7 +14828,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -15140,7 +15140,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -15503,7 +15503,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -15594,7 +15594,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -15882,7 +15882,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -16077,7 +16077,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -16345,7 +16345,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -16435,7 +16435,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -16659,7 +16659,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -16920,7 +16920,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -17011,7 +17011,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -17341,7 +17341,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -17560,7 +17560,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -17876,7 +17876,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", "WorkspaceName": "System.String", @@ -17966,7 +17966,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -18556,7 +18556,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -18753,7 +18753,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -19156,7 +19156,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRunsQueryResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRunsQueryResponse, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRunsQueryResponse, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Value": "System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityRun]", "ContinuationToken": "System.String" @@ -19233,7 +19233,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -19663,7 +19663,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -20123,7 +20123,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy", "Values": "System.Collections.Generic.IEnumerable`1[System.Object]", @@ -20217,7 +20217,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -20631,7 +20631,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -20776,7 +20776,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -21020,7 +21020,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSCreateRunResponse", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSCreateRunResponse, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSCreateRunResponse, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RunId": "System.String" }, @@ -21088,7 +21088,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -21190,7 +21190,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -21426,7 +21426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -21940,7 +21940,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -22461,7 +22461,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -22550,7 +22550,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy", "Values": "System.Collections.Generic.IEnumerable`1[System.Object]", @@ -22840,7 +22840,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -23033,7 +23033,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "InvokedBy": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy", "Values": "System.Collections.Generic.IEnumerable`1[System.Object]", @@ -23305,7 +23305,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -23408,7 +23408,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -23632,7 +23632,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -23893,7 +23893,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -23984,7 +23984,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -24327,7 +24327,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -24688,7 +24688,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -24927,7 +24927,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -25030,7 +25030,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -25342,7 +25342,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -25668,7 +25668,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Azure.Analytics.Synapse.Artifacts.Models.EventSubscriptionStatus]", "TriggerName": "System.String" @@ -25745,7 +25745,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -25836,7 +25836,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -26082,7 +26082,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -26253,7 +26253,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -26473,7 +26473,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -26563,7 +26563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -26787,7 +26787,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -27011,7 +27011,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Values": "System.Collections.Generic.IEnumerable`1[System.Object]", "Keys": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -27096,7 +27096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -27404,7 +27404,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -27724,7 +27724,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerSubscriptionOperationStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.Nullable`1[Azure.Analytics.Synapse.Artifacts.Models.EventSubscriptionStatus]", "TriggerName": "System.String" @@ -27801,7 +27801,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -27892,7 +27892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -28096,7 +28096,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -28243,7 +28243,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -28452,7 +28452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -28543,7 +28543,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -28873,7 +28873,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -29092,7 +29092,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -29445,7 +29445,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -29536,7 +29536,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -29866,7 +29866,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -30085,7 +30085,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -30401,7 +30401,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -30491,7 +30491,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -30803,7 +30803,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -31166,7 +31166,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -31257,7 +31257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -31545,7 +31545,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -31740,7 +31740,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -32045,7 +32045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -32136,7 +32136,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -32424,7 +32424,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -32619,7 +32619,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTriggerResource, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", "WorkspaceName": "System.String", @@ -32887,7 +32887,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -32999,7 +32999,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -33333,7 +33333,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -33636,7 +33636,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -33709,7 +33709,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -34045,7 +34045,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -34242,7 +34242,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -34540,7 +34540,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -34652,7 +34652,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -35260,7 +35260,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -35718,7 +35718,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -35791,7 +35791,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -36127,7 +36127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -36324,7 +36324,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkJob, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -36622,7 +36622,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -36749,7 +36749,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -37083,7 +37083,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -37406,7 +37406,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -37479,7 +37479,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -37836,7 +37836,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -38007,7 +38007,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -38294,7 +38294,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -38385,7 +38385,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -38671,7 +38671,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -39552,7 +39552,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -39625,7 +39625,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -39982,7 +39982,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", @@ -40153,7 +40153,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -40440,7 +40440,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkStatement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkStatement, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkStatement, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput", "Id": "System.Nullable`1[System.Int32]", @@ -40537,7 +40537,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -40846,7 +40846,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -41087,7 +41087,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseExtendedSparkStatement", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseExtendedSparkStatement, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseExtendedSparkStatement, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Output": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput", "Id": "System.Nullable`1[System.Int32]", @@ -41211,7 +41211,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -41902,7 +41902,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -42170,7 +42170,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -42560,7 +42560,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -42953,7 +42953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkSession, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LivyInfo": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", "Scheduler": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", @@ -43254,9 +43254,9 @@ }, { "VerbName": "Get", - "NounName": "AzSynapseFirewallRule", - "Name": "Get-AzSynapseFirewallRule", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseFirewallRule", + "NounName": "AzSynapseSqlAuditSetting", + "Name": "Get-AzSynapseSqlAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlAudit", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, @@ -43265,12 +43265,17 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.WorkspaceAuditModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.WorkspaceAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "EndIpAddress": "System.String", - "ProvisioningState": "System.String", - "StartIpAddress": "System.String" + "AuditActionGroup": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "BlobStorageTargetState": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType", + "StorageKeyType": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "PredicateExpression": "System.String", + "StorageAccountResourceId": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -43305,12 +43310,7 @@ { "Name": "", "ReturnType": null, - "Parameters": [ - { - "Name": "ipFirewallRuleInfo", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] + "Parameters": [] } ] }, @@ -43357,12 +43357,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -43428,10 +43428,8 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -43533,32 +43531,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -43601,16 +43573,16 @@ ] }, { - "Name": "GetByParentObjectParameterSet", + "Name": "GetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -43682,10 +43654,52 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "DefaultProfile", "AliasList": [ - "FirewallRuleName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -43701,7 +43715,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -43792,27 +43806,36 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Get-AzSynapseSqlAudit" + ] }, { - "VerbName": "New", - "NounName": "AzSynapseFirewallRule", - "Name": "New-AzSynapseFirewallRule", - "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseFirewallRule", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "Get", + "NounName": "AzSynapseSqlPoolAuditSetting", + "Name": "Get-AzSynapseSqlPoolAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlPoolAudit", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "CreateByNameParameterSet", + "DefaultParameterSetName": "GetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.SqlPoolAuditModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.SqlPoolAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "EndIpAddress": "System.String", - "ProvisioningState": "System.String", - "StartIpAddress": "System.String" + "AuditActionGroup": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "BlobStorageTargetState": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType", + "StorageKeyType": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "SqlPoolName": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "PredicateExpression": "System.String", + "StorageAccountResourceId": "System.String", + "AuditAction": "System.String[]" }, "ElementType": null, "GenericTypeArguments": [], @@ -43847,12 +43870,7 @@ { "Name": "", "ReturnType": null, - "Parameters": [ - { - "Name": "ipFirewallRuleInfo", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] + "Parameters": [] } ] }, @@ -43898,13 +43916,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -43970,45 +44006,79 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "StartIpAddress", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "EndIpAddress", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -44025,42 +44095,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "AllowAllAzureIP", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -44097,7 +44131,7 @@ ], "ParameterSets": [ { - "Name": "CreateByNameParameterSet", + "Name": "GetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -44150,56 +44184,6 @@ { "ParameterMetadata": { "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "StartIpAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EndIpAddress", "AliasList": [], "Type": { "Namespace": "System", @@ -44221,30 +44205,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -44287,35 +44247,11 @@ ] }, { - "Name": "CreateByNameAllowAllIpParameterSet", + "Name": "GetByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -44337,98 +44273,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "AllowAllAzureIP", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "CreateByParentObjectParameterSet", - "Parameters": [ { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -44436,7 +44280,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -44506,104 +44350,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "StartIpAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EndIpAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -44646,27 +44392,28 @@ ] }, { - "Name": "CreateByParentObjectAllowAllIpParameterSet", + "Name": "GetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -44708,7 +44455,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "workspace", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -44727,16 +44474,31 @@ }, { "ParameterMetadata": { - "Name": "AllowAllAzureIP", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -44744,19 +44506,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "AsJob", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -44766,9 +44533,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -44817,30 +44584,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -44883,69 +44626,30 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Get-AzSynapseSqlPoolAudit" + ] }, { - "VerbName": "Update", - "NounName": "AzSynapseFirewallRule", - "Name": "Update-AzSynapseFirewallRule", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseFirewallRules", + "VerbName": "Reset", + "NounName": "AzSynapseSqlAuditSetting", + "Name": "Reset-AzSynapseSqlAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlAudit", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", + "DefaultParameterSetName": "RemoveByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "EndIpAddress": "System.String", - "ProvisioningState": "System.String", - "StartIpAddress": "System.String" - }, + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "ipFirewallRuleInfo", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -44990,12 +44694,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -45061,27 +44765,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "StartIpAddress", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -45099,12 +44783,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "EndIpAddress", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45114,10 +44798,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "AsJob", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -45170,7 +44854,7 @@ ], "ParameterSets": [ { - "Name": "UpdateByNameParameterSet", + "Name": "RemoveByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -45222,14 +44906,12 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45239,64 +44921,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "StartIpAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EndIpAddress", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -45360,16 +44994,16 @@ ] }, { - "Name": "UpdateByParentObjectParameterSet", + "Name": "RemoveByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -45441,14 +45075,12 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "FirewallRuleName" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45458,21 +45090,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "StartIpAddress", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -45482,7 +45114,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -45491,7 +45123,51 @@ }, { "ParameterMetadata": { - "Name": "EndIpAddress", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RemoveByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -45508,7 +45184,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -45537,6 +45213,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -45605,6 +45305,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -45647,80 +45371,30 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Remove-AzSynapseSqlAudit" + ] }, { - "VerbName": "Get", - "NounName": "AzSynapseIntegrationRuntime", - "Name": "Get-AzSynapseIntegrationRuntime", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntime", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Reset", + "NounName": "AzSynapseSqlPoolAuditSetting", + "Name": "Reset-AzSynapseSqlPoolAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlPoolAudit", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "RemoveByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -45766,9 +45440,7 @@ }, { "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -45790,7 +45462,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -45855,38 +45527,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -45923,15 +45587,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -45944,7 +45600,43 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Status", + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -45997,7 +45689,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "RemoveByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -46050,9 +45742,7 @@ { "ParameterMetadata": { "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -46068,6 +45758,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -46075,7 +45789,7 @@ }, { "ParameterMetadata": { - "Name": "Status", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -46139,14 +45853,12 @@ ] }, { - "Name": "GetByParentObjectParameterSet", + "Name": "RemoveByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -46162,7 +45874,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -46174,7 +45886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -46246,7 +45958,7 @@ }, { "ParameterMetadata": { - "Name": "Status", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -46270,75 +45982,7 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByResourceIdParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Status", + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -46402,7 +46046,7 @@ ] }, { - "Name": "GetByInputObjectParameterSet", + "Name": "RemoveByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -46410,15 +46054,25 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -46455,15 +46109,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -46482,7 +46128,31 @@ }, { "ParameterMetadata": { - "Name": "Status", + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -46546,11 +46216,151 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "RemoveByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Status", + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -46614,26 +46424,34 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Remove-AzSynapseSqlPoolAudit" + ] }, { - "VerbName": "Get", - "NounName": "AzSynapseIntegrationRuntimeKey", - "Name": "Get-AzSynapseIntegrationRuntimeKey", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeKey", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Set", + "NounName": "AzSynapseSqlAuditSetting", + "Name": "Set-AzSynapseSqlAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.SetAzureSynapseSqlAudit", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "SetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.WorkspaceAuditModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.WorkspaceAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AuthKey1": "System.String", - "AuthKey2": "System.String" + "AuditActionGroup": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "BlobStorageTargetState": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType", + "StorageKeyType": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "PredicateExpression": "System.String", + "StorageAccountResourceId": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -46668,16 +46486,7 @@ { "Name": "", "ReturnType": null, - "Parameters": [ - { - "Name": "key1", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "key2", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] + "Parameters": [] } ] }, @@ -46724,32 +46533,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -46833,69 +46622,151 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputObject", + "Name": "AuditActionGroup", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StorageAccountResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -46938,7 +46809,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "SetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -46990,16 +46861,14 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "AuditActionGroup", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": null, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -47007,40 +46876,25 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "PredicateExpression", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -47052,18 +46906,11 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "BlobStorageTargetState", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -47074,123 +46921,61 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Enabled", + "Disabled" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "StorageAccountResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "StorageKeyType", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Primary", + "Secondary" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -47199,23 +46984,20 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByResourceIdParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "RetentionInDays", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.UInt32" + ], "Methods": [], "Constructors": [] }, @@ -47224,23 +47006,71 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", @@ -47271,7 +47101,7 @@ ] }, { - "Name": "GetByInputObjectParameterSet", + "Name": "SetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -47279,15 +47109,24 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -47324,15 +47163,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -47351,31 +47182,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AuditActionGroup", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -47387,39 +47203,19 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "PredicateExpression", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -47431,350 +47227,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzSynapseIntegrationRuntimeMetric", - "Name": "Get-AzSynapseIntegrationRuntimeMetric", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeMetric", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeMetrics", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeMetrics, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.IntegrationRuntimeNodeMonitoringData]", - "IntegrationRuntimeName": "System.String", - "ResourceGroupName": "System.String", - "DataFactoryName": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [] - }, - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "data", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "factoryName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "GetByNameParameterSet", - "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "BlobStorageTargetState", "AliasList": [], "Type": { "Namespace": "System", @@ -47786,7 +47242,10 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Enabled", + "Disabled" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true @@ -47798,7 +47257,7 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "StorageAccountResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -47815,17 +47274,15 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "StorageKeyType", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -47836,70 +47293,53 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Primary", + "Secondary" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RetentionInDays", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.UInt32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -47909,88 +47349,35 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { @@ -48035,7 +47422,7 @@ ] }, { - "Name": "GetByResourceIdParameterSet", + "Name": "SetByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -48063,31 +47450,168 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "Name": "AuditActionGroup", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageAccountResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -48099,86 +47623,29 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByInputObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { @@ -48227,31 +47694,16 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AuditActionGroup", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -48263,126 +47715,255 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Get", - "NounName": "AzSynapseIntegrationRuntimeNode", - "Name": "Get-AzSynapseIntegrationRuntimeNode", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeNode", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIntegrationRuntimeNode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.ManagedIntegrationRuntimeError]", - "ResourceGroupName": "System.String", - "DataFactoryName": "System.String", - "IntegrationRuntimeName": "System.String", - "Name": "System.String", - "NodeId": "System.String", - "Status": "System.String" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" ], - "ReturnType": "System.Boolean" + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageAccountResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "integrationRuntimeName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "name", - "Type": "System.Reflection.RuntimeParameterInfo" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, - { - "Name": "node", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } ] - }, + } + ], + "AliasList": [ + "Set-AzSynapseSqlAudit" + ] + }, + { + "VerbName": "Set", + "NounName": "AzSynapseSqlPoolAuditSetting", + "Name": "Set-AzSynapseSqlPoolAuditSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.SetAzureSynapseSqlPoolAudit", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "SetByNameParameterSet", + "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeNode", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.SqlPoolAuditModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.SqlPoolAuditModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "IsActiveDispatcher": "System.Nullable`1[System.Boolean]", - "RegisterTime": "System.Nullable`1[System.DateTime]", - "LastEndUpdateTime": "System.Nullable`1[System.DateTime]", - "LastStartUpdateTime": "System.Nullable`1[System.DateTime]", - "LastStopTime": "System.Nullable`1[System.DateTime]", - "LastStartTime": "System.Nullable`1[System.DateTime]", - "ExpiryTime": "System.Nullable`1[System.DateTime]", - "LastConnectTime": "System.Nullable`1[System.DateTime]", - "ConcurrentJobsLimit": "System.Nullable`1[System.Int32]", - "MaxConcurrentJobs": "System.Nullable`1[System.Int32]", - "LastUpdateResult": "System.String", + "AuditActionGroup": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "BlobStorageTargetState": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType", + "StorageKeyType": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "SqlPoolName": "System.String", "ResourceGroupName": "System.String", - "VersionStatus": "System.String", - "Status": "System.String", - "HostServiceUri": "System.String", - "MachineName": "System.String", - "Name": "System.String", - "IntegrationRuntimeName": "System.String", - "DataFactoryName": "System.String", - "Version": "System.String", - "IpAddress": "System.String" + "WorkspaceName": "System.String", + "PredicateExpression": "System.String", + "StorageAccountResourceId": "System.String", + "AuditAction": "System.String[]" }, "ElementType": null, "GenericTypeArguments": [], @@ -48417,32 +47998,7 @@ { "Name": "", "ReturnType": null, - "Parameters": [ - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "integrationRuntimeName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "name", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "node", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "ipAddress", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] + "Parameters": [] } ] }, @@ -48489,7 +48045,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IntegrationRuntimeName", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -48512,7 +48068,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -48577,38 +48133,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -48645,15 +48193,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -48666,7 +48206,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -48684,7 +48224,159 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IpAddress", + "Name": "AuditActionGroup", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AuditAction", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StorageAccountResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -48737,7 +48429,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "SetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -48789,7 +48481,7 @@ }, { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -48813,14 +48505,14 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AuditActionGroup", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, - "ElementType": null, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -48828,23 +48520,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddress", + "Name": "AuditAction", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -48861,31 +48553,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "PredicateExpression", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -48897,15 +48574,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", + "Name": "BlobStorageTargetState", "AliasList": [], "Type": { "Namespace": "System", @@ -48917,96 +48589,46 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Enabled", + "Disabled" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "StorageAccountResourceId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "StorageKeyType", "AliasList": [], "Type": { "Namespace": "System", @@ -49018,19 +48640,72 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddress", + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -49094,11 +48769,11 @@ ] }, { - "Name": "GetByResourceIdParameterSet", + "Name": "SetByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -49122,7 +48797,183 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuditActionGroup", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuditAction", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageAccountResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -49139,14 +48990,91 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddress", + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -49210,7 +49138,7 @@ ] }, { - "Name": "GetByInputObjectParameterSet", + "Name": "SetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -49218,15 +49146,25 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -49263,15 +49201,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -49290,14 +49220,38 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AuditActionGroup", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuditAction", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -49305,21 +49259,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddress", + "Name": "PredicateExpression", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -49338,51 +49292,58 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageAccountResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", + "Name": "StorageKeyType", "AliasList": [], "Type": { "Namespace": "System", @@ -49394,19 +49355,72 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "IpAddress", + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -49468,293 +49482,13 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Invoke", - "NounName": "AzSynapseIntegrationRuntimeUpgrade", - "Name": "Invoke-AzSynapseIntegrationRuntimeUpgrade", - "ClassName": "Microsoft.Azure.Commands.Synapse.InvokeAzureSynapseIntegrationRuntimeUpgrade", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "InvokeByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Void", - "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "InvokeByNameParameterSet", + "Name": "SetByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -49771,6 +49505,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuditActionGroup", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -49778,7 +49536,31 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "AuditAction", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PredicateExpression", "AliasList": [], "Type": { "Namespace": "System", @@ -49793,19 +49575,17 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "BlobStorageTargetState", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -49816,66 +49596,47 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Enabled", + "Disabled" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "StorageAccountResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InvokeByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "StorageKeyType", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -49886,120 +49647,57 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Primary", + "Secondary" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "RetentionInDays", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.UInt32" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "AsJob", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -50011,20 +49709,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "InvokeByResourceIdParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -50034,9 +49727,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -50083,111 +49776,196 @@ ] }, { - "Name": "InvokeByInputObjectParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "AuditActionGroup", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuditAction", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PredicateExpression", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "Name": "BlobStorageTargetState", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Enabled", + "Disabled" ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageAccountResourceId", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "StorageKeyType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Primary", + "Secondary" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RetentionInDays", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -50199,12 +49977,31 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -50247,26 +50044,29 @@ ] } ], - "AliasList": [] + "AliasList": [ + "Set-AzSynapseSqlPoolAudit" + ] }, { - "VerbName": "New", - "NounName": "AzSynapseIntegrationRuntimeKey", - "Name": "New-AzSynapseIntegrationRuntimeKey", - "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseIntegrationRuntimeKey", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "Get", + "NounName": "AzSynapseFirewallRule", + "Name": "Get-AzSynapseFirewallRule", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseFirewallRule", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "NewByNameParameterSet", + "DefaultParameterSetName": "GetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AuthKey1": "System.String", - "AuthKey2": "System.String" + "EndIpAddress": "System.String", + "ProvisioningState": "System.String", + "StartIpAddress": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -50303,11 +50103,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "key1", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "key2", + "Name": "ipFirewallRuleInfo", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -50356,33 +50152,13 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -50448,8 +50224,10 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -50465,115 +50243,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -50610,7 +50279,7 @@ ], "ParameterSets": [ { - "Name": "NewByNameParameterSet", + "Name": "GetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -50664,7 +50333,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "IntegrationRuntimeName" + "FirewallRuleName" ], "Type": { "Namespace": "System", @@ -50681,57 +50350,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "KeyName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -50779,34 +50397,8 @@ ] }, { - "Name": "NewByParentObjectParameterSet", + "Name": "GetByParentObjectParameterSet", "Parameters": [ - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -50814,7 +50406,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -50886,8 +50478,10 @@ }, { "ParameterMetadata": { - "Name": "KeyName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -50898,31 +50492,43 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -50934,7 +50540,12 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { "Name": "DefaultProfile", @@ -50975,13 +50586,318 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzSynapseFirewallRule", + "Name": "New-AzSynapseFirewallRule", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseFirewallRule", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "CreateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "EndIpAddress": "System.String", + "ProvisioningState": "System.String", + "StartIpAddress": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "ipFirewallRuleInfo", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "NewByResourceIdParameterSet", + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StartIpAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "EndIpAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AllowAllAzureIP", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "CreateByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -50998,14 +50914,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyName", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -51017,10 +50933,7 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true @@ -51032,12 +50945,14 @@ }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51047,136 +50962,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "NewByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", + "Name": "StartIpAddress", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "KeyName", + "Name": "EndIpAddress", "AliasList": [], "Type": { "Namespace": "System", @@ -51188,10 +51007,7 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true @@ -51203,7 +51019,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -51267,11 +51083,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "CreateByNameAllowAllIpParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "KeyName", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -51283,27 +51099,24 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "AuthKey1", - "AuthKey2" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "WorkspaceName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51313,9 +51126,57 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AllowAllAzureIP", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -51360,312 +51221,93 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzSynapseIntegrationRuntime", - "Name": "Remove-AzSynapseIntegrationRuntime", - "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseIntegrationRuntime", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "RemoveByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Void", - "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "RemoveByNameParameterSet", + "Name": "CreateByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "WorkspaceObject", "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -51681,14 +51323,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "StartIpAddress", "AliasList": [], "Type": { "Namespace": "System", @@ -51712,10 +51354,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], + "Name": "EndIpAddress", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -51738,7 +51378,7 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -51802,34 +51442,8 @@ ] }, { - "Name": "RemoveByParentObjectParameterSet", + "Name": "CreateByParentObjectAllowAllIpParameterSet", "Parameters": [ - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -51837,7 +51451,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -51909,7 +51523,31 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "AllowAllAzureIP", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -51973,16 +51611,16 @@ ] }, { - "Name": "RemoveByResourceIdParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -51992,245 +51630,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RemoveByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -52280,25 +51682,66 @@ "AliasList": [] }, { - "VerbName": "Remove", - "NounName": "AzSynapseIntegrationRuntimeNode", - "Name": "Remove-AzSynapseIntegrationRuntimeNode", - "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseIntegrationRuntimeNode", + "VerbName": "Update", + "NounName": "AzSynapseFirewallRule", + "Name": "Update-AzSynapseFirewallRule", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseFirewallRules", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "RemoveByNameParameterSet", + "DefaultParameterSetName": "UpdateByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "System", - "Name": "System.Void", - "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseIpFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "EndIpAddress": "System.String", + "ProvisioningState": "System.String", + "StartIpAddress": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "ipFirewallRuleInfo", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -52342,31 +51785,13 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "IntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -52432,8 +51857,10 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceId", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -52450,77 +51877,25 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "InputObject", + "Name": "StartIpAddress", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "NodeName", + "Name": "EndIpAddress", "AliasList": [], "Type": { "Namespace": "System", @@ -52538,7 +51913,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -52591,7 +51966,7 @@ ], "ParameterSets": [ { - "Name": "RemoveByNameParameterSet", + "Name": "UpdateByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -52643,8 +52018,10 @@ }, { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -52667,7 +52044,7 @@ }, { "ParameterMetadata": { - "Name": "NodeName", + "Name": "StartIpAddress", "AliasList": [], "Type": { "Namespace": "System", @@ -52684,14 +52061,38 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "EndIpAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -52755,32 +52156,8 @@ ] }, { - "Name": "RemoveByParentObjectParameterSet", + "Name": "UpdateByParentObjectParameterSet", "Parameters": [ - { - "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -52788,7 +52165,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -52860,8 +52237,10 @@ }, { "ParameterMetadata": { - "Name": "NodeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "FirewallRuleName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -52879,12 +52258,60 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "StartIpAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EndIpAddress", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -52948,319 +52375,11 @@ ] }, { - "Name": "RemoveByResourceIdParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RemoveByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "NodeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -53327,20 +52446,20 @@ "AliasList": [] }, { - "VerbName": "Set", + "VerbName": "Get", "NounName": "AzSynapseIntegrationRuntime", - "Name": "Set-AzSynapseIntegrationRuntime", - "ClassName": "Microsoft.Azure.Commands.Synapse.SetAzureSynapseIntegrationRuntime", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "Name": "Get-AzSynapseIntegrationRuntime", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntime", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "SetByIntegrationRuntimeName", + "DefaultParameterSetName": "GetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -53467,7 +52586,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -53556,7 +52675,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -53621,161 +52740,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Description", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "NodeSize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "NodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CatalogServerEndpoint", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "CatalogAdminCredential", + "Name": "Status", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "CatalogPricingTier", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "VNetId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -53788,346 +52758,42 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Subnet", + "Name": "DefaultProfile", "AliasList": [ - "SubnetName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false - }, + } + ], + "ParameterSets": [ { - "Name": "PublicIP", - "AliasList": [ - "PublicIPs" - ], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DataFlowComputeType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DataFlowCoreCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DataFlowTimeToLive", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "SetupScriptContainerSasUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Edition", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Standard", - "Enterprise" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ExpressCustomSetup", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.ArrayList", - "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DataProxyIntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DataProxyStagingLinkedServiceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "DataProxyStagingPath", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "MaxParallelExecutionsPerNode", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "LicenseType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "LicenseIncluded", - "BasePrice" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "AuthKey", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "SharedIntegrationRuntimeResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "SetByIntegrationRuntimeName", + "Name": "GetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -54198,19 +52864,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Location", + "Name": "Status", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54220,7 +52886,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -54229,8 +52895,54 @@ }, { "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -54253,38 +52965,89 @@ }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "WorkspaceObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogServerEndpoint", + "Name": "Status", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54294,7 +53057,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -54303,16 +53066,31 @@ }, { "ParameterMetadata": { - "Name": "CatalogAdminCredential", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -54324,10 +53102,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "CatalogPricingTier", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -54344,19 +53127,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VNetId", + "Name": "Status", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54375,120 +53158,31 @@ }, { "ParameterMetadata": { - "Name": "Subnet", + "Name": "DefaultProfile", "AliasList": [ - "SubnetName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PublicIP", - "AliasList": [ - "PublicIPs" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowComputeType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowCoreCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowTimeToLive", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -54500,215 +53194,96 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SetupScriptContainerSasUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Edition", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Standard", - "Enterprise" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ExpressCustomSetup", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.ArrayList", - "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyIntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyStagingLinkedServiceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "DataProxyStagingPath", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "MaxParallelExecutionsPerNode", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "LicenseType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "LicenseIncluded", - "BasePrice" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AuthKey", + "Name": "Status", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -54727,58 +53302,51 @@ }, { "ParameterMetadata": { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Description", - "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "Status", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -54840,87 +53408,337 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseIntegrationRuntimeKey", + "Name": "Get-AzSynapseIntegrationRuntimeKey", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeKey", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ { - "Name": "SetByLinkedIntegrationRuntimeName", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AuthKey1": "System.String", + "AuthKey2": "System.String" }, - { - "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "key1", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "key2", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "IntegrationRuntimeName" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ReturnType": "System.Boolean" }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "SharedIntegrationRuntimeResourceId", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -54937,14 +53755,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Type", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -54956,23 +53774,22 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Description", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -54988,31 +53805,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -55059,7 +53852,7 @@ ] }, { - "Name": "SetByParentObject", + "Name": "GetByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -55094,7 +53887,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -55166,66 +53959,31 @@ }, { "ParameterMetadata": { - "Name": "Location", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -55237,10 +53995,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "CatalogServerEndpoint", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -55257,23 +54020,38 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogAdminCredential", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -55285,43 +54063,115 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "CatalogPricingTier", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "VNetId", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -55333,21 +54183,39 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Subnet", + "Name": "DefaultProfile", "AliasList": [ - "SubnetName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -55359,36 +54227,350 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseIntegrationRuntimeMetric", + "Name": "Get-AzSynapseIntegrationRuntimeMetric", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeMetric", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeMetrics", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeMetrics, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.IntegrationRuntimeNodeMonitoringData]", + "IntegrationRuntimeName": "System.String", + "ResourceGroupName": "System.String", + "DataFactoryName": "System.String" }, - { - "ParameterMetadata": { - "Name": "PublicIP", - "AliasList": [ - "PublicIPs" + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } ], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ReturnType": "System.Boolean" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [] + }, + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "data", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "factoryName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "DataFlowComputeType", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -55412,351 +54594,50 @@ }, { "ParameterMetadata": { - "Name": "DataFlowCoreCount", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DataFlowTimeToLive", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SetupScriptContainerSasUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Edition", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Standard", - "Enterprise" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ExpressCustomSetup", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.ArrayList", - "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyIntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyStagingLinkedServiceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyStagingPath", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "MaxParallelExecutionsPerNode", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "LicenseType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "LicenseIncluded", - "BasePrice" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AuthKey", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Description", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -55803,7 +54684,7 @@ ] }, { - "Name": "SetByLinkedIntegrationRuntimeParentObject", + "Name": "GetByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -55838,7 +54719,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -55910,31 +54791,51 @@ }, { "ParameterMetadata": { - "Name": "SharedIntegrationRuntimeResourceId", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Type", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -55946,65 +54847,134 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Description", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { @@ -56049,59 +55019,525 @@ ] }, { - "Name": "SetByResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Location", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseIntegrationRuntimeNode", + "Name": "Get-AzSynapseIntegrationRuntimeNode", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseIntegrationRuntimeNode", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIntegrationRuntimeNode", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Errors": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.ManagedIntegrationRuntimeError]", + "ResourceGroupName": "System.String", + "DataFactoryName": "System.String", + "IntegrationRuntimeName": "System.String", + "Name": "System.String", + "NodeId": "System.String", + "Status": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "integrationRuntimeName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "node", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + }, + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeNode", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeNode, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "IsActiveDispatcher": "System.Nullable`1[System.Boolean]", + "RegisterTime": "System.Nullable`1[System.DateTime]", + "LastEndUpdateTime": "System.Nullable`1[System.DateTime]", + "LastStartUpdateTime": "System.Nullable`1[System.DateTime]", + "LastStopTime": "System.Nullable`1[System.DateTime]", + "LastStartTime": "System.Nullable`1[System.DateTime]", + "ExpiryTime": "System.Nullable`1[System.DateTime]", + "LastConnectTime": "System.Nullable`1[System.DateTime]", + "ConcurrentJobsLimit": "System.Nullable`1[System.Int32]", + "MaxConcurrentJobs": "System.Nullable`1[System.Int32]", + "LastUpdateResult": "System.String", + "ResourceGroupName": "System.String", + "VersionStatus": "System.String", + "Status": "System.String", + "HostServiceUri": "System.String", + "MachineName": "System.String", + "Name": "System.String", + "IntegrationRuntimeName": "System.String", + "DataFactoryName": "System.String", + "Version": "System.String", + "IpAddress": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "integrationRuntimeName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "name", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "node", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "ipAddress", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "IpAddress", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -56125,33 +55561,31 @@ }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogServerEndpoint", + "Name": "IntegrationRuntimeName", "AliasList": [], "Type": { "Namespace": "System", @@ -56168,19 +55602,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogAdminCredential", + "Name": "Name", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56190,45 +55624,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogPricingTier", + "Name": "IpAddress", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "VNetId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56247,44 +55657,31 @@ }, { "ParameterMetadata": { - "Name": "Subnet", + "Name": "DefaultProfile", "AliasList": [ - "SubnetName" + "AzContext", + "AzureRmContext", + "AzureCredential" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PublicIP", - "AliasList": [ - "PublicIPs" - ], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -56296,10 +55693,15 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByParentObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "DataFlowComputeType", + "Name": "IntegrationRuntimeName", "AliasList": [], "Type": { "Namespace": "System", @@ -56316,66 +55718,91 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowCoreCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DataFlowTimeToLive", + "Name": "WorkspaceObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } ], - "Methods": [], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SetupScriptContainerSasUri", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -56392,46 +55819,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Edition", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Standard", - "Enterprise" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ExpressCustomSetup", + "Name": "IpAddress", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.ArrayList", - "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -56441,7 +55841,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -56450,31 +55850,51 @@ }, { "ParameterMetadata": { - "Name": "DataProxyIntegrationRuntimeName", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "DataProxyStagingLinkedServiceName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -56491,14 +55911,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DataProxyStagingPath", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -56515,24 +55935,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "MaxParallelExecutionsPerNode", + "Name": "IpAddress", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -56548,43 +55966,31 @@ }, { "ParameterMetadata": { - "Name": "LicenseType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "LicenseIncluded", - "BasePrice" + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AuthKey", - "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -56596,37 +56002,91 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Type", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Description", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -56643,14 +56103,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", + "Name": "IpAddress", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -56714,35 +56174,11 @@ ] }, { - "Name": "SetByLinkedIntegrationRuntimeResourceId", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SharedIntegrationRuntimeResourceId", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -56766,58 +56202,7 @@ }, { "ParameterMetadata": { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Description", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", + "Name": "IpAddress", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -56879,89 +56264,317 @@ "ValueFromPipelineByPropertyName": false } ] - }, - { - "Name": "SetByIntegrationRuntimeObject", + } + ], + "AliasList": [] + }, + { + "VerbName": "Invoke", + "NounName": "AzSynapseIntegrationRuntimeUpgrade", + "Name": "Invoke-AzSynapseIntegrationRuntimeUpgrade", + "ClassName": "Microsoft.Azure.Commands.Synapse.InvokeAzureSynapseIntegrationRuntimeUpgrade", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "InvokeByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Void", + "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "InvokeByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Name": "System.String", - "Type": "System.String", - "ResourceGroupName": "System.String", - "WorkspaceName": "System.String", - "Description": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Location", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -56978,15 +56591,17 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -57002,25 +56617,38 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeCount", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } ], - "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -57032,11 +56660,18 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "InvokeByParentObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "CatalogServerEndpoint", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -57052,465 +56687,135 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogAdminCredential", + "Name": "WorkspaceObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.PSCredential", - "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "CatalogPricingTier", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "VNetId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Subnet", - "AliasList": [ - "SubnetName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PublicIP", - "AliasList": [ - "PublicIPs" - ], - "Type": { - "Namespace": "System", - "Name": "System.String[]", - "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": "System.String", - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowComputeType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowCoreCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataFlowTimeToLive", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SetupScriptContainerSasUri", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Edition", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Standard", - "Enterprise" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ExpressCustomSetup", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.ArrayList", - "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyIntegrationRuntimeName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyStagingLinkedServiceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DataProxyStagingPath", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "MaxParallelExecutionsPerNode", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Int32]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Int32" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "LicenseType", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "LicenseIncluded", - "BasePrice" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AuthKey", - "AliasList": [], - "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "InvokeByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Description", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -57527,31 +56832,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -57598,7 +56879,7 @@ ] }, { - "Name": "SetByLinkedIntegrationRuntimeObject", + "Name": "InvokeByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -57607,7 +56888,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -57678,249 +56959,75 @@ }, { "ParameterMetadata": { - "Name": "SharedIntegrationRuntimeResourceId", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Type", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Description", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Type", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Managed", - "SelfHosted" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Description", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -57939,25 +57046,69 @@ "AliasList": [] }, { - "VerbName": "Sync", - "NounName": "AzSynapseIntegrationRuntimeCredential", - "Name": "Sync-AzSynapseIntegrationRuntimeCredential", - "ClassName": "Microsoft.Azure.Commands.Synapse.SyncAzureSynapseIntegrationRuntimeCredential", + "VerbName": "New", + "NounName": "AzSynapseIntegrationRuntimeKey", + "Name": "New-AzSynapseIntegrationRuntimeKey", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseIntegrationRuntimeKey", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "StopByNameParameterSet", + "DefaultParameterSetName": "NewByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "System", - "Name": "System.Void", - "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeKeys, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AuthKey1": "System.String", + "AuthKey2": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "key1", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "key2", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ParameterSets": [ "__AllParameterSets" @@ -58002,8 +57153,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -58025,7 +57178,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -58114,7 +57267,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -58178,6 +57331,27 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Force", "AliasList": [], @@ -58232,7 +57406,7 @@ ], "ParameterSets": [ { - "Name": "StopByNameParameterSet", + "Name": "NewByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -58284,8 +57458,10 @@ }, { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -58306,6 +57482,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -58372,12 +57575,14 @@ ] }, { - "Name": "StopByParentObjectParameterSet", + "Name": "NewByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -58405,7 +57610,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -58475,6 +57680,33 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -58541,7 +57773,7 @@ ] }, { - "Name": "StopByResourceIdParameterSet", + "Name": "NewByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -58567,6 +57799,33 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -58633,7 +57892,7 @@ ] }, { - "Name": "StopByInputObjectParameterSet", + "Name": "NewByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -58642,7 +57901,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -58711,6 +57970,33 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -58779,6 +58065,33 @@ { "Name": "__AllParameterSets", "Parameters": [ + { + "ParameterMetadata": { + "Name": "KeyName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "AuthKey1", + "AuthKey2" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -58848,102 +58161,25 @@ "AliasList": [] }, { - "VerbName": "Update", + "VerbName": "Remove", "NounName": "AzSynapseIntegrationRuntime", - "Name": "Update-AzSynapseIntegrationRuntime", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseIntegrationRuntime", + "Name": "Remove-AzSynapseIntegrationRuntime", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseIntegrationRuntime", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", + "DefaultParameterSetName": "RemoveByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Links": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.LinkedIntegrationRuntime]", - "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.SelfHostedIntegrationRuntimeNode]", - "ServiceUrls": "System.Collections.Generic.IList`1[System.String]", - "CreateTime": "System.Nullable`1[System.DateTime]", - "ScheduledUpdateDate": "System.Nullable`1[System.DateTime]", - "AutoUpdateETA": "System.Nullable`1[System.DateTime]", - "UpdateDelayOffset": "System.Nullable`1[System.TimeSpan]", - "LocalTimeZoneOffset": "System.Nullable`1[System.TimeSpan]", - "WorkspaceName": "System.String", - "ResourceGroupName": "System.String", - "Type": "System.String", - "Name": "System.String", - "VersionStatus": "System.String", - "TaskQueueId": "System.String", - "State": "System.String", - "LatestVersion": "System.String", - "Description": "System.String", - "InternalChannelEncryption": "System.String", - "AutoUpdate": "System.String", - "Version": "System.String", - "PushedVersion": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.Void", + "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "status", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "deserializerSettings", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -58988,8 +58224,10 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -59011,7 +58249,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -59100,7 +58338,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -59165,41 +58403,18 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -59241,7 +58456,7 @@ ], "ParameterSets": [ { - "Name": "UpdateByNameParameterSet", + "Name": "RemoveByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -59293,8 +58508,10 @@ }, { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -59317,47 +58534,18 @@ }, { "ParameterMetadata": { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -59410,12 +58598,14 @@ ] }, { - "Name": "UpdateByParentObjectParameterSet", + "Name": "RemoveByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "IntegrationRuntimeName", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -59443,7 +58633,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -59515,47 +58705,18 @@ }, { "ParameterMetadata": { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -59608,7 +58769,7 @@ ] }, { - "Name": "UpdateByResourceIdParameterSet", + "Name": "RemoveByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -59636,47 +58797,18 @@ }, { "ParameterMetadata": { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -59729,7 +58861,7 @@ ] }, { - "Name": "UpdateByInputObjectParameterSet", + "Name": "RemoveByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -59738,7 +58870,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -59809,47 +58941,18 @@ }, { "ParameterMetadata": { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -59906,47 +59009,18 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "AutoUpdate", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "On", - "Off" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoUpdateDelayOffset", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.TimeSpan]", - "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.TimeSpan" - ], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, @@ -60002,102 +59076,25 @@ "AliasList": [] }, { - "VerbName": "Update", + "VerbName": "Remove", "NounName": "AzSynapseIntegrationRuntimeNode", - "Name": "Update-AzSynapseIntegrationRuntimeNode", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseIntegrationRuntimeNode", + "Name": "Remove-AzSynapseIntegrationRuntimeNode", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseIntegrationRuntimeNode", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", + "DefaultParameterSetName": "RemoveByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "Links": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.LinkedIntegrationRuntime]", - "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.SelfHostedIntegrationRuntimeNode]", - "ServiceUrls": "System.Collections.Generic.IList`1[System.String]", - "CreateTime": "System.Nullable`1[System.DateTime]", - "ScheduledUpdateDate": "System.Nullable`1[System.DateTime]", - "AutoUpdateETA": "System.Nullable`1[System.DateTime]", - "UpdateDelayOffset": "System.Nullable`1[System.TimeSpan]", - "LocalTimeZoneOffset": "System.Nullable`1[System.TimeSpan]", - "WorkspaceName": "System.String", - "ResourceGroupName": "System.String", - "Type": "System.String", - "Name": "System.String", - "VersionStatus": "System.String", - "TaskQueueId": "System.String", - "State": "System.String", - "LatestVersion": "System.String", - "Description": "System.String", - "InternalChannelEncryption": "System.String", - "AutoUpdate": "System.String", - "Version": "System.String", - "PushedVersion": "System.String", - "Id": "System.String" - }, + "Namespace": "System", + "Name": "System.Void", + "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "integrationRuntime", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "status", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "resourceGroupName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "workspaceName", - "Type": "System.Reflection.RuntimeParameterInfo" - }, - { - "Name": "deserializerSettings", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -60165,7 +59162,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -60254,7 +59251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -60319,7 +59316,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -60337,12 +59334,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60390,7 +59387,7 @@ ], "ParameterSets": [ { - "Name": "UpdateByNameParameterSet", + "Name": "RemoveByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -60466,7 +59463,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -60485,17 +59482,17 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60507,7 +59504,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -60554,7 +59551,7 @@ ] }, { - "Name": "UpdateByParentObjectParameterSet", + "Name": "RemoveByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -60587,7 +59584,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -60659,7 +59656,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -60678,17 +59675,17 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60700,7 +59697,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -60747,7 +59744,7 @@ ] }, { - "Name": "UpdateByResourceIdParameterSet", + "Name": "RemoveByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -60775,7 +59772,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -60794,17 +59791,17 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60816,7 +59813,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -60863,7 +59860,7 @@ ] }, { - "Name": "UpdateByInputObjectParameterSet", + "Name": "RemoveByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -60872,7 +59869,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Type": "System.String", @@ -60943,7 +59940,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -60962,17 +59959,17 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -60984,7 +59981,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -61035,7 +60032,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeName", "AliasList": [], "Type": { "Namespace": "System", @@ -61054,17 +60051,17 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ConcurrentJobsLimit", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61076,7 +60073,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -61126,38 +60123,27 @@ "AliasList": [] }, { - "VerbName": "Get", - "NounName": "AzSynapseSparkPool", - "Name": "Get-AzSynapseSparkPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSparkPool", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Set", + "NounName": "AzSynapseIntegrationRuntime", + "Name": "Set-AzSynapseIntegrationRuntime", + "ClassName": "Microsoft.Azure.Commands.Synapse.SetAzureSynapseIntegrationRuntime", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "SetByIntegrationRuntimeName", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -61194,7 +60180,15 @@ "ReturnType": null, "Parameters": [ { - "Name": "sparkPool", + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -61246,7 +60240,7 @@ { "Name": "Name", "AliasList": [ - "SparkPoolName" + "IntegrationRuntimeName" ], "Type": { "Namespace": "System", @@ -61269,7 +60263,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -61353,504 +60347,172 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "InputObject", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "Clear", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Void" + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } ], - "Constructors": [] + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ + }, { - "Name": "GetByNameParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "GetByParentObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] + "Name": "Description", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "GetByResourceIdParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] + "Name": "Location", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "__AllParameterSets", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "New", - "NounName": "AzSynapseSparkPool", - "Name": "New-AzSynapseSparkPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSparkPool", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "CreateByNameAndEnableAutoScaleParameterSet", - "OutputTypes": [ - { + "Name": "NodeSize", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", - "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sparkPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { - "Name": "ResourceGroupName", + "Name": "CatalogServerEndpoint", "AliasList": [], "Type": { "Namespace": "System", @@ -61868,7 +60530,25 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceName", + "Name": "CatalogAdminCredential", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.PSCredential", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "CatalogPricingTier", "AliasList": [], "Type": { "Namespace": "System", @@ -61886,70 +60566,17 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceObject", + "Name": "VNetId", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -61957,9 +60584,9 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", + "Name": "Subnet", "AliasList": [ - "SparkPoolName" + "SubnetName" ], "Type": { "Namespace": "System", @@ -61974,15 +60601,35 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "Tag", + "Name": "PublicIP", + "AliasList": [ + "PublicIPs" + ], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DataFlowComputeType", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -61992,28 +60639,68 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DataFlowCoreCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "NodeCount", + "Name": "DataFlowTimeToLive", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "NodeSize", + "Name": "SetupScriptContainerSasUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Edition", "AliasList": [], "Type": { "Namespace": "System", @@ -62026,21 +60713,20 @@ "Constructors": [] }, "ValidateSet": [ - "Small", - "Medium", - "Large" + "Standard", + "Enterprise" ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "AutoScaleMinNodeCount", + "Name": "ExpressCustomSetup", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.ArrayList", + "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62048,17 +60734,17 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "AutoScaleMaxNodeCount", + "Name": "DataProxyIntegrationRuntimeName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62066,17 +60752,17 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "EnableAutoPause", + "Name": "DataProxyStagingLinkedServiceName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62086,15 +60772,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "AutoPauseDelayInMinute", + "Name": "DataProxyStagingPath", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62102,12 +60788,32 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, { - "Name": "SparkVersion", + "Name": "MaxParallelExecutionsPerNode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "LicenseType", "AliasList": [], "Type": { "Namespace": "System", @@ -62119,13 +60825,34 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "LicenseIncluded", + "BasePrice" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, { - "Name": "LibraryRequirementsFilePath", + "Name": "AuthKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SharedIntegrationRuntimeResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -62143,7 +60870,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -62196,7 +60923,7 @@ ], "ParameterSets": [ { - "Name": "CreateByNameAndEnableAutoScaleParameterSet", + "Name": "SetByIntegrationRuntimeName", "Parameters": [ { "ParameterMetadata": { @@ -62248,12 +60975,14 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62261,10 +60990,10 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, @@ -62272,12 +61001,12 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", + "Name": "Location", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62285,21 +61014,19 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "NodeSize", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -62315,22 +61042,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NodeCount", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -62346,7 +61075,7 @@ }, { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "CatalogServerEndpoint", "AliasList": [], "Type": { "Namespace": "System", @@ -62358,28 +61087,24 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "CatalogAdminCredential", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.Management.Automation.PSCredential", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62398,12 +61123,12 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "CatalogPricingTier", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62411,8 +61136,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -62422,7 +61147,7 @@ }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "VNetId", "AliasList": [], "Type": { "Namespace": "System", @@ -62437,16 +61162,68 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Subnet", + "AliasList": [ + "SubnetName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PublicIP", + "AliasList": [ + "PublicIPs" + ], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataFlowComputeType", "AliasList": [], "Type": { "Namespace": "System", @@ -62470,15 +61247,17 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "DataFlowCoreCount", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -62494,31 +61273,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "DataFlowTimeToLive", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -62530,15 +61296,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "CreateByNameAndDisableAutoScaleParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "SetupScriptContainerSasUri", "AliasList": [], "Type": { "Namespace": "System", @@ -62562,7 +61323,7 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "Edition", "AliasList": [], "Type": { "Namespace": "System", @@ -62574,24 +61335,27 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Standard", + "Enterprise" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "ExpressCustomSetup", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.ArrayList", + "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62599,21 +61363,19 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "DataProxyIntegrationRuntimeName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -62629,19 +61391,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "DataProxyStagingLinkedServiceName", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62651,7 +61413,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -62660,7 +61422,7 @@ }, { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "DataProxyStagingPath", "AliasList": [], "Type": { "Namespace": "System", @@ -62672,31 +61434,29 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "MaxParallelExecutionsPerNode", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -62712,21 +61472,24 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "LicenseType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateSet": [ + "LicenseIncluded", + "BasePrice" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -62736,7 +61499,31 @@ }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "AuthKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Type", "AliasList": [], "Type": { "Namespace": "System", @@ -62748,19 +61535,22 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Managed", + "SelfHosted" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Description", "AliasList": [], "Type": { "Namespace": "System", @@ -62784,7 +61574,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -62848,93 +61638,16 @@ ] }, { - "Name": "CreateByParentObjectAndEnableAutoScaleParameterSet", + "Name": "SetByLinkedIntegrationRuntimeName", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62942,23 +61655,23 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -62966,9 +61679,9 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": -2147483648, @@ -62979,7 +61692,7 @@ "ParameterMetadata": { "Name": "Name", "AliasList": [ - "SparkPoolName" + "IntegrationRuntimeName" ], "Type": { "Namespace": "System", @@ -63003,31 +61716,7 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeSize", + "Name": "SharedIntegrationRuntimeResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -63039,71 +61728,19 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoPause", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Type", "AliasList": [], "Type": { "Namespace": "System", @@ -63115,19 +61752,22 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Managed", + "SelfHosted" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Description", "AliasList": [], "Type": { "Namespace": "System", @@ -63151,7 +61791,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -63215,22 +61855,48 @@ ] }, { - "Name": "CreateByParentObjectAndDisableAutoScaleParameterSet", + "Name": "SetByParentObject", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", @@ -63296,12 +61962,12 @@ }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "Location", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63309,21 +61975,19 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "NodeSize", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -63339,22 +62003,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NodeCount", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -63370,7 +62036,7 @@ }, { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "CatalogServerEndpoint", "AliasList": [], "Type": { "Namespace": "System", @@ -63382,28 +62048,24 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "CatalogAdminCredential", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "System.Management.Automation.PSCredential", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63422,12 +62084,12 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "CatalogPricingTier", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63435,8 +62097,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -63446,7 +62108,7 @@ }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "VNetId", "AliasList": [], "Type": { "Namespace": "System", @@ -63461,16 +62123,68 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Subnet", + "AliasList": [ + "SubnetName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PublicIP", + "AliasList": [ + "PublicIPs" + ], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataFlowComputeType", "AliasList": [], "Type": { "Namespace": "System", @@ -63494,15 +62208,17 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "DataFlowCoreCount", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -63518,31 +62234,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "DataFlowTimeToLive", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -63554,18 +62257,11 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "SetupScriptContainerSasUri", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -63581,19 +62277,46 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "Edition", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Standard", + "Enterprise" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ExpressCustomSetup", "AliasList": [], "Type": { "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Name": "System.Collections.ArrayList", + "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63603,7 +62326,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -63612,7 +62335,7 @@ }, { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "DataProxyIntegrationRuntimeName", "AliasList": [], "Type": { "Namespace": "System", @@ -63624,28 +62347,24 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "DataProxyStagingLinkedServiceName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63655,7 +62374,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -63664,12 +62383,12 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "DataProxyStagingPath", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -63677,8 +62396,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -63688,7 +62407,33 @@ }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "MaxParallelExecutionsPerNode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LicenseType", "AliasList": [], "Type": { "Namespace": "System", @@ -63700,19 +62445,73 @@ "Methods": [], "Constructors": [] }, + "ValidateSet": [ + "LicenseIncluded", + "BasePrice" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuthKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Description", "AliasList": [], "Type": { "Namespace": "System", @@ -63736,7 +62535,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -63798,401 +62597,117 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Remove", - "NounName": "AzSynapseSparkPool", - "Name": "Remove-AzSynapseSparkPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSparkPool", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "DeleteByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Name": "SetByLinkedIntegrationRuntimeParentObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "IntegrationRuntimeName" ], - "ReturnType": "System.Boolean" + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", - "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sparkPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "DeleteByNameParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "WorkspaceObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "SharedIntegrationRuntimeResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -64215,22 +62730,25 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Type", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], + "ValidateSet": [ + "Managed", + "SelfHosted" + ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64239,12 +62757,12 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Description", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64254,7 +62772,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64327,14 +62845,12 @@ ] }, { - "Name": "DeleteByParentObjectParameterSet", + "Name": "SetByResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "ResourceId", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -64357,89 +62873,36 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "Location", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "NodeSize", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64449,7 +62912,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64458,15 +62921,17 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "NodeCount", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Int32" + ], "Methods": [], "Constructors": [] }, @@ -64482,12 +62947,12 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "CatalogServerEndpoint", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64497,7 +62962,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64506,31 +62971,16 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CatalogAdminCredential", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.PSCredential", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -64542,99 +62992,39 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "DeleteByInputObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "InputObject", + "Name": "CatalogPricingTier", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", - "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sparkPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "VNetId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64653,12 +63043,14 @@ }, { "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], + "Name": "Subnet", + "AliasList": [ + "SubnetName" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64677,12 +63069,38 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "PublicIP", + "AliasList": [ + "PublicIPs" + ], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataFlowComputeType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64692,6 +63110,32 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataFlowCoreCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -64701,31 +63145,18 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "DataFlowTimeToLive", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -64737,15 +63168,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "DeleteByResourceIdParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "SetupScriptContainerSasUri", "AliasList": [], "Type": { "Namespace": "System", @@ -64762,19 +63188,118 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "Edition", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Standard", + "Enterprise" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ExpressCustomSetup", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.ArrayList", + "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataProxyIntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataProxyStagingLinkedServiceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataProxyStagingPath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64784,6 +63309,32 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxParallelExecutionsPerNode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -64793,12 +63344,39 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "LicenseType", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "LicenseIncluded", + "BasePrice" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuthKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64815,6 +63393,57 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Description", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Force", @@ -64881,16 +63510,16 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "SetByLinkedIntegrationRuntimeResourceId", "Parameters": [ { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64900,7 +63529,58 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SharedIntegrationRuntimeResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64909,12 +63589,12 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Description", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -64924,7 +63604,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -64995,203 +63675,89 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Test", - "NounName": "AzSynapseSparkPool", - "Name": "Test-AzSynapseSparkPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSparkPool", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "TestByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Name": "SetByIntegrationRuntimeObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "TestByNameParameterSet", - "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "Location", "AliasList": [], "Type": { "Namespace": "System", @@ -65215,7 +63781,7 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "NodeSize", "AliasList": [], "Type": { "Namespace": "System", @@ -65232,14 +63798,40 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "CatalogServerEndpoint", "AliasList": [], "Type": { "Namespace": "System", @@ -65256,38 +63848,23 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "CatalogAdminCredential", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.PSCredential", + "AssemblyQualifiedName": "System.Management.Automation.PSCredential, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -65299,15 +63876,10 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "Name", + "Name": "CatalogPricingTier", "AliasList": [], "Type": { "Namespace": "System", @@ -65324,38 +63896,49 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", + "Name": "VNetId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Subnet", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" + "SubnetName" ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -65367,92 +63950,36 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "TestByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], + "Name": "PublicIP", + "AliasList": [ + "PublicIPs" + ], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "DataFlowComputeType", "AliasList": [], "Type": { "Namespace": "System", @@ -65469,38 +63996,25 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "DataFlowCoreCount", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.Int32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -65512,375 +64026,748 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Update", - "NounName": "AzSynapseSparkPool", - "Name": "Update-AzSynapseSparkPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSparkPool", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "SetByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", - "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + { + "ParameterMetadata": { + "Name": "DataFlowTimeToLive", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sparkPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "SetupScriptContainerSasUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Edition", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Standard", + "Enterprise" ], - "ReturnType": "System.Boolean" + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ExpressCustomSetup", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.ArrayList", + "AssemblyQualifiedName": "System.Collections.ArrayList, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", - "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", - "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", - "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", - "Type": "System.String" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" + { + "ParameterMetadata": { + "Name": "DataProxyIntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataProxyStagingLinkedServiceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DataProxyStagingPath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxParallelExecutionsPerNode", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Int32" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LicenseType", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "LicenseIncluded", + "BasePrice" ], - "ReturnType": "System.Boolean" + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AuthKey", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sparkPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "EnableAutoScale", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Description", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "SetByLinkedIntegrationRuntimeObject", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SharedIntegrationRuntimeResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Description", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Type", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Managed", + "SelfHosted" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Description", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Sync", + "NounName": "AzSynapseIntegrationRuntimeCredential", + "Name": "Sync-AzSynapseIntegrationRuntimeCredential", + "ClassName": "Microsoft.Azure.Commands.Synapse.SyncAzureSynapseIntegrationRuntimeCredential", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "StopByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Void", + "AssemblyQualifiedName": "System.Void, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ { - "Name": "AutoScaleMaxNodeCount", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65888,37 +64775,35 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "EnableAutoPause", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "AutoPauseDelayInMinute", + "Name": "IntegrationRuntimeName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -65926,52 +64811,83 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, { - "Name": "NodeCount", + "Name": "WorkspaceObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "NodeSize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, { - "Name": "SparkVersion", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -65989,17 +64905,69 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "LibraryRequirementsFilePath", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -66007,7 +64975,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -66060,8 +65028,17762 @@ ], "ParameterSets": [ { - "Name": "SetByNameParameterSet", + "Name": "StopByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "StopByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "StopByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "StopByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzSynapseIntegrationRuntime", + "Name": "Update-AzSynapseIntegrationRuntime", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseIntegrationRuntime", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "UpdateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Links": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.LinkedIntegrationRuntime]", + "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.SelfHostedIntegrationRuntimeNode]", + "ServiceUrls": "System.Collections.Generic.IList`1[System.String]", + "CreateTime": "System.Nullable`1[System.DateTime]", + "ScheduledUpdateDate": "System.Nullable`1[System.DateTime]", + "AutoUpdateETA": "System.Nullable`1[System.DateTime]", + "UpdateDelayOffset": "System.Nullable`1[System.TimeSpan]", + "LocalTimeZoneOffset": "System.Nullable`1[System.TimeSpan]", + "WorkspaceName": "System.String", + "ResourceGroupName": "System.String", + "Type": "System.String", + "Name": "System.String", + "VersionStatus": "System.String", + "TaskQueueId": "System.String", + "State": "System.String", + "LatestVersion": "System.String", + "Description": "System.String", + "InternalChannelEncryption": "System.String", + "AutoUpdate": "System.String", + "Version": "System.String", + "PushedVersion": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "status", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "deserializerSettings", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "UpdateByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "AutoUpdate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "On", + "Off" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoUpdateDelayOffset", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.TimeSpan]", + "AssemblyQualifiedName": "System.Nullable`1[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.TimeSpan" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzSynapseIntegrationRuntimeNode", + "Name": "Update-AzSynapseIntegrationRuntimeNode", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseIntegrationRuntimeNode", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "UpdateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSelfHostedIntegrationRuntimeStatus, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Capabilities": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "Links": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.LinkedIntegrationRuntime]", + "Nodes": "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.SelfHostedIntegrationRuntimeNode]", + "ServiceUrls": "System.Collections.Generic.IList`1[System.String]", + "CreateTime": "System.Nullable`1[System.DateTime]", + "ScheduledUpdateDate": "System.Nullable`1[System.DateTime]", + "AutoUpdateETA": "System.Nullable`1[System.DateTime]", + "UpdateDelayOffset": "System.Nullable`1[System.TimeSpan]", + "LocalTimeZoneOffset": "System.Nullable`1[System.TimeSpan]", + "WorkspaceName": "System.String", + "ResourceGroupName": "System.String", + "Type": "System.String", + "Name": "System.String", + "VersionStatus": "System.String", + "TaskQueueId": "System.String", + "State": "System.String", + "LatestVersion": "System.String", + "Description": "System.String", + "InternalChannelEncryption": "System.String", + "AutoUpdate": "System.String", + "Version": "System.String", + "PushedVersion": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "status", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "deserializerSettings", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "UpdateByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "IntegrationRuntimeName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntime, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Name": "System.String", + "Type": "System.String", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "Description": "System.String", + "Id": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "integrationRuntime", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ConcurrentJobsLimit", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseSparkPool", + "Name": "Get-AzSynapseSparkPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSparkPool", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzSynapseSparkPool", + "Name": "New-AzSynapseSparkPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSparkPool", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "CreateByNameAndEnableAutoScaleParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "CreateByNameAndEnableAutoScaleParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByNameAndDisableAutoScaleParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByParentObjectAndEnableAutoScaleParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByParentObjectAndDisableAutoScaleParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Remove", + "NounName": "AzSynapseSparkPool", + "Name": "Remove-AzSynapseSparkPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSparkPool", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "DeleteByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "DeleteByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Test", + "NounName": "AzSynapseSparkPool", + "Name": "Test-AzSynapseSparkPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSparkPool", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "TestByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "TestByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "TestByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzSynapseSparkPool", + "Name": "Update-AzSynapseSparkPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSparkPool", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "SetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "SetByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "SetByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [ + "SparkPoolName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "SetByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", + "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", + "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "Tags": "System.Collections.Hashtable", + "CreationDate": "System.Nullable`1[System.DateTime]", + "NodeCount": "System.Nullable`1[System.Int32]", + "ProvisioningState": "System.String", + "Id": "System.String", + "Location": "System.String", + "TagsTable": "System.String", + "DefaultSparkLogFolder": "System.String", + "NodeSize": "System.String", + "Name": "System.String", + "SparkVersion": "System.String", + "SparkEventsFolder": "System.String", + "NodeSizeFamily": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sparkPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "SetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoScale", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMinNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoScaleMaxNodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EnableAutoPause", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AutoPauseDelayInMinute", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 5, + "ValidateRangeMax": 10080, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeCount", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": 3, + "ValidateRangeMax": 200, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NodeSize", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [ + "Small", + "Medium", + "Large" + ], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SparkVersion", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "LibraryRequirementsFilePath", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseSqlDatabase", + "Name": "Get-AzSynapseSqlDatabase", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlDatabase", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzSynapseSqlDatabase", + "Name": "New-AzSynapseSqlDatabase", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSqlDatabase", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "CreateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Collation", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "CreateByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Collation", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Collation", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Remove", + "NounName": "AzSynapseSqlDatabase", + "Name": "Remove-AzSynapseSqlDatabase", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlDatabase", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "DeleteByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "DeleteByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Test", + "NounName": "AzSynapseSqlDatabase", + "Name": "Test-AzSynapseSqlDatabase", + "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSqlDatabase", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "TestByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "TestByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "TestByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzSynapseSqlDatabase", + "Name": "Update-AzSynapseSqlDatabase", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlDatabase", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "UpdateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "UpdateByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "MaxSizeInBytes", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int64", + "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Tags": "System.Collections.Hashtable", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlDatabase", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseSqlPoolRestorePoint", + "Name": "Get-AzSynapseSqlPoolRestorePoint", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlPoolRestorePoint", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "RestorePointType": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", + "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", + "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", + "Location": "System.String", + "RestorePointLabel": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "restorePoint", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "New", + "NounName": "AzSynapseSqlPoolRestorePoint", + "Name": "New-AzSynapseSqlPoolRestorePoint", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSqlPoolRestorePoint", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "CreateByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "RestorePointType": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", + "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", + "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", + "Location": "System.String", + "RestorePointLabel": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "restorePoint", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "CreateByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "CreateByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "RestorePointLabel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Restore", + "NounName": "AzSynapseSqlPool", + "Name": "Restore-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.RestoreAzureSynapseSqlPool", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "RestoreFromBackupIdByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "FromRestorePoint", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "PerformanceLevel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BackupResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BackupWorkspaceName", + "AliasList": [ + "BackupServerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BackupSqlPoolName", + "AliasList": [ + "BackupDatabaseName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BackupSqlPoolObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BackupResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SourceResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SourceWorkspaceName", + "AliasList": [ + "SourceServerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SourceSqlPoolName", + "AliasList": [ + "SourceDatabaseName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SourceSqlPoolObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SourceResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "RestorePoint", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "RestoreFromBackupIdByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RestoreFromBackupIdByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RestoreFromBackupNameByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupWorkspaceName", + "AliasList": [ + "BackupServerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupSqlPoolName", + "AliasList": [ + "BackupDatabaseName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RestoreFromBackupNameByParentObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupWorkspaceName", + "AliasList": [ + "BackupServerName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "BackupSqlPoolName", + "AliasList": [ + "BackupDatabaseName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RestoreFromBackupInputObjectByNameParameterSet", "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromBackup", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "ResourceGroupName", @@ -66110,12 +82832,88 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "BackupSqlPoolObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -66162,17 +82960,15 @@ }, { "ParameterMetadata": { - "Name": "EnableAutoScale", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -66188,36 +82984,56 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "RestoreFromRestorePointIdByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", + "Name": "FromRestorePoint", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66225,35 +83041,33 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -66262,12 +83076,12 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66275,23 +83089,23 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66299,18 +83113,18 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeSize", + "Name": "SourceResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -66322,11 +83136,33 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePoint", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.DateTime" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false @@ -66338,7 +83174,7 @@ }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -66355,19 +83191,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66450,18 +83286,16 @@ ] }, { - "Name": "SetByParentObjectParameterSet", + "Name": "RestoreFromRestorePointIdByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "SparkPoolName" - ], + "Name": "FromRestorePoint", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66471,7 +83305,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, @@ -66485,7 +83319,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -66557,12 +83391,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PerformanceLevel", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66572,25 +83406,49 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "EnableAutoScale", + "Name": "SourceResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePoint", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.DateTime]", + "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Boolean" + "System.DateTime" ], "Methods": [], "Constructors": [] @@ -66607,12 +83465,12 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66620,8 +83478,32 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -66631,12 +83513,12 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66644,8 +83526,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -66655,17 +83537,59 @@ }, { "ParameterMetadata": { - "Name": "EnableAutoPause", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RestoreFromRestorePointNameByNameParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "FromRestorePoint", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -66674,6 +83598,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -66681,12 +83629,60 @@ }, { "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PerformanceLevel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SourceResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66694,8 +83690,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -66705,12 +83701,14 @@ }, { "ParameterMetadata": { - "Name": "NodeCount", - "AliasList": [], + "Name": "SourceWorkspaceName", + "AliasList": [ + "SourceServerName" + ], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66718,19 +83716,21 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], + "Name": "SourceSqlPoolName", + "AliasList": [ + "SourceDatabaseName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -66741,23 +83741,19 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -66774,19 +83770,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -66869,33 +83865,55 @@ ] }, { - "Name": "SetByInputObjectParameterSet", + "Name": "RestoreFromRestorePointNameByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "FromRestorePoint", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSparkPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "AutoPause": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AutoScale": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "LibraryRequirements": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", - "CreationDate": "System.Nullable`1[System.DateTime]", - "NodeCount": "System.Nullable`1[System.Int32]", + "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", - "Id": "System.String", - "Location": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", "TagsTable": "System.String", - "DefaultSparkLogFolder": "System.String", - "NodeSize": "System.String", + "Location": "System.String", + "Id": "System.String", "Name": "System.String", - "SparkVersion": "System.String", - "SparkEventsFolder": "System.String", - "NodeSizeFamily": "System.String", "Type": "System.String" }, "ElementType": null, @@ -66933,7 +83951,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sparkPool", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -66952,72 +83970,22 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoScale", + "Name": "SourceResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -67026,12 +83994,14 @@ }, { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", - "AliasList": [], + "Name": "SourceWorkspaceName", + "AliasList": [ + "SourceServerName" + ], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67039,93 +84009,21 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoPause", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], + "Name": "SourceSqlPoolName", + "AliasList": [ + "SourceDatabaseName" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -67136,23 +84034,19 @@ "Methods": [], "Constructors": [] }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], + "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -67169,19 +84063,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67264,16 +84158,16 @@ ] }, { - "Name": "SetByResourceIdParameterSet", + "Name": "RestoreFromRestorePointInputObjectByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "FromRestorePoint", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67283,7 +84177,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, @@ -67292,12 +84186,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67307,7 +84201,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -67316,62 +84210,36 @@ }, { "ParameterMetadata": { - "Name": "EnableAutoScale", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67379,58 +84247,8 @@ "Constructors": [] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoPause", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, "ValidateNotNullOrEmpty": true }, "Mandatory": false, @@ -67440,59 +84258,85 @@ }, { "ParameterMetadata": { - "Name": "NodeCount", + "Name": "SourceSqlPoolObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -67509,19 +84353,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67608,207 +84452,7 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoScale", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoScaleMinNodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoScaleMaxNodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "EnableAutoPause", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.Boolean]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.Boolean" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AutoPauseDelayInMinute", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 5, - "ValidateRangeMax": 10080, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeCount", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": 3, - "ValidateRangeMax": 200, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "NodeSize", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [ - "Small", - "Medium", - "Large" - ], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SparkVersion", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -67825,19 +84469,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "LibraryRequirementsFilePath", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -67924,9 +84568,9 @@ }, { "VerbName": "Get", - "NounName": "AzSynapseSqlDatabase", - "Name": "Get-AzSynapseSqlDatabase", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlDatabase", + "NounName": "AzSynapseSqlPool", + "Name": "Get-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlPool", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, @@ -67935,13 +84579,20 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", "MaxSizeBytes": "System.Nullable`1[System.Int64]", "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -67983,7 +84634,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlDatabase", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -68050,13 +84701,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -68249,6 +84918,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -68324,7 +85017,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -68394,6 +85087,30 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -68436,16 +85153,16 @@ ] }, { - "Name": "GetByResourceIdParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Version", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68457,7 +85174,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -68504,8 +85221,56 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "GetByResourceIdParameterSet", "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -68552,9 +85317,9 @@ }, { "VerbName": "New", - "NounName": "AzSynapseSqlDatabase", - "Name": "New-AzSynapseSqlDatabase", - "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSqlDatabase", + "NounName": "AzSynapseSqlPool", + "Name": "New-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSqlPool", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, @@ -68563,13 +85328,20 @@ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", "MaxSizeBytes": "System.Nullable`1[System.Int64]", "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -68611,7 +85383,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlDatabase", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -68666,7 +85438,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -68749,6 +85521,24 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "Tag", "AliasList": [], @@ -68768,7 +85558,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Collation", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", @@ -68786,12 +85576,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "MaxSizeInBytes", + "Name": "Collation", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68909,7 +85699,7 @@ }, { "ParameterMetadata": { - "Name": "Collation", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", @@ -68926,19 +85716,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "MaxSizeInBytes", + "Name": "Collation", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -68979,6 +85769,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Tag", @@ -69078,7 +85892,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -69150,7 +85964,7 @@ }, { "ParameterMetadata": { - "Name": "Collation", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", @@ -69167,19 +85981,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "MaxSizeInBytes", + "Name": "Collation", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69220,6 +86034,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Tag", @@ -69336,6 +86174,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Tag", @@ -69430,9 +86292,9 @@ }, { "VerbName": "Remove", - "NounName": "AzSynapseSqlDatabase", - "Name": "Remove-AzSynapseSqlDatabase", - "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlDatabase", + "NounName": "AzSynapseSqlPool", + "Name": "Remove-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlPool", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, @@ -69509,13 +86371,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -69585,13 +86465,20 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", "MaxSizeBytes": "System.Nullable`1[System.Int64]", "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -69633,7 +86520,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlDatabase", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -69757,7 +86644,31 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -69774,14 +86685,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -69805,12 +86716,12 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "Version", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -69822,7 +86733,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -69974,7 +86885,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -70046,60 +86957,12 @@ }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", + "Name": "Version", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70109,127 +86972,12 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "DeleteByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", - "Tags": "System.Collections.Hashtable", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlDatabase", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { @@ -70345,16 +87093,16 @@ ] }, { - "Name": "DeleteByResourceIdParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Version", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70366,127 +87114,11 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ { "ParameterMetadata": { "Name": "PassThru", @@ -70593,214 +87225,102 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Test", - "NounName": "AzSynapseSqlDatabase", - "Name": "Test-AzSynapseSqlDatabase", - "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSqlDatabase", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "TestByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, { - "Name": "TestByNameParameterSet", + "Name": "DeleteByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70819,12 +87339,12 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70834,21 +87354,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -70858,9 +87378,33 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -70907,11 +87451,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "DeleteByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -70931,35 +87475,44 @@ "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": true + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "PassThru", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], @@ -70971,97 +87524,39 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "TestByParentObjectParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -71071,9 +87566,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -71123,234 +87618,32 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzSynapseSqlDatabase", - "Name": "Update-AzSynapseSqlDatabase", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlDatabase", + "VerbName": "Resume", + "NounName": "AzSynapseSqlPool", + "Name": "Resume-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.ResumeAzureSynapseSqlPool", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", + "DefaultParameterSetName": "ResumeByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", "MaxSizeBytes": "System.Nullable`1[System.Int64]", "Collation": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlDatabase", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "MaxSizeInBytes", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", - "Tags": "System.Collections.Hashtable", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -71392,20 +87685,39 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlDatabase", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] } ] }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { - "Name": "ResourceId", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -71423,12 +87735,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Tag", + "Name": "Name", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -71438,8 +87750,169 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "PassThru", "AliasList": [], @@ -71512,7 +87985,7 @@ ], "ParameterSets": [ { - "Name": "UpdateByNameParameterSet", + "Name": "ResumeByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -71586,54 +88059,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "MaxSizeInBytes", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -71724,7 +88149,7 @@ ] }, { - "Name": "UpdateByParentObjectParameterSet", + "Name": "ResumeByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -71750,30 +88175,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "MaxSizeInBytes", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int64", - "AssemblyQualifiedName": "System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -71781,7 +88182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -71851,30 +88252,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -71965,7 +88342,7 @@ ] }, { - "Name": "UpdateByInputObjectParameterSet", + "Name": "ResumeByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -71973,13 +88350,20 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlDatabase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "SystemData": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", "MaxSizeBytes": "System.Nullable`1[System.Int64]", "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -72021,7 +88405,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlDatabase", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -72038,30 +88422,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -72152,7 +88512,7 @@ ] }, { - "Name": "UpdateByResourceIdParameterSet", + "Name": "ResumeByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -72178,30 +88538,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -72386,21 +88722,21 @@ ], "AliasList": [] }, - { - "VerbName": "Get", - "NounName": "AzSynapseSqlPool", - "Name": "Get-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlPool", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + { + "VerbName": "Suspend", + "NounName": "AzSynapseSqlPool", + "Name": "Suspend-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.SuspendAzureSynapseSqlPool", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "SuspendByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", @@ -72521,31 +88857,13 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -72610,6 +88928,78 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "ResourceId", "AliasList": [], @@ -72628,6 +89018,42 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -72664,7 +89090,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "SuspendByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -72733,6 +89159,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -72740,12 +89190,12 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72755,7 +89205,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -72804,7 +89254,7 @@ ] }, { - "Name": "GetByParentObjectParameterSet", + "Name": "SuspendByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -72825,7 +89275,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -72837,7 +89287,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -72909,12 +89359,12 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72924,7 +89374,31 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -72973,16 +89447,94 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "SuspendByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Version", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -72992,7 +89544,31 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -73041,7 +89617,7 @@ ] }, { - "Name": "GetByResourceIdParameterSet", + "Name": "SuspendByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -73069,12 +89645,12 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -73084,7 +89660,123 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -73136,68 +89828,25 @@ "AliasList": [] }, { - "VerbName": "Get", - "NounName": "AzSynapseSqlPoolRestorePoint", - "Name": "Get-AzSynapseSqlPoolRestorePoint", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlPoolRestorePoint", + "VerbName": "Test", + "NounName": "AzSynapseSqlPool", + "Name": "Test-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSqlPool", "SupportsShouldProcess": false, "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "TestByNameParameterSet", "OutputTypes": [ { "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "RestorePointType": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", - "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", - "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", - "Location": "System.String", - "RestorePointLabel": "System.String" - }, + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "restorePoint", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ParameterSets": [ "__AllParameterSets" @@ -73259,13 +89908,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -73330,96 +89997,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, { "Name": "DefaultProfile", "AliasList": [ @@ -73456,7 +90033,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "TestByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -73530,6 +90107,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -73572,7 +90173,7 @@ ] }, { - "Name": "GetByParentObjectParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { @@ -73600,79 +90201,26 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "Version", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { @@ -73717,28 +90265,27 @@ ] }, { - "Name": "GetByInputObjectParameterSet", + "Name": "TestByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", + "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -73780,7 +90327,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -73799,51 +90346,7 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "GetByResourceIdParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceId", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -73867,48 +90370,28 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "Version", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "__AllParameterSets", - "Parameters": [ + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -73954,20 +90437,20 @@ "AliasList": [] }, { - "VerbName": "New", + "VerbName": "Update", "NounName": "AzSynapseSqlPool", - "Name": "New-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.NewAzureSynapseSqlPool", + "Name": "Update-AzSynapseSqlPool", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlPool", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "CreateByNameParameterSet", + "DefaultParameterSetName": "UpdateByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", @@ -74035,7 +90518,25 @@ ], "Parameters": [ { - "Name": "ResourceGroupName", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -74053,7 +90554,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceName", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -74070,13 +90571,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, { "Name": "WorkspaceObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -74142,30 +90661,84 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "Version", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74214,12 +90787,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Collation", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74229,7 +90802,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "AsJob", @@ -74285,7 +90858,7 @@ ], "ParameterSets": [ { - "Name": "CreateByNameParameterSet", + "Name": "UpdateByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -74337,7 +90910,7 @@ }, { "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", @@ -74361,12 +90934,12 @@ }, { "ParameterMetadata": { - "Name": "Collation", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74376,7 +90949,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -74385,7 +90958,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "PerformanceLevel", "AliasList": [], "Type": { "Namespace": "System", @@ -74402,7 +90975,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -74433,12 +91006,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74521,8 +91094,32 @@ ] }, { - "Name": "CreateByParentObjectParameterSet", + "Name": "UpdateByParentObjectParameterSet", "Parameters": [ + { + "ParameterMetadata": { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "WorkspaceObject", @@ -74530,7 +91127,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -74600,6 +91197,30 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "PerformanceLevel", @@ -74619,19 +91240,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Collation", + "Name": "Version", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74650,12 +91271,12 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74665,13 +91286,81 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { "Name": "Version", @@ -74696,6 +91385,176 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "UpdateByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "Tags": "System.Collections.Hashtable", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", + "ProvisioningState": "System.String", + "Status": "System.String", + "CreateMode": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sqlPool", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Tag", @@ -74720,6 +91579,78 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "PerformanceLevel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Version", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Int32", + "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "AsJob", @@ -74786,11 +91717,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "UpdateByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -74812,6 +91743,54 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PerformanceLevel", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "Version", @@ -74838,12 +91817,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -74929,14 +91908,14 @@ "AliasList": [] }, { - "VerbName": "Remove", - "NounName": "AzSynapseSqlPool", - "Name": "Remove-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlPool", + "VerbName": "Reset", + "NounName": "AzSynapseSqlAdvancedThreatProtectionSetting", + "Name": "Reset-AzSynapseSqlAdvancedThreatProtectionSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.ClearAzureSynapseSqlAdvancedThreatProtectionSetting", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "DeleteByNameParameterSet", + "DefaultParameterSetName": "ClearByNameParameterSet", "OutputTypes": [ { "Type": { @@ -74992,48 +91971,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -75098,78 +92041,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "ResourceId", "AliasList": [], @@ -75224,24 +92095,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ @@ -75278,7 +92131,7 @@ ], "ParameterSets": [ { - "Name": "DeleteByNameParameterSet", + "Name": "ClearByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -75328,54 +92181,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "PassThru", @@ -75424,30 +92229,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -75490,40 +92271,16 @@ ] }, { - "Name": "DeleteByParentObjectParameterSet", + "Name": "ClearByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -75567,54 +92324,30 @@ { "Name": "GetType", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { @@ -75665,30 +92398,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "Force", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -75731,16 +92440,16 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "ClearByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Version", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75752,7 +92461,7 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -75807,7 +92516,75 @@ }, { "ParameterMetadata": { - "Name": "Force", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -75869,96 +92646,264 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [ + "Clear-AzSynapseSqlAdvancedThreatProtectionSetting" + ] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseSqlAdvancedThreatProtectionSetting", + "Name": "Get-AzSynapseSqlAdvancedThreatProtectionSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlAdvancedThreatProtectionSetting", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ { - "Name": "DeleteByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSServerSecurityAlertPolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSServerSecurityAlertPolicy, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "ThreatDetectionState": "Microsoft.Azure.Commands.Synapse.Models.ThreatDetectionStateType", + "EmailAdmins": "System.Boolean", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "NotificationRecipientsEmails": "System.String", + "StorageAccountName": "System.String", + "ExcludedDetectionTypes": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "policy", + "Type": "System.Reflection.RuntimeParameterInfo" }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Version", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75977,12 +92922,12 @@ }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "WorkspaceName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -75992,25 +92937,40 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -76022,29 +92982,87 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "Force", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { @@ -76089,7 +93107,7 @@ ] }, { - "Name": "DeleteByResourceIdParameterSet", + "Name": "GetByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -76113,92 +93131,35 @@ "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": true - }, - { - "ParameterMetadata": { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Force", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -76210,7 +93171,12 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { "Name": "DefaultProfile", @@ -76256,37 +93222,29 @@ "AliasList": [] }, { - "VerbName": "Restore", - "NounName": "AzSynapseSqlPool", - "Name": "Restore-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.RestoreAzureSynapseSqlPool", + "VerbName": "Update", + "NounName": "AzSynapseSqlAdvancedThreatProtectionSetting", + "Name": "Update-AzSynapseSqlAdvancedThreatProtectionSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlAdvancedThreatProtectionSetting", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "RestoreFromBackupIdByNameParameterSet", + "DefaultParameterSetName": "UpdateByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSServerSecurityAlertPolicy", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSServerSecurityAlertPolicy, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" + "ThreatDetectionState": "Microsoft.Azure.Commands.Synapse.Models.ThreatDetectionStateType", + "EmailAdmins": "System.Boolean", + "RetentionInDays": "System.Nullable`1[System.UInt32]", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "NotificationRecipientsEmails": "System.String", + "StorageAccountName": "System.String", + "ExcludedDetectionTypes": "System.String[]" }, "ElementType": null, "GenericTypeArguments": [], @@ -76323,7 +93281,15 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "policy", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -76336,42 +93302,6 @@ } ], "Parameters": [ - { - "Name": "FromBackup", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "FromRestorePoint", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "ResourceGroupName", "AliasList": [], @@ -76409,12 +93339,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -76480,61 +93410,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PerformanceLevel", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "BackupResourceGroupName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -76552,9 +93428,9 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "BackupWorkspaceName", + "Name": "NotificationRecipientsEmail", "AliasList": [ - "BackupServerName" + "NotificationRecipientsEmails" ], "Type": { "Namespace": "System", @@ -76569,110 +93445,22 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "BackupSqlPoolName", + "Name": "EmailAdmin", "AliasList": [ - "BackupDatabaseName" + "EmailAdmins" ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "BackupSqlPoolObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.Boolean" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "BackupResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -76682,54 +93470,14 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "SourceResourceGroupName", + "Name": "ExcludedDetectionType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "SourceWorkspaceName", - "AliasList": [ - "SourceServerName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "SourceSqlPoolName", - "AliasList": [ - "SourceDatabaseName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -76737,82 +93485,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "SourceSqlPoolObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "SourceResourceId", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -76830,16 +93506,16 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "RestorePoint", + "Name": "RetentionInDays", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.DateTime" + "System.UInt32" ], "Methods": [], "Constructors": [] @@ -76847,7 +93523,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { "Name": "AsJob", @@ -76903,16 +93579,16 @@ ], "ParameterSets": [ { - "Name": "RestoreFromBackupIdByNameParameterSet", + "Name": "UpdateByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromBackup", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -76922,16 +93598,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -76948,15 +93624,17 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], + "Name": "NotificationRecipientsEmail", + "AliasList": [ + "NotificationRecipientsEmails" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -76970,23 +93648,51 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], + "Type": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.Boolean" + ], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "BackupResourceId", + "Name": "ExcludedDetectionType", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -76994,16 +93700,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -77020,29 +93726,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "RetentionInDays", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.UInt32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -77115,40 +93823,16 @@ ] }, { - "Name": "RestoreFromBackupIdByParentObjectParameterSet", + "Name": "UpdateByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromBackup", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -77220,8 +93904,10 @@ }, { "ParameterMetadata": { - "Name": "BackupResourceId", - "AliasList": [], + "Name": "NotificationRecipientsEmail", + "AliasList": [ + "NotificationRecipientsEmails" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -77235,24 +93921,28 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -77261,21 +93951,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "ExcludedDetectionType", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -77292,12 +93982,12 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "StorageAccountName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77307,7 +93997,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -77316,51 +94006,33 @@ }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RetentionInDays", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } + "GenericTypeArguments": [ + "System.UInt32" ], + "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RestoreFromBackupNameByNameParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "FromBackup", + "Name": "AsJob", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -77377,38 +94049,58 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "UpdateByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -77432,8 +94124,10 @@ }, { "ParameterMetadata": { - "Name": "BackupResourceGroupName", - "AliasList": [], + "Name": "NotificationRecipientsEmail", + "AliasList": [ + "NotificationRecipientsEmails" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -77447,7 +94141,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -77456,17 +94150,19 @@ }, { "ParameterMetadata": { - "Name": "BackupWorkspaceName", + "Name": "EmailAdmin", "AliasList": [ - "BackupServerName" + "EmailAdmins" ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -77475,23 +94171,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "BackupSqlPoolName", - "AliasList": [ - "BackupDatabaseName" - ], + "Name": "ExcludedDetectionType", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -77499,16 +94193,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -77525,29 +94219,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "RetentionInDays", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.UInt32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -77612,121 +94308,22 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RestoreFromBackupNameByParentObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "FromBackup", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "BackupResourceGroupName", - "AliasList": [], + "Name": "NotificationRecipientsEmail", + "AliasList": [ + "NotificationRecipientsEmails" + ], "Type": { "Namespace": "System", "Name": "System.String", @@ -77740,7 +94337,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -77749,17 +94346,19 @@ }, { "ParameterMetadata": { - "Name": "BackupWorkspaceName", + "Name": "EmailAdmin", "AliasList": [ - "BackupServerName" + "EmailAdmins" ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[System.Boolean]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.Boolean" + ], "Methods": [], "Constructors": [] }, @@ -77768,23 +94367,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "BackupSqlPoolName", - "AliasList": [ - "BackupDatabaseName" - ], + "Name": "ExcludedDetectionType", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -77792,16 +94389,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -77818,29 +94415,31 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "RetentionInDays", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], + "GenericTypeArguments": [ + "System.UInt32" + ], "Methods": [], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -77911,18 +94510,244 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Reset", + "NounName": "AzSynapseSqlVulnerabilityAssessmentSetting", + "Name": "Reset-AzSynapseSqlVulnerabilityAssessmentSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.ClearAzureSynapseSqlVulnerabilityAssessmentSetting", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "ClearByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "RestoreFromBackupInputObjectByNameParameterSet", + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "ClearByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromBackup", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77932,16 +94757,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -77958,6 +94783,30 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -77965,12 +94814,12 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -77980,33 +94829,76 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "BackupSqlPoolObject", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "ClearByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", + "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -78048,7 +94940,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -78058,45 +94950,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78160,102 +95028,30 @@ "Methods": [ { "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "RestoreFromRestorePointIdByNameParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "FromRestorePoint", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "ClearByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -78279,12 +95075,12 @@ }, { "ParameterMetadata": { - "Name": "SourceResourceId", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78294,26 +95090,24 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "RestorePoint", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], + "GenericTypeArguments": [], "Methods": [], "Constructors": [] }, @@ -78329,36 +95123,56 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78439,18 +95253,263 @@ "ValueFromPipelineByPropertyName": false } ] + } + ], + "AliasList": [ + "Clear-AzSynapseSqlVulnerabilityAssessmentSetting" + ] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseSqlVulnerabilityAssessmentSetting", + "Name": "Get-AzSynapseSqlVulnerabilityAssessmentSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlVulnerabilityAssessmentSetting", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessmentSettingsModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "RecurringScansInterval": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "EmailAdmins": "System.Boolean", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "StorageAccountName": "System.String", + "ScanResultsContainerName": "System.String", + "NotificationEmail": "System.String[]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "assessment", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { - "Name": "RestoreFromRestorePointIdByParentObjectParameterSet", + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromRestorePoint", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78460,7 +95519,31 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, "Mandatory": true, "Position": -2147483648, @@ -78469,12 +95552,56 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "GetByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -78546,114 +95673,31 @@ }, { "ParameterMetadata": { - "Name": "PerformanceLevel", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SourceResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "RestorePoint", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Nullable`1[System.DateTime]", - "AssemblyQualifiedName": "System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "System.DateTime" - ], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -78665,15 +95709,20 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "GetByResourceIdParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "AsJob", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78683,9 +95732,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -78732,20 +95781,35 @@ ] }, { - "Name": "RestoreFromRestorePointNameByNameParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "FromRestorePoint", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -78753,38 +95817,475 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Update", + "NounName": "AzSynapseSqlVulnerabilityAssessmentSetting", + "Name": "Update-AzSynapseSqlVulnerabilityAssessmentSetting", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlVulnerabilityAssessmentSetting", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, + "SupportsPaging": false, + "DefaultParameterSetName": "UpdateByStorageAccountNameAndNameParameterSet", + "OutputTypes": [ + { + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessmentSettingsModel", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessmentSettingsModel, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "RecurringScansInterval": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "EmailAdmins": "System.Boolean", + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "StorageAccountName": "System.String", + "ScanResultsContainerName": "System.String", + "NotificationEmail": "System.String[]" }, - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "assessment", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "StorageAccountName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ScanResultsContainerName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "BlobStorageSasUri", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Uri", + "AssemblyQualifiedName": "System.Uri, System.Private.Uri, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "RecurringScansInterval", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "NotificationEmail", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "UpdateByStorageAccountNameAndNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -78801,14 +96302,14 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -78832,7 +96333,7 @@ }, { "ParameterMetadata": { - "Name": "SourceResourceGroupName", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -78856,10 +96357,8 @@ }, { "ParameterMetadata": { - "Name": "SourceWorkspaceName", - "AliasList": [ - "SourceServerName" - ], + "Name": "ScanResultsContainerName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -78875,25 +96374,108 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SourceSqlPoolName", - "AliasList": [ - "SourceDatabaseName" - ], + "Name": "RecurringScansInterval", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -78901,19 +96483,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -78925,21 +96509,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NotificationEmail", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -79020,16 +96604,16 @@ ] }, { - "Name": "RestoreFromRestorePointNameByParentObjectParameterSet", + "Name": "UpdateByBlobStorageSasUriAndNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromRestorePoint", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79039,93 +96623,16 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "SourceResourceGroupName", + "Name": "WorkspaceName", "AliasList": [], "Type": { "Namespace": "System", @@ -79142,21 +96649,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "SourceWorkspaceName", - "AliasList": [ - "SourceServerName" - ], + "Name": "BlobStorageSasUri", + "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Uri", + "AssemblyQualifiedName": "System.Uri, System.Private.Uri, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79175,18 +96680,101 @@ }, { "ParameterMetadata": { - "Name": "SourceSqlPoolName", - "AliasList": [ - "SourceDatabaseName" - ], + "Name": "RecurringScansInterval", + "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -79194,19 +96782,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79218,21 +96808,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NotificationEmail", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -79313,21 +96903,74 @@ ] }, { - "Name": "RestoreFromRestorePointInputObjectByNameParameterSet", + "Name": "UpdateByStorageAccountNameAndInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "FromRestorePoint", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] }, "ValidateSet": [], "ValidateRangeMin": null, @@ -79336,12 +96979,12 @@ }, "Mandatory": true, "Position": -2147483648, - "ValueFromPipeline": false, + "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "StorageAccountName", "AliasList": [], "Type": { "Namespace": "System", @@ -79365,31 +97008,7 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "ScanResultsContainerName", "AliasList": [], "Type": { "Namespace": "System", @@ -79413,38 +97032,16 @@ }, { "ParameterMetadata": { - "Name": "SourceSqlPoolObject", + "Name": "RecurringScansInterval", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, { "Name": "Equals", "Parameters": [ @@ -79461,42 +97058,97 @@ "ReturnType": "System.Int32" }, { - "Name": "GetType", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ + "ReturnType": "System.String" + }, { - "Name": "", - "ReturnType": null, + "Name": "ToString", "Parameters": [ { - "Name": "sqlPool", + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", "Type": "System.Reflection.RuntimeParameterInfo" } - ] + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } - ] + ], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -79508,21 +97160,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "NotificationEmail", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -79603,502 +97255,93 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "UpdateByBlobStorageSasUriAndInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" }, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "Clear", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Void" + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Resume", - "NounName": "AzSynapseSqlPool", - "Name": "Resume-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.ResumeAzureSynapseSqlPool", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, - "SupportsPaging": false, - "DefaultParameterSetName": "ResumeByNameParameterSet", - "OutputTypes": [ - { - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "ResourceId", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "ResumeByNameParameterSet", - "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "BlobStorageSasUri", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Uri", + "AssemblyQualifiedName": "System.Uri, System.Private.Uri, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80110,23 +97353,108 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "RecurringScansInterval", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -80134,19 +97462,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80158,21 +97488,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "NotificationEmail", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -80253,11 +97583,11 @@ ] }, { - "Name": "ResumeByParentObjectParameterSet", + "Name": "UpdateByStorageAccountNameAndResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -80281,37 +97611,64 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "StorageAccountName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ScanResultsContainerName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RecurringScansInterval", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, { "Name": "Equals", "Parameters": [ @@ -80328,42 +97685,97 @@ "ReturnType": "System.Int32" }, { - "Name": "GetType", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ + "ReturnType": "System.String" + }, { - "Name": "", - "ReturnType": null, + "Name": "ToString", "Parameters": [ { - "Name": "workspace", + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", "Type": "System.Reflection.RuntimeParameterInfo" } - ] + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } - ] + ], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80373,6 +97785,30 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NotificationEmail", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -80446,94 +97882,16 @@ ] }, { - "Name": "ResumeByInputObjectParameterSet", + "Name": "UpdateByBlobStorageSasUriAndResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", + "Name": "ResourceId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80543,21 +97901,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "BlobStorageSasUri", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Uri", + "AssemblyQualifiedName": "System.Uri, System.Private.Uri, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80567,38 +97925,108 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], + "Name": "RecurringScansInterval", + "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ { - "Name": "Clear", + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", "Parameters": [], - "ReturnType": "System.Void" + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } ], "Constructors": [] @@ -80606,26 +98034,23 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - } - ] - }, - { - "Name": "ResumeByResourceIdParameterSet", - "Parameters": [ + }, { "ParameterMetadata": { - "Name": "ResourceId", - "AliasList": [], + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], "Type": { "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80637,21 +98062,21 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "NotificationEmail", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, - "ElementType": null, + "ElementType": "System.String", "GenericTypeArguments": [], "Methods": [], "Constructors": [] @@ -80736,12 +98161,123 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "PassThru", + "Name": "RecurringScansInterval", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "EmailAdmin", + "AliasList": [ + "EmailAdmins" + ], + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -80751,6 +98287,30 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "NotificationEmail", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, "Mandatory": false, @@ -80827,37 +98387,25 @@ "AliasList": [] }, { - "VerbName": "Suspend", - "NounName": "AzSynapseSqlPool", - "Name": "Suspend-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.SuspendAzureSynapseSqlPool", - "SupportsShouldProcess": true, - "ConfirmImpact": 2, + "VerbName": "Get", + "NounName": "AzSynapseSqlActiveDirectoryAdministrator", + "Name": "Get-AzSynapseSqlActiveDirectoryAdministrator", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseSqlActiveDirectoryAdministrator", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, "SupportsPaging": false, - "DefaultParameterSetName": "SuspendByNameParameterSet", + "DefaultParameterSetName": "GetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSWorkspaceAadAdminInfo", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSWorkspaceAadAdminInfo, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "DisplayName": "System.String", + "ObjectId": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -80894,7 +98442,15 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "info", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -80944,30 +98500,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -81032,78 +98570,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "ResourceId", "AliasList": [], @@ -81122,247 +98588,47 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, { "Name": "DefaultProfile", "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ - { - "Name": "SuspendByNameParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - } - ] - }, + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ { - "Name": "SuspendByParentObjectParameterSet", + "Name": "GetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -81379,107 +98645,6 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, @@ -81487,12 +98652,12 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "WorkspaceName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -81502,9 +98667,9 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -81551,7 +98716,7 @@ ] }, { - "Name": "SuspendByInputObjectParameterSet", + "Name": "GetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -81559,20 +98724,19 @@ "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", + "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -81614,7 +98778,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -81631,54 +98795,6 @@ "ValueFromPipeline": true, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -81721,7 +98837,7 @@ ] }, { - "Name": "SuspendByResourceIdParameterSet", + "Name": "GetByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -81747,54 +98863,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -81839,54 +98907,6 @@ { "Name": "__AllParameterSets", "Parameters": [ - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -81932,14 +98952,14 @@ "AliasList": [] }, { - "VerbName": "Test", - "NounName": "AzSynapseSqlPool", - "Name": "Test-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseSqlPool", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "VerbName": "Remove", + "NounName": "AzSynapseSqlActiveDirectoryAdministrator", + "Name": "Remove-AzSynapseSqlActiveDirectoryAdministrator", + "ClassName": "Microsoft.Azure.Commands.Synapse.RemoveAzureSynapseSqlActiveDirectoryAdministrator", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "TestByNameParameterSet", + "DefaultParameterSetName": "RemoveByNameParameterSet", "OutputTypes": [ { "Type": { @@ -81995,48 +99015,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -82101,6 +99085,78 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, { "Name": "DefaultProfile", "AliasList": [ @@ -82137,16 +99193,88 @@ ], "ParameterSets": [ { - "Name": "TestByNameParameterSet", + "Name": "RemoveByNameParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82156,7 +99284,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -82165,12 +99293,12 @@ }, { "ParameterMetadata": { - "Name": "WorkspaceName", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82180,21 +99308,166 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "RemoveByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, "Mandatory": true, "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82204,21 +99477,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82228,7 +99501,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -82277,11 +99550,11 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "RemoveByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -82305,12 +99578,12 @@ }, { "ParameterMetadata": { - "Name": "Version", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82320,7 +99593,55 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -82369,93 +99690,40 @@ ] }, { - "Name": "TestByParentObjectParameterSet", + "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "workspace", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, - "ValueFromPipeline": true, + "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Name", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82465,21 +99733,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", + "Name": "Force", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82489,7 +99757,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, @@ -82541,181 +99809,25 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzSynapseSqlPool", - "Name": "Update-AzSynapseSqlPool", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseSqlPool", + "VerbName": "Set", + "NounName": "AzSynapseSqlActiveDirectoryAdministrator", + "Name": "Set-AzSynapseSqlActiveDirectoryAdministrator", + "ClassName": "Microsoft.Azure.Commands.Synapse.SetAzureSynapseSqlActiveDirectoryAdministrator", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "UpdateByNameParameterSet", + "DefaultParameterSetName": "SetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Version", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "WorkspaceObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSWorkspaceAadAdminInfo", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSWorkspaceAadAdminInfo, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" + "ResourceGroupName": "System.String", + "WorkspaceName": "System.String", + "DisplayName": "System.String", + "ObjectId": "System.String" }, "ElementType": null, "GenericTypeArguments": [], @@ -82752,37 +99864,81 @@ "ReturnType": null, "Parameters": [ { - "Name": "workspace", + "Name": "info", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "resourceGroupName", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "workspaceName", "Type": "System.Reflection.RuntimeParameterInfo" } ] } ] }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", + "ManagedResourceGroupName": "System.String", "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -82824,7 +99980,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "sqlPool", + "Name": "workspace", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -82855,25 +100011,7 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - { - "Name": "PerformanceLevel", + "Name": "DisplayName", "AliasList": [], "Type": { "Namespace": "System", @@ -82891,12 +100029,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "PassThru", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Guid", + "AssemblyQualifiedName": "System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -82906,7 +100044,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, { "Name": "AsJob", @@ -82962,7 +100100,7 @@ ], "ParameterSets": [ { - "Name": "UpdateByNameParameterSet", + "Name": "SetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -83014,7 +100152,7 @@ }, { "ParameterMetadata": { - "Name": "Name", + "Name": "DisplayName", "AliasList": [], "Type": { "Namespace": "System", @@ -83038,60 +100176,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PerformanceLevel", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "Version", + "Name": "ObjectId", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Guid", + "AssemblyQualifiedName": "System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83108,30 +100198,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "AsJob", @@ -83198,40 +100264,16 @@ ] }, { - "Name": "UpdateByParentObjectParameterSet", + "Name": "SetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "WorkspaceObject", + "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -83303,12 +100345,60 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "DisplayName", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "ObjectId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.Guid", + "AssemblyQualifiedName": "System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83327,7 +100417,51 @@ }, { "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "SetByResourceIdParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", "AliasList": [], "Type": { "Namespace": "System", @@ -83344,19 +100478,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Version", + "Name": "DisplayName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83368,19 +100502,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Guid", + "AssemblyQualifiedName": "System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83390,7 +100524,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -83467,12 +100601,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Version", + "Name": "DisplayName", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83484,19 +100618,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "PassThru", + "Name": "ObjectId", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.Guid", + "AssemblyQualifiedName": "System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83506,7 +100640,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, "Position": -2147483648, @@ -83577,115 +100711,187 @@ "ValueFromPipelineByPropertyName": false } ] - }, + } + ], + "AliasList": [] + }, + { + "VerbName": "Get", + "NounName": "AzSynapseWorkspace", + "Name": "Get-AzSynapseWorkspace", + "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseWorkspace", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "GetByNameParameterSet", + "OutputTypes": [ { - "Name": "UpdateByInputObjectParameterSet", - "Parameters": [ - { - "ParameterMetadata": { - "Name": "InputObject", - "AliasList": [], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "Tags": "System.Collections.Hashtable", - "RestorePointInTime": "System.Nullable`1[System.DateTime]", - "CreationDate": "System.Nullable`1[System.DateTime]", - "MaxSizeBytes": "System.Nullable`1[System.Int64]", - "Collation": "System.String", - "SourceDatabaseId": "System.String", - "RecoverableDatabaseId": "System.String", - "ProvisioningState": "System.String", - "Status": "System.String", - "CreateMode": "System.String", - "TagsTable": "System.String", - "Location": "System.String", - "Id": "System.String", - "Name": "System.String", - "Type": "System.String" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "sqlPool", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": true, - "Position": -2147483648, - "ValueFromPipeline": true, - "ValueFromPipelineByPropertyName": false + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" }, - { - "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], - "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Name", + "AliasList": [ + "WorkspaceName" + ], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "GetByNameParameterSet", + "Parameters": [ { "ParameterMetadata": { - "Name": "PerformanceLevel", + "Name": "ResourceGroupName", "AliasList": [], "Type": { "Namespace": "System", @@ -83709,12 +100915,14 @@ }, { "ParameterMetadata": { - "Name": "Version", - "AliasList": [], + "Name": "Name", + "AliasList": [ + "WorkspaceName" + ], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83731,54 +100939,6 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "AsJob", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -83821,7 +100981,7 @@ ] }, { - "Name": "UpdateByResourceIdParameterSet", + "Name": "GetByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -83849,16 +101009,31 @@ }, { "ParameterMetadata": { - "Name": "Tag", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], @@ -83870,39 +101045,165 @@ "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false - }, + } + ] + }, + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "PerformanceLevel", - "AliasList": [], + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], "Constructors": [] }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false + } + ] + } + ], + "AliasList": [] + }, + { + "VerbName": "Test", + "NounName": "AzSynapseWorkspace", + "Name": "Test-AzSynapseWorkspace", + "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseWorkspace", + "SupportsShouldProcess": false, + "ConfirmImpact": 0, + "SupportsPaging": false, + "DefaultParameterSetName": "__AllParameterSets", + "OutputTypes": [ + { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "Name", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + } + ], + "ParameterSets": [ + { + "Name": "__AllParameterSets", + "Parameters": [ { "ParameterMetadata": { - "Name": "Version", + "Name": "Name", "AliasList": [], "Type": { "Namespace": "System", - "Name": "System.Int32", - "AssemblyQualifiedName": "System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83914,43 +101215,19 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, - "Position": -2147483648, - "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false - }, - { - "ParameterMetadata": { - "Name": "PassThru", - "AliasList": [], - "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - }, - "Mandatory": false, - "Position": -2147483648, + "Mandatory": true, + "Position": 0, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "ResourceGroupName", "AliasList": [], "Type": { - "Namespace": "System.Management.Automation", - "Name": "System.Management.Automation.SwitchParameter", - "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -83960,10 +101237,10 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false + "ValidateNotNullOrEmpty": true }, "Mandatory": false, - "Position": -2147483648, + "Position": 1, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -84012,20 +101289,20 @@ "AliasList": [] }, { - "VerbName": "Get", + "VerbName": "Update", "NounName": "AzSynapseWorkspace", - "Name": "Get-AzSynapseWorkspace", - "ClassName": "Microsoft.Azure.Commands.Synapse.GetAzureSynapseWorkspace", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, + "Name": "Update-AzSynapseWorkspace", + "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseWorkspace", + "SupportsShouldProcess": true, + "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "GetByNameParameterSet", + "DefaultParameterSetName": "SetByNameParameterSet", "OutputTypes": [ { "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", @@ -84115,9 +101392,134 @@ "WorkspaceName" ], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + { + "Name": "SqlAdministratorLoginPassword", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84127,15 +101529,15 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { - "Name": "ResourceId", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84145,7 +101547,7 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "DefaultProfile", @@ -84183,7 +101585,7 @@ ], "ParameterSets": [ { - "Name": "GetByNameParameterSet", + "Name": "SetByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -84235,6 +101637,78 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SqlAdministratorLoginPassword", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -84277,16 +101751,93 @@ ] }, { - "Name": "GetByResourceIdParameterSet", + "Name": "SetByInputObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "ResourceId", + "Name": "InputObject", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", + "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", + "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", + "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", + "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Tags": "System.Collections.Hashtable", + "ManagedResourceGroupName": "System.String", + "ProvisioningState": "System.String", + "SqlAdministratorLogin": "System.String", + "ManagedVirtualNetwork": "System.String", + "TagsTable": "System.String", + "Location": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "workspace", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84296,9 +101847,57 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SqlAdministratorLoginPassword", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false @@ -84345,8 +101944,104 @@ ] }, { - "Name": "__AllParameterSets", + "Name": "SetByResourceIdParameterSet", "Parameters": [ + { + "ParameterMetadata": { + "Name": "ResourceId", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Tag", + "AliasList": [], + "Type": { + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SqlAdministratorLoginPassword", + "AliasList": [], + "Type": { + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -84387,119 +102082,18 @@ "ValueFromPipelineByPropertyName": false } ] - } - ], - "AliasList": [] - }, - { - "VerbName": "Test", - "NounName": "AzSynapseWorkspace", - "Name": "Test-AzSynapseWorkspace", - "ClassName": "Microsoft.Azure.Commands.Synapse.TestAzureSynapseWorkspace", - "SupportsShouldProcess": false, - "ConfirmImpact": 0, - "SupportsPaging": false, - "DefaultParameterSetName": "__AllParameterSets", - "OutputTypes": [ - { - "Type": { - "Namespace": "System", - "Name": "System.Boolean", - "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "Name", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true }, - { - "Name": "DefaultProfile", - "AliasList": [ - "AzContext", - "AzureRmContext", - "AzureCredential" - ], - "Type": { - "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", - "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", - "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", - "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", - "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" - }, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "Clear", - "Parameters": [], - "ReturnType": "System.Void" - } - ], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": false - } - ], - "ParameterSets": [ { "Name": "__AllParameterSets", "Parameters": [ { "ParameterMetadata": { - "Name": "Name", + "Name": "Tag", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Collections", + "Name": "System.Collections.Hashtable", + "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84509,21 +102103,21 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, - "Mandatory": true, - "Position": 0, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "ResourceGroupName", + "Name": "SqlAdministratorLoginPassword", "AliasList": [], "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Security", + "Name": "System.Security.SecureString", + "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84533,10 +102127,34 @@ "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, "Mandatory": false, - "Position": 1, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "AsJob", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, @@ -84585,31 +102203,123 @@ "AliasList": [] }, { - "VerbName": "Update", - "NounName": "AzSynapseWorkspace", - "Name": "Update-AzSynapseWorkspace", - "ClassName": "Microsoft.Azure.Commands.Synapse.UpdateAzureSynapseWorkspace", + "VerbName": "Remove", + "NounName": "AzSynapseSqlPoolRestorePoint", + "Name": "Remove-AzSynapseSqlPoolRestorePoint", + "ClassName": "Microsoft.Azure.Commands.Synapse.Commands.RemoveAzureSynapseSqlPoolRestorePoint", "SupportsShouldProcess": true, "ConfirmImpact": 2, "SupportsPaging": false, - "DefaultParameterSetName": "SetByNameParameterSet", + "DefaultParameterSetName": "DeleteByNameParameterSet", "OutputTypes": [ { + "Type": { + "Namespace": "System", + "Name": "System.Boolean", + "AssemblyQualifiedName": "System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ParameterSets": [ + "__AllParameterSets" + ] + } + ], + "Parameters": [ + { + "Name": "ResourceGroupName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "WorkspaceName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SqlPoolName", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "RestorePointCreationDate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.DateTime", + "AssemblyQualifiedName": "System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + { + "Name": "SqlPoolObject", + "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -84651,77 +102361,31 @@ "ReturnType": null, "Parameters": [ { - "Name": "workspace", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] } ] }, - "ParameterSets": [ - "__AllParameterSets" - ] - } - ], - "Parameters": [ - { - "Name": "ResourceGroupName", - "AliasList": [], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, - "ValidateSet": [], - "ValidateRangeMin": null, - "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true - }, - { - "Name": "Name", - "AliasList": [ - "WorkspaceName" - ], - "Type": { - "Namespace": "System", - "Name": "System.String", - "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [], - "Methods": [], - "Constructors": [] - }, "ValidateSet": [], "ValidateRangeMin": null, "ValidateRangeMax": null, - "ValidateNotNullOrEmpty": true + "ValidateNotNullOrEmpty": false }, { "Name": "InputObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", - "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", - "TagsTable": "System.String", + "RestorePointType": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", + "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", + "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", "Location": "System.String", + "RestorePointLabel": "System.String", "Id": "System.String", "Name": "System.String", "Type": "System.String" @@ -84761,7 +102425,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "workspace", + "Name": "restorePoint", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -84792,12 +102456,12 @@ "ValidateNotNullOrEmpty": true }, { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84810,12 +102474,12 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "SqlAdministratorLoginPassword", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84828,7 +102492,7 @@ "ValidateNotNullOrEmpty": false }, { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -84881,7 +102545,7 @@ ], "ParameterSets": [ { - "Name": "SetByNameParameterSet", + "Name": "DeleteByNameParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -84909,10 +102573,8 @@ }, { "ParameterMetadata": { - "Name": "Name", - "AliasList": [ - "WorkspaceName" - ], + "Name": "WorkspaceName", + "AliasList": [], "Type": { "Namespace": "System", "Name": "System.String", @@ -84928,19 +102590,67 @@ "ValidateRangeMax": null, "ValidateNotNullOrEmpty": true }, - "Mandatory": false, + "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "SqlPoolName", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System", + "Name": "System.String", + "AssemblyQualifiedName": "System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "RestorePointCreationDate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.DateTime", + "AssemblyQualifiedName": "System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84959,12 +102669,12 @@ }, { "ParameterMetadata": { - "Name": "SqlAdministratorLoginPassword", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -84983,7 +102693,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -85047,27 +102757,52 @@ ] }, { - "Name": "SetByInputObjectParameterSet", + "Name": "DeleteByParentObjectParameterSet", "Parameters": [ { "ParameterMetadata": { - "Name": "InputObject", + "Name": "RestorePointCreationDate", + "AliasList": [], + "Type": { + "Namespace": "System", + "Name": "System.DateTime", + "AssemblyQualifiedName": "System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": true + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "SqlPoolObject", "AliasList": [], "Type": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSqlPool, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { - "DefaultDataLakeStorage": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "Identity": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "VirtualNetworkProfile": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "ConnectivityEndpoints": "System.Collections.Generic.IDictionary`2[System.String,System.String]", - "PrivateEndpointConnections": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", + "Sku": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", "Tags": "System.Collections.Hashtable", - "ManagedResourceGroupName": "System.String", + "RestorePointInTime": "System.Nullable`1[System.DateTime]", + "CreationDate": "System.Nullable`1[System.DateTime]", + "MaxSizeBytes": "System.Nullable`1[System.Int64]", + "Collation": "System.String", + "SourceDatabaseId": "System.String", + "RecoverableDatabaseId": "System.String", "ProvisioningState": "System.String", - "SqlAdministratorLogin": "System.String", - "ManagedVirtualNetwork": "System.String", + "Status": "System.String", + "CreateMode": "System.String", "TagsTable": "System.String", "Location": "System.String", "Id": "System.String", @@ -85109,7 +102844,7 @@ "ReturnType": null, "Parameters": [ { - "Name": "workspace", + "Name": "sqlPool", "Type": "System.Reflection.RuntimeParameterInfo" } ] @@ -85128,12 +102863,12 @@ }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85152,12 +102887,174 @@ }, { "ParameterMetadata": { - "Name": "SqlAdministratorLoginPassword", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "DefaultProfile", + "AliasList": [ + "AzContext", + "AzureRmContext", + "AzureCredential" + ], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core", + "Name": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer, Microsoft.Azure.PowerShell.Authentication.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "DefaultContext": "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext", + "Accounts": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount]", + "Environments": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment]", + "Subscriptions": "System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription]" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Clear", + "Parameters": [], + "ReturnType": "System.Void" + } + ], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + } + ] + }, + { + "Name": "DeleteByInputObjectParameterSet", + "Parameters": [ + { + "ParameterMetadata": { + "Name": "InputObject", + "AliasList": [], + "Type": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSRestorePoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "RestorePointType": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", + "EarliestRestoreDate": "System.Nullable`1[System.DateTime]", + "RestorePointCreationDate": "System.Nullable`1[System.DateTime]", + "Location": "System.String", + "RestorePointLabel": "System.String", + "Id": "System.String", + "Name": "System.String", + "Type": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "restorePoint", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": true, + "Position": -2147483648, + "ValueFromPipeline": true, + "ValueFromPipelineByPropertyName": false + }, + { + "ParameterMetadata": { + "Name": "PassThru", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85198,6 +103095,30 @@ "ValueFromPipeline": false, "ValueFromPipelineByPropertyName": false }, + { + "ParameterMetadata": { + "Name": "Force", + "AliasList": [], + "Type": { + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "ValidateSet": [], + "ValidateRangeMin": null, + "ValidateRangeMax": null, + "ValidateNotNullOrEmpty": false + }, + "Mandatory": false, + "Position": -2147483648, + "ValueFromPipeline": false, + "ValueFromPipelineByPropertyName": false + }, { "ParameterMetadata": { "Name": "DefaultProfile", @@ -85240,7 +103161,7 @@ ] }, { - "Name": "SetByResourceIdParameterSet", + "Name": "DeleteByResourceIdParameterSet", "Parameters": [ { "ParameterMetadata": { @@ -85264,16 +103185,16 @@ "Mandatory": true, "Position": -2147483648, "ValueFromPipeline": false, - "ValueFromPipelineByPropertyName": false + "ValueFromPipelineByPropertyName": true }, { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85292,12 +103213,12 @@ }, { "ParameterMetadata": { - "Name": "SqlAdministratorLoginPassword", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85316,7 +103237,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -85384,12 +103305,12 @@ "Parameters": [ { "ParameterMetadata": { - "Name": "Tag", + "Name": "PassThru", "AliasList": [], "Type": { - "Namespace": "System.Collections", - "Name": "System.Collections.Hashtable", - "AssemblyQualifiedName": "System.Collections.Hashtable, System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85408,12 +103329,12 @@ }, { "ParameterMetadata": { - "Name": "SqlAdministratorLoginPassword", + "Name": "AsJob", "AliasList": [], "Type": { - "Namespace": "System.Security", - "Name": "System.Security.SecureString", - "AssemblyQualifiedName": "System.Security.SecureString, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Namespace": "System.Management.Automation", + "Name": "System.Management.Automation.SwitchParameter", + "AssemblyQualifiedName": "System.Management.Automation.SwitchParameter, System.Management.Automation, Version=6.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -85432,7 +103353,7 @@ }, { "ParameterMetadata": { - "Name": "AsJob", + "Name": "Force", "AliasList": [], "Type": { "Namespace": "System.Management.Automation", @@ -85643,7 +103564,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataLakeStorageAccountDetails, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DefaultDataLakeStorageAccountUrl": "System.String", "DefaultDataLakeStorageFilesystem": "System.String" @@ -85703,7 +103624,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSManagedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IdentityType": "System.String", "PrincipalId": "System.String", @@ -85754,7 +103675,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSVirtualNetworkProfile, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "VirtualNetworkProfileComputeSubnetId": "System.String" }, @@ -85816,7 +103737,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -85828,7 +103749,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpointConnection, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpoint": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpoint", "PrivateLinkServiceConnectionState": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateLinkServiceConnectionState", @@ -85882,7 +103803,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpoint": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpoint", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateEndpoint, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Id": "System.String" }, @@ -85931,7 +103852,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSPrivateLinkServiceConnectionState": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateLinkServiceConnectionState", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPrivateLinkServiceConnectionState, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Status": "System.String", "Description": "System.String", @@ -86170,7 +104091,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlow, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowFolder", "Annotations": "System.Collections.Generic.IList`1[System.Object]", @@ -86231,7 +104152,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowFolder": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowFolder", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataFlowFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String" }, @@ -86450,7 +104371,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSDataset": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDataset", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDataset, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "LinkedServiceName": "Azure.Analytics.Synapse.Artifacts.Models.LinkedServiceReference", "Folder": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetFolder", @@ -86648,7 +104569,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSDatasetFolder": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetFolder", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSDatasetFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String" }, @@ -86746,7 +104667,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -86759,7 +104680,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Azure.Analytics.Synapse.Artifacts.Models.ParameterType", "DefaultValue": "System.Object" @@ -87155,7 +105076,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLinkedService, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ConnectVia": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeReference", "Parameters": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSParameterSpecification]", @@ -87223,7 +105144,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeReference": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeReference", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeReference, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSIntegrationRuntimeReference, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Parameters": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "Type": "System.Nullable`1[Azure.Analytics.Synapse.Artifacts.Models.IntegrationRuntimeReferenceType]", @@ -87561,7 +105482,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebook": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebook, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "BigDataPool": "Microsoft.Azure.Commands.Synapse.Models.PSBigDataPoolReference", "Metadata": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookMetadata", @@ -87622,7 +105543,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSBigDataPoolReference": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSBigDataPoolReference", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSBigDataPoolReference, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSBigDataPoolReference, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "System.Nullable`1[Azure.Analytics.Synapse.Artifacts.Models.BigDataPoolReferenceType]", "ReferenceName": "System.String" @@ -87802,7 +105723,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookMetadata": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookMetadata", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookMetadata, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookMetadata, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Kernelspec": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookKernelSpec", "LanguageInfo": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookLanguageInfo", @@ -87858,7 +105779,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookKernelSpec": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookKernelSpec", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookKernelSpec, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookKernelSpec, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "DisplayName": "System.String", @@ -88024,7 +105945,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookLanguageInfo": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookLanguageInfo", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookLanguageInfo, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookLanguageInfo, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "CodemirrorMode": "System.String", @@ -88287,7 +106208,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookSessionProperties": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookSessionProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookSessionProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookSessionProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DriverCores": "System.Nullable`1[System.Int32]", "ExecutorCores": "System.Nullable`1[System.Int32]", @@ -88426,7 +106347,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -88438,7 +106359,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCell, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "Outputs": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem]", @@ -88497,7 +106418,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -88509,7 +106430,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSNotebookCellOutputItem, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ExecutionCount": "System.Nullable`1[System.Int32]", "Text": "System.Object", @@ -89001,7 +106922,7 @@ "System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityRun]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityRun]", - "AssemblyQualifiedName": "System.Collections.Generic.IReadOnlyList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IReadOnlyList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -89013,7 +106934,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSActivityRun": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRun", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityRun, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Values": "System.Collections.Generic.IEnumerable`1[System.Object]", "Keys": "System.Collections.Generic.IEnumerable`1[System.String]", @@ -89122,7 +107043,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineRunInvokedBy, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Id": "System.String", @@ -89198,7 +107119,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSPipelineFolder, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String" }, @@ -89296,7 +107217,7 @@ "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IDictionary`2[System.String,Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification]", - "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IDictionary`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -89309,7 +107230,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSVariableSpecification, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "Azure.Analytics.Synapse.Artifacts.Models.VariableType", "DefaultValue": "System.Object" @@ -89476,7 +107397,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivity]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivity]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -89488,7 +107409,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSActivity": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSActivity", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivity, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "DependsOn": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency]", @@ -89556,7 +107477,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -89568,7 +107489,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSActivityDependency, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "DependencyConditions": "System.Collections.Generic.IList`1[Azure.Analytics.Synapse.Artifacts.Models.DependencyCondition]", @@ -89808,7 +107729,7 @@ "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSUserProperty]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Synapse.Models.PSUserProperty]", - "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSUserProperty, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.Synapse.Models.PSUserProperty, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -89820,7 +107741,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSUserProperty": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSUserProperty", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSUserProperty, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSUserProperty, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Value": "System.Object", "Name": "System.String" @@ -90272,7 +108193,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSTrigger": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSTrigger, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AdditionalProperties": "System.Collections.Generic.IDictionary`2[System.String,System.Object]", "Annotations": "System.Collections.Generic.IList`1[System.Object]", @@ -90635,7 +108556,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyBatchStateInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "JobCreationRequest": "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase", "RunningAt": "System.Nullable`1[System.DateTimeOffset]", @@ -90692,7 +108613,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Configuration": "System.Collections.Generic.IReadOnlyDictionary`2[System.String,System.String]", "Arguments": "System.Collections.Generic.IReadOnlyList`1[System.String]", @@ -90765,7 +108686,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSchedulerInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CurrentState": "System.Nullable`1[Azure.Analytics.Synapse.Spark.Models.SchedulerCurrentState]", "SubmittedAt": "System.Nullable`1[System.DateTimeOffset]", @@ -90891,7 +108812,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSSparkServicePluginInformation": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSparkServicePluginInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSparkServicePluginInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSparkServicePluginInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CurrentState": "System.Nullable`1[Azure.Analytics.Synapse.Spark.Models.PluginCurrentState]", "PreparationStartedAt": "System.Nullable`1[System.DateTimeOffset]", @@ -91220,7 +109141,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSAutoPauseProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "DelayInMinutes": "System.Nullable`1[System.Int32]" @@ -91270,7 +109191,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSAutoScaleProperties, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Enabled": "System.Nullable`1[System.Boolean]", "MinNodeCount": "System.Nullable`1[System.Int32]", @@ -91321,7 +109242,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLibraryRequirements, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Time": "System.Nullable`1[System.DateTime]", "Content": "System.String", @@ -91394,7 +109315,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivySessionStateInformation, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "JobCreationRequest": "Microsoft.Azure.Commands.Synapse.Models.PSLivyRequestBase", "IdleAt": "System.Nullable`1[System.DateTimeOffset]", @@ -91443,66 +109364,455 @@ "ReturnType": null, "Parameters": [ { - "Name": "stateInfo", + "Name": "stateInfo", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Traceback": "System.Collections.Generic.IReadOnlyList`1[System.String]", + "ExecutionCount": "System.Nullable`1[System.Int32]", + "Data": "System.Object", + "Status": "System.String", + "ErrorName": "System.String", + "ErrorValue": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "output", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ] + } + ] + }, + "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[]", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup[], Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditActionGroup, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "System.TypeCode": { + "Namespace": "System", + "Name": "System.TypeCode", + "AssemblyQualifiedName": "System.TypeCode, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.Synapse.Models.AuditStateType": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.AuditStateType, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.StorageKeyKind, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [] + }, + "System.Nullable`1[System.UInt32]": { + "Namespace": "System", + "Name": "System.Nullable`1[System.UInt32]", + "AssemblyQualifiedName": "System.Nullable`1[[System.UInt32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": null, + "GenericTypeArguments": [ + "System.UInt32" + ], + "Methods": [], + "Constructors": [] + }, + "System.String[]": { + "Namespace": "System", + "Name": "System.String[]", + "AssemblyQualifiedName": "System.String[], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, + "ElementType": "System.String", + "GenericTypeArguments": [], + "Methods": [], + "Constructors": [] + }, + "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": { + "Tier": "System.String", + "Name": "System.String" + }, + "ElementType": null, + "GenericTypeArguments": [], + "Methods": [ + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], + "Constructors": [ + { + "Name": "", + "ReturnType": null, + "Parameters": [ + { + "Name": "sku", "Type": "System.Reflection.RuntimeParameterInfo" } ] } ] }, - "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSLivyStatementOutput, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Traceback": "System.Collections.Generic.IReadOnlyList`1[System.String]", - "ExecutionCount": "System.Nullable`1[System.Int32]", - "Data": "System.Object", - "Status": "System.String", - "ErrorName": "System.String", - "ErrorValue": "System.String" - }, + "System.Nullable`1[System.Int64]": { + "Namespace": "System", + "Name": "System.Nullable`1[System.Int64]", + "AssemblyQualifiedName": "System.Nullable`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Properties": {}, "ElementType": null, - "GenericTypeArguments": [], - "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, - { - "Name": "Equals", - "Parameters": [ - { - "Name": "obj", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ], - "ReturnType": "System.Boolean" - }, - { - "Name": "GetHashCode", - "Parameters": [], - "ReturnType": "System.Int32" - }, - { - "Name": "GetType", - "Parameters": [], - "ReturnType": "System.Type" - } + "GenericTypeArguments": [ + "System.Int64" ], - "Constructors": [ - { - "Name": "", - "ReturnType": null, - "Parameters": [ - { - "Name": "output", - "Type": "System.Reflection.RuntimeParameterInfo" - } - ] - } - ] + "Methods": [], + "Constructors": [] }, "System.Collections.Generic.IList`1[Microsoft.Azure.Management.Synapse.Models.IntegrationRuntimeNodeMonitoringData]": { "Namespace": "System.Collections.Generic", @@ -91975,7 +110285,7 @@ "Microsoft.Azure.Commands.Synapse.Models.PSSystemData": { "Namespace": "Microsoft.Azure.Commands.Synapse.Models", "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSystemData, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CreatedAt": "System.Nullable`1[System.DateTime]", "LastModifiedAt": "System.Nullable`1[System.DateTime]", @@ -92026,34 +110336,26 @@ } ] }, - "System.Nullable`1[System.Int64]": { + "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]": { "Namespace": "System", - "Name": "System.Nullable`1[System.Int64]", - "AssemblyQualifiedName": "System.Nullable`1[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Name": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Synapse.Models.RestorePointType, Microsoft.Azure.Management.Synapse, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ - "System.Int64" + "Microsoft.Azure.Management.Synapse.Models.RestorePointType" ], "Methods": [], "Constructors": [] }, - "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku": { - "Namespace": "Microsoft.Azure.Commands.Synapse.Models", - "Name": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.PSSynapseSku, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", - "Properties": { - "Tier": "System.String", - "Name": "System.String" - }, + "Microsoft.Azure.Management.Synapse.Models.RestorePointType": { + "Namespace": "Microsoft.Azure.Management.Synapse.Models", + "Name": "Microsoft.Azure.Management.Synapse.Models.RestorePointType", + "AssemblyQualifiedName": "Microsoft.Azure.Management.Synapse.Models.RestorePointType, Microsoft.Azure.Management.Synapse, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Properties": {}, "ElementType": null, "GenericTypeArguments": [], "Methods": [ - { - "Name": "ToString", - "Parameters": [], - "ReturnType": "System.String" - }, { "Name": "Equals", "Parameters": [ @@ -92070,40 +110372,81 @@ "ReturnType": "System.Int32" }, { - "Name": "GetType", + "Name": "ToString", "Parameters": [], - "ReturnType": "System.Type" - } - ], - "Constructors": [ + "ReturnType": "System.String" + }, { - "Name": "", - "ReturnType": null, + "Name": "ToString", "Parameters": [ { - "Name": "sku", + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", "Type": "System.Reflection.RuntimeParameterInfo" } - ] + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" } - ] - }, - "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]": { - "Namespace": "System", - "Name": "System.Nullable`1[Microsoft.Azure.Management.Synapse.Models.RestorePointType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Management.Synapse.Models.RestorePointType, Microsoft.Azure.Management.Synapse, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", - "Properties": {}, - "ElementType": null, - "GenericTypeArguments": [ - "Microsoft.Azure.Management.Synapse.Models.RestorePointType" ], - "Methods": [], "Constructors": [] }, - "Microsoft.Azure.Management.Synapse.Models.RestorePointType": { - "Namespace": "Microsoft.Azure.Management.Synapse.Models", - "Name": "Microsoft.Azure.Management.Synapse.Models.RestorePointType", - "AssemblyQualifiedName": "Microsoft.Azure.Management.Synapse.Models.RestorePointType, Microsoft.Azure.Management.Synapse, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "Microsoft.Azure.Commands.Synapse.Models.ThreatDetectionStateType": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.ThreatDetectionStateType", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.ThreatDetectionStateType, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -92195,14 +110538,99 @@ ], "Constructors": [] }, - "System.TypeCode": { - "Namespace": "System", - "Name": "System.TypeCode", - "AssemblyQualifiedName": "System.TypeCode, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval": { + "Namespace": "Microsoft.Azure.Commands.Synapse.Models", + "Name": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Synapse.Models.RecurringScansInterval, Microsoft.Azure.PowerShell.Cmdlets.Synapse, Version=0.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], - "Methods": [], + "Methods": [ + { + "Name": "Equals", + "Parameters": [ + { + "Name": "obj", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetHashCode", + "Parameters": [], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + }, + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "CompareTo", + "Parameters": [ + { + "Name": "target", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Int32" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "format", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "ToString", + "Parameters": [ + { + "Name": "provider", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.String" + }, + { + "Name": "HasFlag", + "Parameters": [ + { + "Name": "flag", + "Type": "System.Reflection.RuntimeParameterInfo" + } + ], + "ReturnType": "System.Boolean" + }, + { + "Name": "GetTypeCode", + "Parameters": [], + "ReturnType": "System.TypeCode" + }, + { + "Name": "GetType", + "Parameters": [], + "ReturnType": "System.Type" + } + ], "Constructors": [] } } diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Tags.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Tags.dll.json index 7dd2c4247b2e..5f012bdfaeeb 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Tags.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Tags.dll.json @@ -426,7 +426,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.PSTagResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject", "Id": "System.String", @@ -881,7 +881,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.PSTagResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject", "Id": "System.String", @@ -1332,7 +1332,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.PSTagResource", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagResource, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Properties": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject", "Id": "System.String", @@ -1425,7 +1425,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -1615,7 +1615,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.TagPatchOperation, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -2208,7 +2208,7 @@ "Microsoft.Azure.Commands.Tags.Model.PSTagsObject": { "Namespace": "Microsoft.Azure.Commands.Tags.Model", "Name": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.Tags.Model.PSTagsObject, Microsoft.Azure.PowerShell.Cmdlets.Tags, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "TagsProperty": "System.Collections.Generic.IDictionary`2[System.String,System.String]" }, diff --git a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Websites.dll.json b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Websites.dll.json index e864cbc43efa..f68f2ba8ff6c 100644 --- a/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Websites.dll.json +++ b/tools/Tools.Common/SerializedCmdlets/Microsoft.Azure.PowerShell.Cmdlets.Websites.dll.json @@ -1433,7 +1433,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -1600,7 +1600,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -1935,7 +1935,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -2257,7 +2257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -2500,7 +2500,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -2844,7 +2844,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -3307,7 +3307,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -3552,7 +3552,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -3737,7 +3737,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -4182,7 +4182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -4759,7 +4759,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -5166,7 +5166,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -5456,7 +5456,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -5723,7 +5723,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -5936,7 +5936,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -6103,7 +6103,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -6370,7 +6370,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -6583,7 +6583,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -7115,7 +7115,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", "GenericTypeArguments": [], @@ -7267,7 +7267,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -8019,7 +8019,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", "GenericTypeArguments": [], @@ -8652,7 +8652,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -9411,7 +9411,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -9890,7 +9890,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -10155,7 +10155,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -10322,7 +10322,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -10589,7 +10589,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -10802,7 +10802,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -10969,7 +10969,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -11236,7 +11236,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -11504,7 +11504,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -11580,7 +11580,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -11779,7 +11779,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -11971,7 +11971,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -12067,7 +12067,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -12233,7 +12233,7 @@ "Type": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -12338,7 +12338,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotTime": "System.DateTime", "ResourceGroupName": "System.String", @@ -12466,7 +12466,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -12825,7 +12825,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -13359,7 +13359,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -13739,7 +13739,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeletionTime": "System.DateTime", "DeletedSiteId": "System.Int32", @@ -14405,7 +14405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeletionTime": "System.DateTime", "DeletedSiteId": "System.Int32", @@ -14849,7 +14849,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -15502,7 +15502,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -15960,7 +15960,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -16105,7 +16105,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotTime": "System.DateTime", "ResourceGroupName": "System.String", @@ -16378,7 +16378,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotTime": "System.DateTime", "ResourceGroupName": "System.String", @@ -16579,7 +16579,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -16697,7 +16697,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.BackupRestore.AzureWebAppSnapshot, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SnapshotTime": "System.DateTime", "ResourceGroupName": "System.String", @@ -16905,7 +16905,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -17298,7 +17298,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -17626,7 +17626,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -18355,7 +18355,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -18823,7 +18823,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -19182,7 +19182,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -19375,7 +19375,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -19626,7 +19626,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -20081,7 +20081,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -20250,7 +20250,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -22047,7 +22047,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -22315,7 +22315,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -22967,7 +22967,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -23109,7 +23109,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -23431,7 +23431,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestrictionConfig, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScmSiteUseMainSiteRestrictionConfig": "System.Boolean", "MainSiteAccessRestrictions": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", @@ -23563,7 +23563,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting[]", "KeepAtLeastOneBackup": "System.Nullable`1[System.Boolean]", @@ -23769,7 +23769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -24452,7 +24452,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -24789,7 +24789,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.PSAzureDeletedWebApp, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DeletionTime": "System.DateTime", "DeletedSiteId": "System.Int32", @@ -25116,7 +25116,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting[]", "Scheduled": "System.Nullable`1[System.Boolean]", @@ -25257,7 +25257,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -25616,7 +25616,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -25809,7 +25809,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting[]", "KeepAtLeastOneBackup": "System.Nullable`1[System.Boolean]", @@ -25925,7 +25925,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -26192,7 +26192,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -26405,7 +26405,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting[]", "Scheduled": "System.Nullable`1[System.Boolean]", @@ -26528,7 +26528,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -26795,7 +26795,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -27008,7 +27008,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps", "Name": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps.AzureWebAppBackup, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Databases": "Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting[]", "Scheduled": "System.Nullable`1[System.Boolean]", @@ -27149,7 +27149,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -27640,7 +27640,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -28101,7 +28101,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -28460,7 +28460,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -28653,7 +28653,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSCertificate", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSCertificate, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSCertificate, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "CerBlob": "System.Byte[]", @@ -29075,7 +29075,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -29434,7 +29434,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -29769,7 +29769,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -30416,7 +30416,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -30676,7 +30676,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -31142,7 +31142,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -31601,7 +31601,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -31953,7 +31953,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -32360,7 +32360,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -32650,7 +32650,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -32917,7 +32917,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -33130,7 +33130,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -33279,7 +33279,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -33516,7 +33516,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models.WebApp", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebApp.PSAppServicePlan, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostingEnvironmentProfile": "Microsoft.Azure.Management.WebSites.Models.HostingEnvironmentProfile", "Sku": "Microsoft.Azure.Management.WebSites.Models.SkuDescription", @@ -33886,7 +33886,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -34325,7 +34325,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -34570,7 +34570,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "System.Nullable`1[Microsoft.Azure.Management.WebSites.Models.AzureStorageType]", "Name": "System.String", @@ -35231,7 +35231,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -35590,7 +35590,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -35783,7 +35783,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -35970,7 +35970,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -36710,7 +36710,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -37528,7 +37528,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -37749,7 +37749,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -38204,7 +38204,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -38536,7 +38536,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -38919,7 +38919,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -39191,7 +39191,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -39434,7 +39434,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -39647,7 +39647,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -39796,7 +39796,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -40039,7 +40039,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -40252,7 +40252,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -40802,7 +40802,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", "GenericTypeArguments": [], @@ -40918,7 +40918,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -41554,7 +41554,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", "GenericTypeArguments": [], @@ -41986,7 +41986,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -42251,7 +42251,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -42400,7 +42400,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -42643,7 +42643,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -42856,7 +42856,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -43005,7 +43005,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -43248,7 +43248,7 @@ "Type": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSSite", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSSite, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AzureStoragePath": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", "AzureStorageAccounts": "Microsoft.Azure.Management.WebSites.Models.AzureStoragePropertyDictionaryResource", @@ -43817,7 +43817,7 @@ "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[]", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath[], Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", "GenericTypeArguments": [], @@ -43827,7 +43827,7 @@ "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.WebAppAzureStoragePath, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "System.Nullable`1[Microsoft.Azure.Management.WebSites.Models.AzureStorageType]", "Name": "System.String", @@ -47842,7 +47842,7 @@ "Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction": { "Namespace": "Microsoft.Azure.Commands.WebApps.Utilities", "Name": "Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Utilities.SwapWithPreviewAction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": {}, "ElementType": null, "GenericTypeArguments": [], @@ -48459,7 +48459,7 @@ "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]": { "Namespace": "System.Collections.Generic", "Name": "System.Collections.Generic.List`1[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction]", - "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Collections.Generic.List`1[[Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "Properties": {}, "ElementType": null, "GenericTypeArguments": [ @@ -48471,7 +48471,7 @@ "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction": { "Namespace": "Microsoft.Azure.Commands.WebApps.Models", "Name": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction", - "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.Commands.WebApps.Models.PSAccessRestriction, Microsoft.Azure.PowerShell.Cmdlets.Websites, Version=2.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HttpHeader": "System.Collections.Hashtable", "Priority": "System.Int32", diff --git a/tools/VersionController/Models/VersionMetadataHelper.cs b/tools/VersionController/Models/VersionMetadataHelper.cs index 16fa0aeed672..2b17ed9990df 100644 --- a/tools/VersionController/Models/VersionMetadataHelper.cs +++ b/tools/VersionController/Models/VersionMetadataHelper.cs @@ -267,7 +267,7 @@ public Version GetVersionBumpUsingSerialized(bool serialize = true) { powershell.AddScript("(Test-ModuleManifest -Path " + outputModuleManifestPath + ").NestedModules"); var cmdletResult = powershell.Invoke(); - nestedModules = cmdletResult.Select(c => c.ToString() + ".dll"); + nestedModules = cmdletResult.Select(c => c.ToString()); } Version versionBump = Version.PATCH; @@ -290,9 +290,17 @@ public Version GetVersionBumpUsingSerialized(bool serialize = true) } requiredModules.Add(outputModuleDirectory); - foreach (var nestedModule in nestedModules) + foreach (var nestedModuleName in nestedModules) { + // Handcrafted modules assume its nested module always is DLL file. + var nestedModule = nestedModuleName + ".dll"; var assemblyPath = Directory.GetFiles(outputModuleDirectory, nestedModule, SearchOption.AllDirectories).FirstOrDefault(); + + // However we support PSM1, PSD1 other nested module type. Skip this check and we need to use a different design soon. + if(assemblyPath == null) + { + continue; + } var proxy = new CmdletLoader(); var newModuleMetadata = proxy.GetModuleMetadata(assemblyPath, requiredModules); var serializedCmdletName = nestedModule + ".json";